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

Commit 978a026

Browse files
author
Manuel Proß
committed
feat(FE): extract base styles of heading into class
1 parent ead6817 commit 978a026

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

web/src/styles/_text.scss

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
.h1 {
2-
font-size: clamp(3rem, 5vw, 5rem);
3-
@apply font-[400] text-secondary ml-2;
1+
.heading {
2+
@apply font-[400] text-secondary;
43

54
&::before {
65
content: '>_ ';
76
}
7+
8+
@screen sm {
9+
@apply mb-5;
10+
}
11+
12+
@screen md {
13+
@apply mb-6;
14+
}
15+
16+
@screen lg {
17+
@apply mb-7;
18+
}
19+
20+
@screen xl {
21+
@apply mb-8;
22+
}
23+
}
24+
25+
.h1 {
26+
@extend .heading;
27+
font-size: clamp(3rem, 5vw, 5rem);
828
}
929

1030
.h2 {
31+
@extend .heading;
1132
font-size: clamp(2rem, 4vw, 4rem);
12-
@apply font-[400] text-secondary ml-2;
13-
14-
&::before {
15-
content: '>_ ';
16-
}
1733
}
1834

1935
.h3 {
36+
@extend .heading;
2037
font-size: clamp(1.75rem, 3.5vw, 3rem);
21-
@apply font-[400] text-secondary ml-2;
22-
23-
&::before {
24-
content: '>_ ';
25-
}
2638
}
2739

2840
.h4 {
41+
@extend .heading;
2942
font-size: clamp(1.5rem, 3vw, 2.5rem);
30-
@apply font-[400] text-secondary ml-2;
31-
32-
&::before {
33-
content: '>_ ';
34-
}
3543
}
3644

3745
.h5 {
46+
@extend .heading;
3847
font-size: clamp(1.5rem, 2.5vw, 1.75rem);
39-
@apply font-[400] text-secondary ml-2;
40-
41-
&::before {
42-
content: '>_ ';
43-
}
4448
}
4549

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

5555
ul.list li {

0 commit comments

Comments
 (0)