Skip to content

Commit

Permalink
refactor: format code as per .editorconfig rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-sid committed May 4, 2023
1 parent f18f133 commit 7bd4021
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions assets/sass/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
}
}


a#mode {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
opacity: 0.7;
z-index: 1;

&:hover {
cursor: pointer;
opacity: 1;
Expand All @@ -64,7 +64,7 @@
stroke: $black;
fill: none;
}

circle {
fill: $black;
stroke: $black;
Expand All @@ -82,17 +82,17 @@
}
}
}

.trigger {
float: right;
display: flex;
align-items: center;
}

.menu-trigger {
display: none;
}

.menu-icon {
display: none;
}
Expand All @@ -110,33 +110,33 @@
list-style: none;
}
}

.menu-link {
color: $black;
line-height: $base-line-height + 0.4;
text-decoration: none;
padding: .3rem .5rem;
opacity: 0.7;
letter-spacing: 0.015rem;

&:hover {
opacity: 1;
}

&:not(:last-child) {
margin-right: 5px;
}

@include media-query($on-mobile) {
opacity: 0.8;
}
}

.menu-link.active {
opacity: 1;
font-weight: 600;
}

@include media-query($on-mobile) {
position: fixed;
top: 0;
Expand All @@ -147,12 +147,12 @@
height: 50px;
background-color: $white;
border-bottom: 1px solid $light;

a#mode {
left: 10px;
top: 12px;
}

.menu-icon {
display: block;
position: absolute;
Expand All @@ -174,12 +174,12 @@
transform: scale(0.9, 0.9);
}
}

input[type="checkbox"]:not(:checked) ~ .trigger {
clear: both;
visibility: hidden;
}

input[type="checkbox"]:checked ~ .trigger {
position: fixed;
animation: 0.2s ease-in forwards fadein;
Expand All @@ -190,17 +190,16 @@
width: 100%;
top: 0;
}

.menu-link {
display: block;
box-sizing: border-box;
font-size: 1.1em;

&:not(:last-child) {
margin: 0;
padding: 2px 0;
}
}
}
}

0 comments on commit 7bd4021

Please sign in to comment.