mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
Harsh Shandilya
9f9fce4b9a
* codex/master: (137 commits) docs: update .all-contributorsrc [skip ci] docs: update README.md [skip ci] Fix nav display error when expanding window with open burger. fix icon sizes docs: update .all-contributorsrc [skip ci] docs: update README.md [skip ci] Conform icons to Google's mobile usability reqs fix relative icon issue + add title docs: Clean up README and config.toml (#65) update screenshot and add to README v1.5.0 added resources folder back refactor: revert md/js files refactor: use semicolon in js refactor: ignore exampleSite/content dir change bottom padding of pages to 1rem update CONTRIBUTING.md add prettier v1.4.0 fix script block ... Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
83 lines
1.2 KiB
SCSS
83 lines
1.2 KiB
SCSS
@import "burger";
|
|
|
|
.nav {
|
|
font-size: 16px;
|
|
position: fixed;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: #fff;
|
|
visibility: hidden;
|
|
z-index: 1;
|
|
|
|
@media screen and (min-width: $medium) {
|
|
display: block;
|
|
visibility: visible;
|
|
padding-top: 3em;
|
|
width: $navWidth;
|
|
}
|
|
}
|
|
|
|
.nav--active .nav {
|
|
visibility: visible;
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
@media screen and (min-width: $medium) {
|
|
width: $navWidth;
|
|
}
|
|
}
|
|
|
|
.nav__list {
|
|
text-align: right;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 50%;
|
|
|
|
@media screen and (min-width: $medium) {
|
|
width: auto;
|
|
}
|
|
|
|
@media screen and (max-width: $medium - 1) {
|
|
transform: translateY(-25px);
|
|
opacity: 0;
|
|
.nav--active & {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
transition: all 500ms ease;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav__list li {
|
|
margin-bottom: 3em;
|
|
line-height: 1.5em;
|
|
|
|
&:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
@media screen and (min-width: $medium) {
|
|
margin-bottom: 1.75em;
|
|
}
|
|
}
|
|
|
|
.nav__list a {
|
|
color: $grey;
|
|
text-decoration: none;
|
|
font-size: 2em;
|
|
|
|
&.active {
|
|
color: $black;
|
|
}
|
|
|
|
&:hover {
|
|
color: $black;
|
|
}
|
|
|
|
@media screen and (min-width: $medium) {
|
|
font-size: 1em;
|
|
}
|
|
}
|