From ed1c854df2fda01549680651c19dbc2fe257b0f4 Mon Sep 17 00:00:00 2001
From: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
Date: Wed, 24 Mar 2021 23:59:33 +0000
Subject: [PATCH] And notice shortcodes (#537)
---
assets/scss/_navigation.scss | 66 +++++++++++++++++++++++----------
1 files changed, 46 insertions(+), 20 deletions(-)
diff --git a/assets/scss/_navigation.scss b/assets/scss/_navigation.scss
index 9ff1829..6642d76 100644
--- a/assets/scss/_navigation.scss
+++ b/assets/scss/_navigation.scss
@@ -1,32 +1,39 @@
.navigation {
- height: 6.0rem;
+ height: 6rem;
width: 100%;
- a, span {
+
+ a,
+ span {
display: inline;
font-size: 1.7rem;
font-family: $font-family;
font-weight: 600;
- line-height: 6.0rem;
+ line-height: 6rem;
color: $fg-color;
}
+
a {
+
&:hover,
&:focus {
- color: $link-color
+ color: $link-color;
}
}
+
.navigation-title {
letter-spacing: 0.1rem;
text-transform: uppercase;
}
+
.navigation-list {
float: right;
list-style: none;
margin-bottom: 0;
margin-top: 0;
- @media only screen and (max-width : 768px) {
+
+ @media only screen and (max-width: 768px) {
position: absolute;
- top: 6.0rem;
+ top: 6rem;
right: 0;
z-index: 5;
visibility: hidden;
@@ -39,37 +46,47 @@
border-bottom: solid 2px $alt-bg-color;
transition: opacity 0.25s, max-height 0.15s linear;
}
+
.navigation-item {
float: left;
margin: 0;
position: relative;
- @media only screen and (max-width : 768px) {
+
+ @media only screen and (max-width: 768px) {
float: none !important;
text-align: center;
- a, span {
- line-height: 5.0rem;
+
+ a,
+ span {
+ line-height: 5rem;
}
}
- a, span {
- margin-left: 1.0rem;
- margin-right: 1.0rem;
+
+ a,
+ span {
+ margin-left: 1rem;
+ margin-right: 1rem;
}
}
+
.separator {
- @media only screen and (max-width : 768px) {
+ @media only screen and (max-width: 768px) {
display: none;
}
}
+
.menu-separator {
- @media only screen and (max-width : 768px) {
+ @media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color;
- margin: 0 8.0rem;
+ margin: 0 8rem;
+
span {
display: none;
}
}
}
}
+
#dark-mode-toggle {
margin: 1.7rem 0;
font-size: 2.4rem;
@@ -79,22 +96,27 @@
z-index: 100;
position: fixed;
}
+
#menu-toggle {
display: none;
- @media only screen and (max-width : 768px) {
- &:checked + label > i {
+
+ @media only screen and (max-width: 768px) {
+ &:checked+label>i {
color: $alt-bg-color;
}
- &:checked + label + ul {
+
+ &:checked+label+ul {
visibility: visible;
opacity: 1;
max-height: 100rem;
}
}
}
+
.menu-button {
display: none;
- @media only screen and (max-width : 768px) {
+
+ @media only screen and (max-width: 768px) {
display: block;
margin: 1.8rem 0;
font-size: 2.4rem;
@@ -102,14 +124,18 @@
}
i {
- &:hover, &:focus {
+
+ &:hover,
+ &:focus {
color: $alt-fg-color;
}
}
}
+
i {
color: $fg-color;
cursor: pointer;
+
&:hover,
&:focus {
color: $link-color;
--
Gitblit v1.10.0