cx 26.0.6 → 26.0.9
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/build/charts/Bar.scss +29 -0
- package/build/charts/BarGraph.scss +29 -0
- package/build/charts/BubbleGraph.scss +32 -0
- package/build/charts/Column.scss +29 -0
- package/build/charts/ColumnGraph.scss +30 -0
- package/build/charts/Gridlines.scss +25 -0
- package/build/charts/Legend.scss +50 -0
- package/build/charts/LegendEntry.scss +29 -0
- package/build/charts/LineGraph.d.ts +11 -0
- package/build/charts/LineGraph.js +1 -0
- package/build/charts/LineGraph.scss +25 -0
- package/build/charts/Marker.scss +44 -0
- package/build/charts/MarkerLine.scss +20 -0
- package/build/charts/PieChart.scss +29 -0
- package/build/charts/Range.scss +20 -0
- package/build/charts/RangeMarker.scss +17 -0
- package/build/charts/ScatterGraph.scss +24 -0
- package/build/charts/Swimlane.scss +16 -0
- package/build/charts/Swimlanes.scss +16 -0
- package/build/charts/axis/Axis.scss +23 -0
- package/build/charts/axis/CategoryAxis.scss +35 -0
- package/build/charts/axis/NumericAxis.scss +35 -0
- package/build/charts/axis/TimeAxis.scss +34 -0
- package/build/charts/axis/index.scss +5 -0
- package/build/charts/axis/variables.scss +3 -0
- package/build/charts/index.scss +22 -0
- package/build/charts/palette.scss +97 -0
- package/build/charts/variables.scss +22 -0
- package/build/global.scss +14 -0
- package/build/index.scss +6 -0
- package/build/jsx-runtime.d.ts +3 -2
- package/build/svg/Svg.scss +28 -0
- package/build/svg/index.scss +9 -0
- package/build/ui/index.scss +2 -0
- package/build/ui/layout/LabelsLeftLayout.scss +47 -0
- package/build/ui/layout/LabelsTopLayout.scss +65 -0
- package/build/ui/layout/index.scss +3 -0
- package/build/ui/layout/variables.scss +2 -0
- package/build/ui/variables.scss +2 -0
- package/build/util/addEventListenerWithOptions.d.ts +2 -2
- package/build/util/call-once.scss +7 -0
- package/build/util/index.scss +11 -0
- package/build/util/scss/add-rules.scss +40 -0
- package/build/util/scss/calc.scss +45 -0
- package/build/util/scss/call-once.scss +13 -0
- package/build/util/scss/clockwise.scss +49 -0
- package/build/util/scss/colors.scss +10 -0
- package/build/util/scss/deep-get.scss +12 -0
- package/build/util/scss/deep-merge.scss +21 -0
- package/build/util/scss/divide.scss +3 -0
- package/build/util/scss/include.scss +48 -0
- package/build/util/scss/index.scss +9 -0
- package/build/variables.scss +217 -0
- package/build/widgets/Button.scss +119 -0
- package/build/widgets/Button.variables.scss +117 -0
- package/build/widgets/CxCredit.scss +39 -0
- package/build/widgets/FlexBox.scss +148 -0
- package/build/widgets/Heading.scss +40 -0
- package/build/widgets/HighlightedSearchText.scss +20 -0
- package/build/widgets/Icon.scss +22 -0
- package/build/widgets/List.scss +93 -0
- package/build/widgets/ProgressBar.scss +51 -0
- package/build/widgets/Resizer.scss +44 -0
- package/build/widgets/Section.scss +56 -0
- package/build/widgets/animations.scss +11 -0
- package/build/widgets/drag-drop/DragClone.scss +36 -0
- package/build/widgets/drag-drop/DragHandle.scss +19 -0
- package/build/widgets/drag-drop/DragSource.scss +27 -0
- package/build/widgets/drag-drop/DropZone.scss +77 -0
- package/build/widgets/drag-drop/index.scss +4 -0
- package/build/widgets/drag-drop/variables.scss +15 -0
- package/build/widgets/form/Calendar.scss +199 -0
- package/build/widgets/form/Calendar.variables.scss +64 -0
- package/build/widgets/form/Checkbox.scss +129 -0
- package/build/widgets/form/Checkbox.variables.scss +40 -0
- package/build/widgets/form/ColorField.scss +98 -0
- package/build/widgets/form/ColorPicker.scss +285 -0
- package/build/widgets/form/ColorPicker.variables.scss +22 -0
- package/build/widgets/form/DateTimeField.scss +92 -0
- package/build/widgets/form/DateTimePicker.scss +47 -0
- package/build/widgets/form/Field.scss +164 -0
- package/build/widgets/form/HelpText.scss +24 -0
- package/build/widgets/form/Label.scss +38 -0
- package/build/widgets/form/LookupField.scss +221 -0
- package/build/widgets/form/MonthField.scss +100 -0
- package/build/widgets/form/MonthPicker.scss +125 -0
- package/build/widgets/form/NumberField.scss +63 -0
- package/build/widgets/form/Radio.scss +123 -0
- package/build/widgets/form/Radio.variables.scss +46 -0
- package/build/widgets/form/Select.scss +101 -0
- package/build/widgets/form/Slider.scss +121 -0
- package/build/widgets/form/Switch.scss +142 -0
- package/build/widgets/form/TextArea.scss +45 -0
- package/build/widgets/form/TextField.scss +57 -0
- package/build/widgets/form/UploadButton.scss +49 -0
- package/build/widgets/form/ValidationError.scss +23 -0
- package/build/widgets/form/Wheel.scss +152 -0
- package/build/widgets/form/index.scss +24 -0
- package/build/widgets/form/variables.scss +355 -0
- package/build/widgets/grid/Grid.scss +640 -0
- package/build/widgets/grid/Pagination.scss +115 -0
- package/build/widgets/grid/TreeNode.scss +90 -0
- package/build/widgets/grid/index.scss +4 -0
- package/build/widgets/grid/variables.scss +137 -0
- package/build/widgets/index.scss +16 -0
- package/build/widgets/nav/Link.scss +20 -0
- package/build/widgets/nav/Menu.scss +76 -0
- package/build/widgets/nav/Menu.variables.scss +25 -0
- package/build/widgets/nav/MenuItem.d.ts +1 -0
- package/build/widgets/nav/MenuItem.scss +130 -0
- package/build/widgets/nav/Scroller.scss +148 -0
- package/build/widgets/nav/Tab.scss +82 -0
- package/build/widgets/nav/Tab.variables.scss +84 -0
- package/build/widgets/nav/cover.scss +22 -0
- package/build/widgets/nav/index.scss +6 -0
- package/build/widgets/nav/variables.scss +27 -0
- package/build/widgets/overlay/Dropdown.scss +186 -0
- package/build/widgets/overlay/Overlay.scss +68 -0
- package/build/widgets/overlay/Toast.scss +164 -0
- package/build/widgets/overlay/Tooltip.scss +177 -0
- package/build/widgets/overlay/Window.scss +129 -0
- package/build/widgets/overlay/Window.variables.scss +62 -0
- package/build/widgets/overlay/captureMouse.scss +13 -0
- package/build/widgets/overlay/index.scss +15 -0
- package/build/widgets/overlay/variables.scss +85 -0
- package/build/widgets/variables.scss +146 -0
- package/build.js +4 -0
- package/dist/charts.js +1 -0
- package/dist/manifest.js +876 -770
- package/package.json +4 -2
- package/src/charts/LineGraph.tsx +14 -0
- package/src/jsx-runtime.ts +8 -5
- package/src/util/addEventListenerWithOptions.ts +41 -41
- package/src/widgets/nav/MenuItem.tsx +1 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// FUNCTIONS
|
|
2
|
+
@import "util/scss/index";
|
|
3
|
+
|
|
4
|
+
// SCREEN SIZE
|
|
5
|
+
$cx-screen-size-small: 400px !default;
|
|
6
|
+
$cx-screen-size-medium: 800px !default;
|
|
7
|
+
$cx-screen-size-large: 1300px !default;
|
|
8
|
+
$cx-screen-size-extra-large: 1800px !default;
|
|
9
|
+
|
|
10
|
+
//
|
|
11
|
+
// BESM
|
|
12
|
+
//
|
|
13
|
+
// B - block - top level HTML element
|
|
14
|
+
// E - element - part of the component (block)
|
|
15
|
+
// S - state - indicator of the component state which affects the appearance
|
|
16
|
+
// M - mod - user supplied instruction which overrides default appearance
|
|
17
|
+
//
|
|
18
|
+
|
|
19
|
+
$cx-besm: (
|
|
20
|
+
block: "cxb-",
|
|
21
|
+
element: "cxe-",
|
|
22
|
+
state: "cxs-",
|
|
23
|
+
mod: "cxm-"
|
|
24
|
+
) !default;
|
|
25
|
+
|
|
26
|
+
//
|
|
27
|
+
// Boxes
|
|
28
|
+
// -----
|
|
29
|
+
//
|
|
30
|
+
// Boxes are inline-block elements which are likely to appear in the same row, such as buttons and form elements.
|
|
31
|
+
// These elements should have the same height in order to avoid problems when put together in a toolbar
|
|
32
|
+
// or a complex form.
|
|
33
|
+
//
|
|
34
|
+
// To ensure the height consistency, all box models should use the same line-height, top/bottom padding and border-width;
|
|
35
|
+
//
|
|
36
|
+
// For elements which do not have a natural border, such as checkboxes, radios and buttons,
|
|
37
|
+
// border-color should be set to transparent.
|
|
38
|
+
//
|
|
39
|
+
// box height = line-height + padding-top + padding-bottom + border-width-top + border-width-bottom
|
|
40
|
+
//
|
|
41
|
+
// Some browsers do not respect the line-height being set and therefore explicit height value is
|
|
42
|
+
// calculated and set on all box elements.
|
|
43
|
+
//
|
|
44
|
+
// Hint: Use em units to make the box height grow with the font-size, but note that the elements
|
|
45
|
+
// will not be aligned in case of pixel boundaries and icons may appear blurry in some desktop browsers.
|
|
46
|
+
//
|
|
47
|
+
|
|
48
|
+
$cx-default-box-font-size: 13px !default;
|
|
49
|
+
$cx-default-box-font-family: inherit !default;
|
|
50
|
+
$cx-default-box-line-height: 16px !default;
|
|
51
|
+
$cx-default-box-padding: 5px !default; //should not be a list
|
|
52
|
+
$cx-default-box-border-width: 1px !default;
|
|
53
|
+
|
|
54
|
+
// Borders
|
|
55
|
+
// -------
|
|
56
|
+
|
|
57
|
+
$cx-default-border-color: #bfbfbf !default;
|
|
58
|
+
$cx-default-border-radius: 0 !default;
|
|
59
|
+
$cx-default-border-width: 1px !default;
|
|
60
|
+
|
|
61
|
+
// Padding
|
|
62
|
+
// -------
|
|
63
|
+
|
|
64
|
+
$cx-default-container-padding: 5px !default;
|
|
65
|
+
|
|
66
|
+
// Empty Texts
|
|
67
|
+
// ------------
|
|
68
|
+
//
|
|
69
|
+
// Displayed instead of whitespace
|
|
70
|
+
|
|
71
|
+
$cx-default-empty-text-color: rgba(128, 128, 128, 0.7) !default;
|
|
72
|
+
|
|
73
|
+
$cx-empty-text: (
|
|
74
|
+
color: $cx-default-empty-text-color
|
|
75
|
+
) !default;
|
|
76
|
+
|
|
77
|
+
//Icons
|
|
78
|
+
$cx-default-icon-size: 16px !default;
|
|
79
|
+
|
|
80
|
+
//Selection
|
|
81
|
+
$cx-selection-background-color: rgba(135, 206, 250, 0.6);
|
|
82
|
+
|
|
83
|
+
//List
|
|
84
|
+
$cx-default-list-item-padding: 5px 10px !default;
|
|
85
|
+
|
|
86
|
+
//Lists
|
|
87
|
+
$cx-list: (
|
|
88
|
+
default: (
|
|
89
|
+
-webkit-overflow-scrolling: touch
|
|
90
|
+
),
|
|
91
|
+
hover: (),
|
|
92
|
+
focus: (
|
|
93
|
+
outline: none
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
$cx-list-item: (
|
|
98
|
+
default: (),
|
|
99
|
+
hover: (
|
|
100
|
+
background-color: rgba(128, 128, 128, 0.1),
|
|
101
|
+
outline: none,
|
|
102
|
+
cursor: pointer
|
|
103
|
+
),
|
|
104
|
+
cursor: (
|
|
105
|
+
background-color: rgba(123, 190, 255, 0.15),
|
|
106
|
+
outline: none
|
|
107
|
+
),
|
|
108
|
+
selected: (
|
|
109
|
+
background-color: rgba(123, 190, 255, 0.4)
|
|
110
|
+
),
|
|
111
|
+
selected-hover: (
|
|
112
|
+
background-color: rgba(123, 190, 255, 0.2)
|
|
113
|
+
),
|
|
114
|
+
selected-cursor: (
|
|
115
|
+
background-color: rgba(123, 190, 255, 0.3),
|
|
116
|
+
outline: none
|
|
117
|
+
),
|
|
118
|
+
disabled: (
|
|
119
|
+
cursor: default,
|
|
120
|
+
opacity: 0.5,
|
|
121
|
+
pointer-events: none
|
|
122
|
+
),
|
|
123
|
+
active: (
|
|
124
|
+
//causes flickering
|
|
125
|
+
//background: rgba(123,190,255, 0.7)
|
|
126
|
+
)
|
|
127
|
+
) !default;
|
|
128
|
+
|
|
129
|
+
$cx-default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
|
|
130
|
+
"Helvetica Neue", Arial, sans-serif !default;
|
|
131
|
+
|
|
132
|
+
$cx-default-font-size: 14px !default;
|
|
133
|
+
$cx-default-color: #373a3c !default;
|
|
134
|
+
|
|
135
|
+
$cx-element-style-map: (
|
|
136
|
+
html: (
|
|
137
|
+
font-family: $cx-default-font-family,
|
|
138
|
+
font-size: $cx-default-font-size,
|
|
139
|
+
height: 100%,
|
|
140
|
+
background-color: #eee
|
|
141
|
+
),
|
|
142
|
+
body: (
|
|
143
|
+
margin: 0,
|
|
144
|
+
padding: 0,
|
|
145
|
+
height: 100%,
|
|
146
|
+
color: $cx-default-color
|
|
147
|
+
),
|
|
148
|
+
h1: (
|
|
149
|
+
font-size: 2rem,
|
|
150
|
+
line-height: 1.1,
|
|
151
|
+
margin: 0 0 0.75rem 0,
|
|
152
|
+
font-weight: 500
|
|
153
|
+
),
|
|
154
|
+
h2: (
|
|
155
|
+
font-size: 1.75rem,
|
|
156
|
+
line-height: 1.1,
|
|
157
|
+
margin: 0 0 0.5rem 0,
|
|
158
|
+
font-weight: 500
|
|
159
|
+
),
|
|
160
|
+
h3: (
|
|
161
|
+
font-size: 1.5rem,
|
|
162
|
+
line-height: 1.1,
|
|
163
|
+
margin: 0 0 0.5rem 0,
|
|
164
|
+
font-weight: 500
|
|
165
|
+
),
|
|
166
|
+
h4: (
|
|
167
|
+
font-size: 1.3rem,
|
|
168
|
+
line-height: 1.1,
|
|
169
|
+
margin: 0 0 0.5rem 0,
|
|
170
|
+
font-weight: 500
|
|
171
|
+
),
|
|
172
|
+
h5: (
|
|
173
|
+
font-size: 1.15rem,
|
|
174
|
+
line-height: 1.1,
|
|
175
|
+
margin: 0 0 0.5rem 0,
|
|
176
|
+
font-weight: 500
|
|
177
|
+
),
|
|
178
|
+
h6: (
|
|
179
|
+
font-size: 1rem,
|
|
180
|
+
line-height: 1.1,
|
|
181
|
+
margin: 0 0 0.5rem 0,
|
|
182
|
+
font-weight: 500
|
|
183
|
+
),
|
|
184
|
+
p: (
|
|
185
|
+
margin: 0 0 1rem 0
|
|
186
|
+
),
|
|
187
|
+
a: (
|
|
188
|
+
text-decoration: none,
|
|
189
|
+
color: #0275d8
|
|
190
|
+
),
|
|
191
|
+
"a:hover": (
|
|
192
|
+
text-decoration: underline
|
|
193
|
+
),
|
|
194
|
+
ul: (
|
|
195
|
+
margin: 0 0 1rem 0
|
|
196
|
+
),
|
|
197
|
+
ol: (
|
|
198
|
+
margin: 0 0 1rem 0
|
|
199
|
+
),
|
|
200
|
+
th: (
|
|
201
|
+
font-weight: 500
|
|
202
|
+
),
|
|
203
|
+
text: (
|
|
204
|
+
fill: currentColor,
|
|
205
|
+
stroke: none
|
|
206
|
+
),
|
|
207
|
+
table: (
|
|
208
|
+
font-size: inherit
|
|
209
|
+
)
|
|
210
|
+
) !default;
|
|
211
|
+
|
|
212
|
+
$cx-default-cover-border-color: $cx-default-border-color !default;
|
|
213
|
+
$cx-default-cover-background-color: white !default;
|
|
214
|
+
|
|
215
|
+
@import "charts/variables";
|
|
216
|
+
@import "ui/variables";
|
|
217
|
+
@import "widgets/variables";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-button(
|
|
4
|
+
$name: "button",
|
|
5
|
+
$state-style-map: $cx-button-state-style-map,
|
|
6
|
+
$mods: $cx-button-mods,
|
|
7
|
+
$icon-size: $cx-default-icon-size,
|
|
8
|
+
$besm: $cx-besm
|
|
9
|
+
) {
|
|
10
|
+
$block: map.get($besm, block);
|
|
11
|
+
$element: map.get($besm, element);
|
|
12
|
+
$state: map.get($besm, state);
|
|
13
|
+
$mod: map.get($besm, mod);
|
|
14
|
+
|
|
15
|
+
.#{$block}#{$name} {
|
|
16
|
+
position: relative;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
|
|
20
|
+
$line-height: cx-get-state-rule($state-style-map, default, "line-height", 1.2em);
|
|
21
|
+
$padding: cx-get-state-rule($state-style-map, default, "padding", 0);
|
|
22
|
+
$border-width: cx-get-state-rule($state-style-map, default, "border-width", 1px);
|
|
23
|
+
|
|
24
|
+
height: cx-calc(
|
|
25
|
+
$line-height,
|
|
26
|
+
cx-top($padding),
|
|
27
|
+
cx-bottom($padding),
|
|
28
|
+
cx-top($border-width),
|
|
29
|
+
cx-bottom($border-width)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
@include cx-add-state-rules($state-style-map, "default");
|
|
33
|
+
|
|
34
|
+
&::-moz-focus-inner {
|
|
35
|
+
border: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
margin: -1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
@include cx-add-state-rules($state-style-map, "hover");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
@include cx-add-state-rules($state-style-map, "focus");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover:focus {
|
|
49
|
+
@include cx-add-state-rules($state-style-map, "hover-focus");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:active,
|
|
53
|
+
&.#{$state}pressed {
|
|
54
|
+
@include cx-add-state-rules($state-style-map, "active");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[disabled],
|
|
58
|
+
&.#{$state}disabled {
|
|
59
|
+
@include cx-add-state-rules($state-style-map, "disabled");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@each $modname, $config in $mods {
|
|
63
|
+
&.#{$mod}#{$modname} {
|
|
64
|
+
@include cx-add-state-rules($config, default);
|
|
65
|
+
|
|
66
|
+
&[disabled],
|
|
67
|
+
&.#{$state}disabled {
|
|
68
|
+
@include cx-add-state-rules($config, disabled);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
@include cx-add-state-rules($config, hover);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:focus {
|
|
76
|
+
@include cx-add-state-rules($config, focus);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:active,
|
|
80
|
+
&.#{$state}pressed {
|
|
81
|
+
@include cx-add-state-rules($config, active);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
$padding: cx-get-state-rule($state-style-map, default, padding);
|
|
88
|
+
|
|
89
|
+
.#{$element}#{$name}-icon {
|
|
90
|
+
display: inline-block;
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 50%;
|
|
93
|
+
left: cx-left($padding) * 0.5;
|
|
94
|
+
margin-top: -$icon-size * 0.5;
|
|
95
|
+
height: $icon-size;
|
|
96
|
+
width: $icon-size;
|
|
97
|
+
line-height: $icon-size;
|
|
98
|
+
text-align: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.#{$element}#{$name}-baseline {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
width: 1px;
|
|
104
|
+
margin-left: -1px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.#{$block}#{$name}.#{$state}icon {
|
|
108
|
+
padding: cx-top($padding) cx-right($padding) cx-bottom($padding) cx-calc(cx-left($padding), $icon-size);
|
|
109
|
+
|
|
110
|
+
&.#{$state}empty {
|
|
111
|
+
padding: cx-top($padding) cx-right($padding) * 0.5 cx-bottom($padding)
|
|
112
|
+
cx-calc(cx-left($padding) * 0.5, $icon-size);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@if (cx-should-include("cx/widgets/Button")) {
|
|
118
|
+
@include cx-button;
|
|
119
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
|
|
4
|
+
$cx-default-button-font-family: $cx-default-box-font-family !default;
|
|
5
|
+
$cx-default-button-font-size: $cx-default-box-font-size !default;
|
|
6
|
+
$cx-default-button-font-weight: normal !default;
|
|
7
|
+
$cx-default-button-padding: cx-top($cx-default-box-padding) 2 * cx-right($cx-default-box-padding)
|
|
8
|
+
cx-bottom($cx-default-box-padding) 2 * cx-left($cx-default-box-padding) !default;
|
|
9
|
+
$cx-default-button-border-width: $cx-default-box-border-width !default;
|
|
10
|
+
$cx-default-button-line-height: $cx-default-box-line-height !default;
|
|
11
|
+
$cx-default-button-background-color: #eee !default;
|
|
12
|
+
$cx-default-button-border-color: #ccc !default;
|
|
13
|
+
$cx-default-button-border-radius: $cx-default-border-radius !default;
|
|
14
|
+
$cx-default-button-color: null !default;
|
|
15
|
+
$cx-default-button-box-shadow: inset 0 -2px rgba(128, 128, 128, 0.1) !default;
|
|
16
|
+
|
|
17
|
+
$cx-button-state-style-map: (
|
|
18
|
+
default: (
|
|
19
|
+
background-color: $cx-default-button-background-color,
|
|
20
|
+
box-shadow: $cx-default-button-box-shadow,
|
|
21
|
+
border-color: $cx-default-button-border-color,
|
|
22
|
+
border-width: $cx-default-button-border-width,
|
|
23
|
+
border-radius: $cx-default-button-border-radius,
|
|
24
|
+
border-style: solid,
|
|
25
|
+
user-select: none,
|
|
26
|
+
color: $cx-default-button-color,
|
|
27
|
+
font-family: $cx-default-button-font-family,
|
|
28
|
+
font-size: $cx-default-button-font-size,
|
|
29
|
+
font-weight: $cx-default-button-font-weight,
|
|
30
|
+
line-height: $cx-default-button-line-height,
|
|
31
|
+
padding: $cx-default-button-padding,
|
|
32
|
+
cursor: pointer,
|
|
33
|
+
-webkit-appearance: none,
|
|
34
|
+
-moz-appearance: none,
|
|
35
|
+
appearance: none,
|
|
36
|
+
white-space: nowrap,
|
|
37
|
+
text-decoration: none,
|
|
38
|
+
),
|
|
39
|
+
hover: (
|
|
40
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
|
|
41
|
+
text-decoration: none,
|
|
42
|
+
),
|
|
43
|
+
focus: (
|
|
44
|
+
outline: none,
|
|
45
|
+
box-shadow: 0 0 1px 1px rgba(77, 144, 254, 0.8),
|
|
46
|
+
),
|
|
47
|
+
hover-focus: (),
|
|
48
|
+
disabled: (
|
|
49
|
+
color: gray,
|
|
50
|
+
box-shadow: none,
|
|
51
|
+
pointer-events: none,
|
|
52
|
+
),
|
|
53
|
+
active: (
|
|
54
|
+
top: 1px,
|
|
55
|
+
box-shadow: none,
|
|
56
|
+
),
|
|
57
|
+
) !default;
|
|
58
|
+
|
|
59
|
+
$cx-button-mods: (
|
|
60
|
+
primary: (
|
|
61
|
+
default: (
|
|
62
|
+
background-color: #1f99f8,
|
|
63
|
+
border-color: #1e88e5,
|
|
64
|
+
color: white,
|
|
65
|
+
),
|
|
66
|
+
disabled: (
|
|
67
|
+
background-color: color.adjust(#1f99f8, $alpha: -0.5),
|
|
68
|
+
border-color: color.adjust(#1e88e5, $alpha: -0.9),
|
|
69
|
+
color: color.adjust(white, $alpha: -0.4),
|
|
70
|
+
),
|
|
71
|
+
hover: (
|
|
72
|
+
background-color: #1f99f8,
|
|
73
|
+
),
|
|
74
|
+
),
|
|
75
|
+
danger: (
|
|
76
|
+
default: (
|
|
77
|
+
background-color: #d32f2f,
|
|
78
|
+
border-color: #c62828,
|
|
79
|
+
color: white,
|
|
80
|
+
),
|
|
81
|
+
disabled: (
|
|
82
|
+
background-color: color.adjust(#d32f2f, $alpha: -0.4),
|
|
83
|
+
border-color: color.adjust(#c62828, $alpha: -0.9),
|
|
84
|
+
color: color.adjust(white, $alpha: -0.5),
|
|
85
|
+
),
|
|
86
|
+
hover: (
|
|
87
|
+
background-color: #d32f2f,
|
|
88
|
+
),
|
|
89
|
+
),
|
|
90
|
+
hollow: (
|
|
91
|
+
default: (
|
|
92
|
+
background-color: transparent,
|
|
93
|
+
border-color: transparent,
|
|
94
|
+
color: inherit,
|
|
95
|
+
box-shadow: none,
|
|
96
|
+
),
|
|
97
|
+
hover:
|
|
98
|
+
map.merge(
|
|
99
|
+
map.get($cx-list-item, hover),
|
|
100
|
+
(
|
|
101
|
+
box-shadow: none,
|
|
102
|
+
border-color: transparent,
|
|
103
|
+
)
|
|
104
|
+
),
|
|
105
|
+
focus:
|
|
106
|
+
map.merge(
|
|
107
|
+
map.get($cx-list-item, selected-cursor),
|
|
108
|
+
(
|
|
109
|
+
box-shadow: none,
|
|
110
|
+
border-color: transparent,
|
|
111
|
+
)
|
|
112
|
+
),
|
|
113
|
+
disabled: (
|
|
114
|
+
color: rgba(128, 128, 128, 0.5),
|
|
115
|
+
),
|
|
116
|
+
),
|
|
117
|
+
) !default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-cxcredit($name: "cxcredit", $besm: $cx-besm) {
|
|
4
|
+
$block: map.get($besm, block);
|
|
5
|
+
$element: map.get($besm, element);
|
|
6
|
+
$state: map.get($besm, state);
|
|
7
|
+
$mod: map.get($besm, mod);
|
|
8
|
+
|
|
9
|
+
.#{$block}#{$name} {
|
|
10
|
+
width: 50px;
|
|
11
|
+
height: 50px;
|
|
12
|
+
opacity: 0.5;
|
|
13
|
+
transition: opacity 0.3s ease-in-out;
|
|
14
|
+
background: rgba(255, 255, 255, 0.1);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
position: fixed;
|
|
17
|
+
bottom: 20px;
|
|
18
|
+
right: 20px;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.#{$mod}inline {
|
|
25
|
+
position: relative;
|
|
26
|
+
bottom: auto;
|
|
27
|
+
right: auto;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$element}#{$name}-icon {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@if (cx-should-include("cx/widgets/CxCredit")) {
|
|
38
|
+
@include cx-cxcredit();
|
|
39
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-flexbox-spacing($divider, $besm: $cx-besm) {
|
|
4
|
+
$state: map.get($besm, state);
|
|
5
|
+
@each $pad, $size in $cx-pad-size {
|
|
6
|
+
&.#{$state}#{$pad}-hspacing {
|
|
7
|
+
margin-left: cx-divide(-$size, $divider);
|
|
8
|
+
margin-right: cx-divide(-$size, $divider);
|
|
9
|
+
|
|
10
|
+
& > * {
|
|
11
|
+
margin-left: cx-divide($size, $divider);
|
|
12
|
+
margin-right: cx-divide($size, $divider);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.#{$state}#{$pad}-vspacing {
|
|
17
|
+
margin-top: cx-divide(-$size, $divider);
|
|
18
|
+
margin-bottom: cx-divide(-$size, $divider);
|
|
19
|
+
|
|
20
|
+
& > * {
|
|
21
|
+
margin-top: cx-divide($size, $divider);
|
|
22
|
+
margin-bottom: cx-divide($size, $divider);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin cx-flexbox($name: "flexbox", $besm: $cx-besm) {
|
|
29
|
+
$block: map.get($besm, block);
|
|
30
|
+
$element: map.get($besm, element);
|
|
31
|
+
$state: map.get($besm, state);
|
|
32
|
+
$mod: map.get($besm, mod);
|
|
33
|
+
|
|
34
|
+
.#{$block}#{$name} {
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
position: relative;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
|
|
40
|
+
&.#{$state}nested {
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
|
|
43
|
+
& > div {
|
|
44
|
+
overflow: auto;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@each $pad, $size in $cx-pad-size {
|
|
49
|
+
&.#{$state}#{$pad}-hpad {
|
|
50
|
+
padding-left: $size;
|
|
51
|
+
padding-right: $size;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.#{$state}#{$pad}-vpad {
|
|
55
|
+
padding-top: $size;
|
|
56
|
+
padding-bottom: $size;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.#{$element}#{$name}-flexbox {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
|
|
65
|
+
&.#{$state}column {
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.#{$state}row {
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.#{$state}row-reverse {
|
|
74
|
+
flex-direction: row-reverse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include cx-flexbox-spacing(2, $besm);
|
|
78
|
+
|
|
79
|
+
&.#{$state}align-center {
|
|
80
|
+
align-items: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.#{$state}align-start {
|
|
84
|
+
align-items: flex-start;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.#{$state}align-end {
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.#{$state}align-baseline {
|
|
92
|
+
align-items: baseline;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.#{$state}wrap {
|
|
96
|
+
flex-wrap: wrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.#{$state}justify-center {
|
|
100
|
+
justify-content: center;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.#{$state}justify-start {
|
|
104
|
+
justify-content: flex-start;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.#{$state}justify-end {
|
|
108
|
+
justify-content: flex-end;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.#{$state}justify-space-between {
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.#{$state}justify-space-around {
|
|
116
|
+
justify-content: space-around;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.#{$state}justify-space-evenly {
|
|
120
|
+
justify-content: space-evenly;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.#{$state}target-phone {
|
|
124
|
+
@media not screen and (min-width: $cx-screen-size-small) {
|
|
125
|
+
display: block;
|
|
126
|
+
@include cx-flexbox-spacing(1, $besm);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.#{$state}target-tablet {
|
|
131
|
+
@media not screen and (min-width: $cx-screen-size-medium) {
|
|
132
|
+
display: block;
|
|
133
|
+
@include cx-flexbox-spacing(1, $besm);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.#{$state}target-desktop {
|
|
138
|
+
@media not screen and (min-width: $cx-screen-size-large) {
|
|
139
|
+
display: block;
|
|
140
|
+
@include cx-flexbox-spacing(1, $besm);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@if (cx-should-include("cx/widgets/FlexBox")) {
|
|
147
|
+
@include cx-flexbox();
|
|
148
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cxb-heading($name: "heading", $besm: $cx-besm) {
|
|
4
|
+
$block: map.get($besm, block);
|
|
5
|
+
$element: map.get($besm, element);
|
|
6
|
+
$state: map.get($besm, state);
|
|
7
|
+
$mod: map.get($besm, mod);
|
|
8
|
+
|
|
9
|
+
.#{$block}#{$name} {
|
|
10
|
+
@include cx-add-rules($cx-caption-style-map);
|
|
11
|
+
|
|
12
|
+
&.#{$state}level-1 {
|
|
13
|
+
@include cx-add-state-rules($cx-caption-level-style-map, 1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.#{$state}level-2 {
|
|
17
|
+
@include cx-add-state-rules($cx-caption-level-style-map, 2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.#{$state}level-3 {
|
|
21
|
+
@include cx-add-state-rules($cx-caption-level-style-map, 3);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.#{$state}level-4 {
|
|
25
|
+
@include cx-add-state-rules($cx-caption-level-style-map, 4);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.#{$state}level-5 {
|
|
29
|
+
@include cx-add-state-rules($cx-caption-level-style-map, 5);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.#{$state}level-6 {
|
|
33
|
+
@include cx-add-state-rules($cx-caption-level-style-map, 6);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@if (cx-should-include("cx/widgets/Heading")) {
|
|
39
|
+
@include cxb-heading();
|
|
40
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cxb-highlightedsearchtext(
|
|
4
|
+
$name: "highlightedsearchtext",
|
|
5
|
+
$styles: $cx-highlightedsearchtext-style-map,
|
|
6
|
+
$besm: $cx-besm
|
|
7
|
+
) {
|
|
8
|
+
$block: map.get($besm, block);
|
|
9
|
+
$element: map.get($besm, element);
|
|
10
|
+
$state: map.get($besm, state);
|
|
11
|
+
$mod: map.get($besm, mod);
|
|
12
|
+
|
|
13
|
+
.#{$block}#{$name} {
|
|
14
|
+
@include cx-add-rules($styles);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@if (cx-should-include("cx/widgets/HighlightedSearchText")) {
|
|
19
|
+
@include cxb-highlightedsearchtext();
|
|
20
|
+
}
|