summaryrefslogtreecommitdiff
path: root/sass/layout/_footer.scss
diff options
context:
space:
mode:
authorArne Rief <arne.rief@gmail.com>2023-02-20 10:04:10 +0100
committerArne Rief <arne.rief@gmail.com>2023-02-20 10:04:10 +0100
commit11f8629251a63f3a3260b9ed28277ed312abd136 (patch)
tree3a4d22b0ebad36ad9d492bae72ab308321bd22b8 /sass/layout/_footer.scss
parent7439372f7100017e4c5f70bed42a601706106435 (diff)
Small media query adjustments
Diffstat (limited to 'sass/layout/_footer.scss')
-rw-r--r--sass/layout/_footer.scss40
1 files changed, 17 insertions, 23 deletions
diff --git a/sass/layout/_footer.scss b/sass/layout/_footer.scss
index 0fa9cc4..a637329 100644
--- a/sass/layout/_footer.scss
+++ b/sass/layout/_footer.scss
@@ -2,14 +2,15 @@
footer {
background-color: $bg-text-container;
- // delete positioning to make grid footer from body work
- // position: absolute;
- // bottom: 0;
- // left: 0;
width: 100vw;
& * {
margin: $margin-main;
+
+ // mobile
+ @include responsive(phone) {
+ margin: $margin-mobile;
+ }
}
dl {
@@ -18,11 +19,23 @@ footer {
align-items: center;
height: 2rem;
+ // mobile
+ @include responsive(phone) {
+ flex-direction: column;
+ height: max-content;
+ }
+
& * {
color: inherit;
font-size: $medium-text;
margin: 0.5rem;
transition: transform 0.3s;
+
+ // mobile
+ @include responsive(phone) {
+ font-size: $medium-text-mobile;
+ margin: 0.3rem;
+ }
}
& dd i:hover {
@@ -38,22 +51,3 @@ footer {
font-size: $big-text;
}
}
-
-// mobile
-@media screen and (max-width: 520px) {
- footer {
- & * {
- margin: $margin-mobile;
- }
-
- dl {
- flex-direction: column;
- height: max-content;
-
- & * {
- font-size: $medium-text-mobile;
- margin: 0.3rem;
- }
- }
- }
-}