mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 20:59:30 +00:00
Added adminNav and adminNavItem components
This commit is contained in:
53
src/stylesheets/components/_adminNav.scss
Normal file
53
src/stylesheets/components/_adminNav.scss
Normal file
@@ -0,0 +1,53 @@
|
||||
.adminNav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100vw;
|
||||
height: 82vh;
|
||||
background-color: $primary-colour;
|
||||
padding: 3rem 0;
|
||||
padding-top: 5rem;
|
||||
|
||||
display: none;
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
&__profile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
img {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.details {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.logout {
|
||||
align-self: flex-end;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
&__items {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@include respond-to('large') {
|
||||
display: flex;
|
||||
width: 20vw;
|
||||
height: 87vh;
|
||||
}
|
||||
}
|
||||
16
src/stylesheets/components/_adminNavItem.scss
Normal file
16
src/stylesheets/components/_adminNavItem.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
.adminNav__item {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
padding: 2rem 0;
|
||||
border-bottom: 1px solid white;
|
||||
width: 70%;
|
||||
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
|
||||
@include on-event() {
|
||||
background-color: $primary-colour-dark;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user