Add unitless type

This commit is contained in:
Jeremy Thomas
2018-06-17 01:05:48 +01:00
parent e8f3fc0d66
commit dd59374591
25 changed files with 248 additions and 155 deletions

View File

@@ -24,7 +24,7 @@
"$box-shadow": {
"name": "$box-shadow",
"value": "0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)",
"type": "compound"
"type": "size"
},
"$box-padding": {
"name": "$box-padding",
@@ -34,12 +34,12 @@
"$box-link-hover-shadow": {
"name": "$box-link-hover-shadow",
"value": "0 2px 3px rgba($black, 0.1), 0 0 0 1px $link",
"type": "compound"
"type": "size"
},
"$box-link-active-shadow": {
"name": "$box-link-active-shadow",
"value": "inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link",
"type": "compound"
"type": "size"
}
},
"list": [

View File

@@ -24,13 +24,12 @@
"$button-border-width": {
"name": "$button-border-width",
"value": "$control-border-width",
"type": "variable",
"computed_type": "string"
"type": "variable"
},
"$button-padding-vertical": {
"name": "$button-padding-vertical",
"value": "calc(0.375em - #{$button-border-width})",
"type": "compound"
"type": "size"
},
"$button-padding-horizontal": {
"name": "$button-padding-horizontal",
@@ -73,7 +72,7 @@
"$button-focus-box-shadow-color": {
"name": "$button-focus-box-shadow-color",
"value": "rgba($link, 0.25)",
"type": "compound"
"type": "color"
},
"$button-active-color": {
"name": "$button-active-color",
@@ -132,7 +131,7 @@
"$button-disabled-opacity": {
"name": "$button-disabled-opacity",
"value": "0.5",
"type": "string"
"type": "unitless"
},
"$button-static-color": {
"name": "$button-static-color",

View File

@@ -17,7 +17,7 @@
"$content-heading-line-height": {
"name": "$content-heading-line-height",
"value": "1.125",
"type": "string"
"type": "unitless"
},
"$content-blockquote-background-color": {
"name": "$content-blockquote-background-color",
@@ -29,7 +29,7 @@
"$content-blockquote-border-left": {
"name": "$content-blockquote-border-left",
"value": "5px solid $border",
"type": "compound"
"type": "size"
},
"$content-blockquote-padding": {
"name": "$content-blockquote-padding",
@@ -44,7 +44,7 @@
"$content-table-cell-border": {
"name": "$content-table-cell-border",
"value": "1px solid $border",
"type": "compound"
"type": "size"
},
"$content-table-cell-border-width": {
"name": "$content-table-cell-border-width",
@@ -78,7 +78,7 @@
"$content-table-foot-cell-border-width": {
"name": "$content-table-foot-cell-border-width",
"value": "2px 0 0",
"type": "string"
"type": "size"
},
"$content-table-foot-cell-color": {
"name": "$content-table-foot-cell-color",

View File

@@ -24,7 +24,7 @@
"$input-shadow": {
"name": "$input-shadow",
"value": "inset 0 1px 2px rgba($black, 0.1)",
"type": "compound"
"type": "size"
},
"$input-hover-color": {
"name": "$input-hover-color",
@@ -62,7 +62,7 @@
"$input-focus-box-shadow-color": {
"name": "$input-focus-box-shadow-color",
"value": "rgba($link, 0.25)",
"type": "compound"
"type": "color"
},
"$input-disabled-color": {
"name": "$input-disabled-color",
@@ -170,7 +170,7 @@
"$file-name-border-width": {
"name": "$file-name-border-width",
"value": "1px 1px 1px 0",
"type": "string"
"type": "size"
},
"$file-name-max-width": {
"name": "$file-name-max-width",

View File

@@ -17,7 +17,7 @@
"$table-cell-border": {
"name": "$table-cell-border",
"value": "1px solid $grey-lighter",
"type": "compound"
"type": "size"
},
"$table-cell-border-width": {
"name": "$table-cell-border-width",
@@ -51,7 +51,7 @@
"$table-foot-cell-border-width": {
"name": "$table-foot-cell-border-width",
"value": "2px 0 0",
"type": "string"
"type": "size"
},
"$table-foot-cell-color": {
"name": "$table-foot-cell-color",
@@ -78,8 +78,8 @@
"name": "$table-row-active-color",
"value": "$primary-invert",
"type": "variable",
"computed_type": "compound",
"computed_value": "findColorInvert($turquoise)"
"computed_type": "color",
"computed_value": "#fff"
},
"$table-striped-row-even-background-color": {
"name": "$table-striped-row-even-background-color",

View File

@@ -24,7 +24,7 @@
"$title-line-height": {
"name": "$title-line-height",
"value": "1.125",
"type": "string"
"type": "unitless"
},
"$title-strong-color": {
"name": "$title-strong-color",
@@ -70,7 +70,7 @@
"$subtitle-line-height": {
"name": "$subtitle-line-height",
"value": "1.25",
"type": "string"
"type": "unitless"
},
"$subtitle-strong-color": {
"name": "$subtitle-strong-color",