You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-3
Original file line number
Diff line number
Diff line change
@@ -252,12 +252,25 @@ Use `0` instead of `none` to specify that a style has no border.
252
252
font-weight: bold;
253
253
@includetransition(background0.5sease);
254
254
255
-
.icon {
255
+
> .icon {
256
256
margin-right: 10px;
257
257
}
258
258
}
259
259
```
260
260
261
+
4. Variants
262
+
Nested and prefixed using a dash.
263
+
```scss
264
+
.btn {
265
+
&.-wide {
266
+
/* ... */
267
+
}
268
+
&.-short {
269
+
/* ... */
270
+
}
271
+
}
272
+
```
273
+
261
274
### Variables
262
275
263
276
Prefer dash-cased variable names (e.g. `$my-variable`) over camelCased or snake_cased variable names. It is acceptable to prefix variable names that are intended to be used only within the same file with an underscore (e.g. `$_my-variable`).
@@ -276,8 +289,8 @@ Mixins should be used to DRY up your code, add clarity, or abstract complexity--
276
289
277
290
```scss
278
291
.page-container {
279
-
.content {
280
-
.profile {
292
+
> .content {
293
+
> .profile {
281
294
// STOP!
282
295
}
283
296
}
@@ -296,6 +309,38 @@ If you must use an ID selector in the first place (and you should really try not
296
309
297
310
**[⬆ back to top](#table-of-contents)**
298
311
312
+
### Font Declarations & Fallback Fonts
313
+
314
+
- Use @font-face declarations to define a custom font-family and its properties such as name, location, and style characteristics
315
+
- Use font-display property and preload to control font loading behavior and reduce FOIT and FOUT. Font-display is currently not supported on IE, Edge, Opera and Android and preload is not supported on IE, Firefox, Opera and only partially on Edge.
- Aiming to support modern browsers, we use woff and woff2 formats to offer a practical level of browser support. Woff2 is supported in all browsers except IE11, Opera and Android, default to woff after
0 commit comments