aboutsummaryrefslogtreecommitdiff
path: root/src/scss/_navbar.scss
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-12 14:31:39 +0300
committerValentin Popov <valentin@popov.link>2024-09-12 14:31:39 +0300
commitc5affebc6f977d3414d875e4bc87ad8418b76168 (patch)
treec2736e92cf8cb9143a80a84ff7dc379e46328f2e /src/scss/_navbar.scss
parentdc6c24e56a1c14876cf3a0b3184575458d686b6f (diff)
downloadpopov.link-c5affebc6f977d3414d875e4bc87ad8418b76168.tar.xz
popov.link-c5affebc6f977d3414d875e4bc87ad8418b76168.zip
Added global styles
Diffstat (limited to 'src/scss/_navbar.scss')
-rw-r--r--src/scss/_navbar.scss41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/scss/_navbar.scss b/src/scss/_navbar.scss
new file mode 100644
index 0000000..ee07ae4
--- /dev/null
+++ b/src/scss/_navbar.scss
@@ -0,0 +1,41 @@
+header {
+ background-color: $color-bg;
+ border-bottom: 1px solid $color-header;
+ box-shadow: 0 5px 5px $color-bg;
+ left: 0;
+ line-height: 3.5em;
+ opacity: 0.975;
+ position: fixed;
+ right: 0;
+ top: 0;
+}
+
+nav {
+ margin: auto;
+ max-width: 60em;
+ padding: 0 4em;
+ text-align: right;
+
+ a {
+ color: $color-text;
+ padding: 0 1em;
+
+ &:visited {
+ color: $color-text;
+ }
+ }
+}
+
+@media (width <=684px) {
+ header {
+ box-shadow: none;
+ }
+
+ nav {
+ padding: 0 2em;
+
+ span {
+ display: none;
+ }
+ }
+}