131 lines
1.9 KiB
SCSS
131 lines
1.9 KiB
SCSS
body {
|
|
background: #282a36;
|
|
margin: 0;
|
|
font-family: 'monospace';
|
|
}
|
|
|
|
.navbar {
|
|
background: #FF79C6;
|
|
padding: 1em;
|
|
|
|
.logo {
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
color: black;
|
|
font-size: 1.2em;
|
|
|
|
|
|
}
|
|
|
|
nav {
|
|
display: none;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
place-content: space-between;
|
|
}
|
|
|
|
.mobile-menu {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 1;
|
|
}
|
|
|
|
|
|
nav.menu-btn {
|
|
display: block;
|
|
}
|
|
|
|
nav {
|
|
position: fixed;
|
|
z-index: 999;
|
|
width: 40%;
|
|
right: 0;
|
|
top: 0;
|
|
background: #FF79C6;
|
|
height: 100vh;
|
|
padding: 1em;
|
|
|
|
ul.primary-nav {
|
|
margin-top: 5em;
|
|
}
|
|
|
|
li {
|
|
|
|
a {
|
|
color: white;
|
|
text-decoration: none;
|
|
display: block;
|
|
padding: .5em;
|
|
font-size: 1.3em;
|
|
text-align: right;
|
|
|
|
&:hover {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mobile-menu-exit {
|
|
float: right;
|
|
margin: .5em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
.mobile-menu, .mobile-menu-exit {
|
|
display: none;
|
|
}
|
|
|
|
.navbar .container {
|
|
display: grid;
|
|
grid-template-columns: 180px auto;
|
|
justify-content: unset;
|
|
}
|
|
|
|
.navbar nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
background: none;
|
|
position: unset;
|
|
height: auto;
|
|
width: 100%;
|
|
padding: 1;
|
|
|
|
ul {
|
|
display: flex;
|
|
}
|
|
|
|
a {
|
|
color: black;
|
|
font-size: 1em;
|
|
padding: .1em 1em;
|
|
}
|
|
|
|
ul.primary-nav {
|
|
margin: 0;
|
|
}
|
|
|
|
li.current a {
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
.contact {
|
|
color: #f5f5f5;
|
|
text-decoration: none;
|
|
|
|
} |