@rio-cloud/rio-uikit 0.15.1 → 0.16.0-beta-3
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/browserWarning/BrowserIcons.js +76 -0
- package/lib/components/browserWarning/BrowserWarning.js +4 -4
- package/lib/components/browserWarning/BrowserWarningMessageDE.js +20 -22
- package/lib/components/browserWarning/BrowserWarningMessageEN.js +20 -22
- 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/dialog/ConfirmationDialog.js +8 -6
- package/lib/components/dialog/SaveDialog.js +3 -1
- package/lib/components/dropdown/ButtonDropdown.js +8 -11
- package/lib/components/filepicker/FilePicker.js +65 -96
- package/lib/components/listMenu/ListMenu.js +40 -23
- package/lib/components/map/components/features/old/MapSettings.js +5 -5
- package/lib/components/map/components/features/old/settings/MapClusterSettings.js +13 -13
- package/lib/components/map/components/features/old/settings/MapLayerSettings.js +15 -15
- package/lib/components/map/components/features/old/settings/MapTypeSettings.js +20 -20
- package/lib/components/map/components/features/settings/ZoomButtons.js +10 -10
- package/lib/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +20 -18
- package/lib/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -8
- package/lib/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +42 -32
- package/lib/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +8 -8
- package/lib/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +8 -8
- package/lib/components/map/components/features/settings/buttons/MapLockMarkerButton.js +8 -8
- package/lib/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +8 -8
- package/lib/components/map/components/features/settings/items/MapLayerIncidentsItem.js +8 -6
- package/lib/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +8 -6
- package/lib/components/map/components/features/settings/items/MapLayerTrafficItem.js +8 -6
- package/lib/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +8 -8
- package/lib/components/map/icons/MapIcon.js +500 -0
- 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 +5 -5
- package/lib/es/DeviceUtils.d.ts +4 -2
- package/lib/es/deviceUtils.js +12 -0
- package/lib/es/useFullscreen.d.ts +4 -0
- package/lib/es/useFullscreen.js +15 -0
- package/lib/hooks/useClipboard.js +2 -2
- package/lib/hooks/useFullscreen.js +242 -0
- 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 +106 -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 +41 -15
- 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 +286 -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/TableToolbar.less +121 -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 +261 -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 +854 -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 +6 -11
- package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
- package/lib/types.ts +70 -59
- 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 +47 -31
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
@modal-outer-margin: 30px;
|
|
2
|
+
@modal-inner-padding: 20px;
|
|
3
|
+
@modal-title-padding: 15px;
|
|
4
|
+
@modal-content-bg: @color-white;
|
|
5
|
+
@modal-content-border-color: @gray-light;
|
|
6
|
+
@modal-backdrop-bg: @color-black;
|
|
7
|
+
@modal-header-border-color: @gray-lighter;
|
|
8
|
+
@modal-footer-border-color: @modal-header-border-color;
|
|
9
|
+
|
|
10
|
+
// Custom variables
|
|
11
|
+
@modal-sm: @screen-xs;
|
|
12
|
+
@modal-md: @screen-sm;
|
|
13
|
+
@modal-lg: @container-fluid-md;
|
|
14
|
+
@modal-xl: @container-fluid-lg;
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
&.modal-open {
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
|
|
20
|
+
// kills the body scrolling
|
|
21
|
+
.modal {
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.modal {
|
|
29
|
+
-webkit-overflow-scrolling: touch;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
cursor: default;
|
|
32
|
+
display: none;
|
|
33
|
+
left: 0;
|
|
34
|
+
outline: 0;
|
|
35
|
+
overflow: auto;
|
|
36
|
+
padding-left: 0 !important;
|
|
37
|
+
position: fixed;
|
|
38
|
+
right: 0;
|
|
39
|
+
text-align: left;
|
|
40
|
+
top: 0;
|
|
41
|
+
width: 100% !important;
|
|
42
|
+
z-index: @zindex-modal;
|
|
43
|
+
|
|
44
|
+
// When fading in the modal, animate it to slide down
|
|
45
|
+
&.fade .modal-dialog {
|
|
46
|
+
transform: translate(0, -25%);
|
|
47
|
+
transition: transform 0.3s ease-out;
|
|
48
|
+
}
|
|
49
|
+
&.in .modal-dialog {
|
|
50
|
+
transform: translate(0, 0)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.show {
|
|
54
|
+
&.media-dialog {
|
|
55
|
+
display: flex !important;
|
|
56
|
+
align-items: center;
|
|
57
|
+
|
|
58
|
+
.modal-dialog {
|
|
59
|
+
max-height: calc(~'100vh - (@{modal-outer-margin} * 2)'); // --vh fallback
|
|
60
|
+
max-height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 2)');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.modal-body {
|
|
64
|
+
.media-content {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
|
|
67
|
+
img {
|
|
68
|
+
display: block;
|
|
69
|
+
max-height: calc(~'100vh - (@{modal-outer-margin} * 7)'); // --vh fallback
|
|
70
|
+
max-height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 7)');
|
|
71
|
+
width: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (max-width: @screen-md) {
|
|
75
|
+
min-height: 100px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (min-width: @screen-md) {
|
|
79
|
+
min-height: 200px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.video-responsive {
|
|
83
|
+
&.video-responsive-16by9 {
|
|
84
|
+
padding-bottom: calc(~'100vh * 0.56'); // --vh fallback
|
|
85
|
+
padding-bottom: calc(~'var(--vh, 1vh) * 100 * 0.56');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.video-responsive-4by3 {
|
|
89
|
+
padding-bottom: calc(~'100vh * 0.75'); // --vh fallback
|
|
90
|
+
padding-bottom: calc(~'var(--vh, 1vh) * 100 * 0.75');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// because of overflow :after styling
|
|
96
|
+
&:after {
|
|
97
|
+
display: none !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.modal-footer:before {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (max-width: @screen-sm) {
|
|
106
|
+
.modal-dialog {
|
|
107
|
+
width: calc(~'100% - @{modal-inner-padding}');
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.modal-dialog {
|
|
114
|
+
margin: @modal-outer-margin auto;
|
|
115
|
+
max-width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
116
|
+
position: relative;
|
|
117
|
+
width: @screen-sm;
|
|
118
|
+
z-index: @zindex-modal;
|
|
119
|
+
|
|
120
|
+
&:focus {
|
|
121
|
+
outline: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.modal-content {
|
|
125
|
+
&:extend(.shadow-hard);
|
|
126
|
+
background-clip: padding-box;
|
|
127
|
+
background-color: @modal-content-bg;
|
|
128
|
+
border-radius: @border-radius-lg;
|
|
129
|
+
border: 1px solid @modal-content-border-color;
|
|
130
|
+
border: none;
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
outline: 0;
|
|
134
|
+
position: relative;
|
|
135
|
+
|
|
136
|
+
.modal-header {
|
|
137
|
+
&:extend(.clearfix all);
|
|
138
|
+
border-bottom: 1px solid @modal-header-border-color;
|
|
139
|
+
display: flex;
|
|
140
|
+
justify-content: space-between;
|
|
141
|
+
padding: @modal-title-padding;
|
|
142
|
+
padding: 0;
|
|
143
|
+
position: relative;
|
|
144
|
+
z-index: 1;
|
|
145
|
+
|
|
146
|
+
&-text {
|
|
147
|
+
color: @gray-darkest;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
float: left;
|
|
151
|
+
font-weight: @font-light;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
padding: 15px;
|
|
154
|
+
width: calc(~'100% - 60px');
|
|
155
|
+
word-break: break-word;
|
|
156
|
+
|
|
157
|
+
.modal-header-title {
|
|
158
|
+
display: flex;
|
|
159
|
+
order: 1;
|
|
160
|
+
font-size: @font-size-xl - 2;
|
|
161
|
+
line-height: @font-size-xl - 2;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.modal-header-subtitle {
|
|
165
|
+
display: flex;
|
|
166
|
+
font-size: @font-size-default;
|
|
167
|
+
line-height: @font-size-default;
|
|
168
|
+
margin-top: 3px;
|
|
169
|
+
order: 2;
|
|
170
|
+
|
|
171
|
+
+.modal-header-title {
|
|
172
|
+
font-size: @font-size-xl - 5;
|
|
173
|
+
line-height: @font-size-xl - 5;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&-buttons {
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
|
|
182
|
+
&-spacer {
|
|
183
|
+
&:last-child {
|
|
184
|
+
display: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
background-color: @gray-lighter;
|
|
188
|
+
height: 20px;
|
|
189
|
+
margin-right: 10px;
|
|
190
|
+
width: 2px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.btn {
|
|
194
|
+
&:not(:only-child) {
|
|
195
|
+
margin-right: 10px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&:focus,
|
|
199
|
+
span:focus {
|
|
200
|
+
outline: 0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// START TODO remove with v1.0 (downward compatibility) - remove when cleanup
|
|
205
|
+
.sr-only {
|
|
206
|
+
display: none !important;
|
|
207
|
+
}
|
|
208
|
+
// END TODO remove with v1.0 (downward compatibility) - remove when cleanup
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.modal-body {
|
|
213
|
+
position: relative;
|
|
214
|
+
padding: @modal-inner-padding;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.modal-footer {
|
|
218
|
+
&:extend(.clearfix all);
|
|
219
|
+
border-top: 1px solid @modal-footer-border-color;
|
|
220
|
+
display: block;
|
|
221
|
+
padding: @modal-inner-padding;
|
|
222
|
+
position: relative;
|
|
223
|
+
text-align: right;
|
|
224
|
+
z-index: 1;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@media (max-width: @modal-sm) {
|
|
229
|
+
width: @modal-sm;
|
|
230
|
+
margin: @modal-outer-margin * 0.5 auto;
|
|
231
|
+
max-width: calc(~'100vw - @{modal-outer-margin}');
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@media (min-width: @modal-sm) {
|
|
235
|
+
&.modal-sm {
|
|
236
|
+
width: @modal-sm;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&.modal-lg {
|
|
240
|
+
width: @modal-lg;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&.modal-xl {
|
|
244
|
+
width: @modal-xl;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&.modal-full {
|
|
248
|
+
width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&.modal-fullscreen {
|
|
252
|
+
width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&.modal-fullscreen {
|
|
257
|
+
.modal-content {
|
|
258
|
+
height: calc(~'100vh - (@{modal-outer-margin} * 2)'); // --vh fallback
|
|
259
|
+
height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 2)');
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-direction: column;
|
|
262
|
+
|
|
263
|
+
@media (max-width: @modal-sm) {
|
|
264
|
+
height: calc(~'100vh - (@{modal-outer-margin})'); // --vh fallback
|
|
265
|
+
height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin})');
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.modal-body {
|
|
269
|
+
flex: 1 1 0; // instead "auto" we 0 for safari
|
|
270
|
+
position: relative;
|
|
271
|
+
|
|
272
|
+
.iframe-wrapper {
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
height: 100%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&.display-flex {
|
|
278
|
+
> .iframe-wrapper {
|
|
279
|
+
flex: 1 1 0; // instead "auto" we 0 for safari
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.modal-overflow {
|
|
287
|
+
.modal-content {
|
|
288
|
+
max-height: calc(~'100vh - (@{modal-outer-margin} * 2)'); // --vh fallback
|
|
289
|
+
max-height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 2)');
|
|
290
|
+
|
|
291
|
+
@media (max-width: @modal-sm) {
|
|
292
|
+
max-height: calc(~'100vh - (@{modal-outer-margin})'); // --vh fallback
|
|
293
|
+
max-height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin})');
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.modal-body {
|
|
297
|
+
overflow-y: auto;
|
|
298
|
+
|
|
299
|
+
&:after {
|
|
300
|
+
content: '';
|
|
301
|
+
display: block;
|
|
302
|
+
height: 30px;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.modal-footer {
|
|
307
|
+
&:before {
|
|
308
|
+
background: linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
|
|
309
|
+
content: '';
|
|
310
|
+
height: 20px;
|
|
311
|
+
left: 0;
|
|
312
|
+
pointer-events: none;
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: -21px;
|
|
315
|
+
width: 100%;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.modal-backdrop {
|
|
323
|
+
background-color: @modal-backdrop-bg;
|
|
324
|
+
bottom: 0;
|
|
325
|
+
display: block;
|
|
326
|
+
left: 0;
|
|
327
|
+
opacity: 0.5;
|
|
328
|
+
position: fixed;
|
|
329
|
+
right: 0;
|
|
330
|
+
top: 0;
|
|
331
|
+
z-index: @zindex-modal-background;
|
|
332
|
+
|
|
333
|
+
// Fade for backdrop
|
|
334
|
+
&.fade { opacity: 0 }
|
|
335
|
+
&.in { opacity: 0.5 }
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
&.backdrop-blured .modal-backdrop {
|
|
339
|
+
@supports ((-webkit-backdrop-filter: blur()) or (backdrop-filter: blur())) {
|
|
340
|
+
opacity: 0.99;
|
|
341
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
342
|
+
backdrop-filter: blur(5px);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
&.TableSettingsDialog {
|
|
347
|
+
.modal-body {
|
|
348
|
+
background: @gray-lightest;
|
|
349
|
+
padding-left: 0;
|
|
350
|
+
padding-right: 0;
|
|
351
|
+
|
|
352
|
+
@media (max-height: 450px) and (min-width: @screen-sm - 0.1) {
|
|
353
|
+
max-height: calc(~'100vh - 200px'); // --vh fallback
|
|
354
|
+
max-height: calc(~'var(--vh, 1vh) * 100 - 200px');
|
|
355
|
+
overflow-y: auto;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// TableSettings item styles are colocated with the components
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
@splitWrapperBreakpoint: 580px;
|
|
364
|
+
|
|
365
|
+
.split-wrapper {
|
|
366
|
+
display: flex;
|
|
367
|
+
|
|
368
|
+
@media (max-width: @splitWrapperBreakpoint) {
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
margin-top: -(@modal-inner-padding);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.split-left {
|
|
374
|
+
position: relative;
|
|
375
|
+
width: auto;
|
|
376
|
+
|
|
377
|
+
@media (min-width: @splitWrapperBreakpoint) {
|
|
378
|
+
width: 200px;
|
|
379
|
+
|
|
380
|
+
> .ListMenu {
|
|
381
|
+
position: sticky;
|
|
382
|
+
top: 0;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (max-width: @splitWrapperBreakpoint) {
|
|
387
|
+
background-color: @color-white;
|
|
388
|
+
height: 60px;
|
|
389
|
+
left: -(@modal-inner-padding);
|
|
390
|
+
padding-top: @modal-inner-padding;
|
|
391
|
+
position: sticky;
|
|
392
|
+
right: -(@modal-inner-padding);
|
|
393
|
+
top: -(@modal-inner-padding);
|
|
394
|
+
|
|
395
|
+
.expander-panel {
|
|
396
|
+
position: absolute;
|
|
397
|
+
width: 100%;
|
|
398
|
+
z-index: 1;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.modal-lg &,
|
|
403
|
+
.modal-xl &,
|
|
404
|
+
.modal-full & {
|
|
405
|
+
@media (min-width: @splitWrapperBreakpoint) {
|
|
406
|
+
width: 20%;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.split-divider {
|
|
411
|
+
bottom: 0;
|
|
412
|
+
padding-left: 1px;
|
|
413
|
+
position: absolute;
|
|
414
|
+
right: 0;
|
|
415
|
+
top: 0;
|
|
416
|
+
|
|
417
|
+
@media (max-width: @splitWrapperBreakpoint) {
|
|
418
|
+
display: none;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.split-right {
|
|
424
|
+
width: 100%;
|
|
425
|
+
flex: 1 1;
|
|
426
|
+
|
|
427
|
+
@media (min-width: @splitWrapperBreakpoint) {
|
|
428
|
+
padding-left: 20px;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@media (max-width: @splitWrapperBreakpoint) {
|
|
432
|
+
padding-top: 20px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.modal-lg &,
|
|
436
|
+
.modal-xl &,
|
|
437
|
+
.modal-full & {
|
|
438
|
+
@media (min-width: @splitWrapperBreakpoint) {
|
|
439
|
+
max-width: 80%;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Animation classes for dialogs triggered by "react-transition-group" component */
|
|
446
|
+
.modal-enter {
|
|
447
|
+
.modal-content {
|
|
448
|
+
display: block;
|
|
449
|
+
opacity: 0;
|
|
450
|
+
transform: translate(0, -25%);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.modal-backdrop {
|
|
454
|
+
opacity: 0;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.modal-enter-active {
|
|
459
|
+
.modal-content {
|
|
460
|
+
display: block;
|
|
461
|
+
opacity: 1;
|
|
462
|
+
transform: translate(0, 0);
|
|
463
|
+
transition: all 200ms ease-out;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.modal-backdrop {
|
|
467
|
+
opacity: 0.5;
|
|
468
|
+
transition: all 200ms ease-out;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.modal-exit-active {
|
|
473
|
+
.modal-content {
|
|
474
|
+
opacity: 0;
|
|
475
|
+
transform: translateY(-50%);
|
|
476
|
+
transition: all 200ms ease-out;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.modal-backdrop {
|
|
480
|
+
opacity: 0;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@dropdown-max-height: 211px; // Used for Select and AutoSuggest components
|
|
2
|
+
|
|
3
|
+
.btn-group.open .dropdown-toggle {
|
|
4
|
+
box-shadow: none !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dropdown {
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&-menu {
|
|
11
|
+
&:extend(.shadow-hard-to-bottom);
|
|
12
|
+
.reset-list();
|
|
13
|
+
background-color: @color-white;
|
|
14
|
+
border-radius: @border-radius-default;
|
|
15
|
+
border: 1px solid @gray-light;
|
|
16
|
+
font-size: @font-size-default;
|
|
17
|
+
min-width: 160px;
|
|
18
|
+
padding: 0;
|
|
19
|
+
position: absolute;
|
|
20
|
+
text-align: left;
|
|
21
|
+
width: 100%;
|
|
22
|
+
z-index: @zindex-dropdown;
|
|
23
|
+
|
|
24
|
+
// closed by default
|
|
25
|
+
display: none;
|
|
26
|
+
|
|
27
|
+
// open when needed
|
|
28
|
+
.dropdown.open > & {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// portal style
|
|
33
|
+
#uikit-root > & {
|
|
34
|
+
display: block;
|
|
35
|
+
width: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
> li {
|
|
39
|
+
> a {
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
color: @gray-darkest;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
display: block;
|
|
44
|
+
line-height: 1.25;
|
|
45
|
+
margin: 2px 6px;
|
|
46
|
+
padding: 7px 13px;
|
|
47
|
+
position: relative;
|
|
48
|
+
user-select: none;
|
|
49
|
+
|
|
50
|
+
&:active:focus {
|
|
51
|
+
outline: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:hover,
|
|
55
|
+
&:focus {
|
|
56
|
+
background-color: @brand-primary;
|
|
57
|
+
color: @color-white;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:first-child:not(:last-child) {
|
|
63
|
+
margin-top: 5px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:last-child:not(:first-child) {
|
|
67
|
+
margin-bottom: 5px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> .active > a {
|
|
72
|
+
color: inherit;
|
|
73
|
+
background-color: inherit;
|
|
74
|
+
|
|
75
|
+
&,
|
|
76
|
+
&:hover,
|
|
77
|
+
&:focus {
|
|
78
|
+
background-color: @brand-primary;
|
|
79
|
+
color: @color-white;
|
|
80
|
+
outline: 0;
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
> .disabled > a {
|
|
86
|
+
&,
|
|
87
|
+
&:hover,
|
|
88
|
+
&:focus {
|
|
89
|
+
color: @gray-light;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// OLD BS STUFF
|
|
93
|
+
// Nuke hover/focus effects
|
|
94
|
+
&:hover,
|
|
95
|
+
&:focus {
|
|
96
|
+
.reset-filter();
|
|
97
|
+
background-color: transparent;
|
|
98
|
+
background-image: none;
|
|
99
|
+
cursor: not-allowed;
|
|
100
|
+
text-decoration: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// OLD BS STUFF
|
|
105
|
+
// .menuitem:focus {
|
|
106
|
+
// outline: 0;
|
|
107
|
+
// }
|
|
108
|
+
|
|
109
|
+
> .dropdown-header {
|
|
110
|
+
display: flex;
|
|
111
|
+
padding: 5px 10px;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
align-items: center;
|
|
114
|
+
|
|
115
|
+
&:not(.center) {
|
|
116
|
+
margin-top: 15px;
|
|
117
|
+
|
|
118
|
+
~ li:not(.dropdown-header) a {
|
|
119
|
+
padding-left: 20px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.dropdown-header-text {
|
|
124
|
+
background: @color-white;
|
|
125
|
+
color: lighten(@gray, 5%);
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
font-weight: @font-medium;
|
|
128
|
+
line-height: 1.25;
|
|
129
|
+
max-width: calc(~"100% - 30px");
|
|
130
|
+
text-align: center;
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
> .divider {
|
|
136
|
+
background-color: @gray-light;
|
|
137
|
+
height: 1px;
|
|
138
|
+
margin: 3px 6px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:not(.open) {
|
|
143
|
+
> .dropdown-menu {
|
|
144
|
+
display: block;
|
|
145
|
+
position: fixed;
|
|
146
|
+
top: -10000px;
|
|
147
|
+
left: -10000px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&-submenu {
|
|
152
|
+
position: relative;
|
|
153
|
+
|
|
154
|
+
> .dropdown-menu {
|
|
155
|
+
bottom: auto;
|
|
156
|
+
display: none;
|
|
157
|
+
left: 100%;
|
|
158
|
+
top: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:hover > .dropdown-menu {
|
|
162
|
+
display: block;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.disabled:hover > .dropdown-menu {
|
|
166
|
+
display: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
> .submenu-title {
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
|
|
172
|
+
> .submenu-title-text {
|
|
173
|
+
padding-right: 5px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
> .rioglyph {
|
|
177
|
+
align-items: center;
|
|
178
|
+
display: flex;
|
|
179
|
+
font-size: 0.8em;
|
|
180
|
+
height: 100%;
|
|
181
|
+
position: absolute;
|
|
182
|
+
right: 8px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|