@lumx/core 2.1.0-alpha.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/_retro-compat-v2.css +117 -0
- package/css/design-tokens.css +1 -14
- package/js/constants/design-tokens.js +1 -92
- package/js/constants/design-tokens.min.js +1 -1
- package/js/constants/design-tokens.min.js.map +1 -1
- package/js/constants/design-tokens.ts +1 -92
- package/js/utils.min.js.map +1 -1
- package/lumx.css +1 -1
- package/lumx.min.css +1 -1
- package/package.json +2 -2
- package/scss/_design-tokens.scss +1 -27
- package/scss/_retro-compat-v2.scss +95 -0
- package/scss/components/checkbox/_mixins.scss +2 -2
- package/scss/components/image-block/_index.scss +4 -5
- package/scss/components/radio-button/_mixins.scss +4 -12
- package/scss/components/select/_index.scss +1 -1
- package/scss/components/select/_mixins.scss +1 -1
- package/scss/components/skeleton/_index.scss +18 -0
- package/scss/components/switch/_mixins.scss +2 -2
- package/scss/components/text-field/_index.scss +1 -1
- package/scss/components/text-field/_mixins.scss +5 -9
- package/scss/components/thumbnail/_variables.scss +5 -0
- package/scss/components/user-block/_index.scss +2 -9
- package/scss/core/typography/_mixins.scss +1 -2
- package/scss/lumx.scss +4 -0
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"prepublishOnly": "yarn build"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
|
-
"version": "2.1.0
|
|
45
|
+
"version": "2.1.0",
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.8.3",
|
|
48
48
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"moment": "^2.24.0",
|
|
80
80
|
"moment-range": "^4.0.2"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "14169feb6b36c1be3ba8b49089953ea3aaef5cd0"
|
|
83
83
|
}
|
package/scss/_design-tokens.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 19 Oct 2021 08:35:24 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
$lumx-button-height: 36px !default;
|
|
@@ -880,55 +880,42 @@ $lumx-typography-interface-caption-line-height: 16px !default;
|
|
|
880
880
|
$lumx-typography-interface-overline-font-size: 10px !default;
|
|
881
881
|
$lumx-typography-interface-overline-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
882
882
|
$lumx-typography-interface-overline-line-height: 12px !default;
|
|
883
|
-
$lumx-typography-custom-title1-font-family: var(--lumx-typography-font-family) !default;
|
|
884
883
|
$lumx-typography-custom-title1-font-size: 40px !default;
|
|
885
884
|
$lumx-typography-custom-title1-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
886
885
|
$lumx-typography-custom-title1-line-height: 50px !default;
|
|
887
|
-
$lumx-typography-custom-title2-font-family: var(--lumx-typography-font-family) !default;
|
|
888
886
|
$lumx-typography-custom-title2-font-size: 30px !default;
|
|
889
887
|
$lumx-typography-custom-title2-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
890
888
|
$lumx-typography-custom-title2-line-height: 40px !default;
|
|
891
|
-
$lumx-typography-custom-title3-font-family: var(--lumx-typography-font-family) !default;
|
|
892
889
|
$lumx-typography-custom-title3-font-size: 24px !default;
|
|
893
890
|
$lumx-typography-custom-title3-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
894
891
|
$lumx-typography-custom-title3-line-height: 32px !default;
|
|
895
|
-
$lumx-typography-custom-title4-font-family: var(--lumx-typography-font-family) !default;
|
|
896
892
|
$lumx-typography-custom-title4-font-size: 20px !default;
|
|
897
893
|
$lumx-typography-custom-title4-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
898
894
|
$lumx-typography-custom-title4-line-height: 30px !default;
|
|
899
|
-
$lumx-typography-custom-title5-font-family: var(--lumx-typography-font-family) !default;
|
|
900
895
|
$lumx-typography-custom-title5-font-size: 16px !default;
|
|
901
896
|
$lumx-typography-custom-title5-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
902
897
|
$lumx-typography-custom-title5-line-height: 24px !default;
|
|
903
|
-
$lumx-typography-custom-title6-font-family: var(--lumx-typography-font-family) !default;
|
|
904
898
|
$lumx-typography-custom-title6-font-size: 14px !default;
|
|
905
899
|
$lumx-typography-custom-title6-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
906
900
|
$lumx-typography-custom-title6-line-height: 20px !default;
|
|
907
|
-
$lumx-typography-custom-intro-font-family: var(--lumx-typography-font-family) !default;
|
|
908
901
|
$lumx-typography-custom-intro-font-size: 18px !default;
|
|
909
902
|
$lumx-typography-custom-intro-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
910
903
|
$lumx-typography-custom-intro-line-height: 30px !default;
|
|
911
|
-
$lumx-typography-custom-body-large-font-family: var(--lumx-typography-font-family) !default;
|
|
912
904
|
$lumx-typography-custom-body-large-font-size: 16px !default;
|
|
913
905
|
$lumx-typography-custom-body-large-font-weight: var(--lumx-typography-font-weight-regular) !default;
|
|
914
906
|
$lumx-typography-custom-body-large-line-height: 24px !default;
|
|
915
|
-
$lumx-typography-custom-body-font-family: var(--lumx-typography-font-family) !default;
|
|
916
907
|
$lumx-typography-custom-body-font-size: 14px !default;
|
|
917
908
|
$lumx-typography-custom-body-font-weight: var(--lumx-typography-font-weight-regular) !default;
|
|
918
909
|
$lumx-typography-custom-body-line-height: 20px !default;
|
|
919
|
-
$lumx-typography-custom-quote-font-family: var(--lumx-typography-font-family) !default;
|
|
920
910
|
$lumx-typography-custom-quote-font-size: 16px !default;
|
|
921
911
|
$lumx-typography-custom-quote-font-weight: var(--lumx-typography-font-weight-light) !default;
|
|
922
912
|
$lumx-typography-custom-quote-font-style: italic !default;
|
|
923
913
|
$lumx-typography-custom-quote-line-height: 24px !default;
|
|
924
|
-
$lumx-typography-custom-publish-info-font-family: var(--lumx-typography-font-family) !default;
|
|
925
914
|
$lumx-typography-custom-publish-info-font-size: 14px !default;
|
|
926
915
|
$lumx-typography-custom-publish-info-font-weight: var(--lumx-typography-font-weight-regular) !default;
|
|
927
916
|
$lumx-typography-custom-publish-info-line-height: 20px !default;
|
|
928
|
-
$lumx-typography-custom-button-size-m-font-family: var(--lumx-typography-font-family) !default;
|
|
929
917
|
$lumx-typography-custom-button-size-m-font-size: 14px !default;
|
|
930
918
|
$lumx-typography-custom-button-size-m-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
931
|
-
$lumx-typography-custom-button-size-s-font-family: var(--lumx-typography-font-family) !default;
|
|
932
919
|
$lumx-typography-custom-button-size-s-font-size: 12px !default;
|
|
933
920
|
$lumx-typography-custom-button-size-s-font-weight: var(--lumx-typography-font-weight-bold) !default;
|
|
934
921
|
|
|
@@ -1970,80 +1957,67 @@ $lumx-design-tokens: (
|
|
|
1970
1957
|
),
|
|
1971
1958
|
'custom': (
|
|
1972
1959
|
'title1': (
|
|
1973
|
-
'font-family': $lumx-typography-custom-title1-font-family,
|
|
1974
1960
|
'font-size': $lumx-typography-custom-title1-font-size,
|
|
1975
1961
|
'font-weight': $lumx-typography-custom-title1-font-weight,
|
|
1976
1962
|
'line-height': $lumx-typography-custom-title1-line-height,
|
|
1977
1963
|
),
|
|
1978
1964
|
'title2': (
|
|
1979
|
-
'font-family': $lumx-typography-custom-title2-font-family,
|
|
1980
1965
|
'font-size': $lumx-typography-custom-title2-font-size,
|
|
1981
1966
|
'font-weight': $lumx-typography-custom-title2-font-weight,
|
|
1982
1967
|
'line-height': $lumx-typography-custom-title2-line-height,
|
|
1983
1968
|
),
|
|
1984
1969
|
'title3': (
|
|
1985
|
-
'font-family': $lumx-typography-custom-title3-font-family,
|
|
1986
1970
|
'font-size': $lumx-typography-custom-title3-font-size,
|
|
1987
1971
|
'font-weight': $lumx-typography-custom-title3-font-weight,
|
|
1988
1972
|
'line-height': $lumx-typography-custom-title3-line-height,
|
|
1989
1973
|
),
|
|
1990
1974
|
'title4': (
|
|
1991
|
-
'font-family': $lumx-typography-custom-title4-font-family,
|
|
1992
1975
|
'font-size': $lumx-typography-custom-title4-font-size,
|
|
1993
1976
|
'font-weight': $lumx-typography-custom-title4-font-weight,
|
|
1994
1977
|
'line-height': $lumx-typography-custom-title4-line-height,
|
|
1995
1978
|
),
|
|
1996
1979
|
'title5': (
|
|
1997
|
-
'font-family': $lumx-typography-custom-title5-font-family,
|
|
1998
1980
|
'font-size': $lumx-typography-custom-title5-font-size,
|
|
1999
1981
|
'font-weight': $lumx-typography-custom-title5-font-weight,
|
|
2000
1982
|
'line-height': $lumx-typography-custom-title5-line-height,
|
|
2001
1983
|
),
|
|
2002
1984
|
'title6': (
|
|
2003
|
-
'font-family': $lumx-typography-custom-title6-font-family,
|
|
2004
1985
|
'font-size': $lumx-typography-custom-title6-font-size,
|
|
2005
1986
|
'font-weight': $lumx-typography-custom-title6-font-weight,
|
|
2006
1987
|
'line-height': $lumx-typography-custom-title6-line-height,
|
|
2007
1988
|
),
|
|
2008
1989
|
'intro': (
|
|
2009
|
-
'font-family': $lumx-typography-custom-intro-font-family,
|
|
2010
1990
|
'font-size': $lumx-typography-custom-intro-font-size,
|
|
2011
1991
|
'font-weight': $lumx-typography-custom-intro-font-weight,
|
|
2012
1992
|
'line-height': $lumx-typography-custom-intro-line-height,
|
|
2013
1993
|
),
|
|
2014
1994
|
'body-large': (
|
|
2015
|
-
'font-family': $lumx-typography-custom-body-large-font-family,
|
|
2016
1995
|
'font-size': $lumx-typography-custom-body-large-font-size,
|
|
2017
1996
|
'font-weight': $lumx-typography-custom-body-large-font-weight,
|
|
2018
1997
|
'line-height': $lumx-typography-custom-body-large-line-height,
|
|
2019
1998
|
),
|
|
2020
1999
|
'body': (
|
|
2021
|
-
'font-family': $lumx-typography-custom-body-font-family,
|
|
2022
2000
|
'font-size': $lumx-typography-custom-body-font-size,
|
|
2023
2001
|
'font-weight': $lumx-typography-custom-body-font-weight,
|
|
2024
2002
|
'line-height': $lumx-typography-custom-body-line-height,
|
|
2025
2003
|
),
|
|
2026
2004
|
'quote': (
|
|
2027
|
-
'font-family': $lumx-typography-custom-quote-font-family,
|
|
2028
2005
|
'font-size': $lumx-typography-custom-quote-font-size,
|
|
2029
2006
|
'font-weight': $lumx-typography-custom-quote-font-weight,
|
|
2030
2007
|
'font-style': $lumx-typography-custom-quote-font-style,
|
|
2031
2008
|
'line-height': $lumx-typography-custom-quote-line-height,
|
|
2032
2009
|
),
|
|
2033
2010
|
'publish-info': (
|
|
2034
|
-
'font-family': $lumx-typography-custom-publish-info-font-family,
|
|
2035
2011
|
'font-size': $lumx-typography-custom-publish-info-font-size,
|
|
2036
2012
|
'font-weight': $lumx-typography-custom-publish-info-font-weight,
|
|
2037
2013
|
'line-height': $lumx-typography-custom-publish-info-line-height,
|
|
2038
2014
|
),
|
|
2039
2015
|
'button': (
|
|
2040
2016
|
'size-m': (
|
|
2041
|
-
'font-family': $lumx-typography-custom-button-size-m-font-family,
|
|
2042
2017
|
'font-size': $lumx-typography-custom-button-size-m-font-size,
|
|
2043
2018
|
'font-weight': $lumx-typography-custom-button-size-m-font-weight,
|
|
2044
2019
|
),
|
|
2045
2020
|
'size-s': (
|
|
2046
|
-
'font-family': $lumx-typography-custom-button-size-s-font-family,
|
|
2047
2021
|
'font-size': $lumx-typography-custom-button-size-s-font-size,
|
|
2048
2022
|
'font-weight': $lumx-typography-custom-button-size-s-font-weight,
|
|
2049
2023
|
),
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of deprecated v2 variables that have been removed or renamed.
|
|
3
|
+
* Warning: These will be removed in the next major version.
|
|
4
|
+
*/
|
|
5
|
+
$lumx-button-font-weight: $lumx-typography-font-weight-bold;
|
|
6
|
+
$lumx-button-text-transform: $lumx-material-button-text-transform;
|
|
7
|
+
$lumx-button-variant-icon-border-radius: 50%;
|
|
8
|
+
$lumx-button-size-m-font-size: $lumx-typography-custom-button-size-m-font-size;
|
|
9
|
+
$lumx-button-size-s-font-size: $lumx-typography-custom-button-size-s-font-size;
|
|
10
|
+
$lumx-checkbox-wrapper-size: $lumx-material-checkbox-wrapper-size;
|
|
11
|
+
$lumx-checkbox-control-size: $lumx-material-checkbox-control-size;
|
|
12
|
+
$lumx-chip-size-m-height: $lumx-material-chip-size-m-height;
|
|
13
|
+
$lumx-chip-size-m-border-radius: $lumx-material-chip-size-m-border-radius;
|
|
14
|
+
$lumx-chip-size-m-padding-vertical: $lumx-material-chip-size-m-padding-vertical;
|
|
15
|
+
$lumx-chip-size-s-height: $lumx-material-chip-size-s-height;
|
|
16
|
+
$lumx-chip-size-s-border-radius: $lumx-material-chip-size-s-border-radius;
|
|
17
|
+
$lumx-chip-size-s-padding-vertical: $lumx-material-chip-size-s-padding-vertical;
|
|
18
|
+
$lumx-input-helper-font-size: $lumx-material-input-helper-font-size;
|
|
19
|
+
$lumx-input-helper-font-weight: $lumx-material-input-helper-font-weight;
|
|
20
|
+
$lumx-input-helper-line-height: $lumx-material-input-helper-line-height;
|
|
21
|
+
$lumx-input-label-font-size: $lumx-material-input-label-font-size;
|
|
22
|
+
$lumx-input-label-font-weight: $lumx-material-input-label-font-weight;
|
|
23
|
+
$lumx-input-label-line-height: $lumx-material-input-label-line-height;
|
|
24
|
+
$lumx-radio-button-wrapper-size: $lumx-material-radio-button-wrapper-size;
|
|
25
|
+
$lumx-radio-button-control-size: $lumx-material-radio-button-control-size;
|
|
26
|
+
$lumx-radio-button-indicator-size: $lumx-material-radio-button-indicator-size;
|
|
27
|
+
$lumx-switch-wrapper-width: $lumx-material-switch-wrapper-width;
|
|
28
|
+
$lumx-switch-wrapper-height: $lumx-material-switch-wrapper-height;
|
|
29
|
+
$lumx-switch-control-width: $lumx-material-switch-control-width;
|
|
30
|
+
$lumx-switch-control-height: $lumx-material-switch-control-height;
|
|
31
|
+
$lumx-switch-indicator-size: $lumx-material-switch-indicator-size;
|
|
32
|
+
$lumx-switch-indicator-offset: $lumx-material-switch-indicator-offset;
|
|
33
|
+
$lumx-text-field-padding-top: $lumx-material-text-field-padding-top;
|
|
34
|
+
$lumx-text-field-padding-bottom: $lumx-material-text-field-padding-bottom;
|
|
35
|
+
$lumx-text-field-header-margin-bottom: $lumx-material-text-field-header-wrapper-margin-bottom;
|
|
36
|
+
$lumx-text-field-label-font-size: $lumx-material-text-field-header-label-font-size;
|
|
37
|
+
$lumx-text-field-label-font-weight: $lumx-material-text-field-header-label-font-weight;
|
|
38
|
+
$lumx-text-field-label-line-height: $lumx-material-text-field-header-label-line-height;
|
|
39
|
+
$lumx-text-field-wrapper-min-height: $lumx-text-field-input-min-height;
|
|
40
|
+
$lumx-text-field-wrapper-border-radius: $lumx-text-field-input-border-radius;
|
|
41
|
+
$lumx-text-field-wrapper-padding-vertical: $lumx-spacing-unit-tiny;
|
|
42
|
+
$lumx-text-field-wrapper-padding-horizontal: $lumx-text-field-input-padding-horizontal;
|
|
43
|
+
$lumx-text-field-state-default-border-top-width: $lumx-text-field-state-default-input-border-top-width;
|
|
44
|
+
$lumx-text-field-state-default-border-right-width: $lumx-text-field-state-default-input-border-right-width;
|
|
45
|
+
$lumx-text-field-state-default-border-bottom-width: $lumx-text-field-state-default-input-border-bottom-width;
|
|
46
|
+
$lumx-text-field-state-default-border-left-width: $lumx-text-field-state-default-input-border-left-width;
|
|
47
|
+
$lumx-text-field-state-default-theme-light-background-color: $lumx-text-field-state-default-theme-light-input-background-color;
|
|
48
|
+
$lumx-text-field-state-default-theme-light-border-color: $lumx-text-field-state-default-theme-light-input-border-color;
|
|
49
|
+
$lumx-text-field-state-default-theme-dark-background-color: $lumx-text-field-state-default-theme-dark-input-background-color;
|
|
50
|
+
$lumx-text-field-state-default-theme-dark-border-color: $lumx-text-field-state-default-theme-dark-input-border-color;
|
|
51
|
+
$lumx-text-field-state-hover-theme-light-background-color: $lumx-text-field-state-hover-theme-light-input-background-color;
|
|
52
|
+
$lumx-text-field-state-hover-theme-dark-background-color: $lumx-text-field-state-hover-theme-dark-input-background-color;
|
|
53
|
+
$lumx-text-field-state-focus-border-top-width: $lumx-text-field-state-focus-input-border-top-width;
|
|
54
|
+
$lumx-text-field-state-focus-border-right-width: $lumx-text-field-state-focus-input-border-right-width;
|
|
55
|
+
$lumx-text-field-state-focus-border-bottom-width: $lumx-text-field-state-focus-input-border-bottom-width;
|
|
56
|
+
$lumx-text-field-state-focus-border-left-width: $lumx-text-field-state-focus-input-border-left-width;
|
|
57
|
+
$lumx-text-field-state-focus-theme-light-background-color: $lumx-text-field-state-focus-theme-light-input-background-color;
|
|
58
|
+
$lumx-text-field-state-focus-theme-light-border-color: $lumx-text-field-state-focus-theme-light-input-border-color;
|
|
59
|
+
$lumx-text-field-state-focus-theme-dark-background-color: $lumx-text-field-state-focus-theme-dark-input-background-color;
|
|
60
|
+
$lumx-text-field-state-focus-theme-dark-border-color: $lumx-text-field-state-focus-theme-dark-input-border-color;
|
|
61
|
+
$lumx-text-field-input-icon-size: $lumx-size-xs;
|
|
62
|
+
$lumx-text-field-input-font-size: $lumx-material-text-field-input-content-font-size;
|
|
63
|
+
$lumx-text-field-input-font-weight: $lumx-material-text-field-input-content-font-weight;
|
|
64
|
+
$lumx-text-field-input-line-height: $lumx-material-text-field-input-content-line-height;
|
|
65
|
+
$lumx-text-field-input-validity-size: $lumx-size-xxs;
|
|
66
|
+
$lumx-text-field-input-clear-size: $lumx-size-s;
|
|
67
|
+
$lumx-progress-bounce: $lumx-material-progress-bounce;
|
|
68
|
+
$lumx-progress-rotate: $lumx-material-progress-rotate;
|
|
69
|
+
$lumx-typography-style-display1-font-size: $lumx-typography-interface-display1-font-size;
|
|
70
|
+
$lumx-typography-style-display1-font-weight: $lumx-typography-interface-display1-font-weight;
|
|
71
|
+
$lumx-typography-style-display1-line-height: $lumx-typography-interface-display1-line-height;
|
|
72
|
+
$lumx-typography-style-headline-font-size: $lumx-typography-interface-headline-font-size;
|
|
73
|
+
$lumx-typography-style-headline-font-weight: $lumx-typography-interface-headline-font-weight;
|
|
74
|
+
$lumx-typography-style-headline-line-height: $lumx-typography-interface-headline-line-height;
|
|
75
|
+
$lumx-typography-style-title-font-size: $lumx-typography-interface-title-font-size;
|
|
76
|
+
$lumx-typography-style-title-font-weight: $lumx-typography-interface-title-font-weight;
|
|
77
|
+
$lumx-typography-style-title-line-height: $lumx-typography-interface-title-line-height;
|
|
78
|
+
$lumx-typography-style-subtitle2-font-size: $lumx-typography-interface-subtitle2-font-size;
|
|
79
|
+
$lumx-typography-style-subtitle2-font-weight: $lumx-typography-interface-subtitle2-font-weight;
|
|
80
|
+
$lumx-typography-style-subtitle2-line-height: $lumx-typography-interface-subtitle2-line-height;
|
|
81
|
+
$lumx-typography-style-subtitle1-font-size: $lumx-typography-interface-subtitle1-font-size;
|
|
82
|
+
$lumx-typography-style-subtitle1-font-weight: $lumx-typography-interface-subtitle1-font-weight;
|
|
83
|
+
$lumx-typography-style-subtitle1-line-height: $lumx-typography-interface-subtitle1-line-height;
|
|
84
|
+
$lumx-typography-style-body2-font-size: $lumx-typography-interface-body2-font-size;
|
|
85
|
+
$lumx-typography-style-body2-font-weight: $lumx-typography-interface-body2-font-weight;
|
|
86
|
+
$lumx-typography-style-body2-line-height: $lumx-typography-interface-body2-line-height;
|
|
87
|
+
$lumx-typography-style-body1-font-size: $lumx-typography-interface-body1-font-size;
|
|
88
|
+
$lumx-typography-style-body1-font-weight: $lumx-typography-interface-body1-font-weight;
|
|
89
|
+
$lumx-typography-style-body1-line-height: $lumx-typography-interface-body1-line-height;
|
|
90
|
+
$lumx-typography-style-caption-font-size: $lumx-typography-interface-caption-font-size;
|
|
91
|
+
$lumx-typography-style-caption-font-weight: $lumx-typography-interface-caption-font-weight;
|
|
92
|
+
$lumx-typography-style-caption-line-height: $lumx-typography-interface-caption-line-height;
|
|
93
|
+
$lumx-typography-style-overline-font-size: $lumx-typography-interface-overline-font-size;
|
|
94
|
+
$lumx-typography-style-overline-font-weight: $lumx-typography-interface-overline-font-weight;
|
|
95
|
+
$lumx-typography-style-overline-line-height: $lumx-typography-interface-overline-line-height;
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
@mixin lumx-checkbox-placeholder() {
|
|
20
20
|
position: absolute;
|
|
21
21
|
z-index: 1;
|
|
22
|
-
top: calc(
|
|
23
|
-
left: calc(
|
|
22
|
+
top: calc((var(--lumx-material-checkbox-wrapper-size) - var(--lumx-material-checkbox-control-size)) / 2);
|
|
23
|
+
left: calc((var(--lumx-material-checkbox-wrapper-size) - var(--lumx-material-checkbox-control-size)) / 2);
|
|
24
24
|
width: var(--lumx-material-checkbox-control-size);
|
|
25
25
|
height: var(--lumx-material-checkbox-control-size);
|
|
26
26
|
border-radius: 2px;
|
|
@@ -63,12 +63,9 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
&__title,
|
|
67
|
-
&__description {
|
|
68
|
-
@include lumx-typography('body1');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
66
|
&__title {
|
|
67
|
+
@include lumx-typography('subtitle1');
|
|
68
|
+
|
|
72
69
|
#{$self}--theme-light & {
|
|
73
70
|
color: lumx-color-variant('dark', 'N');
|
|
74
71
|
}
|
|
@@ -79,6 +76,8 @@
|
|
|
79
76
|
}
|
|
80
77
|
|
|
81
78
|
&__description {
|
|
79
|
+
@include lumx-typography('body1');
|
|
80
|
+
|
|
82
81
|
#{$self}--theme-light & {
|
|
83
82
|
color: lumx-color-variant('dark', 'L2');
|
|
84
83
|
}
|
|
@@ -19,12 +19,8 @@
|
|
|
19
19
|
@mixin lumx-radio-button-placeholder() {
|
|
20
20
|
position: absolute;
|
|
21
21
|
z-index: 1;
|
|
22
|
-
top: calc(
|
|
23
|
-
|
|
24
|
-
);
|
|
25
|
-
left: calc(
|
|
26
|
-
calc(var(--lumx-material-radio-button-wrapper-size) - var(--lumx-material-radio-button-control-size)) / 2
|
|
27
|
-
);
|
|
22
|
+
top: calc((var(--lumx-material-radio-button-wrapper-size) - var(--lumx-material-radio-button-control-size)) / 2);
|
|
23
|
+
left: calc((var(--lumx-material-radio-button-wrapper-size) - var(--lumx-material-radio-button-control-size)) / 2);
|
|
28
24
|
width: var(--lumx-material-radio-button-control-size);
|
|
29
25
|
height: var(--lumx-material-radio-button-control-size);
|
|
30
26
|
border-radius: 50%;
|
|
@@ -61,12 +57,8 @@
|
|
|
61
57
|
@mixin lumx-radio-button-input-indicator() {
|
|
62
58
|
position: absolute;
|
|
63
59
|
z-index: 3;
|
|
64
|
-
top: calc(
|
|
65
|
-
|
|
66
|
-
);
|
|
67
|
-
left: calc(
|
|
68
|
-
calc(var(--lumx-material-radio-button-control-size) - var(--lumx-material-radio-button-indicator-size)) / 2
|
|
69
|
-
);
|
|
60
|
+
top: calc((var(--lumx-material-radio-button-control-size) - var(--lumx-material-radio-button-indicator-size)) / 2);
|
|
61
|
+
left: calc((var(--lumx-material-radio-button-control-size) - var(--lumx-material-radio-button-indicator-size)) / 2);
|
|
70
62
|
display: flex;
|
|
71
63
|
width: var(--lumx-material-radio-button-indicator-size);
|
|
72
64
|
height: var(--lumx-material-radio-button-indicator-size);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
$self: &;
|
|
7
7
|
|
|
8
8
|
--lumx-text-field-wrapper-padding-vertical: calc(
|
|
9
|
-
|
|
9
|
+
(var(--lumx-text-field-input-min-height) - var(--lumx-material-text-field-input-content-line-height)) / 2
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
padding-top: var(--lumx-material-text-field-padding-top);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
flex-shrink: 0;
|
|
3
3
|
margin-top: calc(
|
|
4
4
|
var(--lumx-text-field-wrapper-padding-vertical) +
|
|
5
|
-
|
|
5
|
+
((var(--lumx-material-text-field-input-content-line-height) - var(--lumx-size-s)) / 2)
|
|
6
6
|
);
|
|
7
7
|
margin-left: $lumx-spacing-unit / 2;
|
|
8
8
|
|
|
@@ -37,6 +37,12 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
@each $key, $color in $lumx-color-palette {
|
|
41
|
+
.#{$lumx-base-prefix}-skeleton-circle--color-#{$key} {
|
|
42
|
+
background-color: lumx-color-variant($key, 'L5');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
40
46
|
/* Rectangle
|
|
41
47
|
========================================================================== */
|
|
42
48
|
|
|
@@ -76,6 +82,12 @@
|
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
|
|
85
|
+
@each $key, $color in $lumx-color-palette {
|
|
86
|
+
.#{$lumx-base-prefix}-skeleton-rectangle--color-#{$key} {
|
|
87
|
+
background-color: lumx-color-variant($key, 'L5');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
/* Typography
|
|
80
92
|
========================================================================== */
|
|
81
93
|
|
|
@@ -121,3 +133,9 @@ $typography-skeleton-size: (
|
|
|
121
133
|
height: map-get($typography-skeleton-size, $key);
|
|
122
134
|
}
|
|
123
135
|
}
|
|
136
|
+
|
|
137
|
+
@each $key, $color in $lumx-color-palette {
|
|
138
|
+
.#{$lumx-base-prefix}-skeleton-typography--color-#{$key} .#{$lumx-base-prefix}-skeleton-typography__inner {
|
|
139
|
+
background-color: lumx-color-variant($key, 'L5');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@mixin lumx-switch-placeholder() {
|
|
20
20
|
position: absolute;
|
|
21
21
|
z-index: 1;
|
|
22
|
-
top: calc(
|
|
22
|
+
top: calc((var(--lumx-material-switch-wrapper-height) - var(--lumx-material-switch-control-height)) / 2);
|
|
23
23
|
left: 0;
|
|
24
24
|
width: var(--lumx-material-switch-control-width);
|
|
25
25
|
height: var(--lumx-material-switch-control-height);
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@mixin lumx-switch-input-indicator($status, $theme) {
|
|
45
45
|
position: absolute;
|
|
46
46
|
z-index: 3;
|
|
47
|
-
top: calc(
|
|
47
|
+
top: calc((var(--lumx-material-switch-control-height) - var(--lumx-material-switch-indicator-size)) / 2);
|
|
48
48
|
width: var(--lumx-material-switch-indicator-size);
|
|
49
49
|
height: var(--lumx-material-switch-indicator-size);
|
|
50
50
|
border-radius: calc(var(--lumx-material-switch-indicator-size) / 2);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
$self: &;
|
|
7
7
|
|
|
8
8
|
--lumx-text-field-wrapper-padding-vertical: calc(
|
|
9
|
-
|
|
9
|
+
(var(--lumx-text-field-input-min-height) - var(--lumx-material-text-field-input-content-line-height)) / 2
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
padding-top: var(--lumx-material-text-field-padding-top);
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
right: 0;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
left: 0;
|
|
29
|
-
border
|
|
30
|
-
border-color: var(--lumx-text-field-state-default-#{$theme}-input-border-color);
|
|
29
|
+
border: 0 solid var(--lumx-text-field-state-default-#{$theme}-input-border-color);
|
|
31
30
|
border-top-width: var(--lumx-text-field-state-default-input-border-top-width);
|
|
32
31
|
border-right-width: var(--lumx-text-field-state-default-input-border-right-width);
|
|
33
32
|
border-bottom-width: var(--lumx-text-field-state-default-input-border-bottom-width);
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
flex-shrink: 0;
|
|
74
73
|
margin-top: calc(
|
|
75
74
|
var(--lumx-text-field-wrapper-padding-vertical) +
|
|
76
|
-
|
|
75
|
+
((var(--lumx-material-text-field-input-content-line-height) - var(--lumx-size-xs)) / 2)
|
|
77
76
|
);
|
|
78
77
|
margin-right: $lumx-spacing-unit;
|
|
79
78
|
|
|
@@ -128,7 +127,7 @@
|
|
|
128
127
|
flex-shrink: 0;
|
|
129
128
|
margin-top: calc(
|
|
130
129
|
var(--lumx-text-field-wrapper-padding-vertical) +
|
|
131
|
-
|
|
130
|
+
((var(--lumx-material-text-field-input-content-line-height) - var(--lumx-size-xxs)) / 2)
|
|
132
131
|
);
|
|
133
132
|
margin-left: $lumx-spacing-unit;
|
|
134
133
|
|
|
@@ -147,10 +146,7 @@
|
|
|
147
146
|
flex-shrink: 0;
|
|
148
147
|
margin-top: calc(
|
|
149
148
|
var(--lumx-text-field-wrapper-padding-vertical) +
|
|
150
|
-
|
|
151
|
-
calc(var(--lumx-material-text-field-input-content-line-height) - calc(var(--lumx-button-height) / 1.5)) /
|
|
152
|
-
2
|
|
153
|
-
)
|
|
149
|
+
((var(--lumx-material-text-field-input-content-line-height) - (var(--lumx-button-height) / 1.5)) / 2)
|
|
154
150
|
);
|
|
155
151
|
margin-left: $lumx-spacing-unit / 2;
|
|
156
152
|
}
|
|
@@ -160,7 +156,7 @@
|
|
|
160
156
|
flex: 1 1 auto;
|
|
161
157
|
flex-wrap: wrap;
|
|
162
158
|
align-items: center;
|
|
163
|
-
margin: calc(
|
|
159
|
+
margin: calc((var(--lumx-text-field-input-min-height) - (var(--lumx-size-s) - 6px)) / 2) 0;
|
|
164
160
|
|
|
165
161
|
.#{$lumx-base-prefix}-chip {
|
|
166
162
|
margin: $lumx-chip-group-spacing 0;
|
|
@@ -39,14 +39,7 @@
|
|
|
39
39
|
&__name {
|
|
40
40
|
outline: none;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
@include lumx-typography('caption');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
#{$self}--size-m &,
|
|
47
|
-
#{$self}--size-l & {
|
|
48
|
-
@include lumx-typography('body1');
|
|
49
|
-
}
|
|
42
|
+
@include lumx-typography('subtitle1');
|
|
50
43
|
|
|
51
44
|
#{$self}--orientation-vertical & {
|
|
52
45
|
text-align: center;
|
|
@@ -87,7 +80,7 @@
|
|
|
87
80
|
}
|
|
88
81
|
|
|
89
82
|
&__field {
|
|
90
|
-
@include lumx-typography('
|
|
83
|
+
@include lumx-typography('body1');
|
|
91
84
|
|
|
92
85
|
#{$self}--size-m & {
|
|
93
86
|
&::after {
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
@mixin lumx-typography($key, $type: 'interface') {
|
|
8
8
|
@if $type == 'custom' {
|
|
9
|
-
font-family: var(--lumx-typography-custom-#{$key}-font-family
|
|
9
|
+
font-family: var(--lumx-typography-custom-#{$key}-font-family);
|
|
10
10
|
font-size: var(--lumx-typography-custom-#{$key}-font-size);
|
|
11
11
|
font-style: var(--lumx-typography-custom-#{$key}-font-style);
|
|
12
12
|
font-weight: var(--lumx-typography-custom-#{$key}-font-weight);
|
|
13
13
|
line-height: var(--lumx-typography-custom-#{$key}-line-height);
|
|
14
14
|
} @else if $type == 'interface' {
|
|
15
|
-
font-family: var(--lumx-typography-font-family);
|
|
16
15
|
font-size: map-get(map-get($lumx-typography-interface, $key), 'font-size');
|
|
17
16
|
font-weight: var(--lumx-typography-interface-#{$key}-font-weight);
|
|
18
17
|
line-height: map-get(map-get($lumx-typography-interface, $key), 'line-height');
|
package/scss/lumx.scss
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@import '~sass-mq';
|
|
4
4
|
@import '../css/design-tokens';
|
|
5
|
+
// TODO: remove in next major version
|
|
6
|
+
@import '../css/retro-compat-v2';
|
|
5
7
|
@import './design-tokens';
|
|
8
|
+
// TODO: remove in next major version
|
|
9
|
+
@import './retro-compat-v2';
|
|
6
10
|
@import './core';
|
|
7
11
|
@import './components';
|
|
8
12
|
@import './core/base/normalize';
|