mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
35 lines
1.1 KiB
SCSS
35 lines
1.1 KiB
SCSS
// Font Mixins
|
|
// --------------------------------------------------
|
|
|
|
@mixin font-family-serif() {
|
|
font-family: $serif-font-family;
|
|
}
|
|
@mixin font-family-sans-serif() {
|
|
font-family: $sans-font-family;
|
|
}
|
|
@mixin font-family-monospace() {
|
|
font-family: $mono-font-family;
|
|
}
|
|
@mixin font-shorthand($size: $base-font-size, $weight: normal, $line-height: $base-line-height) {
|
|
font-weight: $weight;
|
|
font-size: $size;
|
|
line-height: $line-height;
|
|
}
|
|
@mixin font-serif($size: $base-font-size, $weight: normal, $line-height: $base-line-height) {
|
|
@include font-family-serif();
|
|
@include font-shorthand($size, $weight, $line-height);
|
|
}
|
|
@mixin font-sans-serif($size: $base-font-size, $weight: normal, $line-height: $base-line-height) {
|
|
@include font-family-sans-serif();
|
|
@include font-shorthand($size, $weight, $line-height);
|
|
}
|
|
@mixin font-monospace($size: $base-font-size, $weight: normal, $line-height: $base-line-height) {
|
|
@include font-family-monospace();
|
|
@include font-shorthand($size, $weight, $line-height);
|
|
}
|
|
@mixin font-smoothing($font-smoothing) {
|
|
-webkit-font-smoothing: $font-smoothing;
|
|
font-smoothing: $font-smoothing;
|
|
}
|
|
|