aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/layout/layout.module.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/templates/layout/layout.module.scss')
-rw-r--r--src/components/templates/layout/layout.module.scss14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/templates/layout/layout.module.scss b/src/components/templates/layout/layout.module.scss
index 806d2d7..09904dc 100644
--- a/src/components/templates/layout/layout.module.scss
+++ b/src/components/templates/layout/layout.module.scss
@@ -13,6 +13,20 @@
border-top: fun.convert-px(3) solid var(--color-border-light);
}
+.back-to-top {
+ &--hidden {
+ opacity: 0;
+ transform: translateY(calc(var(--button-size) + var(--spacing-md)));
+ visibility: hidden;
+ }
+
+ &--visible {
+ opacity: 1;
+ transform: translateY(0);
+ visibility: visible;
+ }
+}
+
.noscript-spacing {
width: 100%;
height: fun.convert-px(75);