@mediafly/js-ui 46.2.5 → 46.3.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.stylelintignore +5 -0
- package/CHANGELOG.md +12 -0
- package/lib/jsui.module.css +260 -74
- package/lib/rich-text/rich-text.component.html +2 -1
- package/lib/rich-text/rich-text.component.js +1 -0
- package/lib/rich-text/rich-text.component.js.map +1 -1
- package/lib/styles.css +232 -203
- package/lib/tree/tree-node.html +3 -2
- package/lib/tree/tree-node.js +1 -0
- package/lib/tree/tree-node.js.map +1 -1
- package/lib/tree/tree.html +1 -1
- package/lib/tree/tree.js +1 -0
- package/lib/tree/tree.js.map +1 -1
- package/lib/tsconfig.deploy.tsbuildinfo +389 -9
- package/package.json +4 -1
- package/src/components/actionable-empty-state/actionable-empty-state.less +5 -6
- package/src/components/auto-complete/auto-complete.component.less +2 -2
- package/src/components/badge/badge.less +5 -7
- package/src/components/collapse/collapse.less +2 -2
- package/src/components/color-input/color-input.less +5 -3
- package/src/components/date-time-zone-picker/date-time-zone-picker.less +4 -2
- package/src/components/dropdown/dropdown.less +7 -9
- package/src/components/dropdown-menu/dropdown-menu.less +11 -14
- package/src/components/feedback/feedback.less +28 -30
- package/src/components/first-time-motivator/first-time-motivator.less +25 -26
- package/src/components/footer/footer.less +0 -2
- package/src/components/hierarchy/hierarchy.less +0 -1
- package/src/components/hover-tooltip/hover-tooltip.less +15 -17
- package/src/components/index.less +8 -9
- package/src/components/inline-text-input/inline-text-input.less +2 -2
- package/src/components/less/fonts/mfly-webfont.less +69 -53
- package/src/components/less/fonts/poppins.less +15 -10
- package/src/components/less/fonts/roboto.less +26 -18
- package/src/components/less/mixins/vendor-prefixes.less +4 -1
- package/src/components/less/objects/buttons.less +63 -56
- package/src/components/less/objects/buttons.module.css +203 -0
- package/src/components/less/objects/containers.less +18 -23
- package/src/components/less/objects/containers.module.css +3 -3
- package/src/components/less/objects/forms.less +41 -35
- package/src/components/less/objects/grid.less +316 -18
- package/src/components/less/objects/headers.less +4 -9
- package/src/components/less/objects/headers.module.css +0 -1
- package/src/components/less/objects/index.less +11 -11
- package/src/components/less/objects/labels.less +1 -2
- package/src/components/less/objects/links.less +11 -12
- package/src/components/less/objects/links.module.css +19 -19
- package/src/components/less/objects/modals.less +1 -2
- package/src/components/less/objects/radios-checkboxes.less +41 -41
- package/src/components/less/objects/tables.less +16 -23
- package/src/components/less/utilities/accessibility.less +6 -4
- package/src/components/less/utilities/animations.less +4 -1
- package/src/components/less/utilities/grid-utilities.less +20 -20
- package/src/components/less/utilities/normalize.less +9 -8
- package/src/components/less/utilities/reset.less +5 -3
- package/src/components/less/utilities/utilities.less +39 -42
- package/src/components/less/variables/colors.less +2 -7
- package/src/components/less/variables/effects.less +11 -12
- package/src/components/less/variables/forms.less +0 -2
- package/src/components/less/variables/pages.less +0 -3
- package/src/components/less/variables/typography.less +2 -3
- package/src/components/less/variables.module.css +34 -51
- package/src/components/loading-indicator/loading-indicator.less +18 -18
- package/src/components/metadata-form/metadata-form.less +13 -14
- package/src/components/modal/modal.component.less +19 -16
- package/src/components/modal/modal.component.module.css +16 -17
- package/src/components/paging/paging.less +0 -1
- package/src/components/progress-bar/progress-bar.less +1 -1
- package/src/components/progress-circle/progress-circle.less +8 -4
- package/src/components/rich-text/rich-text-toolbar-container.less +3 -3
- package/src/components/rich-text/rich-text.component.html +2 -1
- package/src/components/rich-text/rich-text.component.less +25 -25
- package/src/components/rich-text/rich-text.component.ts +1 -0
- package/src/components/site-header/site-header.less +9 -12
- package/src/components/slides/slides.less +31 -25
- package/src/components/table-blank-slate/table-blank-slate.less +0 -1
- package/src/components/tabs/tabs.less +1 -1
- package/src/components/tag-input/tag-input.less +4 -5
- package/src/components/time-input/time-input.less +0 -1
- package/src/components/tree/tree-node.html +3 -2
- package/src/components/tree/tree-node.js +1 -0
- package/src/components/tree/tree.html +1 -1
- package/src/components/tree/tree.less +20 -7
- package/src/components/tree/tree.ts +1 -0
- package/stylelint.config.js +8 -0
- package/tsconfig.tsbuildinfo +392 -10
- package/webpack.config.js +7 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
.button {
|
|
2
|
+
align-items: center;
|
|
3
|
+
background-color: var(--color-button-default-background);
|
|
4
|
+
border: 1px solid var(--color-button-default-border);
|
|
5
|
+
border-radius: 17px;
|
|
6
|
+
box-shadow: inset 1000px 400px 0 0 rgba(0, 0, 0, 0);
|
|
7
|
+
color: var(--color-button-default-text);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
font-weight: var(--font-weight-bold);
|
|
12
|
+
height: 34px;
|
|
13
|
+
line-height: 20px; /* Match text positioning of non-module inline-block buttons */
|
|
14
|
+
padding: 6px 17px;
|
|
15
|
+
text-align: center;
|
|
16
|
+
transition: all 0.25s ease-in;
|
|
17
|
+
user-select: none;
|
|
18
|
+
vertical-align: middle; /* Match baseline of non-module inline-block buttons */
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
|
|
21
|
+
@media (hover: hover) {
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: var(--color-button-default-hover-background);
|
|
24
|
+
border-color: var(--color-button-default-hover-border);
|
|
25
|
+
color: var(--color-button-default-text);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:active {
|
|
30
|
+
background-color: var(--color-button-default-hover-background);
|
|
31
|
+
border-color: var(--color-button-default-hover-border);
|
|
32
|
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
33
|
+
color: var(--color-button-default-text);
|
|
34
|
+
outline: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus {
|
|
38
|
+
box-shadow: 0 0 8px rgba(131, 131, 131, 0.9);
|
|
39
|
+
outline: none;
|
|
40
|
+
outline-offset: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[disabled] {
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
opacity: 0.65;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.button.isPrimary {
|
|
51
|
+
background-color: var(--color-button-primary-background);
|
|
52
|
+
border-color: var(--color-button-primary-border);
|
|
53
|
+
color: var(--color-button-primary-text);
|
|
54
|
+
|
|
55
|
+
@media (hover: hover) {
|
|
56
|
+
&:hover {
|
|
57
|
+
box-shadow: inset 1000px 400px 0 0 rgba(0, 0, 0, 0.2); /* Dynamically darken - this is useful because primary buttons might be themed */
|
|
58
|
+
color: var(--color-button-primary-text);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:focus {
|
|
63
|
+
box-shadow:
|
|
64
|
+
inset 1000px 400px 0 0 rgba(0, 0, 0, 0),
|
|
65
|
+
0 0 8px rgba(131, 131, 131, 0.9);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.button.isTertiary {
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
|
|
73
|
+
@media (hover: hover) {
|
|
74
|
+
&:hover {
|
|
75
|
+
background-color: var(--color-button-default-hover-background);
|
|
76
|
+
border-color: var(--color-button-default-hover-border);
|
|
77
|
+
color: var(--color-button-default-text);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.button.isLarge {
|
|
83
|
+
border-radius: 24px;
|
|
84
|
+
font-size: 18px;
|
|
85
|
+
height: auto; /* Match the non-module large button height instead of using fixed height of flex button */
|
|
86
|
+
line-height: 1.33;
|
|
87
|
+
padding: 11px 24px 11px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.button.isLogin {
|
|
91
|
+
border-radius: 24px;
|
|
92
|
+
font-size: 18px;
|
|
93
|
+
height: auto; /* Match the non-module large button height instead of using fixed height of flex button */
|
|
94
|
+
line-height: 1.33;
|
|
95
|
+
padding: 11px 20% 11px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.button.isSmall {
|
|
99
|
+
background: #fff;
|
|
100
|
+
border: 1px solid var(--color-gray-x-light);
|
|
101
|
+
border-radius: 16px;
|
|
102
|
+
font-size: 13px;
|
|
103
|
+
font-weight: var(--font-weight-regular);
|
|
104
|
+
height: auto; /* Match the non-module large button height instead of using fixed height of flex button */
|
|
105
|
+
line-height: 1;
|
|
106
|
+
padding: 6px 12px;
|
|
107
|
+
|
|
108
|
+
/* We set an explicit background on this button so we need more specificity on the hover style: */
|
|
109
|
+
@media (hover: hover) {
|
|
110
|
+
&:hover {
|
|
111
|
+
background-color: var(--color-button-default-hover-background);
|
|
112
|
+
border-color: var(--color-button-default-hover-border);
|
|
113
|
+
color: var(--color-button-default-text);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.button.isRoundRect {
|
|
119
|
+
background: #fff;
|
|
120
|
+
border: none;
|
|
121
|
+
border-radius: 6px;
|
|
122
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 30%);
|
|
123
|
+
font-size: 13px;
|
|
124
|
+
font-weight: var(--font-weight-regular);
|
|
125
|
+
height: auto; /* Match the non-module large button height instead of using fixed height of flex button */
|
|
126
|
+
line-height: 1;
|
|
127
|
+
padding: 6px 12px;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
|
|
130
|
+
/* We set an explicit background on this button so we need more specificity on the hover style: */
|
|
131
|
+
@media (hover: hover) {
|
|
132
|
+
&:hover {
|
|
133
|
+
background-color: var(--color-button-default-hover-background);
|
|
134
|
+
border-color: var(--color-button-default-hover-border);
|
|
135
|
+
color: var(--color-button-default-text);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:global(.far),
|
|
140
|
+
:global(.fal),
|
|
141
|
+
:global(.fas) {
|
|
142
|
+
margin-right: 4px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.buttonGroup {
|
|
147
|
+
/* Font-size override to suppress whitespace in output */
|
|
148
|
+
font-size: 0;
|
|
149
|
+
|
|
150
|
+
/* Interior rounded edges and margins are removed & borders are added: */
|
|
151
|
+
& .button:not(:first-child) {
|
|
152
|
+
border-bottom-left-radius: 0;
|
|
153
|
+
border-left: none;
|
|
154
|
+
border-top-left-radius: 0;
|
|
155
|
+
margin-left: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& .button:not(:last-child) {
|
|
159
|
+
border-bottom-right-radius: 0;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* All buttons except the last one get a right-border.
|
|
163
|
+
* The primary-background color looks good and ensures a primary button in
|
|
164
|
+
* the group doesn't have a clashing gray border against it.
|
|
165
|
+
*/
|
|
166
|
+
border-right: 1px solid var(--color-button-default-border);
|
|
167
|
+
border-top-right-radius: 0;
|
|
168
|
+
margin-right: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* "Selected" buttons can be used to indicate state. */
|
|
172
|
+
& .button.isSelected {
|
|
173
|
+
background-color: var(--color-gray-x-light);
|
|
174
|
+
color: var(--color-gray-x-dark);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.formBottomButtonGroup {
|
|
179
|
+
align-items: center;
|
|
180
|
+
border-top: 1px solid var(--color-gray-xx-light);
|
|
181
|
+
display: flex;
|
|
182
|
+
justify-content: flex-end;
|
|
183
|
+
margin-top: 50px;
|
|
184
|
+
padding-top: 10px;
|
|
185
|
+
|
|
186
|
+
& .button {
|
|
187
|
+
margin-left: 5px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* The default is too tight between the leftmost button and text hints or links. */
|
|
191
|
+
& .button:first-of-type {
|
|
192
|
+
margin-left: 10px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Work around ng-show waiting the transition duration before hiding.
|
|
198
|
+
* https://github.com/angular/angular.js/issues/8224
|
|
199
|
+
* Apply the .ng-animate-opt-in class to get the old behavior back.
|
|
200
|
+
*/
|
|
201
|
+
.button:global(.ng-animate):not(:global(.ng-animate-opt-in)) {
|
|
202
|
+
transition-duration: 0s;
|
|
203
|
+
}
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
@import '../variables/typography.less';
|
|
15
15
|
@import '../variables/z-index.less';
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
// Alert boxes
|
|
19
18
|
// -------------------------------------------------
|
|
20
19
|
@alert-border-radius: 4px;
|
|
@@ -31,41 +30,40 @@
|
|
|
31
30
|
|
|
32
31
|
// Alert colors
|
|
33
32
|
.o-alert--success {
|
|
34
|
-
color: @color-success;
|
|
35
33
|
background-color: @color-success-light;
|
|
36
34
|
border-color: darken(@color-success-light, 10%);
|
|
35
|
+
color: @color-success;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.o-alert--danger {
|
|
40
|
-
color: @color-danger;
|
|
41
39
|
background-color: @color-danger-light;
|
|
42
40
|
border-color: darken(@color-danger-light, 10%);
|
|
41
|
+
color: @color-danger;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.o-alert--warning {
|
|
46
|
-
color: @color-warning;
|
|
47
45
|
background-color: @color-warning-light;
|
|
48
46
|
border-color: darken(@color-warning-light, 10%);
|
|
47
|
+
color: @color-warning;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
.o-alert--info {
|
|
52
|
-
color: @color-info;
|
|
53
51
|
background-color: @color-info-light;
|
|
54
52
|
border-color: darken(@color-info-light, 10%);
|
|
53
|
+
color: @color-info;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
.o-alert a
|
|
56
|
+
.o-alert a { color: @color-gray-dark; }
|
|
58
57
|
.o-alert.o-alert--success a { color: @color-success; }
|
|
59
|
-
.o-alert.o-alert--danger a
|
|
58
|
+
.o-alert.o-alert--danger a { color: @color-danger; }
|
|
60
59
|
.o-alert.o-alert--warning a { color: @color-warning; }
|
|
61
|
-
.o-alert.o-alert--info a
|
|
60
|
+
.o-alert.o-alert--info a { color: @color-info; }
|
|
62
61
|
|
|
63
62
|
// Headers
|
|
64
63
|
.o-alert__header {
|
|
65
64
|
font-weight: @font-weight-bold;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
|
-
|
|
69
67
|
// Content box (wrapper for visual block of content)
|
|
70
68
|
// -------------------------------------------------
|
|
71
69
|
.o-content-box__title {
|
|
@@ -82,11 +80,10 @@
|
|
|
82
80
|
padding: 10px 10px 40px 0;
|
|
83
81
|
}
|
|
84
82
|
|
|
85
|
-
|
|
86
83
|
// Tab content boxes
|
|
87
84
|
// -------------------------------------------------
|
|
88
85
|
.o-tab-content {
|
|
89
|
-
background-color:
|
|
86
|
+
background-color: #fff;
|
|
90
87
|
padding: 20px 10px 10px 10px;
|
|
91
88
|
|
|
92
89
|
&.has-no-top-padding {
|
|
@@ -94,18 +91,17 @@
|
|
|
94
91
|
}
|
|
95
92
|
}
|
|
96
93
|
|
|
97
|
-
|
|
98
94
|
// Master site wrapper
|
|
99
95
|
// -------------------------------------------------
|
|
100
96
|
@footer-height: 30px;
|
|
101
97
|
@wrap-padding-top: 50px;
|
|
102
98
|
|
|
103
99
|
.o-wrap-master {
|
|
104
|
-
|
|
105
|
-
height: auto !important;
|
|
100
|
+
height: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
106
101
|
height: 100%;
|
|
107
102
|
// Negative indent & pad wrapper to accommodate header and footer
|
|
108
103
|
margin: 0 auto (1 - @footer-height) auto;
|
|
104
|
+
min-height: 100%;
|
|
109
105
|
padding: (@wrap-padding-top + @site-header-height) 0 (3 * @footer-height) 0;
|
|
110
106
|
|
|
111
107
|
// Reduce padding to accommodate smaller header on small height screens
|
|
@@ -122,19 +118,19 @@
|
|
|
122
118
|
@media (min-width: 531px) {
|
|
123
119
|
padding-top: 50px;
|
|
124
120
|
}
|
|
121
|
+
|
|
125
122
|
@media (max-width: 530px) {
|
|
126
123
|
padding-top: 16px;
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
126
|
|
|
130
|
-
|
|
131
|
-
//Full browser wrappers
|
|
127
|
+
// Full browser wrappers
|
|
132
128
|
.o-full-browser-wrapper {
|
|
129
|
+
background-color: #000;
|
|
130
|
+
height: 100%;
|
|
133
131
|
margin: 0;
|
|
134
132
|
padding: 0;
|
|
135
|
-
height: 100%;
|
|
136
133
|
width: 100%;
|
|
137
|
-
background-color: #000;
|
|
138
134
|
|
|
139
135
|
& .c-footer {
|
|
140
136
|
display: none;
|
|
@@ -142,14 +138,13 @@
|
|
|
142
138
|
}
|
|
143
139
|
|
|
144
140
|
.o-full-browser-wrapper__inner {
|
|
145
|
-
height: 100%;
|
|
146
141
|
display: inline;
|
|
142
|
+
height: 100%;
|
|
147
143
|
margin: 0;
|
|
148
144
|
padding: 0;
|
|
149
145
|
width: 100%;
|
|
150
146
|
}
|
|
151
147
|
|
|
152
|
-
|
|
153
148
|
// Dropdown menu
|
|
154
149
|
//
|
|
155
150
|
// By default, it appears attached to the bottom right
|
|
@@ -178,8 +173,8 @@
|
|
|
178
173
|
}
|
|
179
174
|
|
|
180
175
|
.o-dropdown-menu--open-left {
|
|
181
|
-
right: auto;
|
|
182
176
|
left: 0;
|
|
177
|
+
right: auto;
|
|
183
178
|
}
|
|
184
179
|
|
|
185
180
|
.o-dropdown-menu li {
|
|
@@ -194,8 +189,8 @@
|
|
|
194
189
|
|
|
195
190
|
.o-dropdown-menu__item {
|
|
196
191
|
display: block;
|
|
197
|
-
padding: 5px 20px 4px 25px;
|
|
198
192
|
overflow: hidden;
|
|
193
|
+
padding: 5px 20px 4px 25px;
|
|
199
194
|
text-decoration: none;
|
|
200
195
|
text-overflow: ellipsis;
|
|
201
196
|
}
|
|
@@ -230,8 +225,8 @@
|
|
|
230
225
|
}
|
|
231
226
|
|
|
232
227
|
.o-dropdown-menu__separator {
|
|
233
|
-
margin: 10px 0;
|
|
234
228
|
border-bottom: 1px solid @color-gray-xx-light;
|
|
229
|
+
margin: 10px 0;
|
|
235
230
|
}
|
|
236
231
|
|
|
237
232
|
// List (ul/li)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* stylelint-disable max-nesting-depth */
|
|
2
|
+
|
|
1
3
|
//
|
|
2
4
|
// Forms
|
|
3
5
|
//
|
|
@@ -11,7 +13,6 @@
|
|
|
11
13
|
@import '../variables/forms.less';
|
|
12
14
|
@import '../variables/typography.less';
|
|
13
15
|
|
|
14
|
-
|
|
15
16
|
// Form Control (input, select, etc)
|
|
16
17
|
// ----------------------------------------------
|
|
17
18
|
.o-form-control {
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
height: @form-input-height;
|
|
26
27
|
line-height: @font-line-height-base;
|
|
27
28
|
padding: 5px 12px;
|
|
28
|
-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .3s;
|
|
29
|
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.3s;
|
|
29
30
|
width: 100%;
|
|
30
31
|
|
|
31
32
|
&[disabled] {
|
|
@@ -35,11 +36,11 @@
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
&.o-form-control--large {
|
|
38
|
-
|
|
39
|
-
padding: 10px 16px;
|
|
39
|
+
border-radius: 6px;
|
|
40
40
|
font-size: 18px;
|
|
41
|
+
height: 46px;
|
|
41
42
|
line-height: 1.3333333;
|
|
42
|
-
|
|
43
|
+
padding: 10px 16px;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
&:focus {
|
|
@@ -53,7 +54,6 @@ textarea.o-form-control {
|
|
|
53
54
|
resize: vertical;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
|
|
57
57
|
// Form group
|
|
58
58
|
// (a label and input, with the label on top)
|
|
59
59
|
// ----------------------------------------------
|
|
@@ -67,12 +67,11 @@ textarea.o-form-control {
|
|
|
67
67
|
display: block;
|
|
68
68
|
|
|
69
69
|
&.is-dark-theme {
|
|
70
|
-
color:
|
|
70
|
+
color: #fff;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
76
75
|
// Labels
|
|
77
76
|
// ----------------------------------------------
|
|
78
77
|
// TODO: Remove this backwards compat code once labels all have the
|
|
@@ -87,23 +86,23 @@ label {
|
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
&.is-dark-theme {
|
|
90
|
-
color:
|
|
89
|
+
color: #fff;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
|
|
95
93
|
// Input groups (appending buttons to input boxes)
|
|
96
94
|
// ----------------------------------------------
|
|
97
95
|
.o-input-group {
|
|
96
|
+
border-collapse: separate;
|
|
98
97
|
display: table;
|
|
99
98
|
position: relative;
|
|
100
|
-
border-collapse: separate;
|
|
101
99
|
|
|
102
100
|
.o-form-control {
|
|
103
101
|
&:first-child {
|
|
104
|
-
border-top-right-radius: 0;
|
|
105
102
|
border-bottom-right-radius: 0;
|
|
103
|
+
border-top-right-radius: 0;
|
|
106
104
|
}
|
|
105
|
+
|
|
107
106
|
&:not(:first-child) {
|
|
108
107
|
&:not(:last-child) {
|
|
109
108
|
border-radius: 0;
|
|
@@ -116,10 +115,12 @@ label {
|
|
|
116
115
|
&:first-child {
|
|
117
116
|
border-right: none;
|
|
118
117
|
}
|
|
118
|
+
|
|
119
119
|
&:last-child {
|
|
120
120
|
border-left: none;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
+
|
|
123
124
|
.o-input-group__add-on {
|
|
124
125
|
background-color: #fff;
|
|
125
126
|
color: @color-gray-medium;
|
|
@@ -129,7 +130,6 @@ label {
|
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.o-input-group__add-on {
|
|
@@ -143,37 +143,39 @@ label {
|
|
|
143
143
|
line-height: 1;
|
|
144
144
|
padding: 6px 12px;
|
|
145
145
|
text-align: center;
|
|
146
|
+
transition: box-shadow ease-in-out 0.3s;
|
|
147
|
+
vertical-align: middle;
|
|
146
148
|
white-space: nowrap;
|
|
147
149
|
width: 1%;
|
|
148
|
-
vertical-align: middle;
|
|
149
|
-
transition: box-shadow ease-in-out .3s;
|
|
150
150
|
|
|
151
151
|
&:first-child {
|
|
152
|
+
border-bottom-right-radius: 0;
|
|
152
153
|
border-right: 0;
|
|
153
154
|
border-top-right-radius: 0;
|
|
154
|
-
border-bottom-right-radius: 0;
|
|
155
155
|
}
|
|
156
|
+
|
|
156
157
|
&:last-child {
|
|
158
|
+
border-bottom-left-radius: 0;
|
|
157
159
|
border-left: 0;
|
|
158
160
|
border-top-left-radius: 0;
|
|
159
|
-
border-bottom-left-radius: 0;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
163
|
+
|
|
162
164
|
.o-input-group__add-on--condensed {
|
|
163
165
|
padding: 6px 6px;
|
|
164
166
|
}
|
|
165
167
|
|
|
166
|
-
|
|
167
168
|
// Form row (wrapper for visual row of form controls)
|
|
168
169
|
// ---------------------------------------------------
|
|
169
170
|
.o-form-row {
|
|
170
171
|
margin-bottom: 15px;
|
|
171
172
|
|
|
172
|
-
|
|
173
|
+
&::before {
|
|
173
174
|
content: ' ';
|
|
174
175
|
display: table;
|
|
175
176
|
}
|
|
176
|
-
|
|
177
|
+
|
|
178
|
+
&::after {
|
|
177
179
|
clear: both;
|
|
178
180
|
content: ' ';
|
|
179
181
|
display: table;
|
|
@@ -189,9 +191,8 @@ label {
|
|
|
189
191
|
// Validation
|
|
190
192
|
// ---------------------------------------------------
|
|
191
193
|
|
|
192
|
-
|
|
194
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
193
195
|
.o-form-control {
|
|
194
|
-
|
|
195
196
|
// Override native highlighting
|
|
196
197
|
&:invalid {
|
|
197
198
|
box-shadow: none;
|
|
@@ -201,18 +202,23 @@ label {
|
|
|
201
202
|
ng-form.o-form & {
|
|
202
203
|
&.ng-dirty {
|
|
203
204
|
border: 1px solid @color-dirty-control;
|
|
205
|
+
|
|
204
206
|
&:focus {
|
|
205
207
|
box-shadow: @input-dirty-focus-box-shadow;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
210
|
+
|
|
208
211
|
&.ng-invalid {
|
|
209
212
|
border: 1px solid @color-danger;
|
|
213
|
+
|
|
210
214
|
&:focus {
|
|
211
215
|
box-shadow: @input-invalid-focus-box-shadow;
|
|
212
216
|
}
|
|
213
217
|
}
|
|
218
|
+
|
|
214
219
|
&.ng-pristine {
|
|
215
220
|
border: 1px solid @color-gray-x-light;
|
|
221
|
+
|
|
216
222
|
&:focus {
|
|
217
223
|
box-shadow: initial;
|
|
218
224
|
}
|
|
@@ -225,37 +231,39 @@ label {
|
|
|
225
231
|
ng-form.o-form .o-input-group & {
|
|
226
232
|
&:not(:first-child) {
|
|
227
233
|
border-left-color: @color-gray-x-light;
|
|
234
|
+
|
|
228
235
|
&:focus {
|
|
229
236
|
&.ng-dirty {
|
|
230
237
|
box-shadow: @input-dirty-focus-box-shadow-horz3;
|
|
231
238
|
}
|
|
239
|
+
|
|
232
240
|
&.ng-invalid {
|
|
233
241
|
box-shadow: @input-invalid-focus-box-shadow-horz3;
|
|
234
242
|
}
|
|
235
243
|
}
|
|
236
244
|
}
|
|
245
|
+
|
|
237
246
|
&:not(:last-child) {
|
|
238
247
|
border-right-color: @color-gray-x-light;
|
|
239
248
|
}
|
|
240
249
|
}
|
|
241
250
|
|
|
242
|
-
|
|
243
251
|
// support smaller sized inputs if part of o-input-group-sm
|
|
244
252
|
.o-input-group--sm & {
|
|
245
|
-
|
|
246
|
-
padding: 5px 10px;
|
|
253
|
+
border-radius: 3px;
|
|
247
254
|
font-size: 12px;
|
|
255
|
+
height: 30px;
|
|
248
256
|
line-height: 1.5;
|
|
249
|
-
|
|
257
|
+
padding: 5px 10px;
|
|
250
258
|
}
|
|
251
259
|
|
|
252
260
|
// support inverse color for navbar use
|
|
253
261
|
|
|
254
262
|
.o-input-group--inverse & {
|
|
255
|
-
&[type=text] {
|
|
256
|
-
color: #fff;
|
|
263
|
+
&[type='text'] {
|
|
257
264
|
background-color: #333;
|
|
258
265
|
border-color: #666;
|
|
266
|
+
color: #fff;
|
|
259
267
|
|
|
260
268
|
&:focus {
|
|
261
269
|
box-shadow: none;
|
|
@@ -263,17 +271,15 @@ label {
|
|
|
263
271
|
}
|
|
264
272
|
|
|
265
273
|
&::placeholder {
|
|
266
|
-
color: #ccc
|
|
274
|
+
color: #ccc;
|
|
267
275
|
}
|
|
268
276
|
}
|
|
269
277
|
}
|
|
270
278
|
|
|
271
|
-
|
|
272
279
|
.o-input-group__add-on--focus {
|
|
273
280
|
box-shadow: @input-focus-box-shadow;
|
|
274
281
|
}
|
|
275
282
|
|
|
276
|
-
|
|
277
283
|
// Dirty needs to come first, because an invalid field is both dirty and inval
|
|
278
284
|
.o-input-group__add-on--dirty {
|
|
279
285
|
border-bottom-color: @color-dirty-control;
|
|
@@ -377,8 +383,6 @@ ng-form:not(.ng-pristine) .o-input-group__add-on--invalid {
|
|
|
377
383
|
}
|
|
378
384
|
}
|
|
379
385
|
|
|
380
|
-
|
|
381
|
-
|
|
382
386
|
// o-form--no-highlight (reset)
|
|
383
387
|
// Form controls will turn green, red when dirty, invalid. The no-highlight
|
|
384
388
|
// class removes this highlighting when inline feeback is not desired (example: login form)
|
|
@@ -402,10 +406,12 @@ ng-form.o-form--no-highlight .datepicker-wrapper input.form-control.ng-dirty ~ s
|
|
|
402
406
|
ng-form.o-form--no-dirty-highlight .form-control.ng-dirty,
|
|
403
407
|
ng-form.o-form--no-dirty-highlight .o-form-control.ng-dirty,
|
|
404
408
|
ng-form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dirty,
|
|
405
|
-
ng-form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dirty ~ span.input-group-btn > .btn-input-white
|
|
406
|
-
{
|
|
409
|
+
ng-form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dirty ~ span.input-group-btn > .btn-input-white {
|
|
407
410
|
border: solid 1px @color-gray-x-light;
|
|
411
|
+
|
|
408
412
|
&:focus {
|
|
409
413
|
box-shadow: @input-focus-box-shadow;
|
|
410
414
|
}
|
|
411
415
|
}
|
|
416
|
+
|
|
417
|
+
/* stylelint-enable max-nesting-depth */
|