Skip to content

Commit a04c45a

Browse files
author
Roni Laukkarinen
committed
Add class names to default typography elements for extends
1 parent 6d313bf commit a04c45a

File tree

5 files changed

+50
-25
lines changed

5 files changed

+50
-25
lines changed

css/global.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* The current version of the theme.
1212
*/
13-
define( 'AIR_VERSION', '1.9.0' );
13+
define( 'AIR_VERSION', '1.9.1' );
1414

1515
/**
1616
* Allow Gravity Forms to hide labels to add placeholders

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "air",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "A minimalist WordPress starter theme.",
55
"author": "Digitoimisto Dude Oy (moro@dude.fi)",
66
"devDependencies": {

sass/layout/_typography.scss

Lines changed: 46 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ body {
126126
th,
127127
td,
128128
table,
129-
tr {
129+
tr,
130+
.default {
130131
@include responsive-font(3vw, $font-min-size, $font-max-size, $font-max-size);
131132
letter-spacing: -.003em;
132133
line-height: $font-base-line-height-elements;
@@ -171,88 +172,107 @@ body {
171172
// Define heading scales
172173
@if $headings-scale == large {
173174

174-
h1 {
175+
h1,
176+
.h1 {
175177
@include responsive-font(4vw, 38px, 80px);
176178
}
177179

178-
h2 {
180+
h2,
181+
.h2 {
179182
@include responsive-font(3.2vw, 32px, 68px);
180183
}
181184

182185
h3,
186+
.h3,
183187
.gform_wrapper h3.gform_title {
184188
@include responsive-font(2.4vw, 24px, 46px);
185189
}
186190

187-
h4 {
191+
h4,
192+
.h4 {
188193
@include responsive-font(1.6vw, 21px, 34px);
189194
}
190195

191-
h5 {
196+
h5,
197+
.h5 {
192198
@include responsive-font(1.4vw, 18px, 21px);
193199
}
194200

195-
h6 {
201+
h6,
202+
.h6 {
196203
@include responsive-font(1.2vw, 14px, 18px);
197204
}
198205

199206
} @else if $headings-scale == medium {
200207

201-
h1 {
208+
h1,
209+
.h1 {
202210
@include responsive-font(3.2vw, 32px, 68px);
203211
}
204212

205-
h2 {
213+
h2,
214+
.h2 {
206215
@include responsive-font(2.4vw, 24px, 46px);
207216
}
208217

209218
h3,
219+
.h3,
210220
.gform_wrapper h3.gform_title {
211221
@include responsive-font(1.6vw, 21px, 34px);
212222
}
213223

214-
h4 {
224+
h4,
225+
.h4 {
215226
@include responsive-font(1.4vw, 18px, 21px);
216227
}
217228

218-
h5 {
229+
h5,
230+
.h5 {
219231
@include responsive-font(1.2vw, 14px, 18px);
220232
}
221233

222-
h6 {
234+
h6,
235+
.h6 {
223236
@include responsive-font(1.2vw, 14px, 18px);
224237
}
225238

226239
} @else if $headings-scale == small {
227240

228-
h1 {
241+
h1,
242+
.h1 {
229243
@include responsive-font(2.4vw, 24px, 46px);
230244
}
231245

232-
h2 {
246+
h2,
247+
.h2 {
233248
@include responsive-font(1.6vw, 21px, 34px);
234249
}
235250

236251
h3,
252+
.h3,
237253
.gform_wrapper h3.gform_title {
238254
@include responsive-font(1.4vw, 18px, 21px);
239255
}
240256

241-
h4 {
257+
h4,
258+
.h4 {
242259
@include responsive-font(1.2vw, 14px, 18px);
243260
}
244261

245-
h5 {
262+
h5,
263+
.h5 {
246264
@include responsive-font(1.2vw, 14px, 18px);
247265
}
248266

249-
h6 {
267+
h6,
268+
.h6 {
250269
@include responsive-font(1.2vw, 14px, 18px);
251270
}
252271

253272
}
254273

255-
h1 {
274+
h1,
275+
.h1 {
256276
letter-spacing: -.02em;
257277

258278
@if $headings-line-height-setup == flexible {
@@ -266,7 +286,8 @@ body {
266286
}
267287
}
268288

269-
h2 {
289+
h2,
290+
.h2 {
270291
letter-spacing: -.02em;
271292

272293
@if $headings-line-height-setup == flexible {
@@ -281,6 +302,7 @@ body {
281302
}
282303

283304
h3,
305+
.h3,
284306
.gform_wrapper h3.gform_title {
285307
letter-spacing: -.02em;
286308

@@ -295,7 +317,8 @@ body {
295317
}
296318
}
297319

298-
h4 {
320+
h4,
321+
.h4 {
299322
@if $headings-line-height-setup == flexible {
300323
line-height: 1.4rem;
301324
} @else {
@@ -307,7 +330,8 @@ body {
307330
}
308331
}
309332

310-
h5 {
333+
h5,
334+
.h5 {
311335
@if $headings-line-height-setup == flexible {
312336
line-height: 1.2rem;
313337
} @else {
@@ -319,7 +343,8 @@ body {
319343
}
320344
}
321345

322-
h6 {
346+
h6,
347+
.h6 {
323348
@if $headings-line-height-setup == flexible {
324349
line-height: 1rem;
325350
} @else {

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/digitoimistodude/air
44
Author: Digitoimisto Dude Oy
55
Author URI: https://www.dude.fi
66
Description: A minimalist WordPress starter theme.
7-
Version: 1.9.0
7+
Version: 1.9.1
88
License: GNU General Public License v2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Text Domain: air

0 commit comments

Comments
 (0)