summaryrefslogtreecommitdiff
path: root/_src/assets/css
diff options
context:
space:
mode:
Diffstat (limited to '_src/assets/css')
-rw-r--r--_src/assets/css/base.css52
1 files changed, 48 insertions, 4 deletions
diff --git a/_src/assets/css/base.css b/_src/assets/css/base.css
index 2b666f8..fef788d 100644
--- a/_src/assets/css/base.css
+++ b/_src/assets/css/base.css
@@ -41,6 +41,7 @@ html, body {
color: var(--font_normal);
font-family: onest;
font-size: var(--text_size_normal_d);
+ scroll-behavior: smooth;
}
body {
@@ -81,7 +82,7 @@ main h1 {
}
#page {
- min-height: 100%;
+ min-height: 100vh;
display: flex;
flex-direction: column;
gap: 0px;
@@ -137,7 +138,7 @@ main h1 {
border-radius: 0px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
- z-index: 8;
+ z-index: 7;
}
#l-wing h1, #r-wing h1 {
@@ -209,6 +210,40 @@ main h1 {
margin: 0;
}
+.scroll-top {
+ position: absolute;
+ top: 200vh;
+ bottom: 0;
+ right: -64px;
+ margin: 4px;
+ overflow-y: clip;
+ pointer-events: none;
+}
+
+.scroll-top a {
+ min-width: 32px;
+ min-height: 32px;
+ position: -webkit-sticky;
+ position: sticky;
+ top: 98vh;
+ bottom: 0;
+ z-index: 8;
+ pointer-events: auto;
+}
+
+.scroll-top img {
+ min-width: 32px;
+ min-height: 32px;
+ width: 32px;
+ height: 32px;
+ background-color: var(--bg_content);
+ padding: 8px;
+ border: 2px solid var(--bg_menu);
+ border-radius: 0px;
+ backdrop-filter: blur(8px);
+ -webkit-backdrop-filter: blur(8px);
+}
+
.text-notice {
color: var(--font_notice);
}
@@ -351,6 +386,9 @@ main h1 {
max-width: 0px;
position: absolute
}
+ .scroll-top {
+ right: 4px;
+ }
}
/* Tablet */
@@ -370,12 +408,15 @@ main h1 {
visibility: hidden;
max-width: 0px;
}
+ .scroll-top {
+ right: 4px;
+ }
}
/* Mobile */
@media only screen and (max-width: 800px) {
main {
- max-width: auto;
+ max-width: 100vw;
width: auto;
min-width: 300px;
flex-grow: 1;
@@ -389,7 +430,7 @@ main h1 {
display: inline-block;
}
#l-wing {
- max-width: auto;
+ max-width: 100vw;
width: auto;
min-width: 300px;
flex-grow: 1;
@@ -407,6 +448,9 @@ main h1 {
height: 100%;
overflow-y: scroll;
}
+ .scroll-top {
+ right: 4px;
+ }
}
@keyframes main-bg {