navbar done
This commit is contained in:
1 parent
778a41bbf4
commit
2b1e91befa
4 files changed
+4685
-1
No files matched your search
@@ -49,6 +49,83 @@ body {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
min-height: 100vh; }
|
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; }
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 120rem;
|
max-width: 120rem;
|
||||||
min-height: 50rem;
|
min-height: 50rem;
|
||||||
@@ -59,7 +136,11 @@ body {
|
|||||||
.header {
|
.header {
|
||||||
height: 7rem;
|
height: 7rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: var(--color-grey-light-2); }
|
border-bottom: var(--color-grey-light-2);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 1.4rem; }
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex; }
|
display: flex; }
|
||||||
|
|||||||
Generated
+4481
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,116 @@
|
|||||||
|
// Logo
|
||||||
|
.logo {
|
||||||
|
height: 3.25rem;
|
||||||
|
margin-left: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Search
|
||||||
|
.search {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 0 0 40%;
|
||||||
|
|
||||||
|
&__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;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
width: 100%;
|
||||||
|
background-color: var(--color-grey-light-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::placeholder,
|
||||||
|
&::-webkit-input-placeholder {
|
||||||
|
font-weight: 100;
|
||||||
|
color: var(--color-grey-light-4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__input:focus + &__button {
|
||||||
|
background-color: var(--color-grey-light-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__button {
|
||||||
|
border: none;
|
||||||
|
background-color: var(--color-grey-light-2);
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(2px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__icon {
|
||||||
|
height: 2rem;
|
||||||
|
width: 2rem;
|
||||||
|
fill: var(--color-grey-dark-3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// User nav
|
||||||
|
.user-nav {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
align-self: stretch; //make it cover the entire height
|
||||||
|
|
||||||
|
& > * {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 2rem;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > *:hover {
|
||||||
|
background-color: var(--color-grey-light-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__icon-box {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__icon {
|
||||||
|
height: 2.25rem;
|
||||||
|
width: 2.25rem;
|
||||||
|
|
||||||
|
fill: var(--color-grey-dark-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__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-photo {
|
||||||
|
height: 3.75rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,12 @@
|
|||||||
height: 7rem;
|
height: 7rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: var(--color-grey-light-2);
|
border-bottom: var(--color-grey-light-2);
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
font-size: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|||||||
Reference in new issue
Block a user