204 lines
4.6 KiB
CSS
204 lines
4.6 KiB
CSS
/*
|
|
COLORS
|
|
|
|
Primary: #eb2f64
|
|
Primary light: #FF3366
|
|
Primary dark: #BA265D
|
|
|
|
Grey light 1: #faf9f9
|
|
Grey light 2: #f4f2f2
|
|
Grey light 3: #f0eeee
|
|
Grey light 4: #ccc
|
|
|
|
Grey dark 1: #333
|
|
Grey dark 2: #777
|
|
Grey dark 3: #999
|
|
*/
|
|
:root {
|
|
--color-primary: #eb2f64;
|
|
--color-primary-light: #ff3366;
|
|
--color-primary-dark: #ba265d;
|
|
--color-grey-light-1: #faf9f9;
|
|
--color-grey-light-2: #f4f2f2;
|
|
--color-grey-light-3: #f0eeee;
|
|
--color-grey-light-4: #ccc;
|
|
--color-grey-dark-1: #333;
|
|
--color-grey-dark-2: #777;
|
|
--color-grey-dark-3: #999;
|
|
--shadow-dark: 0 2rem 6rem rgba(0, 0, 0, 0.3); }
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0; }
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: inherit; }
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
font-size: 62.5%; }
|
|
|
|
body {
|
|
font-family: "Open Sans", sans-serif;
|
|
font-weight: 400;
|
|
color: var(--color-grey-dark-2);
|
|
line-height: 1.6;
|
|
background-image: linear-gradient(to right bottom, var(--color-primary-light), var(--color-primary-dark));
|
|
background-size: cover;
|
|
min-height: 100vh; }
|
|
|
|
.logo {
|
|
height: 3.25rem;
|
|
margin-left: 2rem; }
|
|
|
|
.search {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 40%; }
|
|
.search__input {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
border: none;
|
|
background-color: var(--color-grey-light-2);
|
|
padding: 0.7rem 2rem;
|
|
border-radius: 100px;
|
|
width: 90%;
|
|
transition: all 0.2s;
|
|
margin-right: -3.25rem; }
|
|
.search__input:focus {
|
|
outline: none;
|
|
width: 100%;
|
|
background-color: var(--color-grey-light-3); }
|
|
.search__input::placeholder, .search__input::-webkit-input-placeholder {
|
|
font-weight: 100;
|
|
color: var(--color-grey-light-4); }
|
|
.search__input:focus + .search__button {
|
|
background-color: var(--color-grey-light-3); }
|
|
.search__button {
|
|
border: none;
|
|
background-color: var(--color-grey-light-2); }
|
|
.search__button:focus {
|
|
outline: none; }
|
|
.search__button:active {
|
|
transform: translateY(2px); }
|
|
.search__icon {
|
|
height: 2rem;
|
|
width: 2rem;
|
|
fill: var(--color-grey-dark-3); }
|
|
|
|
.user-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: stretch; }
|
|
.user-nav > * {
|
|
height: 100%;
|
|
padding: 0 2rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center; }
|
|
.user-nav > *:hover {
|
|
background-color: var(--color-grey-light-2); }
|
|
.user-nav__icon-box {
|
|
position: relative; }
|
|
.user-nav__icon {
|
|
height: 2.25rem;
|
|
width: 2.25rem;
|
|
fill: var(--color-grey-dark-3); }
|
|
.user-nav__notification {
|
|
font-size: 0.8rem;
|
|
height: 1.75rem;
|
|
width: 1.75rem;
|
|
border-radius: 50%;
|
|
background-color: var(--color-primary);
|
|
color: white;
|
|
position: absolute;
|
|
top: 1.5rem;
|
|
right: 1.1rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center; }
|
|
.user-nav__user-photo {
|
|
height: 3.75rem;
|
|
border-radius: 50%;
|
|
margin-right: 1rem; }
|
|
|
|
.side-nav {
|
|
font-size: 1.4rem;
|
|
list-style: none;
|
|
margin-top: 3.5rem; }
|
|
.side-nav__item {
|
|
position: relative; }
|
|
.side-nav__item:not(:last-child) {
|
|
margin-bottom: 0.5rem; }
|
|
.side-nav__item::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 3px;
|
|
background-color: var(--color-primary);
|
|
transform: scaleY(0);
|
|
transform-origin: center;
|
|
transition: transform 0.2s, width 0.4s cubic-bezier(1, 0, 0, 1) 0.2s, background-color 0.1s; }
|
|
.side-nav__item:hover::before, .side-nav__item--active::before {
|
|
transform: scaleY(1);
|
|
width: 100%; }
|
|
.side-nav__item:active::before {
|
|
background-color: var(--color-primary-light); }
|
|
.side-nav__link:link, .side-nav__link:visited {
|
|
color: var(--color-grey-light-1);
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 1.5rem 3rem;
|
|
position: relative;
|
|
z-index: 10; }
|
|
.side-nav__icon {
|
|
width: 1.75rem;
|
|
height: 1.75rem;
|
|
margin-right: 2rem;
|
|
fill: currentColor; }
|
|
|
|
.legal {
|
|
font-size: 1.2rem;
|
|
color: var(--color-grey-light-4);
|
|
text-align: center;
|
|
padding: 2.5rem; }
|
|
|
|
.container {
|
|
max-width: 120rem;
|
|
min-height: 50rem;
|
|
margin: 8rem auto;
|
|
background-color: var(--color-grey-light-1);
|
|
box-shadow: var(--shadow-dark); }
|
|
|
|
.header {
|
|
height: 7rem;
|
|
background-color: #fff;
|
|
border-bottom: var(--color-grey-light-2);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 1.4rem; }
|
|
|
|
.content {
|
|
display: flex; }
|
|
|
|
.sidebar {
|
|
background-color: var(--color-grey-dark-1);
|
|
flex: 0 0 18%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between; }
|
|
|
|
.hotel-view {
|
|
flex: 1;
|
|
background-color: #fff;
|
|
height: 80rem; }
|