Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit e5e51e7

Browse files
author
Manuel Proß
committed
feat(FE): add heading resizing for responsivness
1 parent 22316aa commit e5e51e7

File tree

2 files changed

+31
-34
lines changed

2 files changed

+31
-34
lines changed

web/src/styles/_text.scss

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,53 @@
11
.h1 {
22
font-size: clamp(3rem, 5vw, 5rem);
3-
@apply font-[400];
3+
@apply font-[400] text-secondary ml-2;
4+
5+
&::before {
6+
content: '>_ ';
7+
}
48
}
59

610
.h2 {
711
font-size: clamp(2rem, 4vw, 4rem);
12+
@apply font-[400] text-secondary ml-2;
13+
14+
&::before {
15+
content: '>_ ';
16+
}
817
}
918

1019
.h3 {
1120
font-size: clamp(1.75rem, 3.5vw, 3rem);
21+
@apply font-[400] text-secondary ml-2;
22+
23+
&::before {
24+
content: '>_ ';
25+
}
1226
}
1327

1428
.h4 {
1529
font-size: clamp(1.5rem, 3vw, 2.5rem);
30+
@apply font-[400] text-secondary ml-2;
31+
32+
&::before {
33+
content: '>_ ';
34+
}
1635
}
1736

1837
.h5 {
1938
font-size: clamp(1.5rem, 2.5vw, 1.75rem);
39+
@apply font-[400] text-secondary ml-2;
40+
41+
&::before {
42+
content: '>_ ';
43+
}
2044
}
2145

2246
.h6 {
2347
font-size: clamp(1.5rem, 2vw, 1.25rem);
48+
@apply font-[400] text-secondary ml-2;
49+
50+
&::before {
51+
content: '>_ ';
52+
}
2453
}

web/src/styles/globals.scss

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import './components.scss';
2+
@import './text.scss';
23
@tailwind base;
34
@tailwind components;
45
@tailwind utilities;
@@ -26,36 +27,3 @@ body {
2627
color: rgb(var(--foreground-rgb));
2728
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
2829
}
29-
30-
.heading {
31-
@apply text-secondary ml-2;
32-
33-
&::before {
34-
content: '>_ ';
35-
}
36-
}
37-
38-
.h1 {
39-
font-size: clamp(3rem, 5vw, 5rem);
40-
@apply font-[400];
41-
}
42-
43-
.h2 {
44-
font-size: clamp(2rem, 4vw, 4rem);
45-
}
46-
47-
.h3 {
48-
font-size: clamp(1.75rem, 3.5vw, 3rem);
49-
}
50-
51-
.h4 {
52-
font-size: clamp(1.5rem, 3vw, 2.5rem);
53-
}
54-
55-
.h5 {
56-
font-size: clamp(1.5rem, 2.5vw, 1.75rem);
57-
}
58-
59-
.h6 {
60-
font-size: clamp(1.5rem, 2vw, 1.25rem);
61-
}

0 commit comments

Comments
 (0)