Skip to content

Commit f52a490

Browse files
committed
refactor(typography): merge modern typography into base
1 parent 654657e commit f52a490

File tree

6 files changed

+42
-55
lines changed

6 files changed

+42
-55
lines changed

src/css/app.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
/* /1* Pages *1/ */
2121
@import './pages/post.css';
2222
@import './pages/home.css';
23-
@import './pages/support.css';
2423
@import './pages/conferences.css';
2524

2625
@import './modern.css';

src/css/base/typography.css

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ body {
55
color: var(--text);
66
font-family: 'Inter', sans-serif;
77
font-size: 1rem;
8+
line-height: 1.4rem;
89
}
910

1011
h1,
@@ -14,23 +15,33 @@ h4,
1415
h5,
1516
h6 {
1617
font-family: 'Rubik', sans-serif;
18+
line-height: normal;
1719
margin: 0;
1820
text-align: left;
1921
}
2022

23+
p {
24+
margin: 0;
25+
}
26+
2127
h2 {
2228
font-size: 2rem;
2329
font-weight: 700;
2430
line-height: normal;
25-
margin-bottom: 16px;
2631
}
2732

2833
h3 {
29-
font-size: 1.5rem;
34+
font-size: 1.125rem;
3035
font-weight: 500;
3136
line-height: 2.25rem;
3237
}
3338

39+
h6 {
40+
font-size: 1.125rem;
41+
font-weight: 300;
42+
font-style: italic;
43+
}
44+
3445
a {
3546
box-shadow: inset 0 -2px 0 var(--yellow);
3647
color: inherit;
@@ -44,12 +55,29 @@ a:hover {
4455
}
4556

4657
@media (min-width: 834px) {
58+
h1 {
59+
font-size: 2.625rem;
60+
}
61+
4762
h2 {
48-
font-size: 4.5rem;
63+
font-size: 2rem;
4964
}
5065

5166
h3 {
52-
font-size: 2.625rem;
53-
line-height: 3rem;
67+
font-size: 1.625rem;
68+
}
69+
}
70+
71+
@media (min-width: 1440px) {
72+
h1 {
73+
font-size: 4.5rem;
74+
}
75+
76+
h2 {
77+
font-size: 3rem;
78+
}
79+
80+
p {
81+
font-size: 1.125rem;
5482
}
5583
}

src/css/components/sponsors.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
box-shadow: 0px 4px 13px 0px rgba(167, 167, 167, 0.3);
44
border-radius: 0 0 12px 12px;
55
padding: 0;
6+
margin: 30px 0;
67

78
.sponsors__title {
89
background-color: var(--red);

src/css/modern.css

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
padding: 2.5rem;
44
padding-top: 0;
55
}
6-
7-
h1 {
8-
text-transform: uppercase;
9-
}
106
h1,
117
h2,
128
h3 {
13-
font-family: Rubik;
149
margin-bottom: 1rem;
1510
column-span: all !important;
1611
> a {
@@ -19,7 +14,6 @@
1914
}
2015
h1,
2116
h2 {
22-
font-weight: bold;
2317
position: relative;
2418
padding-bottom: 0.75rem;
2519

@@ -34,42 +28,8 @@
3428
width: 70px;
3529
}
3630
}
37-
h3 {
38-
font-size: 18px !important;
39-
}
40-
h6 {
41-
font-size: 18px;
42-
font-family: 'Inter var', sans-serif;
43-
font-weight: 300;
44-
font-style: italic;
45-
}
46-
@media (min-width: 700px) {
47-
h1 {
48-
font-size: 42px;
49-
}
50-
h2 {
51-
font-size: 32px;
52-
}
53-
h3 {
54-
font-size: 26px !important;
55-
}
56-
}
57-
@media (min-width: 1350px) {
58-
h1 {
59-
font-size: 72px;
60-
}
61-
h2 {
62-
font-size: 48px;
63-
}
64-
p {
65-
font-size: 18px;
66-
}
67-
}
68-
69-
p,
70-
ul {
71-
line-height: 1.4rem;
72-
font-size: 16px;
31+
h1 {
32+
text-transform: uppercase;
7333
}
7434

7535
.mission-and-vision {

src/css/pages/home.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
}
4343

4444
.home-template__pillars,
45-
.home-template__open-source,
4645
.home-template__support {
4746
h2 {
47+
margin-bottom: 16px;
4848
text-transform: uppercase;
4949
}
5050
}
@@ -196,6 +196,10 @@
196196
margin: auto;
197197
max-width: 900px;
198198
padding: 70px 40px;
199+
200+
h2 {
201+
text-transform: uppercase;
202+
}
199203
}
200204

201205
.home-template__open-source__content {
@@ -412,7 +416,7 @@
412416
}
413417

414418
.home-template__support {
415-
padding: 96px 0;
419+
padding: 96px 0 66px;
416420
}
417421
}
418422
}

src/css/pages/support.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)