Skip to content

Commit 191cb00

Browse files
committed
feat: added headings css
1 parent 06c9c73 commit 191cb00

2 files changed

Lines changed: 83 additions & 11 deletions

File tree

src/resources/styles/global.css

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@import "tw-animate-css";
88
@import "shadcn/tailwind.css";
99
@import "./grid.css";
10+
@import "./headings.css";
1011

1112
/* Project Pages */
1213
@source "../../../apps/site/pages";
@@ -177,17 +178,27 @@
177178
@apply mb-3;
178179
}
179180

180-
/* Fighting the Preflight reset */
181-
main h1,
182-
main h2,
183-
main h3,
184-
main h4,
185-
main h5,
186-
main h6 {
187-
font-size: revert;
188-
font-weight: revert;
189-
@apply mb-3 mt-5;
190-
}
181+
/*main h1, main .h1 {*/
182+
/* @apply text-3xl md:text-4xl xl:text-5xl;*/
183+
/*}*/
184+
/*main h2, main .h2 {*/
185+
/* @apply text-2xl md:text-3xl xl:text-4xl;*/
186+
/*}*/
187+
/*main h3, main .h3 {*/
188+
/* @apply text-xl md:text-2xl xl:text-3xl;*/
189+
/*}*/
190+
/*main h4, main .h4 {*/
191+
/* @apply text-lg md:text-xl xl:text-2xl;*/
192+
/*}*/
193+
/*main h5, main .h5 {*/
194+
/* @apply text-base md:text-lg xl:text-xl;*/
195+
/*}*/
196+
197+
/*main .lead {*/
198+
/* @apply text-muted-foreground text-lg md:text-xl xl:text-2xl;*/
199+
/*}*/
200+
201+
191202

192203
main p {
193204
@apply mb-3;
@@ -200,3 +211,5 @@
200211
}
201212

202213
}
214+
215+

src/resources/styles/headings.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/* Headings based on Bootstrap */
2+
3+
/* Fighting the Preflight reset */
4+
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
5+
margin-top: 0;
6+
margin-bottom: .5rem;
7+
font-weight: 500;
8+
line-height: 1.2;
9+
@apply mb-3 mt-5;
10+
}
11+
12+
@utility h1 {
13+
font-size: calc(1.375rem + 1.5vw)!important;
14+
}
15+
16+
h1 {
17+
@apply h1 xl:text-5xl
18+
}
19+
20+
@utility h2 {
21+
font-size: calc(1.325rem + .9vw)!important;
22+
}
23+
24+
h2 {
25+
@apply h2 xl:text-4xl
26+
}
27+
28+
29+
@utility h3 {
30+
font-size: calc(1.3rem + .6vw)!important;
31+
}
32+
33+
h3 {
34+
@apply h3 xl:text-3xl
35+
}
36+
37+
@utility h4 {
38+
font-size: calc(1.275rem + .3vw)!important;
39+
}
40+
41+
h4 {
42+
@apply h4 xl:text-2xl
43+
}
44+
45+
@utility h5 {
46+
font-size: 1.25rem!important;
47+
}
48+
49+
h5 {
50+
@apply h5 xl:text-xl
51+
}
52+
53+
@utility h6 {
54+
font-size: 1rem!important;
55+
}
56+
57+
@utility lead {
58+
@apply text-xl text-muted-foreground;
59+
}

0 commit comments

Comments
 (0)