@rio-cloud/rio-uikit 0.15.1 → 0.16.0-beta-1
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/README.md +46 -3
- package/lib/components/actionBarItem/ActionBarItem.js +4 -4
- package/lib/components/actionBarItem/ActionBarItemPopoverContent.js +43 -0
- package/lib/components/actionBarItem/ActionBarOverlay.js +8 -3
- package/lib/components/applicationHeader/AppMenuDropdown.js +9 -13
- package/lib/components/applicationLayout/ApplicationLayout.js +2 -0
- package/lib/components/applicationLayout/ApplicationLayoutBody.js +5 -3
- package/lib/components/assetTree/AssetTree.js +1 -1
- package/lib/components/assetTree/Tree.js +2 -2
- package/lib/components/assetTree/TreeLeaf.js +9 -9
- package/lib/components/bottomSheet/BottomSheet.js +11 -7
- package/lib/components/carousel/Carousel.js +7 -426
- package/lib/components/checkbox/Checkbox.js +4 -4
- package/lib/components/datepicker/DatePicker.js +15 -6
- package/lib/components/dropdown/ButtonDropdown.js +8 -11
- package/lib/components/listMenu/ListMenu.js +40 -23
- package/lib/components/numberInput/NumberInput.js +6 -6
- package/lib/components/onboarding/OnboardingTip.js +9 -9
- package/lib/components/states/NotBookedState.js +2 -2
- package/lib/components/table/TableSettingsDialogFooter.js +1 -1
- package/lib/components/teaser/Teaser.js +1 -1
- package/lib/components/teaser/TeaserContainer.js +8 -8
- package/lib/components/tooltip/Tooltip.js +4 -4
- package/lib/es/DeviceUtils.d.ts +4 -2
- package/lib/es/deviceUtils.js +12 -0
- package/lib/hooks/useClipboard.js +2 -2
- package/lib/style/css/_exports/man-uikit.less +7 -5
- package/lib/style/css/_exports/rio-buyButton.less +30 -41
- package/lib/style/css/_exports/rio-uikit-core.less +105 -127
- package/lib/style/css/_exports/rio-uikit-print-utilities.less +6 -11
- package/lib/style/css/_exports/rio-uikit-responsive-utilities.less +6 -11
- package/lib/style/css/_exports/rio-uikit.less +5 -4
- package/lib/style/css/_exports/rio-website.less +35 -13
- package/lib/style/css/_exports/vw-uikit.less +10 -8
- package/lib/style/css/animations/_imports.less +9 -0
- package/lib/style/css/animations/collapse.less +16 -0
- package/lib/style/css/animations/fade.less +28 -0
- package/lib/style/css/animations/pinging.less +7 -0
- package/lib/style/css/animations/rotate.less +52 -0
- package/lib/style/css/animations/scale.less +35 -0
- package/lib/style/css/animations/slide.less +39 -0
- package/lib/style/css/animations/spinning.less +4 -0
- package/lib/style/css/animations/transition.less +129 -0
- package/lib/style/css/animations/translate.less +28 -0
- package/lib/style/css/components/Activity.less +93 -0
- package/lib/style/css/components/ApplicationHeader.less +438 -0
- package/lib/style/css/components/ApplicationLayout.less +236 -0
- package/lib/style/css/components/AssetTree.less +443 -0
- package/lib/style/css/components/AutoSuggest.less +22 -0
- package/lib/style/css/components/BottomSheet.less +14 -0
- package/lib/style/css/components/Carousel.less +212 -0
- package/lib/style/css/components/Checkbox.less +224 -0
- package/lib/style/css/components/ClearableInput.less +115 -0
- package/lib/style/css/components/Counter.less +142 -0
- package/lib/style/css/components/DataTabs.less +100 -0
- package/lib/style/css/components/DatePicker.less +391 -0
- package/lib/style/css/components/Dialog.less +482 -0
- package/lib/style/css/components/Dropdown.less +186 -0
- package/lib/style/css/components/Expander.less +196 -0
- package/lib/style/css/components/FilePicker.less +8 -0
- package/lib/style/css/components/ListMenu.less +77 -0
- package/lib/style/css/components/MapHere.less +91 -0
- package/lib/style/css/components/MapMarker.less +347 -0
- package/lib/style/css/components/MapSettings.less +140 -0
- package/lib/style/css/components/NoData.less +8 -0
- package/lib/style/css/components/Notification.less +234 -0
- package/lib/style/css/components/RadioButton.less +173 -0
- package/lib/style/css/components/Resizer.less +43 -0
- package/lib/style/css/components/Select.less +274 -0
- package/lib/style/css/components/Sidebar.less +157 -0
- package/lib/style/css/components/Slider.less +278 -0
- package/lib/style/css/components/Spinner.less +49 -0
- package/lib/style/css/components/StatsWidget.less +111 -0
- package/lib/style/css/components/SteppedProgressBar.less +323 -0
- package/lib/style/css/components/SupportMarker.less +34 -0
- package/lib/style/css/components/Switch.less +145 -0
- package/lib/style/css/components/TableSettingsDialog.less +96 -0
- package/lib/style/css/components/TableSortArrows.less +54 -0
- package/lib/style/css/components/Tag.less +246 -0
- package/lib/style/css/components/TagManager.less +4 -0
- package/lib/style/css/components/Teaser.less +12 -0
- package/lib/style/css/components/Timeline.less +69 -0
- package/lib/style/css/components/Tooltip.less +230 -0
- package/lib/style/css/design/alerts.less +55 -0
- package/lib/style/css/design/aspect-ratio.less +23 -0
- package/lib/style/css/design/badges.less +120 -0
- package/lib/style/css/design/blockquote.less +49 -0
- package/lib/style/css/design/border.less +192 -0
- package/lib/style/css/design/breadcrumbs.less +20 -0
- package/lib/style/css/design/button-groups.less +194 -0
- package/lib/style/css/design/buttons.less +540 -0
- package/lib/style/css/design/callouts.less +27 -0
- package/lib/style/css/design/caret.less +28 -0
- package/lib/style/css/design/close.less +12 -0
- package/lib/style/css/design/code.less +45 -0
- package/lib/style/css/design/colors.less +202 -0
- package/lib/style/css/design/cols.less +56 -0
- package/lib/style/css/design/container.less +29 -0
- package/lib/style/css/design/cursors.less +19 -0
- package/lib/style/css/design/custom.less +20 -0
- package/lib/style/css/design/ellipsis.less +46 -0
- package/lib/style/css/design/flexgrid.less +7 -0
- package/lib/style/css/design/fonts.less +318 -0
- package/lib/style/css/design/form-input-groups.less +245 -0
- package/lib/style/css/design/form-inputs.less +655 -0
- package/lib/style/css/design/iframe.less +80 -0
- package/lib/style/css/design/images.less +47 -0
- package/lib/style/css/design/labels.less +66 -0
- package/lib/style/css/design/list-group.less +95 -0
- package/lib/style/css/design/navs.less +254 -0
- package/lib/style/css/design/normalize.less +436 -0
- package/lib/style/css/design/opacity.less +26 -0
- package/lib/style/css/design/overflow.less +1 -0
- package/lib/style/css/design/pagination.less +161 -0
- package/lib/style/css/design/panels.less +105 -0
- package/lib/style/css/design/popovers.less +117 -0
- package/lib/style/css/design/position.less +16 -0
- package/lib/style/css/design/progress-bars.less +131 -0
- package/lib/style/css/design/responsive/_imports.less +68 -0
- package/lib/style/css/design/responsive/backgrounds.less +32 -0
- package/lib/style/css/design/responsive/display.less +9 -0
- package/lib/style/css/design/responsive/flexgrid.less +75 -0
- package/lib/style/css/design/responsive/floating.less +4 -0
- package/lib/style/css/design/responsive/gap.less +41 -0
- package/lib/style/css/design/responsive/hyphens.less +14 -0
- package/lib/style/css/design/responsive/margin.less +127 -0
- package/lib/style/css/design/responsive/overflow.less +16 -0
- package/lib/style/css/design/responsive/padding.less +71 -0
- package/lib/style/css/design/responsive/position.less +102 -0
- package/lib/style/css/design/responsive/sizing.less +115 -0
- package/lib/style/css/design/responsive/text.less +71 -0
- package/lib/style/css/design/responsive/visibility.less +115 -0
- package/lib/style/css/design/responsive-embed.less +31 -0
- package/lib/style/css/design/responsive-video.less +22 -0
- package/lib/style/css/design/rioglyph.less +24 -0
- package/lib/style/css/design/rounded.less +44 -0
- package/lib/style/css/design/shadows.less +65 -0
- package/lib/style/css/design/tables.less +976 -0
- package/lib/style/css/design/text.less +201 -0
- package/lib/style/css/design/theme.less +200 -0
- package/lib/style/css/design/thumbnails.less +29 -0
- package/lib/style/css/design/transition.less +33 -0
- package/lib/style/css/design/type.less +159 -0
- package/lib/style/css/design/utilities.less +75 -0
- package/lib/style/css/design/visibilty.less +38 -0
- package/lib/style/css/design/wells.less +17 -0
- package/lib/style/css/design/z-index.less +21 -0
- package/lib/style/css/mapping/breakpoint-map.less +44 -0
- package/lib/style/css/mapping/color-map.less +200 -0
- package/lib/style/css/mapping/cols-map.less +15 -0
- package/lib/style/css/mapping/numbers-map.less +16 -0
- package/lib/style/css/mapping/positions-map.less +21 -0
- package/lib/style/css/mapping/sizes-map.less +129 -0
- package/lib/style/css/mapping/spacings-map.less +28 -0
- package/lib/style/css/mixins/_mixins.less +13 -0
- package/lib/style/css/mixins/alerts.less +13 -0
- package/lib/style/css/mixins/border-radius.less +16 -0
- package/lib/style/css/mixins/buttons.less +117 -0
- package/lib/style/css/mixins/clearfix.less +9 -0
- package/lib/style/css/mixins/cols.less +59 -0
- package/lib/style/css/mixins/forms.less +61 -0
- package/lib/style/css/mixins/panels.less +27 -0
- package/lib/style/css/mixins/placeholder.less +17 -0
- package/lib/style/css/mixins/reset.less +27 -0
- package/lib/style/css/mixins/sizings.less +21 -0
- package/lib/style/css/mixins/spinner.less +30 -0
- package/lib/style/css/mixins/table.less +26 -0
- package/lib/style/css/mixins/tabs.less +4 -0
- package/lib/style/css/mixins/text.less +5 -0
- package/lib/style/css/print/print.less +1 -4
- package/lib/style/css/rio-theme/alerts.less +23 -61
- package/lib/style/css/rio-theme/badges.less +16 -28
- package/lib/style/css/rio-theme/blockquote.less +14 -97
- package/lib/style/css/rio-theme/mixins/alerts.less +13 -1
- package/lib/style/css/shared/colors.json +1 -1
- package/lib/style/css/shared/colors.less +11 -8
- package/lib/style/css/shared/text.less +6 -5
- package/lib/style/css/utils/responsive/grid.less +15 -6
- package/lib/style/css/variables.less +179 -0
- package/lib/style/fonts/rioglyph/rioglyph.less +1 -11
- package/lib/types.ts +38 -57
- package/lib/utils/buttonEffect.js +3 -1
- package/lib/utils/deviceUtils.js +40 -3
- package/lib/utils/init.js +22 -7
- package/lib/version.json +1 -1
- package/package.json +46 -30
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
@dim-checkbox-size-default: 16px;
|
|
2
|
+
@dim-checkbox-size-lg: 20px;
|
|
3
|
+
@color-disabled-inverted: darken(@gray-darker, 20%);
|
|
4
|
+
|
|
5
|
+
.checkbox {
|
|
6
|
+
color: @gray-darkest;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
font-size: @font-size-default;
|
|
9
|
+
margin-bottom: 0;
|
|
10
|
+
margin-top: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.checkbox + .checkbox {
|
|
14
|
+
margin-top: 0; // Overwrite BS default
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.checkbox > label,
|
|
18
|
+
.checkbox label {
|
|
19
|
+
padding-left: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.checkbox-inline {
|
|
23
|
+
padding-left: 0;
|
|
24
|
+
padding-right: 0;
|
|
25
|
+
margin-right: 15px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.checkbox,
|
|
29
|
+
.checkbox-inline {
|
|
30
|
+
// focused state
|
|
31
|
+
&:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
|
|
34
|
+
// use tag name for being stronger than the checked style and to avoid using important
|
|
35
|
+
input[type='checkbox'] + .checkbox-text:before {
|
|
36
|
+
border-color: @gray-darker;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input[type='checkbox'] {
|
|
41
|
+
&:not(:required) {
|
|
42
|
+
display: none;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
&:required {
|
|
46
|
+
margin-left: 1px;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
+ .checkbox-text,
|
|
52
|
+
+ .checkbox-text-wrapper > .checkbox-text {
|
|
53
|
+
align-items: flex-start;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
display: flex;
|
|
56
|
+
font-weight: @font-normal;
|
|
57
|
+
column-gap: 7px;
|
|
58
|
+
text-align: left;
|
|
59
|
+
|
|
60
|
+
.table-checkbox & {
|
|
61
|
+
justify-content: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// FALLBACK
|
|
65
|
+
.css-no-gap & {
|
|
66
|
+
> span {
|
|
67
|
+
margin-left: 5px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:before,
|
|
72
|
+
&:after {
|
|
73
|
+
-webkit-font-smoothing: antialiased;
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
border-radius: @border-radius-sm;
|
|
76
|
+
border: 1px solid @gray;
|
|
77
|
+
display: block;
|
|
78
|
+
font-family: @icon-font-name;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: @font-normal;
|
|
81
|
+
height: @dim-checkbox-size-default;
|
|
82
|
+
margin-top: 2px;
|
|
83
|
+
min-height: @dim-checkbox-size-default;
|
|
84
|
+
min-width: @dim-checkbox-size-default;
|
|
85
|
+
position: relative;
|
|
86
|
+
width: @dim-checkbox-size-default;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:before {
|
|
90
|
+
content: '';
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
> span {
|
|
94
|
+
flex: 1 1;
|
|
95
|
+
|
|
96
|
+
&:empty {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
+ .checkbox-icon {
|
|
103
|
+
align-items: center;
|
|
104
|
+
display: flex;
|
|
105
|
+
|
|
106
|
+
&.label-vertical {
|
|
107
|
+
align-items: center;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
hyphens: auto;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-align: center;
|
|
112
|
+
word-break: break-word;
|
|
113
|
+
word-wrap: break-word;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.label-horizontal {
|
|
117
|
+
.checkbox-label {
|
|
118
|
+
margin-left: 5px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.rioglyph {
|
|
123
|
+
color: @gray;
|
|
124
|
+
display: block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.checkbox-label {
|
|
128
|
+
color: @gray-darkest;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Define style for 'checked' state
|
|
133
|
+
&:checked {
|
|
134
|
+
+ .checkbox-text,
|
|
135
|
+
+ .checkbox-text-wrapper > .checkbox-text {
|
|
136
|
+
&:before {
|
|
137
|
+
.rioglyph();
|
|
138
|
+
content: @rioglyph-ok;
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
font-size: 88%;
|
|
143
|
+
color: @color-white;
|
|
144
|
+
border-color: @brand-primary;
|
|
145
|
+
background-color: @brand-primary;
|
|
146
|
+
animation: checkbox-tick 100ms ease-in;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
+ .checkbox-icon {
|
|
151
|
+
.rioglyph {
|
|
152
|
+
animation: checkbox-tick 100ms ease-in;
|
|
153
|
+
color: @brand-primary;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.no-animation + .checkbox-text:before {
|
|
159
|
+
animation: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Define style for 'diabled' state
|
|
163
|
+
&:disabled + .checkbox-text {
|
|
164
|
+
//color: @gray-light;
|
|
165
|
+
opacity: 0.5;
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
|
|
168
|
+
&:before {
|
|
169
|
+
border-color: @gray-light;
|
|
170
|
+
background-color: @gray-light;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// indeterminate state is used in combination with other checkboxes
|
|
175
|
+
// where they have different selection state
|
|
176
|
+
&:indeterminate + .checkbox-text:before {
|
|
177
|
+
.rioglyph();
|
|
178
|
+
content: @rioglyph-minus-light;
|
|
179
|
+
color: @brand-primary;
|
|
180
|
+
border-color: @brand-primary;
|
|
181
|
+
background-color: @color-white;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// Define colors for error case
|
|
185
|
+
&.error + .checkbox-text,
|
|
186
|
+
&:required:focus:not(:checked) + .checkbox-text {
|
|
187
|
+
&:before {
|
|
188
|
+
border-color: @brand-danger;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Define larger size for checkbox only
|
|
193
|
+
&.large,
|
|
194
|
+
&.input-lg {
|
|
195
|
+
+ .checkbox-text:before {
|
|
196
|
+
font-size: 16px;
|
|
197
|
+
height: @dim-checkbox-size-lg;
|
|
198
|
+
margin-top: 0;
|
|
199
|
+
min-height: @dim-checkbox-size-lg;
|
|
200
|
+
min-width: @dim-checkbox-size-lg;
|
|
201
|
+
width: @dim-checkbox-size-lg;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.checkbox-right > .checkbox-text {
|
|
208
|
+
flex-direction: row-reverse;
|
|
209
|
+
> span {
|
|
210
|
+
text-align: right;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@keyframes checkbox-tick {
|
|
215
|
+
0% {
|
|
216
|
+
transform: scale(0);
|
|
217
|
+
}
|
|
218
|
+
90% {
|
|
219
|
+
transform: scale(1.2);
|
|
220
|
+
}
|
|
221
|
+
100% {
|
|
222
|
+
transform: scale(1);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.ClearableInput {
|
|
2
|
+
flex: 1 0 auto;
|
|
3
|
+
transition: all 0.2s ease-in-out;
|
|
4
|
+
|
|
5
|
+
// > .withClearButton {
|
|
6
|
+
// padding-right: 30px;
|
|
7
|
+
// }
|
|
8
|
+
|
|
9
|
+
> .clearButton {
|
|
10
|
+
.inputClearButton();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> .form-control {
|
|
14
|
+
&.disabled,
|
|
15
|
+
&[disabled] {
|
|
16
|
+
+ .clearButton {
|
|
17
|
+
display: none
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> .form-control {
|
|
23
|
+
border-radius: @border-radius-default;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.Autosuggest & {
|
|
27
|
+
border-radius: @border-radius-default 0 0 @border-radius-default;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// disable ms default clear button
|
|
31
|
+
::-ms-clear {
|
|
32
|
+
display: none;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Case for having addons
|
|
39
|
+
.input-group {
|
|
40
|
+
.input-group-addon + .ClearableInput {
|
|
41
|
+
> .form-control {
|
|
42
|
+
padding-left: 30px;
|
|
43
|
+
|
|
44
|
+
.form-group-lg & {
|
|
45
|
+
padding-left: 48px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.ClearableInput {
|
|
51
|
+
+ .input-group-addon {
|
|
52
|
+
padding-left: @padding-default-horizontal;
|
|
53
|
+
z-index: 3;
|
|
54
|
+
|
|
55
|
+
.form-group-lg & {
|
|
56
|
+
padding-left: @padding-lg-horizontal;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> .ClearableInput:not(:last-child) > .form-control {
|
|
62
|
+
border-right: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Case for having feedback-icons
|
|
67
|
+
.form-group.has-feedback {
|
|
68
|
+
.ClearableInput {
|
|
69
|
+
> .form-control {
|
|
70
|
+
padding-right: 52px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.clearButton {
|
|
74
|
+
right: 28px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ClearableInput + .form-control-feedback {
|
|
79
|
+
z-index: 3;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// The inputClearButton class is used for multiple inputs such as clearableInput, DateRangePicker...
|
|
84
|
+
.inputClearButton {
|
|
85
|
+
align-items: center;
|
|
86
|
+
background: @color-white;
|
|
87
|
+
border-radius: @border-radius-default;
|
|
88
|
+
bottom: 2px;
|
|
89
|
+
color: @gray;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: flex-start;
|
|
93
|
+
position: absolute;
|
|
94
|
+
right: 2px;
|
|
95
|
+
top: 2px;
|
|
96
|
+
transition: all 0.15s ease-in-out;
|
|
97
|
+
width: 20px;
|
|
98
|
+
z-index: 3;
|
|
99
|
+
|
|
100
|
+
@duration: 0.2s;
|
|
101
|
+
animation: fadeInAnimation @duration;
|
|
102
|
+
|
|
103
|
+
@keyframes fadeInAnimation {
|
|
104
|
+
from { opacity: 0 }
|
|
105
|
+
to { opacity: 1 }
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
color: darken(@gray, 20%);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
> .clearButtonIcon {
|
|
113
|
+
font-size: 16px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
.counter {
|
|
2
|
+
counter-reset: rio-counter;
|
|
3
|
+
|
|
4
|
+
@counterSizeSmall: 30px;
|
|
5
|
+
@counterSizeNormal: 40px;
|
|
6
|
+
@counterSizeLarge: 50px;
|
|
7
|
+
|
|
8
|
+
> * {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex: 1 0 auto;
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
&:before {
|
|
15
|
+
content: counter(rio-counter);
|
|
16
|
+
counter-increment: rio-counter;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
text-align: center;
|
|
21
|
+
border-style: solid;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[data-count]:before {
|
|
28
|
+
content: attr(data-count);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.size-small {
|
|
33
|
+
> * {
|
|
34
|
+
padding-left: @counterSizeSmall * 1.25;
|
|
35
|
+
margin-bottom: @counterSizeSmall * 0.5;
|
|
36
|
+
min-height: @counterSizeSmall;
|
|
37
|
+
|
|
38
|
+
&:before {
|
|
39
|
+
font-size: @counterSizeSmall * 0.5;
|
|
40
|
+
line-height: @counterSizeSmall * 0.5;
|
|
41
|
+
width: @counterSizeSmall;
|
|
42
|
+
height: @counterSizeSmall;
|
|
43
|
+
border-width: 2px;
|
|
44
|
+
border-radius: @counterSizeSmall;
|
|
45
|
+
margin-right: @counterSizeSmall * 0.5;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:not([class*="size-"]) {
|
|
51
|
+
> * {
|
|
52
|
+
padding-left: @counterSizeNormal * 1.25;
|
|
53
|
+
margin-bottom: @counterSizeNormal * 0.5;
|
|
54
|
+
min-height: @counterSizeNormal;
|
|
55
|
+
|
|
56
|
+
&:before {
|
|
57
|
+
font-size: @counterSizeNormal * 0.5;
|
|
58
|
+
line-height: @counterSizeNormal * 0.5;
|
|
59
|
+
width: @counterSizeNormal;
|
|
60
|
+
height: @counterSizeNormal;
|
|
61
|
+
border-width: 2px;
|
|
62
|
+
border-radius: @counterSizeNormal;
|
|
63
|
+
margin-right: @counterSizeNormal * 0.5;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.size-large {
|
|
69
|
+
> * {
|
|
70
|
+
padding-left: @counterSizeLarge * 1.25;
|
|
71
|
+
margin-bottom: @counterSizeLarge * 0.5;
|
|
72
|
+
min-height: @counterSizeLarge;
|
|
73
|
+
|
|
74
|
+
&:before {
|
|
75
|
+
font-size: @counterSizeLarge * 0.5;
|
|
76
|
+
line-height: @counterSizeLarge * 0.5;
|
|
77
|
+
width: @counterSizeLarge;
|
|
78
|
+
height: @counterSizeLarge;
|
|
79
|
+
border-width: 2px;
|
|
80
|
+
border-radius: @counterSizeLarge;
|
|
81
|
+
margin-right: @counterSizeLarge * 0.5;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:not([class*="color-"]),
|
|
87
|
+
&.color-gray {
|
|
88
|
+
> * {
|
|
89
|
+
&:before {
|
|
90
|
+
color: @gray;
|
|
91
|
+
border-color: @gray;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
&.filled {
|
|
95
|
+
> * {
|
|
96
|
+
&:before {
|
|
97
|
+
background-color: @gray;
|
|
98
|
+
border: none;
|
|
99
|
+
color: @color-white;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.color-highlight, // backward compatibility
|
|
106
|
+
&.color-primary {
|
|
107
|
+
> * {
|
|
108
|
+
&:before {
|
|
109
|
+
color: @brand-primary;
|
|
110
|
+
border-color: @brand-primary;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
&.filled {
|
|
114
|
+
> * {
|
|
115
|
+
&:before {
|
|
116
|
+
background-color: @brand-primary;
|
|
117
|
+
border: none;
|
|
118
|
+
color: @color-white;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.color-onboarding, // backward compatibility
|
|
125
|
+
&.color-secondary {
|
|
126
|
+
> * {
|
|
127
|
+
&:before {
|
|
128
|
+
color: @brand-secondary;
|
|
129
|
+
border-color: @brand-secondary;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
&.filled {
|
|
133
|
+
> * {
|
|
134
|
+
&:before {
|
|
135
|
+
background-color: @brand-secondary;
|
|
136
|
+
border: none;
|
|
137
|
+
color: @color-white;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@dim-dataTabs-arrow: 10px;
|
|
2
|
+
|
|
3
|
+
.DataTabsContainer {
|
|
4
|
+
.expander-panel & {
|
|
5
|
+
padding-top: 1px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&.DataTab-bordered {
|
|
9
|
+
border: 1px solid @nav-tabs-border-color;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// vertical
|
|
13
|
+
&.DataTabs-vertical {
|
|
14
|
+
display: flex;
|
|
15
|
+
|
|
16
|
+
.DataTabsWrapper {
|
|
17
|
+
width: 200px;
|
|
18
|
+
|
|
19
|
+
.DataTabs {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
margin-bottom: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
+ * {
|
|
25
|
+
flex: 1 1 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.DataTabsWrapper {
|
|
32
|
+
background: @color-white;
|
|
33
|
+
overflow-x: auto;
|
|
34
|
+
overflow-y: hidden;
|
|
35
|
+
padding-bottom: 8px;
|
|
36
|
+
|
|
37
|
+
// vertical
|
|
38
|
+
.DataTabs-vertical & {
|
|
39
|
+
padding-bottom: 0;
|
|
40
|
+
padding-right: 8px;
|
|
41
|
+
overflow-x: hidden;
|
|
42
|
+
overflow-y: hidden;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.DataTabs {
|
|
47
|
+
.list-unstyled();
|
|
48
|
+
display: flex;
|
|
49
|
+
border-bottom: none;
|
|
50
|
+
|
|
51
|
+
.DataTab {
|
|
52
|
+
flex: 1 0;
|
|
53
|
+
padding: 15px;
|
|
54
|
+
position: relative;
|
|
55
|
+
transition: background 100ms ease-in-out ~"," box-shadow 100ms ease-in-out 100ms;
|
|
56
|
+
|
|
57
|
+
&:not(.active) {
|
|
58
|
+
box-shadow: inset 0px -1px 0px @nav-tabs-border-color;
|
|
59
|
+
transition: background 100ms ease-in-out;
|
|
60
|
+
|
|
61
|
+
// vertical
|
|
62
|
+
.DataTabs-vertical & {
|
|
63
|
+
box-shadow: inset 0px -1px 0px @nav-tabs-border-color ~"," inset -1px 0 0px @nav-tabs-border-color;
|
|
64
|
+
|
|
65
|
+
&:last-child {
|
|
66
|
+
margin-bottom: -1px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.arrow {
|
|
72
|
+
background-color: @color-highlight-dark;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
display: block;
|
|
75
|
+
height: @dim-dataTabs-arrow;
|
|
76
|
+
opacity: 0;
|
|
77
|
+
position: absolute;
|
|
78
|
+
transform: rotate(-45deg);
|
|
79
|
+
width: @dim-dataTabs-arrow;
|
|
80
|
+
|
|
81
|
+
&.in {
|
|
82
|
+
bottom: -(@dim-dataTabs-arrow / 2);
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transition: opacity 100ms ease-in 100ms ~"," bottom 100ms ease-in 100ms;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// vertical
|
|
88
|
+
.DataTabs-vertical & {
|
|
89
|
+
bottom: calc(~"50% - (@{dim-dataTabs-arrow} / 2)");
|
|
90
|
+
right: 0;
|
|
91
|
+
|
|
92
|
+
&.in {
|
|
93
|
+
right: -(@dim-dataTabs-arrow / 2);
|
|
94
|
+
bottom: calc(~"50% - (@{dim-dataTabs-arrow} / 2)");
|
|
95
|
+
transition: opacity 100ms ease-in 100ms ~"," right 100ms ease-in 100ms;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|