summaryrefslogtreecommitdiff
path: root/css/partials
diff options
context:
space:
mode:
Diffstat (limited to 'css/partials')
-rw-r--r--css/partials/header.css44
-rw-r--r--css/partials/paginator.css6
-rw-r--r--css/partials/profile.css58
3 files changed, 40 insertions, 68 deletions
diff --git a/css/partials/header.css b/css/partials/header.css
index 6606b3f0..44363f71 100644
--- a/css/partials/header.css
+++ b/css/partials/header.css
@@ -14,6 +14,13 @@
background: $color-background;
}
}
+@media (max-width: 688px) {
+ @supports not (backdrop-filter: blur(12px)) {
+ .header-inner .site-nav .menu-list {
+ background: $color-background;
+ }
+ }
+}
.header-inner {
display: flex;
flex-wrap: nowrap;
@@ -54,6 +61,9 @@
display: flex;
}
@media (max-width: 688px) {
+ .header {
+ overflow: visible;
+ }
.header-inner {
flex-wrap: wrap;
align-items: center;
@@ -69,6 +79,10 @@
height: 100%;
cursor: pointer;
color: $color-text-primary;
+ transition: color $transition-duration ease;
+ }
+ .header-inner #menu-btn:hover {
+ color: $color-accent;
}
.header-inner .site-brand-container {
display: flex;
@@ -80,20 +94,30 @@
width: 100%;
}
.header-inner .site-nav .menu-list {
- height: 0;
+ display: flex;
+ flex-direction: column;
+ max-height: 0;
overflow: hidden;
margin-top: 0;
+ background: $color-glass;
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ border-top: 1px solid $color-border;
+ transition: max-height 300ms ease-out;
+ text-align: left;
+ }
+ .header-inner .site-nav .menu-list.active {
+ max-height: 400px;
}
.header-inner .site-nav .menu-list .menu-item {
- margin-right: 0;
- margin-left: auto;
- margin-top: $margin-s-1;
- padding: $margin-s-1 0;
+ margin: 0;
+ padding: $margin-m-0 $margin-m-1;
+ border-bottom: 1px solid $color-border;
}
- .header-inner .site-nav .active {
- margin-top: $margin-s-0;
- margin-bottom: $margin-s-0;
- height: auto;
- flex-direction: column;
+ .header-inner .site-nav .menu-list .menu-item:last-child {
+ border-bottom: none;
+ }
+ .header-inner .site-nav .menu-list .menu-item a {
+ display: block;
}
}
diff --git a/css/partials/paginator.css b/css/partials/paginator.css
index 57c51a33..29abdc38 100644
--- a/css/partials/paginator.css
+++ b/css/partials/paginator.css
@@ -20,3 +20,9 @@
.pagination .space {
margin-left: $margin-l-0;
}
+@media (max-width: 688px) {
+ .paginator {
+ margin-top: $margin-m-1;
+ margin-bottom: $margin-m-1;
+ }
+}
diff --git a/css/partials/profile.css b/css/partials/profile.css
index 368a309c..e69de29b 100644
--- a/css/partials/profile.css
+++ b/css/partials/profile.css
@@ -1,58 +0,0 @@
-.profile {
- margin-top: $margin-l-0;
- display: flex;
- flex-direction: row-reverse;
- align-items: center;
-}
-.profile .profile-content {
- width: 50%;
- margin: 0 $margin-l-0 0 0;
-}
-.profile .profile-content .profile-title {
- margin-top: 0;
- margin-bottom: $margin-m-0;
-}
-.profile .profile-content .profile-body {
- margin-top: 0;
- margin-bottom: $margin-m-1;
- color: $color-text-secondary;
-}
-.profile .profile-content .profile-link {
- margin-top: 0;
- margin-bottom: $margin-m-0;
-}
-.profile .profile-content .profile-link a {
- text-decoration: underline;
- text-underline-offset: 3px;
- transition: color $transition-duration ease;
-}
-.profile .profile-content .profile-link a:hover {
- color: $color-accent;
-}
-.profile .profile-image {
- width: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-.profile .profile-image img {
- max-width: 100%;
- max-height: 35vh;
- object-fit: contain;
-}
-@media (max-width: 480px) {
- .profile {
- flex-wrap: wrap;
- align-items: flex-start;
- }
- .profile .profile-content {
- width: 100%;
- margin-top: $margin-m-0;
- }
- .profile .profile-image {
- width: 100%;
- }
- .profile .profile-image img {
- max-height: 25vh;
- }
-}