mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Add font family variable
This commit is contained in:
@@ -17,15 +17,16 @@
|
||||
|
||||
$weights: (ExtraLight 100) (Light 300) (Regular 400) (Medium 500) (Semibold 600) (Bold 700) (Black 900)
|
||||
|
||||
@each $weight in $weights
|
||||
$weight_name: nth($weight, 1)
|
||||
@if $font-family == "SourceCodePro"
|
||||
@each $weight in $weights
|
||||
$weight_name: nth($weight, 1)
|
||||
|
||||
@font-face
|
||||
font-family: "SourceCodePro"
|
||||
src: url("/static/fonts/SourceCodePro-#{$weight_name}.otf") format("woff")
|
||||
font-weight: nth($weight, 2)
|
||||
@font-face
|
||||
font-family: "SourceCodePro"
|
||||
src: url("/static/fonts/SourceCodePro-#{$weight_name}.otf") format("woff")
|
||||
font-weight: nth($weight, 2)
|
||||
|
||||
body
|
||||
font-family: "SourceCodePro"
|
||||
font-family: $font-family
|
||||
font-size: $font-size
|
||||
line-height: 1.2
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
|
||||
/* Variables */
|
||||
|
||||
/** Font Size
|
||||
/** Font
|
||||
$font-family: "SourceCodePro" !default
|
||||
$font-size: 1em !default
|
||||
|
||||
/** Colors */
|
||||
@@ -32,7 +33,10 @@ $reverse-transparent: $bg !default
|
||||
$colors: #2e3436, #cc0000, #4e9a06, #c4a000, #3465a4, #75507b, #06989a, #d3d7cf, #555753, #ef2929, #8ae234, #fce94f, #729fcf, #ad7fa8, #34e2e2, #eeeeec !default
|
||||
|
||||
/** Text effects */
|
||||
|
||||
/* The shadow is the size of the blur (in px for instance)
|
||||
$shadow: 0 !default
|
||||
/* The shadow alpha is the opacity of the shadow
|
||||
$shadow-alpha: 0 !default
|
||||
|
||||
/** Scroll */
|
||||
|
||||
@@ -27,12 +27,14 @@
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* Variables */
|
||||
/** Font Size */
|
||||
/** Font */
|
||||
/** Colors */
|
||||
/* Foreground */
|
||||
/* Background */
|
||||
/* 16 Colors in this orders :Black, Red, Green, Yellow, Blue, Magenta, Cyan, White, Bright Black, Bright Red, Bright Green, Bright Yellow, Bright Blue, Bright Magenta, Bright Cyan, Bright White */
|
||||
/** Text effects */
|
||||
/* The shadow is the size of the blur (in px for instance) */
|
||||
/* The shadow alpha is the opacity of the shadow */
|
||||
/** Scroll */
|
||||
/** Popup */
|
||||
/* These are all imported files */
|
||||
|
||||
Reference in New Issue
Block a user