Skip to content

Commit 8a9daf6

Browse files
committed
responsive font size for herotitle
1 parent 58c8f12 commit 8a9daf6

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

templates/30jahre-cbase.html

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,52 @@
1515
margin-bottom: 100px;
1616
}
1717
.hero-title {
18+
font-size: 12rem;
1819
margin: 0px;
1920
color: rgb(255, 153, 0);
20-
font-size: 12rem;
2121
line-height: 0.75;
22-
2322
font-family: "League Spartan", sans-serif;
2423
font-optical-sizing: auto;
2524
font-weight: 900;
2625
font-style: black;
2726
}
2827
.hero-subtitle {
28+
font-size: 3rem;
2929
margin: 0px 0px 0px 10px;
3030
color: rgb(255, 153, 0);
31-
font-size: 3rem;
32-
3331
font-family: "League Spartan", sans-serif;
3432
font-optical-sizing: auto;
3533
font-weight: 900;
3634
font-style: black;
3735
}
36+
@media screen and (max-width:10px) {
37+
/* Zusätzliche Regeln für kleinere Monitore */
38+
.hero-title {
39+
font-size: 10rem;
40+
}
41+
.hero-subtitle {
42+
font-size: 4rem;
43+
}
44+
}
45+
@media screen and (max-width:768px) {
46+
/* Zusätzliche Regeln für kleinere Monitore */
47+
.hero-title {
48+
font-size: 8rem;
49+
}
50+
.hero-subtitle {
51+
font-size: 4rem;
52+
}
53+
}
54+
@media screen and (max-width:450px) {
55+
/* Zusätzliche Regeln noch kleinere Monitore */
56+
.hero-title {
57+
font-size: 5rem;
58+
}
59+
.hero-subtitle {
60+
font-size: 2rem;
61+
}
62+
}
63+
3864
.event-list {
3965
display: flex;
4066
width: 100%;

templates/event.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.hero-title-sm {
1818
margin: 0px;
1919
color: rgb(255, 153, 0);
20-
font-size: 8vw;
20+
font-size: 10rem;
2121
line-height: 0.75;
2222

2323
font-family: "League Spartan", sans-serif;
@@ -28,7 +28,7 @@
2828
.hero-subtitle {
2929
margin: 0px 0px 0px 10px;
3030
color: rgb(255, 153, 0);
31-
font-size: 5vw;
31+
font-size: 2rem;
3232

3333
font-family: "League Spartan", sans-serif;
3434
font-optical-sizing: auto;

0 commit comments

Comments
 (0)