Skip to content

Commit d34a169

Browse files
committed
Enfored sentence case with mixin
1 parent 7a55b07 commit d34a169

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

theme.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,13 @@ $important: false) {
301301
filter: hue-rotate(#{$hue}deg) saturate($saturation-factor) brightness(#{$brightness-factor})#{$important-flag};
302302
}
303303

304+
@mixin sentence-case() {
305+
text-transform: lowercase;
306+
&::first-letter {
307+
text-transform: uppercase;
308+
}
309+
}
310+
304311
/*-- scss:rules --*/
305312

306313
/* Header Styles
@@ -312,15 +319,16 @@ h1 {
312319
font-size: 2.25em;
313320
line-height: 1.3;
314321
margin: 0 0 1em;
322+
@include sentence-case;
315323
}
316324

317325
h2 {
318326
font-family: $gs-grass-font--light;
319327
color: $gs-secondary-light-color;
320328
font-size: 2em;
321-
text-transform: none;
322329
line-height: 1.4;
323330
margin: .64em 0 .64em;
331+
@include sentence-case;
324332
}
325333

326334
h3 {
@@ -330,6 +338,11 @@ h3 {
330338
letter-spacing: -.01em;
331339
line-height: 1.5;
332340
margin: 1.6em 0 .8em;
341+
@include sentence-case;
342+
}
343+
344+
h4, h5, h6 {
345+
@include sentence-case;
333346
}
334347

335348
/* Code Styles

0 commit comments

Comments
 (0)