Skip to content

Commit a1e1a12

Browse files
committed
Co-locate heading and some type styles in Reboot to avoid some extends and extra dependencies once we migrate to Sass modules (#41697)
1 parent 9f939c5 commit a1e1a12

2 files changed

Lines changed: 16 additions & 43 deletions

File tree

scss/_reboot.scss

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,32 +90,38 @@ hr {
9090
color: var(--#{$prefix}heading-color);
9191
}
9292

93-
h1 {
93+
h1,
94+
.h1 {
9495
@extend %heading;
9596
@include font-size($h1-font-size);
9697
}
9798

98-
h2 {
99+
h2,
100+
.h2 {
99101
@extend %heading;
100102
@include font-size($h2-font-size);
101103
}
102104

103-
h3 {
105+
h3,
106+
.h3 {
104107
@extend %heading;
105108
@include font-size($h3-font-size);
106109
}
107110

108-
h4 {
111+
h4,
112+
.h4 {
109113
@extend %heading;
110114
@include font-size($h4-font-size);
111115
}
112116

113-
h5 {
117+
h5,
118+
.h5 {
114119
@extend %heading;
115120
@include font-size($h5-font-size);
116121
}
117122

118-
h6 {
123+
h6,
124+
.h6 {
119125
@extend %heading;
120126
@include font-size($h6-font-size);
121127
}
@@ -208,14 +214,16 @@ strong {
208214
//
209215
// Add the correct font size in all browsers
210216

211-
small {
217+
small,
218+
.small {
212219
@include font-size($small-font-size);
213220
}
214221

215222

216223
// Mark
217224

218-
mark {
225+
mark,
226+
.mark {
219227
padding: $mark-padding;
220228
color: var(--#{$prefix}highlight-color);
221229
background-color: var(--#{$prefix}highlight-bg);

scss/_type.scss

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
//
22
// Headings
33
//
4-
.h1 {
5-
@extend h1;
6-
}
7-
8-
.h2 {
9-
@extend h2;
10-
}
11-
12-
.h3 {
13-
@extend h3;
14-
}
15-
16-
.h4 {
17-
@extend h4;
18-
}
19-
20-
.h5 {
21-
@extend h5;
22-
}
23-
24-
.h6 {
25-
@extend h6;
26-
}
27-
284

295
.lead {
306
@include font-size($lead-font-size);
@@ -42,17 +18,6 @@
4218
}
4319
}
4420

45-
//
46-
// Emphasis
47-
//
48-
.small {
49-
@extend small;
50-
}
51-
52-
.mark {
53-
@extend mark;
54-
}
55-
5621
//
5722
// Lists
5823
//

0 commit comments

Comments
 (0)