Make site-level overflow properties variables (#2410)

* Make site-level overflow properties variables

* Add new variables to generic.json
This commit is contained in:
Luc Perkins
2019-03-20 11:02:10 -07:00
committed by Jeremy Thomas
parent 9580432096
commit a2a5ff60ea
2 changed files with 15 additions and 3 deletions

View File

@@ -43,6 +43,16 @@
"value": "1.5", "value": "1.5",
"type": "unitless" "type": "unitless"
}, },
"$body-overflow-x": {
"name": "$body-overflow-x",
"value": "hidden",
"type": "keyword"
},
"$body-overflow-y": {
"name": "$body-overflow-y",
"value": "scroll",
"type": "keyword",
},
"$code-family": { "$code-family": {
"name": "$code-family", "name": "$code-family",
"value": "$family-code", "value": "$family-code",
@@ -116,4 +126,4 @@
"$strong-weight" "$strong-weight"
], ],
"file_path": "base/generic.sass" "file_path": "base/generic.sass"
} }

View File

@@ -5,6 +5,8 @@ $body-family: $family-primary !default
$body-color: $text !default $body-color: $text !default
$body-weight: $weight-normal !default $body-weight: $weight-normal !default
$body-line-height: 1.5 !default $body-line-height: 1.5 !default
$body-overflow-x: hidden !default
$body-overflow-y: scroll !default
$code-family: $family-code !default $code-family: $family-code !default
$code-padding: 0.25em 0.5em 0.25em !default $code-padding: 0.25em 0.5em 0.25em !default
@@ -24,8 +26,8 @@ html
-moz-osx-font-smoothing: grayscale -moz-osx-font-smoothing: grayscale
-webkit-font-smoothing: antialiased -webkit-font-smoothing: antialiased
min-width: 300px min-width: 300px
overflow-x: hidden overflow-x: $body-overflow-x
overflow-y: scroll overflow-y: $body-overflow-y
text-rendering: $body-rendering text-rendering: $body-rendering
text-size-adjust: 100% text-size-adjust: 100%