-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
183 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"singleQuote": false, | ||
"trailingComma": "none" | ||
"trailingComma": "none", | ||
"plugins": ["prettier-plugin-css-order"], | ||
"cssDeclarationSorterKeepOverrides": true, | ||
"cssDeclarationSorterOrder": "smacss" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
"prettier.configPath": "./.prettierrc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,101 @@ | ||
aside { | ||
width: 12rem; | ||
display: flex; | ||
position: absolute; | ||
transform: translateX(-100%); | ||
top: 0; | ||
left: calc(-1 * var(--space-04)); | ||
display: flex; | ||
flex-direction: column; | ||
width: 12rem; | ||
gap: var(--space-02); | ||
transition: border-color 240ms var(--fluid); | ||
transform: translateX(-100%); | ||
transition: all 240ms var(--fluid); | ||
will-change: transform, border-color; | ||
|
||
nav { | ||
width: 100%; | ||
padding: var(--space-02) var(--space-01) var(--space-02) var(--space-02); | ||
border: 0.0625rem solid var(--neutral-04); | ||
border-radius: var(--rounded-sm); | ||
transition: border-color 240ms var(--fluid); | ||
} | ||
|
||
ul { | ||
--gap: 0.5em; | ||
list-style: none; | ||
--gap: 0; | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
|
||
li { | ||
&:first-child { | ||
a { | ||
padding-top: 0; | ||
} | ||
} | ||
|
||
&:last-child { | ||
a { | ||
padding-bottom: 0; | ||
} | ||
} | ||
} | ||
|
||
a { | ||
display: flex; | ||
position: relative; | ||
align-items: center; | ||
padding: 0.25rem 0; | ||
gap: 0.5rem; | ||
text-decoration: none; | ||
font-weight: 500; | ||
color: var(--neutral-09); | ||
transition: color 140ms var(--fluid); | ||
font-weight: 500; | ||
text-decoration: none; | ||
transition: | ||
color 200ms var(--fluid), | ||
transform 200ms var(--fluid); | ||
|
||
&::before { | ||
content: ""; | ||
opacity: 0; | ||
width: 0; | ||
height: 0; | ||
position: relative; | ||
transform: translateX(-100%); | ||
display: block; | ||
position: absolute; | ||
left: -0.75rem; | ||
width: 0.25rem; | ||
height: 0.25rem; | ||
transform: scale(0); | ||
border-radius: 100%; | ||
background-color: var(--neutral-11); | ||
transition: | ||
transform, | ||
opacity 240ms var(--fluid); | ||
content: ""; | ||
opacity: 0; | ||
transition: all 200ms var(--fluid); | ||
will-change: transform, opacity; | ||
} | ||
|
||
&:hover { | ||
transform: translateX(0.25rem); | ||
color: var(--neutral-11); | ||
} | ||
|
||
&.is-active { | ||
transform: translateX(0.625rem); | ||
color: var(--neutral-11); | ||
|
||
&::before { | ||
transform: scale(1); | ||
opacity: 1; | ||
width: 0.25rem; | ||
height: 0.25rem; | ||
transform: translateX(-50%); | ||
} | ||
} | ||
} | ||
} | ||
|
||
&:focus-within, | ||
&:hover { | ||
border-color: var(--neutral-05); | ||
nav { | ||
border-color: var(--neutral-05); | ||
} | ||
} | ||
|
||
@media (max-width: 64rem) { | ||
width: 100%; | ||
position: relative; | ||
transform: none; | ||
top: unset; | ||
left: unset; | ||
width: 100%; | ||
transform: none; | ||
} | ||
} |
Oops, something went wrong.