site-neo/in/css/extra.scss

21 lines
570 B
SCSS
Raw Permalink Normal View History

2023-02-18 20:42:07 -05:00
//Mixin definitions and global variables.
2023-02-11 11:23:58 -05:00
@mixin font($font) {
//no support for case so gonna have to YandereDev this.
@if($font=="sans") {
font-family: Arial, Helvetica, sans-serif;
}
@else if($font=="serif") {
font-family: "Times New Roman", Times, serif;
}
@else if($font=="mono") {
font-family: "Courier New", Courier, monospace;
}
@else {
@warn "Unknown value passed to mixin font: #{$font}."
}
}
@mixin font-settings($weight: 0, $width: 0, $yopq: 0, $slant: 0) {
font-variation-settings: 'wght'$weight, 'wdth'$width, 'YOPQ'$yopq, 'slnt'$slant
}