aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/src/scss/layout/_nav.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-24 18:19:05 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-24 18:19:05 +0200
commit2716256c665e39b0e217dac1f3bb560a14c101e1 (patch)
tree3dabb8af334f9abe27742768bb77be672d628092 /htdocs/src/scss/layout/_nav.scss
parent680a7ecd6046820c7495ac103495215b5ccaabd5 (diff)
chore: add styles
Diffstat (limited to 'htdocs/src/scss/layout/_nav.scss')
-rw-r--r--htdocs/src/scss/layout/_nav.scss64
1 files changed, 64 insertions, 0 deletions
diff --git a/htdocs/src/scss/layout/_nav.scss b/htdocs/src/scss/layout/_nav.scss
new file mode 100644
index 0000000..f4508d0
--- /dev/null
+++ b/htdocs/src/scss/layout/_nav.scss
@@ -0,0 +1,64 @@
+@use "../abstracts/functions" as fun;
+@use "../abstracts/placeholders";
+
+.nav {
+ text-align: center;
+
+ &__label {
+ font-weight: 600;
+ }
+
+ &__list {
+ @extend %reset-list;
+
+ .btn {
+ width: 100%;
+ }
+ }
+
+ &__link {
+ &--back {
+ display: inline-block;
+ margin: fun.get-var(spacing-sm) 0;
+
+ &::before {
+ content: "\1F810";
+ display: inline-block;
+ text-decoration: none;
+ }
+ }
+
+ &--app {
+ background: fun.get-var(color-bg);
+ border: fun.convert-px(1) solid fun.get-var(color-border);
+ display: block;
+ padding: fun.get-var(spacing-2xs);
+ position: relative;
+ text-decoration: none;
+ transition: all 0.3s ease-in-out 0s;
+ width: 100%;
+
+ &:hover,
+ &:focus {
+ background: fun.get-var(color-primary);
+ color: fun.get-var(color-fg-inverted);
+ }
+
+ &:active {
+ background: fun.get-var(color-bg);
+ color: fun.get-var(color-primary-dark);
+ text-decoration: fun.convert-px(1) solid underline;
+ }
+ }
+ }
+
+ &__item:not(:first-child) & {
+ &__link {
+ border-top: 0;
+ }
+ }
+
+ .btn {
+ margin: auto;
+ }
+}