amis2/scss/helper/typography/_font-style.scss

32 lines
531 B
SCSS
Raw Normal View History

2020-12-10 16:49:59 +08:00
/*!markdown
---
title: Font Style
---
| Class | Properties |
| ----------- | ------------------------ |
| italic | font-style: italic |
| not-italic | font-style: normal |
2020-12-10 16:49:59 +08:00
*/
2020-11-27 17:29:49 +08:00
@mixin make-font-style($prefix: '.') {
#{$prefix}italic {
font-style: italic;
}
#{$prefix}not-italic {
font-style: normal;
}
}
@include make-font-style();
@each $deivce in map-keys($devices) {
@include media-device($deivce) {
@include make-font-style('.' + selector-escape($deivce + ':'));
}
}
// hover ?