@clayui/css 3.51.0 → 3.54.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/lib/css/atlas.css +22 -33
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +28 -36
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +16 -1
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/border-style.svg +14 -0
- package/lib/images/icons/border-width.svg +11 -0
- package/lib/images/icons/diagonal-line.svg +9 -0
- package/lib/images/icons/icons.svg +1 -1
- package/lib/images/icons/opacity.svg +16 -0
- package/package.json +2 -2
- package/src/images/icons/border-style.svg +14 -0
- package/src/images/icons/border-width.svg +11 -0
- package/src/images/icons/diagonal-line.svg +9 -0
- package/src/images/icons/opacity.svg +16 -0
- package/src/scss/cadmin/components/_navbar.scss +1 -0
- package/src/scss/cadmin/components/_popovers.scss +45 -13
- package/src/scss/cadmin/variables/_popovers.scss +53 -0
- package/src/scss/components/_forms.scss +18 -58
- package/src/scss/components/_navbar.scss +1 -0
- package/src/scss/components/_popovers.scss +45 -13
- package/src/scss/functions/_lx-icons-generated.scss +8 -0
- package/src/scss/mixins/_close.scss +303 -277
- package/src/scss/mixins/_forms.scss +2 -0
- package/src/scss/mixins/_grid.scss +3 -3
- package/src/scss/mixins/_popovers.scss +56 -19
- package/src/scss/variables/_forms.scss +74 -0
- package/src/scss/variables/_management-bar.scss +2 -2
- package/src/scss/variables/_popovers.scss +53 -0
|
@@ -2,6 +2,52 @@
|
|
|
2
2
|
/// @group popovers
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
+
/// A mixin to help create `.popover-header` variants.
|
|
6
|
+
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
7
|
+
/// @example
|
|
8
|
+
/// (
|
|
9
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
10
|
+
/// // .popover-header
|
|
11
|
+
/// before: (
|
|
12
|
+
/// // .popover-header::before
|
|
13
|
+
/// ),
|
|
14
|
+
/// after: (
|
|
15
|
+
/// // .popover-header::after
|
|
16
|
+
/// ),
|
|
17
|
+
/// empty: (
|
|
18
|
+
/// // .popover-header:empty
|
|
19
|
+
/// ),
|
|
20
|
+
/// close: (
|
|
21
|
+
/// // .popover-header .close
|
|
22
|
+
/// ),
|
|
23
|
+
/// )
|
|
24
|
+
|
|
25
|
+
@mixin clay-popover-header-variant($map) {
|
|
26
|
+
@if (type-of($map) == 'map') {
|
|
27
|
+
$enabled: setter(map-get($map, enabled), true);
|
|
28
|
+
|
|
29
|
+
@if ($enabled) {
|
|
30
|
+
@include clay-css($map);
|
|
31
|
+
|
|
32
|
+
&::before {
|
|
33
|
+
@include clay-css(map-get($map, before));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::after {
|
|
37
|
+
@include clay-css(map-get($map, after));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:empty {
|
|
41
|
+
@include clay-css(map-get($map, empty));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.close {
|
|
45
|
+
@include clay-close(map-get($map, close));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
5
51
|
/// A mixin to help create `.popover` variants.
|
|
6
52
|
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
7
53
|
/// @example
|
|
@@ -35,6 +81,9 @@
|
|
|
35
81
|
/// inline-scroller: (
|
|
36
82
|
/// // .popover .inline-scroller
|
|
37
83
|
/// ),
|
|
84
|
+
/// close: (
|
|
85
|
+
/// // .popover .close
|
|
86
|
+
/// ),
|
|
38
87
|
/// )
|
|
39
88
|
|
|
40
89
|
@mixin clay-popover-variant($map) {
|
|
@@ -57,25 +106,9 @@
|
|
|
57
106
|
}
|
|
58
107
|
|
|
59
108
|
.popover-header {
|
|
60
|
-
@include clay-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
@include clay-css(
|
|
64
|
-
map-deep-get($map, popover-header, before)
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&::after {
|
|
69
|
-
@include clay-css(
|
|
70
|
-
map-deep-get($map, popover-header, after)
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:empty {
|
|
75
|
-
@include clay-css(
|
|
76
|
-
map-deep-get($map, popover-header, empty)
|
|
77
|
-
);
|
|
78
|
-
}
|
|
109
|
+
@include clay-popover-header-variant(
|
|
110
|
+
map-get($map, popover-header)
|
|
111
|
+
);
|
|
79
112
|
}
|
|
80
113
|
|
|
81
114
|
.popover-body {
|
|
@@ -85,6 +118,10 @@
|
|
|
85
118
|
.inline-scroller {
|
|
86
119
|
@include clay-css(map-get($map, inline-scroller));
|
|
87
120
|
}
|
|
121
|
+
|
|
122
|
+
.close {
|
|
123
|
+
@include clay-close(map-get($map, close));
|
|
124
|
+
}
|
|
88
125
|
}
|
|
89
126
|
}
|
|
90
127
|
}
|
|
@@ -142,6 +142,27 @@ $input-padding-y-lg: $input-btn-padding-y-lg !default;
|
|
|
142
142
|
$input-font-size-lg-mobile: null !default;
|
|
143
143
|
$input-height-lg-mobile: null !default;
|
|
144
144
|
|
|
145
|
+
$input-lg: () !default;
|
|
146
|
+
$input-lg: map-deep-merge(
|
|
147
|
+
(
|
|
148
|
+
border-radius: clay-enable-rounded($input-border-radius-lg),
|
|
149
|
+
font-size: $input-font-size-lg,
|
|
150
|
+
height: $input-height-lg,
|
|
151
|
+
line-height: $input-line-height-lg,
|
|
152
|
+
padding-bottom: $input-padding-y-lg,
|
|
153
|
+
padding-left: $input-padding-x-lg,
|
|
154
|
+
padding-right: $input-padding-x-lg,
|
|
155
|
+
padding-top: $input-padding-y-lg,
|
|
156
|
+
media-breakpoint-down: (
|
|
157
|
+
sm: (
|
|
158
|
+
font-size: $input-font-size-lg-mobile,
|
|
159
|
+
height: $input-height-lg-mobile,
|
|
160
|
+
),
|
|
161
|
+
),
|
|
162
|
+
),
|
|
163
|
+
$input-lg
|
|
164
|
+
);
|
|
165
|
+
|
|
145
166
|
// Input Sm (.form-control-sm)
|
|
146
167
|
|
|
147
168
|
$input-border-radius-sm: $border-radius-sm !default;
|
|
@@ -154,6 +175,26 @@ $input-padding-y-sm: $input-btn-padding-y-sm !default;
|
|
|
154
175
|
$input-font-size-sm-mobile: null !default;
|
|
155
176
|
$input-height-sm-mobile: null !default;
|
|
156
177
|
|
|
178
|
+
$input-sm: () !default;
|
|
179
|
+
$input-sm: map-deep-merge(
|
|
180
|
+
(
|
|
181
|
+
border-radius: clay-enable-rounded($input-border-radius-sm),
|
|
182
|
+
font-size: $input-font-size-sm,
|
|
183
|
+
height: $input-height-sm,
|
|
184
|
+
line-height: $input-line-height-sm,
|
|
185
|
+
padding-bottom: $input-padding-y-sm,
|
|
186
|
+
padding-left: $input-padding-x-sm,
|
|
187
|
+
padding-right: $input-padding-x-sm,
|
|
188
|
+
padding-top: $input-padding-y-sm,
|
|
189
|
+
media-breakpoint-down: (
|
|
190
|
+
sm: (
|
|
191
|
+
height: $input-height-sm-mobile,
|
|
192
|
+
),
|
|
193
|
+
),
|
|
194
|
+
),
|
|
195
|
+
$input-sm
|
|
196
|
+
);
|
|
197
|
+
|
|
157
198
|
// Input Label (<label>)
|
|
158
199
|
|
|
159
200
|
$input-label-color: null !default;
|
|
@@ -300,10 +341,43 @@ $input-plaintext-readonly: map-deep-merge(
|
|
|
300
341
|
$input-plaintext-readonly
|
|
301
342
|
);
|
|
302
343
|
|
|
344
|
+
// textarea.form-control, textarea.form-control-plaintext, .form-control.form-control-textarea
|
|
345
|
+
|
|
303
346
|
$input-textarea-height: 150px !default;
|
|
347
|
+
|
|
348
|
+
$input-textarea: () !default;
|
|
349
|
+
$input-textarea: map-merge(
|
|
350
|
+
(
|
|
351
|
+
height: $input-textarea-height,
|
|
352
|
+
resize: vertical,
|
|
353
|
+
),
|
|
354
|
+
$input-textarea
|
|
355
|
+
);
|
|
356
|
+
|
|
357
|
+
// textarea.form-control-lg, .form-control-lg.form-control-textarea
|
|
358
|
+
|
|
304
359
|
$input-textarea-height-lg: 190px !default;
|
|
360
|
+
|
|
361
|
+
$input-textarea-lg: () !default;
|
|
362
|
+
$input-textarea-lg: map-deep-merge(
|
|
363
|
+
(
|
|
364
|
+
height: $input-textarea-height-lg,
|
|
365
|
+
),
|
|
366
|
+
$input-textarea-lg
|
|
367
|
+
);
|
|
368
|
+
|
|
369
|
+
// textarea.form-control-sm, .form-control-sm.form-control-textarea
|
|
370
|
+
|
|
305
371
|
$input-textarea-height-sm: 120px !default;
|
|
306
372
|
|
|
373
|
+
$input-textarea-sm: () !default;
|
|
374
|
+
$input-textarea-sm: map-deep-merge(
|
|
375
|
+
(
|
|
376
|
+
height: $input-textarea-height-sm,
|
|
377
|
+
),
|
|
378
|
+
$input-textarea-sm
|
|
379
|
+
);
|
|
380
|
+
|
|
307
381
|
// Form Control Label (Labels inside Form Control Tag Group)
|
|
308
382
|
|
|
309
383
|
$form-control-label-size: () !default;
|
|
@@ -106,6 +106,27 @@ $popover: map-deep-merge(
|
|
|
106
106
|
$popover
|
|
107
107
|
);
|
|
108
108
|
|
|
109
|
+
// Popovers
|
|
110
|
+
|
|
111
|
+
$popovers: () !default;
|
|
112
|
+
$popovers: map-deep-merge(
|
|
113
|
+
(
|
|
114
|
+
popover: $popover,
|
|
115
|
+
popover-secondary: (
|
|
116
|
+
box-shadow: 0 8px 16px 0 rgba($primary, 0.16),
|
|
117
|
+
popover-header: (
|
|
118
|
+
background-color: transparent,
|
|
119
|
+
border-color: transparent,
|
|
120
|
+
padding-bottom: 0,
|
|
121
|
+
),
|
|
122
|
+
close: (
|
|
123
|
+
color: $gray-600,
|
|
124
|
+
),
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
$popovers
|
|
128
|
+
);
|
|
129
|
+
|
|
109
130
|
// .popover-header
|
|
110
131
|
|
|
111
132
|
$popover-header: () !default;
|
|
@@ -134,6 +155,16 @@ $popover-header: map-deep-merge(
|
|
|
134
155
|
$popover-header
|
|
135
156
|
);
|
|
136
157
|
|
|
158
|
+
// Popover Headers
|
|
159
|
+
|
|
160
|
+
$popover-headers: () !default;
|
|
161
|
+
$popover-headers: map-deep-merge(
|
|
162
|
+
(
|
|
163
|
+
popover-header: $popover-header,
|
|
164
|
+
),
|
|
165
|
+
$popover-headers
|
|
166
|
+
);
|
|
167
|
+
|
|
137
168
|
// .popover-body
|
|
138
169
|
|
|
139
170
|
$popover-body: () !default;
|
|
@@ -149,6 +180,28 @@ $popover-body: map-merge(
|
|
|
149
180
|
$popover-body
|
|
150
181
|
);
|
|
151
182
|
|
|
183
|
+
// Popover Bodies
|
|
184
|
+
|
|
185
|
+
$popover-bodies: () !default;
|
|
186
|
+
$popover-bodies: map-deep-merge(
|
|
187
|
+
(
|
|
188
|
+
popover-body: $popover-body,
|
|
189
|
+
),
|
|
190
|
+
$popover-bodies
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
// Popover Widths
|
|
194
|
+
|
|
195
|
+
$popover-widths: () !default;
|
|
196
|
+
$popover-widths: map-deep-merge(
|
|
197
|
+
(
|
|
198
|
+
popover-width-lg: (
|
|
199
|
+
max-width: 421px,
|
|
200
|
+
),
|
|
201
|
+
),
|
|
202
|
+
$popover-widths
|
|
203
|
+
);
|
|
204
|
+
|
|
152
205
|
// .clay-popover-top, .clay-popover-top-left, .clay-popover-top-right
|
|
153
206
|
|
|
154
207
|
$clay-popover-top: () !default;
|