@clayui/css 3.35.0 → 3.36.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/CHANGELOG.md +62 -0
- package/lib/css/atlas.css +300 -172
- package/lib/css/atlas.css.map +20 -20
- package/lib/css/base.css +199 -162
- package/lib/css/base.css.map +13 -13
- package/package.json +2 -2
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/atlas/variables/_alerts.scss +1 -5
- package/src/scss/atlas/variables/_buttons.scss +79 -7
- package/src/scss/atlas/variables/_custom-forms.scss +1 -5
- package/src/scss/atlas/variables/_forms.scss +115 -40
- package/src/scss/atlas/variables/_globals.scss +362 -70
- package/src/scss/atlas/variables/_labels.scss +0 -4
- package/src/scss/atlas/variables/_pagination.scss +0 -4
- package/src/scss/cadmin/components/_buttons.scss +25 -263
- package/src/scss/cadmin/components/_forms.scss +24 -92
- package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -0
- package/src/scss/cadmin/variables/_buttons.scss +249 -6
- package/src/scss/cadmin/variables/_forms.scss +124 -8
- package/src/scss/components/_buttons.scss +25 -259
- package/src/scss/components/_forms.scss +21 -92
- package/src/scss/components/_utilities-functional-important.scss +4 -0
- package/src/scss/functions/_global-functions.scss +16 -2
- package/src/scss/mixins/_buttons.scss +34 -7
- package/src/scss/mixins/_forms.scss +28 -3
- package/src/scss/mixins/_globals.scss +12 -0
- package/src/scss/variables/_buttons.scss +250 -7
- package/src/scss/variables/_custom-forms.scss +2 -3
- package/src/scss/variables/_forms.scss +145 -34
- package/src/scss/variables/_globals.scss +26 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/css",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.36.0",
|
|
4
4
|
"description": "Liferay's web implementation of the Lexicon Design Language",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"string-sub": "0.0.1",
|
|
95
95
|
"underscore.string": "^3.2.2"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "e91895f788381be22112ad3e98a755a7992ff448"
|
|
98
98
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
////
|
|
2
|
-
/// @group alerts
|
|
3
|
-
////
|
|
4
|
-
|
|
5
1
|
$alert-padding-x: 1rem !default;
|
|
6
2
|
$alert-padding-y: 1.03125rem !default;
|
|
7
3
|
|
|
@@ -16,7 +12,7 @@ $alert-close-font-size: 1rem !default;
|
|
|
16
12
|
|
|
17
13
|
$alert-close-opacity: 1 !default;
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
// @deprecated as of v2.12.0 use the Sass map `$alert-close` instead
|
|
20
16
|
|
|
21
17
|
$alert-close-position-top: 0.6875rem !default;
|
|
22
18
|
|
|
@@ -10,13 +10,39 @@ $btn-focus-box-shadow: $component-focus-box-shadow !default;
|
|
|
10
10
|
|
|
11
11
|
$btn-disabled-opacity: 0.4 !default;
|
|
12
12
|
|
|
13
|
-
$btn-link-disabled-color: $link-color !default;
|
|
14
|
-
|
|
15
13
|
$btn-active-box-shadow: none !default;
|
|
16
14
|
|
|
17
15
|
$btn-inline-item-font-size: 1rem !default; // 16px
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
$btn: () !default;
|
|
18
|
+
$btn: map-deep-merge(
|
|
19
|
+
(
|
|
20
|
+
box-shadow: $btn-box-shadow,
|
|
21
|
+
font-weight: $btn-font-weight,
|
|
22
|
+
padding-bottom: $btn-padding-y,
|
|
23
|
+
padding-left: $btn-padding-x,
|
|
24
|
+
padding-right: $btn-padding-x,
|
|
25
|
+
padding-top: $btn-padding-y,
|
|
26
|
+
transition: clay-enable-transitions($btn-transition),
|
|
27
|
+
focus: (
|
|
28
|
+
box-shadow: $btn-focus-box-shadow,
|
|
29
|
+
),
|
|
30
|
+
active: (
|
|
31
|
+
box-shadow: $btn-active-box-shadow,
|
|
32
|
+
),
|
|
33
|
+
disabled: (
|
|
34
|
+
opacity: $btn-disabled-opacity,
|
|
35
|
+
),
|
|
36
|
+
inline-item: (
|
|
37
|
+
font-size: $btn-inline-item-font-size,
|
|
38
|
+
),
|
|
39
|
+
),
|
|
40
|
+
$btn
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
$btn-link-disabled-color: $link-color !default;
|
|
44
|
+
|
|
45
|
+
// Button Lg
|
|
20
46
|
|
|
21
47
|
$btn-border-radius-lg: $border-radius !default;
|
|
22
48
|
$btn-font-size-lg: $font-size-lg !default; // 18px
|
|
@@ -24,21 +50,67 @@ $btn-padding-x-lg: 1.5rem !default; // 24px
|
|
|
24
50
|
$btn-padding-y-lg: 0.59375rem !default; // 9.5px
|
|
25
51
|
$btn-inline-item-font-size-lg: $font-size-lg !default; // 18px
|
|
26
52
|
|
|
53
|
+
$btn-lg: () !default;
|
|
54
|
+
$btn-lg: map-deep-merge(
|
|
55
|
+
(
|
|
56
|
+
border-radius: clay-enable-rounded($btn-border-radius-lg),
|
|
57
|
+
font-size: $btn-font-size-lg,
|
|
58
|
+
padding-bottom: $btn-padding-y-lg,
|
|
59
|
+
padding-left: $btn-padding-x-lg,
|
|
60
|
+
padding-right: $btn-padding-x-lg,
|
|
61
|
+
padding-top: $btn-padding-y-lg,
|
|
62
|
+
inline-item: (
|
|
63
|
+
font-size: $btn-inline-item-font-size-lg,
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
$btn-lg
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
// Button Sm
|
|
70
|
+
|
|
27
71
|
$btn-font-size-sm: $font-size-sm !default; // 14px
|
|
28
72
|
$btn-line-height-sm: 1.15 !default;
|
|
29
73
|
$btn-padding-x-sm: 0.75rem !default; // 12px
|
|
30
74
|
$btn-padding-y-sm: 0.4375rem !default; // 7px
|
|
31
75
|
|
|
76
|
+
$btn-sm: () !default;
|
|
77
|
+
$btn-sm: map-deep-merge(
|
|
78
|
+
(
|
|
79
|
+
font-size: $btn-font-size-sm,
|
|
80
|
+
line-height: $btn-line-height-sm,
|
|
81
|
+
padding-bottom: $btn-padding-y-sm,
|
|
82
|
+
padding-left: $btn-padding-x-sm,
|
|
83
|
+
padding-right: $btn-padding-x-sm,
|
|
84
|
+
padding-top: $btn-padding-y-sm,
|
|
85
|
+
),
|
|
86
|
+
$btn-sm
|
|
87
|
+
);
|
|
88
|
+
|
|
32
89
|
// Button Monospaced
|
|
33
90
|
|
|
34
|
-
$btn-monospaced-padding-y: 0.25rem !default; // 4px
|
|
35
91
|
$btn-monospaced-size: 2.5rem !default; // 40px
|
|
36
92
|
|
|
37
|
-
$btn-monospaced
|
|
38
|
-
$btn-monospaced-
|
|
93
|
+
$btn-monospaced: () !default;
|
|
94
|
+
$btn-monospaced: map-deep-merge(
|
|
95
|
+
(
|
|
96
|
+
height: $btn-monospaced-size,
|
|
97
|
+
width: $btn-monospaced-size,
|
|
98
|
+
),
|
|
99
|
+
$btn-monospaced
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
// Button Monospaced Sm
|
|
103
|
+
|
|
39
104
|
$btn-monospaced-size-sm: 2rem !default; // 32px
|
|
40
105
|
|
|
41
|
-
$btn-monospaced-
|
|
106
|
+
$btn-monospaced-sm: () !default;
|
|
107
|
+
$btn-monospaced-sm: map-deep-merge(
|
|
108
|
+
(
|
|
109
|
+
height: $btn-monospaced-size-sm,
|
|
110
|
+
width: $btn-monospaced-size-sm,
|
|
111
|
+
),
|
|
112
|
+
$btn-monospaced-sm
|
|
113
|
+
);
|
|
42
114
|
|
|
43
115
|
// Button Group
|
|
44
116
|
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
////
|
|
2
|
-
/// @group customForms
|
|
3
|
-
////
|
|
4
|
-
|
|
5
1
|
$custom-control-indicator-bg: $white !default;
|
|
6
2
|
$custom-control-indicator-border-color: $gray-400 !default;
|
|
7
3
|
$custom-control-indicator-border-style: solid !default;
|
|
@@ -76,7 +72,7 @@ $custom-control-description-font-size: $input-label-font-size !default; // 13px
|
|
|
76
72
|
|
|
77
73
|
$custom-control-description-font-weight: $font-weight-normal !default;
|
|
78
74
|
|
|
79
|
-
|
|
75
|
+
// @deprecated as of v2.19.0 use the Sass map `$custom-control-label-disabled-color` instead. This variable is not used in Clay CSS.
|
|
80
76
|
|
|
81
77
|
$custom-control-label-disabled-color: $input-label-disabled-color !default;
|
|
82
78
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
$input-
|
|
2
|
-
|
|
3
|
-
$input-label-font-size: 0.875rem !default; // 14px
|
|
4
|
-
$input-label-font-weight: $font-weight-semi-bold !default;
|
|
5
|
-
$input-label-margin-bottom: 0.25rem !default; // 4px
|
|
6
|
-
|
|
7
|
-
$input-label-reference-mark-font-size: 6px !default;
|
|
8
|
-
|
|
1
|
+
$input-bg: $gray-200 !default;
|
|
2
|
+
$input-border-color: $gray-300 !default;
|
|
9
3
|
$input-border-width: 0.0625rem !default; // 1px
|
|
10
4
|
|
|
11
5
|
$input-border-bottom-width: $input-border-width !default; // 1px
|
|
@@ -13,26 +7,90 @@ $input-border-left-width: $input-border-width !default; // 1px
|
|
|
13
7
|
$input-border-right-width: $input-border-width !default; // 1px
|
|
14
8
|
$input-border-top-width: $input-border-width !default; // 1px
|
|
15
9
|
|
|
16
|
-
$input-
|
|
17
|
-
|
|
10
|
+
$input-box-shadow: none !default;
|
|
11
|
+
$input-color: $gray-900 !default;
|
|
12
|
+
$input-height: 2.5rem !default; // 40px
|
|
18
13
|
$input-padding-x: 1rem !default; // 16px
|
|
19
14
|
$input-padding-y: 0.4375rem !default; // 7px
|
|
20
15
|
|
|
21
|
-
$input-
|
|
22
|
-
$input-padding-y-lg: $input-padding-y !default;
|
|
16
|
+
$input-font-size-mobile: 1rem !default; // 16px
|
|
23
17
|
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
// .form-control::placeholder
|
|
19
|
+
|
|
20
|
+
$input-placeholder-color: $gray-600 !default;
|
|
21
|
+
|
|
22
|
+
// Input Focus (.form-control:focus)
|
|
23
|
+
|
|
24
|
+
$input-focus-bg: lighten($component-active-bg, 44.9) !default;
|
|
25
|
+
$input-focus-border-color: lighten($component-active-bg, 22.94) !default;
|
|
26
|
+
$input-focus-box-shadow: $component-focus-box-shadow !default;
|
|
27
|
+
|
|
28
|
+
// Input Disabled (.form-control:disabled)
|
|
29
|
+
|
|
30
|
+
$input-disabled-color: $gray-500 !default;
|
|
31
|
+
$input-disabled-bg: $input-bg !default;
|
|
32
|
+
$input-disabled-border-color: $input-bg !default;
|
|
33
|
+
|
|
34
|
+
// .form-control:disabled::placeholder
|
|
35
|
+
|
|
36
|
+
$input-placeholder-disabled-color: $input-disabled-color !default;
|
|
37
|
+
|
|
38
|
+
$input: () !default;
|
|
39
|
+
$input: map-deep-merge(
|
|
40
|
+
(
|
|
41
|
+
background-color: $input-bg,
|
|
42
|
+
border-color: $input-border-color,
|
|
43
|
+
border-width: $input-border-width,
|
|
44
|
+
border-bottom-width: $input-border-bottom-width,
|
|
45
|
+
border-left-width: $input-border-left-width,
|
|
46
|
+
border-right-width: $input-border-right-width,
|
|
47
|
+
border-top-width: $input-border-top-width,
|
|
48
|
+
box-shadow: $input-box-shadow,
|
|
49
|
+
color: $input-color,
|
|
50
|
+
height: $input-height,
|
|
51
|
+
padding-bottom: $input-padding-y,
|
|
52
|
+
padding-left: $input-padding-x,
|
|
53
|
+
padding-right: $input-padding-x,
|
|
54
|
+
padding-top: $input-padding-y,
|
|
55
|
+
mobile: (
|
|
56
|
+
font-size: $input-font-size-mobile,
|
|
57
|
+
),
|
|
58
|
+
placeholder: (
|
|
59
|
+
color: $input-placeholder-color,
|
|
60
|
+
),
|
|
61
|
+
focus: (
|
|
62
|
+
background-color: $input-focus-bg,
|
|
63
|
+
border-color: $input-focus-border-color,
|
|
64
|
+
box-shadow: $input-focus-box-shadow,
|
|
65
|
+
),
|
|
66
|
+
disabled: (
|
|
67
|
+
background-color: $input-disabled-bg,
|
|
68
|
+
border-color: $input-disabled-border-color,
|
|
69
|
+
color: $input-disabled-color,
|
|
70
|
+
placeholder: (
|
|
71
|
+
color: $input-placeholder-disabled-color,
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
),
|
|
75
|
+
$input
|
|
76
|
+
);
|
|
26
77
|
|
|
27
78
|
$input-height-border: $input-border-bottom-width + $input-border-top-width !default;
|
|
28
|
-
|
|
79
|
+
|
|
29
80
|
$input-height-inner: $input-height - $input-height-border !default;
|
|
81
|
+
|
|
82
|
+
// Input Lg (.form-control-lg)
|
|
83
|
+
|
|
30
84
|
$input-height-lg: 3rem !default; // 48px
|
|
31
|
-
$input-
|
|
85
|
+
$input-padding-x-lg: $input-padding-x !default;
|
|
86
|
+
$input-padding-y-lg: $input-padding-y !default;
|
|
32
87
|
|
|
33
|
-
|
|
88
|
+
// Input Sm (.form-control-sm)
|
|
34
89
|
|
|
35
|
-
$
|
|
90
|
+
$input-border-radius-sm: $border-radius !default;
|
|
91
|
+
$input-height-sm: 2rem !default; // 32px
|
|
92
|
+
$input-padding-x-sm: 0.75rem !default; // 12px
|
|
93
|
+
$input-padding-y-sm: 0.25rem !default;
|
|
36
94
|
|
|
37
95
|
// Form Group
|
|
38
96
|
|
|
@@ -42,26 +100,35 @@ $form-group-margin-bottom-mobile: 1rem !default; // 16px
|
|
|
42
100
|
$form-group-sm-input-label-margin-bottom: 0.1875rem !default; // 3px
|
|
43
101
|
$form-group-sm-item-label-spacer: 1.5625rem !default; // 25px
|
|
44
102
|
|
|
45
|
-
//
|
|
103
|
+
// Input Label (<label>)
|
|
46
104
|
|
|
47
|
-
$input-color: $gray-900 !default;
|
|
48
|
-
$input-bg: $gray-200 !default;
|
|
49
|
-
$input-border-color: $gray-300 !default;
|
|
50
|
-
$input-box-shadow: none !default;
|
|
51
|
-
$input-placeholder-color: $gray-600 !default;
|
|
52
105
|
$input-label-color: $gray-900 !default;
|
|
106
|
+
$input-label-font-size: 0.875rem !default; // 14px
|
|
107
|
+
$input-label-font-weight: $font-weight-semi-bold !default;
|
|
108
|
+
$input-label-margin-bottom: 0.25rem !default; // 4px
|
|
53
109
|
|
|
54
|
-
|
|
55
|
-
$input-focus-border-color: lighten($component-active-bg, 22.94) !default;
|
|
56
|
-
$input-focus-box-shadow: $component-focus-box-shadow !default;
|
|
57
|
-
|
|
58
|
-
$input-disabled-color: $gray-500 !default;
|
|
59
|
-
$input-disabled-bg: $input-bg !default;
|
|
60
|
-
$input-disabled-border-color: $input-bg !default;
|
|
61
|
-
$input-placeholder-disabled-color: $input-disabled-color !default;
|
|
110
|
+
// label.disabled
|
|
62
111
|
|
|
63
112
|
$input-label-disabled-color: $gray-500 !default;
|
|
64
113
|
|
|
114
|
+
$input-label: () !default;
|
|
115
|
+
$input-label: map-deep-merge(
|
|
116
|
+
(
|
|
117
|
+
color: $input-label-color,
|
|
118
|
+
font-size: $input-label-font-size,
|
|
119
|
+
font-weight: $input-label-font-weight,
|
|
120
|
+
margin-bottom: $input-label-margin-bottom,
|
|
121
|
+
disabled: (
|
|
122
|
+
color: $input-label-disabled-color,
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
$input-label
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// label .reference-mark
|
|
129
|
+
|
|
130
|
+
$input-label-reference-mark-font-size: 6px !default;
|
|
131
|
+
|
|
65
132
|
// @deprecated after v2.18.0 use the Sass map `$input-readonly` instead
|
|
66
133
|
|
|
67
134
|
$input-readonly-bg: $white !default;
|
|
@@ -90,6 +157,18 @@ $input-plaintext-readonly: map-deep-merge(
|
|
|
90
157
|
$input-plaintext-readonly
|
|
91
158
|
);
|
|
92
159
|
|
|
160
|
+
// Form Feedback
|
|
161
|
+
|
|
162
|
+
$form-text-color: $gray-600 !default;
|
|
163
|
+
$form-text-font-weight: $font-weight-semi-bold !default;
|
|
164
|
+
|
|
165
|
+
$form-feedback-font-size: 0.875rem !default; // 14px
|
|
166
|
+
$form-feedback-font-weight: $font-weight-semi-bold !default;
|
|
167
|
+
|
|
168
|
+
$form-feedback-indicator-margin-x: 0 !default;
|
|
169
|
+
|
|
170
|
+
// Input Variants
|
|
171
|
+
|
|
93
172
|
$input-danger-bg: $danger-l2 !default;
|
|
94
173
|
$input-danger-border-color: $danger-l1 !default;
|
|
95
174
|
// Will need to be revisited if https://github.com/twbs/bootstrap/pull/24821 merge error is fixed
|
|
@@ -208,14 +287,6 @@ $input-select-size: map-deep-merge(
|
|
|
208
287
|
$input-select-size
|
|
209
288
|
);
|
|
210
289
|
|
|
211
|
-
// Form Feedback
|
|
212
|
-
|
|
213
|
-
$form-feedback-font-weight: $font-weight-semi-bold !default;
|
|
214
|
-
|
|
215
|
-
$form-feedback-indicator-margin-x: 0 !default;
|
|
216
|
-
|
|
217
|
-
$form-text-font-weight: $font-weight-semi-bold !default;
|
|
218
|
-
|
|
219
290
|
// Textarea
|
|
220
291
|
|
|
221
292
|
$input-textarea-height: 100px !default;
|
|
@@ -245,6 +316,10 @@ $form-control-label-size: map-deep-merge(
|
|
|
245
316
|
$form-control-label-size
|
|
246
317
|
);
|
|
247
318
|
|
|
319
|
+
// Form Control Tag Group
|
|
320
|
+
|
|
321
|
+
$form-control-inset-margin-y: 0.3125rem !default;
|
|
322
|
+
|
|
248
323
|
// Form Group
|
|
249
324
|
|
|
250
325
|
$form-group-item-label-spacer: ($input-label-font-size * $line-height-base) +
|