@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,655 @@
|
|
|
1
|
+
@input-bg: @color-white;
|
|
2
|
+
@input-bg-disabled: rgba(229, 235, 240, 0.4); //40% @gray-lighter;
|
|
3
|
+
@input-color: @gray-darker;
|
|
4
|
+
@input-border: @gray;
|
|
5
|
+
@input-border-focus: @brand-primary;
|
|
6
|
+
@input-color-placeholder: @gray;
|
|
7
|
+
@input-height-base: (@grid-gutter-height + (@padding-default-vertical * 2) + 2);
|
|
8
|
+
@input-height-lg: (floor(@font-size-lg * @line-height-lg) + (@padding-lg-vertical * 2) + 2);
|
|
9
|
+
@input-height-sm: (floor(@font-size-sm * @line-height-sm) + (@padding-sm-vertical * 2) + 2);
|
|
10
|
+
@legend-color: @gray-dark;
|
|
11
|
+
@legend-border-color: #e5e5e5;
|
|
12
|
+
|
|
13
|
+
fieldset {
|
|
14
|
+
padding: 0;
|
|
15
|
+
margin: 0;
|
|
16
|
+
border: 0;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
legend {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 100%;
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin-bottom: @grid-gutter-height;
|
|
25
|
+
font-size: (@font-size-default * 1.5);
|
|
26
|
+
line-height: inherit;
|
|
27
|
+
color: @legend-color;
|
|
28
|
+
border: 0;
|
|
29
|
+
border-bottom: 1px solid @legend-border-color;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
label {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
|
|
35
|
+
margin-bottom: 5px;
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Position radios and checkboxes better
|
|
40
|
+
input {
|
|
41
|
+
&[type="radio"],
|
|
42
|
+
&[type="checkbox"] {
|
|
43
|
+
line-height: normal;
|
|
44
|
+
margin: 4px 0 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[type="file"] {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[type="range"] {
|
|
52
|
+
display: block;
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[type="search"] {
|
|
57
|
+
-webkit-appearance: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Focus
|
|
61
|
+
&[type="file"],
|
|
62
|
+
&[type="radio"],
|
|
63
|
+
&[type="checkbox"] {
|
|
64
|
+
&:focus {
|
|
65
|
+
.tab-focus();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
|
70
|
+
&[type="date"],
|
|
71
|
+
&[type="time"],
|
|
72
|
+
&[type="datetime-local"],
|
|
73
|
+
&[type="month"] {
|
|
74
|
+
&.form-control {
|
|
75
|
+
line-height: @input-height-base;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.input-sm,
|
|
79
|
+
.input-group-sm & {
|
|
80
|
+
line-height: @input-height-sm;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.input-lg,
|
|
84
|
+
.input-group-lg & {
|
|
85
|
+
line-height: @input-height-lg;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
select {
|
|
92
|
+
&[multiple],
|
|
93
|
+
&[size] {
|
|
94
|
+
height: auto;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Adjust output element
|
|
99
|
+
// output {
|
|
100
|
+
// display: block;
|
|
101
|
+
// padding-top: (@padding-default-vertical + 1);
|
|
102
|
+
// font-size: @font-size-default;
|
|
103
|
+
// line-height: @line-height-default;
|
|
104
|
+
// color: @input-color;
|
|
105
|
+
// }
|
|
106
|
+
|
|
107
|
+
.form-control {
|
|
108
|
+
display: block;
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
|
|
111
|
+
padding: @padding-default-vertical @padding-default-horizontal;
|
|
112
|
+
font-size: @font-size-default;
|
|
113
|
+
line-height: @line-height-default;
|
|
114
|
+
color: @input-color;
|
|
115
|
+
background-color: @input-bg;
|
|
116
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
|
117
|
+
border: 1px solid @input-border;
|
|
118
|
+
border-radius: @border-radius-default; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
|
|
119
|
+
box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
|
|
120
|
+
transition:border-color ease-in-out .15s~","box-shadow ease-in-out .15s;
|
|
121
|
+
|
|
122
|
+
.form-control-focus();
|
|
123
|
+
.placeholder();
|
|
124
|
+
|
|
125
|
+
// Disabled and read-only inputs
|
|
126
|
+
&[disabled],
|
|
127
|
+
&[readonly],
|
|
128
|
+
fieldset[disabled] & {
|
|
129
|
+
background-color: @input-bg-disabled;
|
|
130
|
+
opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&[disabled],
|
|
134
|
+
fieldset[disabled] & {
|
|
135
|
+
cursor: not-allowed;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Reset height for `textarea`s
|
|
139
|
+
textarea& {
|
|
140
|
+
height: auto;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.form-group {
|
|
145
|
+
margin-bottom: 15px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.radio,
|
|
149
|
+
.checkbox {
|
|
150
|
+
position: relative;
|
|
151
|
+
display: block;
|
|
152
|
+
margin-top: 10px;
|
|
153
|
+
margin-bottom: 10px;
|
|
154
|
+
|
|
155
|
+
label {
|
|
156
|
+
min-height: @grid-gutter-height; // Ensure the input doesn't jump when there is no text
|
|
157
|
+
padding-left: 20px;
|
|
158
|
+
margin-bottom: 0;
|
|
159
|
+
font-weight: normal;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.radio input[type="radio"],
|
|
165
|
+
.radio-inline input[type="radio"],
|
|
166
|
+
.checkbox input[type="checkbox"],
|
|
167
|
+
.checkbox-inline input[type="checkbox"] {
|
|
168
|
+
position: absolute;
|
|
169
|
+
margin-left: -20px;
|
|
170
|
+
margin-top: 4px \9;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Move up sibling radios or checkboxes for tighter spacing
|
|
174
|
+
.radio + .radio,
|
|
175
|
+
.checkbox + .checkbox {
|
|
176
|
+
margin-top: -5px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Radios and checkboxes on same line
|
|
180
|
+
.radio-inline,
|
|
181
|
+
.checkbox-inline {
|
|
182
|
+
position: relative;
|
|
183
|
+
display: inline-block;
|
|
184
|
+
padding-left: 20px;
|
|
185
|
+
margin-bottom: 0;
|
|
186
|
+
vertical-align: middle;
|
|
187
|
+
font-weight: normal;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Space out consecutive inline controls
|
|
192
|
+
.radio-inline + .radio-inline,
|
|
193
|
+
.checkbox-inline + .checkbox-inline {
|
|
194
|
+
margin-top: 0;
|
|
195
|
+
margin-left: 10px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Disabled and read-only inputs
|
|
199
|
+
input[type="radio"],
|
|
200
|
+
input[type="checkbox"] {
|
|
201
|
+
&[disabled],
|
|
202
|
+
&.disabled,
|
|
203
|
+
fieldset[disabled] & {
|
|
204
|
+
cursor: not-allowed;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// These classes are used directly on <label>s
|
|
209
|
+
.radio-inline,
|
|
210
|
+
.checkbox-inline {
|
|
211
|
+
&.disabled,
|
|
212
|
+
fieldset[disabled] & {
|
|
213
|
+
cursor: not-allowed;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// These classes are used on elements with <label> descendants
|
|
218
|
+
.radio,
|
|
219
|
+
.checkbox {
|
|
220
|
+
&.disabled,
|
|
221
|
+
fieldset[disabled] & {
|
|
222
|
+
label {
|
|
223
|
+
cursor: not-allowed;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Form control sizing
|
|
229
|
+
.input-sm {
|
|
230
|
+
.input-size(@input-height-sm; @padding-sm-vertical; @padding-sm-horizontal; @font-size-sm; @line-height-sm; @border-radius-sm);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.form-group-sm {
|
|
234
|
+
.form-control {
|
|
235
|
+
height: @input-height-sm;
|
|
236
|
+
padding: @padding-sm-vertical @padding-sm-horizontal;
|
|
237
|
+
font-size: @font-size-sm;
|
|
238
|
+
line-height: @line-height-sm;
|
|
239
|
+
border-radius: @border-radius-sm;
|
|
240
|
+
}
|
|
241
|
+
select.form-control {
|
|
242
|
+
height: @input-height-sm;
|
|
243
|
+
line-height: @input-height-sm;
|
|
244
|
+
}
|
|
245
|
+
textarea.form-control,
|
|
246
|
+
select[multiple].form-control {
|
|
247
|
+
height: auto;
|
|
248
|
+
}
|
|
249
|
+
.form-control-static {
|
|
250
|
+
height: @input-height-sm;
|
|
251
|
+
min-height: (@grid-gutter-height + @font-size-sm);
|
|
252
|
+
padding: (@padding-sm-vertical + 1) @padding-sm-horizontal;
|
|
253
|
+
font-size: @font-size-sm;
|
|
254
|
+
line-height: @line-height-sm;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.input-lg {
|
|
259
|
+
.input-size(@input-height-lg; @padding-lg-vertical; @padding-lg-horizontal; @font-size-lg; @line-height-lg; @border-radius-lg);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.form-group-lg {
|
|
263
|
+
.form-control {
|
|
264
|
+
height: @input-height-lg;
|
|
265
|
+
padding: @padding-lg-vertical @padding-lg-horizontal;
|
|
266
|
+
font-size: @font-size-lg;
|
|
267
|
+
line-height: @line-height-lg;
|
|
268
|
+
border-radius: @border-radius-lg;
|
|
269
|
+
}
|
|
270
|
+
select.form-control {
|
|
271
|
+
height: @input-height-lg;
|
|
272
|
+
line-height: @input-height-lg;
|
|
273
|
+
}
|
|
274
|
+
textarea.form-control,
|
|
275
|
+
select[multiple].form-control {
|
|
276
|
+
height: auto;
|
|
277
|
+
}
|
|
278
|
+
.form-control-static {
|
|
279
|
+
height: @input-height-lg;
|
|
280
|
+
min-height: (@grid-gutter-height + @font-size-lg);
|
|
281
|
+
padding: (@padding-lg-vertical + 1) @padding-lg-horizontal;
|
|
282
|
+
font-size: @font-size-lg;
|
|
283
|
+
line-height: @line-height-lg;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// Help block
|
|
288
|
+
.help-block {
|
|
289
|
+
display: block; // account for any element using help-block
|
|
290
|
+
margin-top: 5px;
|
|
291
|
+
margin-bottom: 10px;
|
|
292
|
+
color: lighten(@text-color, 25%); // lighten the text some for contrast
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.default-label(@label-font-size) {
|
|
296
|
+
font-size: @label-font-size;
|
|
297
|
+
font-weight: normal;
|
|
298
|
+
color: @gray-dark;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// define default styling for labels
|
|
302
|
+
label {
|
|
303
|
+
.default-label(@font-size-12);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// treat radios and checkboxed differently when using a label tag
|
|
307
|
+
label.checkbox,
|
|
308
|
+
label.radio,
|
|
309
|
+
label .radio-text,
|
|
310
|
+
label .checkbox-text {
|
|
311
|
+
color: inherit;
|
|
312
|
+
font-size: @font-size-default;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.form-group {
|
|
316
|
+
&:first-child:last-child {
|
|
317
|
+
margin-bottom: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
label:not(.checkbox),
|
|
321
|
+
label:not(.radio) {
|
|
322
|
+
.default-label(@font-size-12);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
label {
|
|
326
|
+
.radio-text,
|
|
327
|
+
.checkbox-text {
|
|
328
|
+
color: @gray-darkest;
|
|
329
|
+
font-size: @font-size-14;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&.form-group-lg {
|
|
334
|
+
label:not(.checkbox),
|
|
335
|
+
label:not(.radio) {
|
|
336
|
+
.default-label(@font-size-14);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
label {
|
|
340
|
+
.radio-text,
|
|
341
|
+
.checkbox-text {
|
|
342
|
+
color: @gray-darkest;
|
|
343
|
+
font-size: @font-size-16;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&.form-group-sm {
|
|
349
|
+
label:not(.checkbox),
|
|
350
|
+
label:not(.radio) {
|
|
351
|
+
.default-label(@font-size-10);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
label {
|
|
355
|
+
.radio-text,
|
|
356
|
+
.checkbox-text {
|
|
357
|
+
color: @gray-darkest;
|
|
358
|
+
font-size: @font-size-12;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// Different feedback coloring
|
|
364
|
+
each(@colors-forms-map, {
|
|
365
|
+
&.has-@{key} {
|
|
366
|
+
.form-control {
|
|
367
|
+
border-color: @value;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
})
|
|
371
|
+
|
|
372
|
+
.form-control-feedback {
|
|
373
|
+
border-radius: @border-radius-round;
|
|
374
|
+
display: block;
|
|
375
|
+
pointer-events: none;
|
|
376
|
+
position: absolute;
|
|
377
|
+
right:3px;
|
|
378
|
+
text-align: center;
|
|
379
|
+
top: 3px;
|
|
380
|
+
width: @input-height-base - 3;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// feedback
|
|
384
|
+
&.has-feedback {
|
|
385
|
+
position: relative;
|
|
386
|
+
|
|
387
|
+
// Reposition feedback icon if input has visible label above
|
|
388
|
+
label {
|
|
389
|
+
& ~ .form-control-feedback {
|
|
390
|
+
top: 27px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&.sr-only ~ .form-control-feedback {
|
|
394
|
+
top: 0;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.form-control {
|
|
399
|
+
padding-right: @input-height-base;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.form-control-feedback-wrapper {
|
|
403
|
+
position: relative;
|
|
404
|
+
|
|
405
|
+
.help-block {
|
|
406
|
+
top: 100%;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.form-control-feedback {
|
|
411
|
+
font-size: 16px;
|
|
412
|
+
line-height: @input-height-base - 6;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// small
|
|
416
|
+
&.form-group-sm .form-control,
|
|
417
|
+
.input-sm {
|
|
418
|
+
padding-right: @input-height-sm;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
&.form-group-sm .form-control-feedback,
|
|
422
|
+
.input-sm + .form-control-feedback {
|
|
423
|
+
font-size: 16px;
|
|
424
|
+
line-height: @input-height-sm - 6;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// large
|
|
428
|
+
&.form-group-lg .form-control,
|
|
429
|
+
.input-lg {
|
|
430
|
+
padding-right: @input-height-lg;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
&.form-group-lg .form-control-feedback,
|
|
434
|
+
.input-lg + .form-control-feedback {
|
|
435
|
+
font-size: 22px;
|
|
436
|
+
line-height: @input-height-lg - 6;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.help-block {
|
|
440
|
+
border-radius: @border-radius-sm;
|
|
441
|
+
font-size: @font-size-sm;
|
|
442
|
+
margin: 1px 0 0 0;
|
|
443
|
+
padding: 2px 5px;
|
|
444
|
+
position: absolute;
|
|
445
|
+
right: 0;
|
|
446
|
+
transition: color 0.2s ease ~"," background 0.2s ease;
|
|
447
|
+
z-index: 3;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// Different feedback coloring
|
|
451
|
+
each(@colors-forms-map, {
|
|
452
|
+
&.has-@{key} {
|
|
453
|
+
.help-block {
|
|
454
|
+
background: @value;
|
|
455
|
+
color: @color-white;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.form-control {
|
|
459
|
+
&:focus, &.focus {
|
|
460
|
+
~ .help-block {
|
|
461
|
+
background: @gray-lightest;
|
|
462
|
+
color: @value;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.input-group-addon:not(.input-group-addon-label) {
|
|
468
|
+
color: @value;
|
|
469
|
+
border-color: @value;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.form-control-feedback {
|
|
473
|
+
color: @value;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
})
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.form-control,
|
|
481
|
+
.form-control:focus,
|
|
482
|
+
.has-warning .form-control,
|
|
483
|
+
.has-warning .form-control:focus,
|
|
484
|
+
.has-error .form-control,
|
|
485
|
+
.has-error .form-control:focus,
|
|
486
|
+
.has-success .form-control,
|
|
487
|
+
.has-success .form-control:focus {
|
|
488
|
+
box-shadow: none;
|
|
489
|
+
-webkit-appearance: none;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// Set label color to default even when when it has feedback
|
|
493
|
+
.has-feedback > label,
|
|
494
|
+
.has-feedback > .control-label,
|
|
495
|
+
.has-warning > .control-label,
|
|
496
|
+
.has-error > .control-label,
|
|
497
|
+
.has-success > .control-label {
|
|
498
|
+
color: @gray-dark;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.form-control {
|
|
502
|
+
font-weight: @font-normal;
|
|
503
|
+
font-size: unit((@font-size-default / 10), rem); // px to rem
|
|
504
|
+
|
|
505
|
+
&.input-sm {
|
|
506
|
+
font-size: unit((@font-size-sm / 10), rem); // px to rem
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
&.input-lg {
|
|
510
|
+
font-size: unit((@font-size-lg / 10), rem); // px to rem
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
&[disabled] {
|
|
514
|
+
+ .input-group-addon:last-child {
|
|
515
|
+
background: #f5f7f9; // because @input-bg-disabled has alpha...
|
|
516
|
+
cursor: not-allowed;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
&:focus {
|
|
521
|
+
border-color: @input-border-focus;
|
|
522
|
+
|
|
523
|
+
+ .input-group-addon:last-child {
|
|
524
|
+
border-color: @input-border-focus;
|
|
525
|
+
box-shadow: 1px 0 0 0 @input-border-focus;
|
|
526
|
+
z-index: 3;
|
|
527
|
+
|
|
528
|
+
.form-group.has-error & {
|
|
529
|
+
border-color: darken(@brand-danger, 10%);
|
|
530
|
+
box-shadow: 1px 0 0 0 darken(@brand-danger, 10%);
|
|
531
|
+
}
|
|
532
|
+
.form-group.has-warning & {
|
|
533
|
+
border-color: darken(@brand-warning, 10%);
|
|
534
|
+
box-shadow: 1px 0 0 0 darken(@brand-warning, 10%);
|
|
535
|
+
}
|
|
536
|
+
.form-group.has-success & {
|
|
537
|
+
border-color: darken(@brand-success, 10%);
|
|
538
|
+
box-shadow: 1px 0 0 0 darken(@brand-success, 10%);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// Hide HTML5 Up and Down arrows
|
|
544
|
+
&.no-controls {
|
|
545
|
+
-webkit-appearance: none;
|
|
546
|
+
-moz-appearance: textfield;
|
|
547
|
+
|
|
548
|
+
&::-webkit-inner-spin-button,
|
|
549
|
+
&::-webkit-outer-spin-button {
|
|
550
|
+
-webkit-appearance: none;
|
|
551
|
+
margin: 0;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
textarea.form-control {
|
|
557
|
+
min-height: @input-height-base;
|
|
558
|
+
resize: vertical;
|
|
559
|
+
|
|
560
|
+
&.input-sm {
|
|
561
|
+
min-height: @input-height-sm;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
&.input-lg {
|
|
565
|
+
min-height: @input-height-lg;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.form-control::placeholder,
|
|
570
|
+
.form-control::-webkit-input-placeholder,
|
|
571
|
+
.form-control:-ms-input-placeholder,
|
|
572
|
+
.form-control::-ms-input-placeholder {
|
|
573
|
+
font-style: italic;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// Form inline
|
|
577
|
+
.form-inline {
|
|
578
|
+
// Inline-block all the things for "inline"
|
|
579
|
+
.form-group {
|
|
580
|
+
display: inline-block;
|
|
581
|
+
margin-bottom: 0;
|
|
582
|
+
vertical-align: middle;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// In navbar-form, allow folks to *not* use `.form-group`
|
|
586
|
+
.form-control {
|
|
587
|
+
display: inline-block;
|
|
588
|
+
width: auto; // Prevent labels from stacking above inputs in `.form-group`
|
|
589
|
+
vertical-align: middle;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// Make static controls behave like regular ones
|
|
593
|
+
.form-control-static {
|
|
594
|
+
display: inline-block;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.input-group {
|
|
598
|
+
display: inline-table;
|
|
599
|
+
vertical-align: middle;
|
|
600
|
+
|
|
601
|
+
.input-group-addon,
|
|
602
|
+
.input-group-btn,
|
|
603
|
+
.form-control {
|
|
604
|
+
width: auto;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// Input groups need that 100% width though
|
|
609
|
+
.input-group > .form-control {
|
|
610
|
+
width: 100%;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.control-label {
|
|
614
|
+
margin-bottom: 0;
|
|
615
|
+
vertical-align: middle;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// Remove default margin on radios/checkboxes that were used for stacking, and
|
|
619
|
+
// then undo the floating of radios and checkboxes to match.
|
|
620
|
+
.radio,
|
|
621
|
+
.checkbox {
|
|
622
|
+
display: inline-block;
|
|
623
|
+
margin-top: 0;
|
|
624
|
+
margin-bottom: 0;
|
|
625
|
+
vertical-align: middle;
|
|
626
|
+
|
|
627
|
+
label {
|
|
628
|
+
padding-left: 0;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
.radio input[type="radio"],
|
|
632
|
+
.checkbox input[type="checkbox"] {
|
|
633
|
+
position: relative;
|
|
634
|
+
margin-left: 0;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
// Re-override the feedback icon.
|
|
638
|
+
.has-feedback .form-control-feedback {
|
|
639
|
+
top: 0;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
> .form-group:first-child {
|
|
643
|
+
margin-left: 0;
|
|
644
|
+
}
|
|
645
|
+
> .form-group:last-child {
|
|
646
|
+
margin-right: 0;
|
|
647
|
+
}
|
|
648
|
+
> .form-group {
|
|
649
|
+
margin-left: 5px;
|
|
650
|
+
margin-right: 5px;
|
|
651
|
+
}
|
|
652
|
+
> .form-group > label {
|
|
653
|
+
margin-bottom: 0;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
iframe {
|
|
3
|
+
display: block;
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
&.iFrameResizer, // TODO: MAYBE remove with v1.0
|
|
7
|
+
&[id*="iFrameResizer"] {
|
|
8
|
+
width: 100%;
|
|
9
|
+
border: none;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.full-window {
|
|
14
|
+
-webkit-overflow-scrolling: touch;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
height: 100%;
|
|
17
|
+
left: 0;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.no-application-header {
|
|
25
|
+
height: calc(100% + 50px);
|
|
26
|
+
top: -50px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.full-width {
|
|
30
|
+
-webkit-overflow-scrolling: touch;
|
|
31
|
+
overflow: auto;
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.unstyled {
|
|
36
|
+
border: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.iframe-wrapper {
|
|
41
|
+
position: relative;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// buyButton
|
|
45
|
+
@iframeHeight: 36px;
|
|
46
|
+
@iframeScalefactor: 1.32353; // to fit btn-lg // former 1.5
|
|
47
|
+
|
|
48
|
+
iframe {
|
|
49
|
+
&.buyButton, &.contactButton {
|
|
50
|
+
height: @iframeHeight;
|
|
51
|
+
border: none;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
width: 100%;
|
|
54
|
+
|
|
55
|
+
&.large {
|
|
56
|
+
&:not(.responsive) {
|
|
57
|
+
transform: scale(@iframeScalefactor);
|
|
58
|
+
transform-origin: 0 0;
|
|
59
|
+
width: (100% / @iframeScalefactor);
|
|
60
|
+
height: (@iframeHeight * @iframeScalefactor);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.responsive {
|
|
64
|
+
@media (min-width: @screen-md) {
|
|
65
|
+
transform: scale(@iframeScalefactor);
|
|
66
|
+
transform-origin: 0 0;
|
|
67
|
+
width: (100% / @iframeScalefactor);
|
|
68
|
+
height: (@iframeHeight * @iframeScalefactor);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.buyLink, &.contactLink {
|
|
75
|
+
height: 20px;
|
|
76
|
+
border: none;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
}
|