@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
|
@@ -1,77 +1,93 @@
|
|
|
1
1
|
@font-path: '/fonts';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
@font-face {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
font-family: 'mfly-webfont';
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
src: url('@{font-path}/mfly-webfont.woff?v1.4') format('woff');
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
[class^=
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
font-weight: normal;
|
|
18
|
-
font-variant: normal;
|
|
19
|
-
text-transform: none;
|
|
20
|
-
line-height: 1;
|
|
10
|
+
[class^='mfly-font-'],
|
|
11
|
+
[class*=' mfly-font-'] {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
|
|
14
|
+
/* use !important to prevent issues with browser extensions that change fonts */
|
|
15
|
+
font-family: 'mfly-webfont' !important; /* stylelint-disable-line declaration-no-important */
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
/* Better Font Rendering =========== */
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-variant: normal;
|
|
22
|
+
font-weight: normal;
|
|
23
|
+
line-height: 1;
|
|
24
|
+
speak: none;
|
|
25
|
+
text-transform: none;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
.mfly-font-elvis
|
|
28
|
-
|
|
28
|
+
.mfly-font-elvis::before {
|
|
29
|
+
content: '\e907';
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
.mfly-font-slides::before {
|
|
33
|
+
content: '\e900';
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
|
|
36
|
+
.mfly-font-sheets::before {
|
|
37
|
+
content: '\e901';
|
|
35
38
|
}
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
|
|
40
|
+
.mfly-font-docs::before {
|
|
41
|
+
content: '\e902';
|
|
38
42
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
|
|
44
|
+
.mfly-font-powerpoint::before {
|
|
45
|
+
content: '\e903';
|
|
46
|
+
// color: #cc4829;
|
|
42
47
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
|
|
49
|
+
.mfly-font-excel::before {
|
|
50
|
+
content: '\e904';
|
|
51
|
+
// color: #2a784d;
|
|
46
52
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
|
|
54
|
+
.mfly-font-word::before {
|
|
55
|
+
content: '\e905';
|
|
56
|
+
// color: #2c5696;
|
|
50
57
|
}
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
|
|
59
|
+
.mfly-font-film-cut::before {
|
|
60
|
+
content: '\e906';
|
|
53
61
|
}
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
|
|
63
|
+
.mfly-font-loading-circle::before {
|
|
64
|
+
content: '\e800';
|
|
56
65
|
}
|
|
57
|
-
|
|
58
|
-
|
|
66
|
+
|
|
67
|
+
.mfly-font-offline::before {
|
|
68
|
+
content: '\e801';
|
|
59
69
|
}
|
|
60
|
-
|
|
61
|
-
|
|
70
|
+
|
|
71
|
+
.mfly-font-save::before {
|
|
72
|
+
content: '\e802';
|
|
62
73
|
}
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
|
|
75
|
+
.mfly-font-back10::before {
|
|
76
|
+
content: '\e803';
|
|
65
77
|
}
|
|
66
|
-
|
|
67
|
-
|
|
78
|
+
|
|
79
|
+
.mfly-font-forward30::before {
|
|
80
|
+
content: '\e804';
|
|
68
81
|
}
|
|
69
|
-
|
|
70
|
-
|
|
82
|
+
|
|
83
|
+
.mfly-font-detail-view::before {
|
|
84
|
+
content: '\e805';
|
|
71
85
|
}
|
|
72
|
-
|
|
73
|
-
|
|
86
|
+
|
|
87
|
+
.mfly-font-full-screen-view::before {
|
|
88
|
+
content: '\e806';
|
|
74
89
|
}
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
|
|
91
|
+
.mfly-font-full-browser-view::before {
|
|
92
|
+
content: '\e807';
|
|
77
93
|
}
|
|
@@ -6,16 +6,21 @@
|
|
|
6
6
|
font-family: 'Poppins';
|
|
7
7
|
font-style: normal;
|
|
8
8
|
font-weight: 300;
|
|
9
|
-
src:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
src:
|
|
10
|
+
local('Poppins Light'),
|
|
11
|
+
local('Poppins-Light'),
|
|
12
|
+
url('@{font-path}/poppins-v9-latin-300.woff2') format('woff2'),
|
|
13
|
+
url('@{font-path}/poppins-v9-latin-300.woff') format('woff'); /* Modern Browsers */
|
|
14
|
+
}
|
|
15
|
+
|
|
13
16
|
/* poppins-500 - latin */
|
|
14
17
|
@font-face {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
font-family: 'Poppins';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
src:
|
|
22
|
+
local('Poppins Medium'),
|
|
23
|
+
local('Poppins-Medium'),
|
|
24
|
+
url('@{font-path}/poppins-v9-latin-500.woff2') format('woff2'),
|
|
25
|
+
url('@{font-path}/poppins-v9-latin-500.woff') format('woff'); /* Modern Browsers */
|
|
21
26
|
}
|
|
@@ -3,28 +3,36 @@
|
|
|
3
3
|
|
|
4
4
|
/* roboto-300 - latin */
|
|
5
5
|
@font-face {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
font-family: 'Roboto';
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 300;
|
|
9
|
+
src:
|
|
10
|
+
local('Roboto Light'),
|
|
11
|
+
local('Roboto-Light'),
|
|
12
|
+
url('@{font-path}/roboto-v20-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
|
|
13
|
+
url('@{font-path}/roboto-v20-latin-300.woff') format('woff'); /* Modern Browsers */
|
|
12
14
|
}
|
|
15
|
+
|
|
13
16
|
/* roboto-regular - latin */
|
|
14
17
|
@font-face {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
font-family: 'Roboto';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
src:
|
|
22
|
+
local('Roboto'),
|
|
23
|
+
local('Roboto-Regular'),
|
|
24
|
+
url('@{font-path}/roboto-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
|
|
25
|
+
url('@{font-path}/roboto-v20-latin-regular.woff') format('woff'); /* Modern Browsers */
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
/* roboto-700 - latin */
|
|
23
29
|
@font-face {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
font-family: 'Roboto';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
src:
|
|
34
|
+
local('Roboto Bold'),
|
|
35
|
+
local('Roboto-Bold'),
|
|
36
|
+
url('@{font-path}/roboto-v20-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
37
|
+
url('@{font-path}/roboto-v20-latin-700.woff') format('woff'); /* Modern Browsers */
|
|
30
38
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
|
|
1
3
|
//
|
|
2
4
|
// Vendor Prefixes
|
|
3
5
|
//
|
|
@@ -268,7 +270,6 @@
|
|
|
268
270
|
user-select: @select;
|
|
269
271
|
}
|
|
270
272
|
|
|
271
|
-
|
|
272
273
|
// Opacity
|
|
273
274
|
.opacity(@opacity) {
|
|
274
275
|
opacity: @opacity;
|
|
@@ -282,3 +283,5 @@
|
|
|
282
283
|
background-color: rgb(@r, @g, @b);
|
|
283
284
|
background-color: rgba(@r, @g, @b, @a);
|
|
284
285
|
}
|
|
286
|
+
|
|
287
|
+
/* stylelint-enable */
|
|
@@ -11,13 +11,12 @@
|
|
|
11
11
|
@import '../variables/colors.less';
|
|
12
12
|
@import '../variables/typography.less';
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
// Local Mixins
|
|
16
15
|
// -------------------------------------------------
|
|
17
16
|
.disabled-button () {
|
|
18
17
|
box-shadow: none;
|
|
19
18
|
cursor: not-allowed;
|
|
20
|
-
opacity: .65;
|
|
19
|
+
opacity: 0.65;
|
|
21
20
|
pointer-events: none;
|
|
22
21
|
}
|
|
23
22
|
|
|
@@ -28,11 +27,10 @@
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
.hover-primary-button () {
|
|
30
|
+
box-shadow: inset 1000px 400px 0 0 rgba(0, 0, 0, 0.2);
|
|
31
31
|
color: @color-button-primary-text;
|
|
32
|
-
box-shadow: inset 1000px 400px 0px 0px rgba(0,0,0,.2);
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
|
|
36
34
|
// Default button
|
|
37
35
|
// -------------------------------------------------
|
|
38
36
|
.o-button {
|
|
@@ -40,7 +38,7 @@
|
|
|
40
38
|
background-image: none;
|
|
41
39
|
border: 1px solid @color-button-default-border;
|
|
42
40
|
border-radius: 17px;
|
|
43
|
-
box-shadow: inset 1000px 400px
|
|
41
|
+
box-shadow: inset 1000px 400px 0 0 rgba(0, 0, 0, 0);
|
|
44
42
|
color: @color-button-default-text;
|
|
45
43
|
cursor: pointer;
|
|
46
44
|
display: inline-block;
|
|
@@ -58,18 +56,30 @@
|
|
|
58
56
|
// Override the default browser focus outline with a more attractive one.
|
|
59
57
|
@button-focus-outline-gap: 2px;
|
|
60
58
|
|
|
61
|
-
&:active,
|
|
59
|
+
&:active,
|
|
60
|
+
&.active {
|
|
62
61
|
background-image: none;
|
|
62
|
+
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
63
|
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
63
64
|
outline: 0;
|
|
64
|
-
-
|
|
65
|
-
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
|
65
|
+
.hover-button();
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
&.disabled,
|
|
69
|
-
|
|
70
|
-
&.
|
|
71
|
-
&.disabled:
|
|
72
|
-
|
|
68
|
+
&.disabled,
|
|
69
|
+
&[disabled],
|
|
70
|
+
&.is-disabled,
|
|
71
|
+
&.disabled:hover,
|
|
72
|
+
&[disabled]:hover,
|
|
73
|
+
&.is-disabled:hover,
|
|
74
|
+
&.disabled:focus,
|
|
75
|
+
&[disabled]:focus,
|
|
76
|
+
&.is-disabled:focus,
|
|
77
|
+
&.disabled:active,
|
|
78
|
+
&[disabled]:active,
|
|
79
|
+
&.is-disabled:active,
|
|
80
|
+
&.disabled.active,
|
|
81
|
+
&[disabled].active,
|
|
82
|
+
&.is-disabled.active {
|
|
73
83
|
.disabled-button();
|
|
74
84
|
}
|
|
75
85
|
|
|
@@ -87,10 +97,6 @@
|
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
99
|
|
|
90
|
-
&:active, &.active {
|
|
91
|
-
.hover-button();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
100
|
.open .dropdown-toggle & {
|
|
95
101
|
background-image: none;
|
|
96
102
|
.hover-button();
|
|
@@ -104,7 +110,6 @@
|
|
|
104
110
|
transition-duration: 0s;
|
|
105
111
|
}
|
|
106
112
|
|
|
107
|
-
|
|
108
113
|
// Primary button
|
|
109
114
|
// -------------------------------------------------
|
|
110
115
|
&.o-button--primary {
|
|
@@ -117,16 +122,15 @@
|
|
|
117
122
|
.hover-primary-button();
|
|
118
123
|
}
|
|
119
124
|
}
|
|
125
|
+
}
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.open &.dropdown-toggle {
|
|
126
|
-
.hover-primary-button();
|
|
127
|
-
}
|
|
127
|
+
.open .o-button--primary.dropdown-toggle {
|
|
128
|
+
.hover-primary-button();
|
|
128
129
|
}
|
|
129
130
|
|
|
131
|
+
&.o-button--primary.active {
|
|
132
|
+
.hover-primary-button();
|
|
133
|
+
}
|
|
130
134
|
|
|
131
135
|
// Tertiary button
|
|
132
136
|
// -------------------------------------------------
|
|
@@ -139,10 +143,10 @@
|
|
|
139
143
|
.hover-button();
|
|
140
144
|
}
|
|
141
145
|
}
|
|
146
|
+
}
|
|
142
147
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
148
|
+
&.o-button--tertiary.active {
|
|
149
|
+
.hover-button();
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
// Large button
|
|
@@ -162,24 +166,28 @@
|
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
// Fix outline border-radius for larger buttons
|
|
165
|
-
&.o-button--large,
|
|
166
|
-
|
|
169
|
+
&.o-button--large,
|
|
170
|
+
&.o-button-login {
|
|
171
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
|
172
|
+
&:focus,
|
|
173
|
+
&:active:focus,
|
|
174
|
+
&.active:focus {
|
|
175
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
|
167
176
|
&::after {
|
|
168
177
|
border-radius: 26px;
|
|
169
178
|
}
|
|
170
179
|
}
|
|
171
180
|
}
|
|
172
181
|
|
|
173
|
-
|
|
174
182
|
// Small button
|
|
175
183
|
// -------------------------------------------------
|
|
176
184
|
&.o-button--small {
|
|
177
|
-
background:
|
|
185
|
+
background: #fff;
|
|
178
186
|
border: 1px solid @color-gray-x-light;
|
|
179
187
|
border-radius: 16px;
|
|
180
|
-
line-height: 1;
|
|
181
188
|
font-size: 13px;
|
|
182
189
|
font-weight: @font-weight-regular;
|
|
190
|
+
line-height: 1;
|
|
183
191
|
padding: 6px 12px;
|
|
184
192
|
white-space: nowrap;
|
|
185
193
|
|
|
@@ -188,17 +196,14 @@
|
|
|
188
196
|
.hover-button();
|
|
189
197
|
}
|
|
190
198
|
}
|
|
191
|
-
|
|
192
|
-
// Fix outline border-radius for smaller buttons
|
|
193
|
-
&.o-button--small {
|
|
194
|
-
&:focus, &:active:focus, &.active:focus {
|
|
195
|
-
&::after {
|
|
196
|
-
border-radius: 16px;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
199
|
}
|
|
201
200
|
|
|
201
|
+
// Fix outline border-radius for smaller buttons
|
|
202
|
+
&.o-button--small:focus,
|
|
203
|
+
&.o-button--small:active:focus,
|
|
204
|
+
&.o-button--small.active:focus&::after {
|
|
205
|
+
border-radius: 16px;
|
|
206
|
+
}
|
|
202
207
|
|
|
203
208
|
// Rounded rectangle button
|
|
204
209
|
// -------------------------------------------------
|
|
@@ -208,12 +213,12 @@
|
|
|
208
213
|
border-radius: 6px;
|
|
209
214
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 30%);
|
|
210
215
|
font-size: 13px;
|
|
216
|
+
font-weight: @font-weight-regular;
|
|
211
217
|
line-height: 1;
|
|
212
218
|
margin-right: 6px;
|
|
213
219
|
padding: 6px 12px;
|
|
214
220
|
transition: all 0.25s ease-in;
|
|
215
221
|
white-space: nowrap;
|
|
216
|
-
font-weight: @font-weight-regular;
|
|
217
222
|
|
|
218
223
|
@media (hover) {
|
|
219
224
|
&:hover {
|
|
@@ -221,14 +226,13 @@
|
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
228
|
|
|
229
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
|
224
230
|
& span:last-of-type {
|
|
225
231
|
margin-left: 4px;
|
|
226
232
|
}
|
|
227
233
|
}
|
|
228
234
|
}
|
|
229
235
|
|
|
230
|
-
|
|
231
|
-
|
|
232
236
|
// Button groups
|
|
233
237
|
// -------------------------------------------------
|
|
234
238
|
.o-button-group {
|
|
@@ -237,21 +241,21 @@
|
|
|
237
241
|
|
|
238
242
|
// Interior rounded edges and margins are removed & borders are added:
|
|
239
243
|
& > .o-button:not(:first-child) {
|
|
244
|
+
border-bottom-left-radius: 0;
|
|
240
245
|
border-left: none;
|
|
241
246
|
border-top-left-radius: 0;
|
|
242
|
-
border-bottom-left-radius: 0;
|
|
243
247
|
margin-left: 0;
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
& > .o-button:not(:last-child) {
|
|
247
251
|
border-bottom-right-radius: 0;
|
|
248
|
-
border-top-right-radius: 0;
|
|
249
|
-
margin-right: 0;
|
|
250
252
|
|
|
251
253
|
// All buttons except the last one get a right-border.
|
|
252
254
|
// The primary-background color looks good and ensures a primary button in
|
|
253
255
|
// the group doesn't have a clashing gray border against it.
|
|
254
256
|
border-right: 1px solid @color-button-default-border;
|
|
257
|
+
border-top-right-radius: 0;
|
|
258
|
+
margin-right: 0;
|
|
255
259
|
}
|
|
256
260
|
|
|
257
261
|
// "Selected" buttons can be used to indicate state.
|
|
@@ -291,7 +295,7 @@
|
|
|
291
295
|
|
|
292
296
|
& .o-button {
|
|
293
297
|
border: 1px solid @color-gray-x-light;
|
|
294
|
-
border-bottom-left-radius:
|
|
298
|
+
border-bottom-left-radius: 0;
|
|
295
299
|
border-bottom-right-radius: 5px;
|
|
296
300
|
border-top-left-radius: 0;
|
|
297
301
|
border-top-right-radius: 5px;
|
|
@@ -299,20 +303,23 @@
|
|
|
299
303
|
}
|
|
300
304
|
|
|
301
305
|
.o-input-group--sm & {
|
|
306
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
|
302
307
|
& .o-button {
|
|
303
|
-
height: 30px;
|
|
304
|
-
padding: 5px 10px;
|
|
305
|
-
font-size: 12px;
|
|
306
|
-
line-height: 1.5px;
|
|
307
308
|
border-bottom-right-radius: 3px;
|
|
308
309
|
border-top-right-radius: 3px;
|
|
310
|
+
font-size: 12px;
|
|
311
|
+
height: 30px;
|
|
312
|
+
line-height: 1.5px;
|
|
313
|
+
padding: 5px 10px;
|
|
309
314
|
}
|
|
310
315
|
}
|
|
316
|
+
|
|
311
317
|
.o-input-group--inverse & {
|
|
318
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
|
312
319
|
& .o-button {
|
|
313
320
|
background-color: @color-button-primary-background;
|
|
314
|
-
border-color: @color-button-primary-border;
|
|
315
321
|
border-bottom: 1px solid #666;
|
|
322
|
+
border-color: @color-button-primary-border;
|
|
316
323
|
color: @color-button-primary-text;
|
|
317
324
|
|
|
318
325
|
@media (hover) {
|
|
@@ -320,8 +327,8 @@
|
|
|
320
327
|
background-color: @color-gray-dark;
|
|
321
328
|
}
|
|
322
329
|
}
|
|
323
|
-
|
|
324
|
-
|
|
330
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
|
331
|
+
&.active {
|
|
325
332
|
background-color: @color-gray-dark;
|
|
326
333
|
}
|
|
327
334
|
}
|