aboutsummaryrefslogtreecommitdiff
path: root/src/scss/style.scss
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-08-10 14:05:01 +0200
committerWilliam Hergès <william@herges.fr>2025-08-10 14:05:01 +0200
commit60cc3a050e93c364175d925acfb6be4aaf55e9ae (patch)
tree3d71f925b3f2d7cb6f512d29682846480f1dfd5d /src/scss/style.scss
parentd493aceb2c4332b19c1dbcc15535aa8dd483beec (diff)
feat(header): better responsiveness
Diffstat (limited to 'src/scss/style.scss')
-rw-r--r--src/scss/style.scss25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/scss/style.scss b/src/scss/style.scss
index bdb052a..0ae776d 100644
--- a/src/scss/style.scss
+++ b/src/scss/style.scss
@@ -5,7 +5,7 @@ $text: hsl(0, 0%, 100%);
$bp-large: 1200px;
$bp-mid: 1000px; // video disabled
-$bp-small: 750px;
+$bp-small: 630px;
$bp-tiny: 500px;
body {
@@ -86,12 +86,33 @@ header {
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
+ @media only screen and (max-width: $bp-small) {
+ text-align: center;
+ }
}
.tags {
display: flex;
- gap: 1rem;
+ gap: 0.5rem 1rem;
font-size: 1.75rem;
+ @media only screen and (max-width: $bp-mid) {
+ flex-wrap: wrap;
+ & *:nth-child(2) {
+ display: none;
+ }
+ & *:nth-child(4) {
+ display: none;
+ }
+ & *:nth-child(6) {
+ display: none;
+ }
+ & *:nth-child(8) {
+ display: none;
+ }
+ }
+ @media only screen and (max-width: $bp-small) {
+ display: none;
+ }
}
section {