fomantic-ui 2.9.0-beta.22 → 2.9.0-beta.220
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/.all-contributorsrc +197 -3
- package/.github/workflows/ci.yml +4 -4
- package/.github/workflows/nightly.yml +4 -4
- package/.github/workflows/release.yml +30 -0
- package/CONTRIBUTORS.md +74 -37
- package/README.md +1 -1
- package/dist/components/accordion.css +162 -26
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +29 -25
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +176 -134
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +18 -1
- package/dist/components/calendar.js +10 -9
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +26 -19
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +2 -1
- package/dist/components/checkbox.js +17 -11
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +11 -11
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +77 -1
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +28 -14
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +49 -13
- package/dist/components/dropdown.js +58 -33
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +2 -2
- package/dist/components/feed.css +28 -28
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +731 -625
- package/dist/components/flag.min.css +2 -2
- package/dist/components/form.css +106 -55
- package/dist/components/form.js +30 -28
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +11 -8
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +3 -1
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +6 -1
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +734 -17
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +13 -13
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +29 -5
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +41 -41
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +13 -1
- package/dist/components/modal.js +121 -46
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +4 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +7 -46
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +2 -2
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +90 -6
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +4 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +61 -39
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +23 -5
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +1168 -26
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +39 -1
- package/dist/components/toast.js +56 -28
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +4458 -1469
- package/dist/semantic.js +365 -203
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/examples/assets/library/iframe-content.js +5 -5
- package/package.json +10 -9
- package/src/definitions/behaviors/api.js +28 -24
- package/src/definitions/behaviors/form.js +29 -27
- package/src/definitions/collections/form.less +193 -140
- package/src/definitions/collections/grid.less +716 -680
- package/src/definitions/collections/menu.less +173 -126
- package/src/definitions/collections/message.less +48 -46
- package/src/definitions/collections/table.less +849 -262
- package/src/definitions/elements/button.less +586 -449
- package/src/definitions/elements/container.less +126 -8
- package/src/definitions/elements/emoji.less +15 -9
- package/src/definitions/elements/flag.less +7 -17
- package/src/definitions/elements/header.less +44 -35
- package/src/definitions/elements/icon.less +38 -31
- package/src/definitions/elements/input.less +256 -21
- package/src/definitions/elements/label.less +92 -91
- package/src/definitions/elements/list.less +55 -45
- package/src/definitions/elements/loader.less +30 -29
- package/src/definitions/elements/segment.less +146 -27
- package/src/definitions/elements/step.less +52 -48
- package/src/definitions/elements/text.less +17 -15
- package/src/definitions/globals/site.less +23 -2
- package/src/definitions/modules/accordion.less +175 -24
- package/src/definitions/modules/calendar.js +9 -8
- package/src/definitions/modules/calendar.less +20 -0
- package/src/definitions/modules/checkbox.js +16 -10
- package/src/definitions/modules/checkbox.less +34 -178
- package/src/definitions/modules/dimmer.less +21 -8
- package/src/definitions/modules/dropdown.js +57 -32
- package/src/definitions/modules/dropdown.less +145 -94
- package/src/definitions/modules/modal.js +120 -45
- package/src/definitions/modules/modal.less +12 -0
- package/src/definitions/modules/nag.less +20 -19
- package/src/definitions/modules/progress.js +3 -0
- package/src/definitions/modules/progress.less +19 -18
- package/src/definitions/modules/rating.less +49 -42
- package/src/definitions/modules/search.less +32 -16
- package/src/definitions/modules/sidebar.less +33 -19
- package/src/definitions/modules/slider.less +39 -38
- package/src/definitions/modules/tab.js +22 -4
- package/src/definitions/modules/toast.js +55 -27
- package/src/definitions/modules/toast.less +48 -16
- package/src/definitions/views/card.less +402 -361
- package/src/definitions/views/comment.less +92 -81
- package/src/definitions/views/feed.less +164 -144
- package/src/definitions/views/item.less +249 -196
- package/src/definitions/views/statistic.less +90 -88
- package/src/themes/bookish/elements/header.overrides +1 -1
- package/src/themes/chubby/elements/button.overrides +1 -1
- package/src/themes/chubby/elements/header.overrides +1 -1
- package/src/themes/default/collections/menu.variables +6 -0
- package/src/themes/default/collections/table.variables +52 -0
- package/src/themes/default/elements/button.variables +7 -1
- package/src/themes/default/elements/container.variables +8 -0
- package/src/themes/default/elements/flag.overrides +1635 -986
- package/src/themes/default/elements/flag.variables +7 -5
- package/src/themes/default/elements/icon.overrides +35 -28
- package/src/themes/default/elements/icon.variables +1 -0
- package/src/themes/default/elements/input.variables +15 -0
- package/src/themes/default/elements/segment.variables +8 -0
- package/src/themes/default/elements/step.overrides +1 -1
- package/src/themes/default/globals/site.variables +6 -0
- package/src/themes/default/globals/variation.variables +139 -6
- package/src/themes/default/modules/accordion.variables +49 -2
- package/src/themes/default/modules/calendar.variables +3 -0
- package/src/themes/default/modules/checkbox.variables +5 -5
- package/src/themes/default/modules/dimmer.variables +1 -1
- package/src/themes/default/modules/dropdown.variables +4 -10
- package/src/themes/default/modules/modal.variables +13 -0
- package/src/themes/default/modules/toast.variables +3 -0
- package/src/themes/famfamfam/elements/flag.overrides +1026 -0
- package/src/themes/famfamfam/elements/flag.variables +13 -0
- package/src/themes/instagram/views/card.overrides +1 -1
- package/src/themes/material/collections/menu.overrides +1 -1
- package/src/themes/material/elements/button.overrides +1 -1
- package/src/themes/material/elements/header.overrides +1 -1
- package/src/themes/material/modules/dropdown.overrides +1 -1
- package/src/themes/material/modules/modal.overrides +1 -1
- package/src/themes/rtl/globals/site.overrides +1 -1
- package/tasks/build/css.js +6 -1
- package/tasks/config/project/install.js +11 -5
- package/test/helpers/sinon.js +1 -1
@@ -31,26 +31,25 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
/* Title */
|
34
|
-
.ui.accordion .title,
|
35
|
-
.ui.accordion
|
34
|
+
.ui.accordion.menu .item > .title,
|
35
|
+
.ui.accordion > .title,
|
36
|
+
.ui.accordion .accordion > .title {
|
36
37
|
cursor: pointer;
|
37
|
-
}
|
38
|
-
|
39
|
-
/* Default Styling */
|
40
|
-
.ui.accordion .title:not(.ui) {
|
41
38
|
padding: @titlePadding;
|
42
39
|
font-family: @titleFont;
|
43
40
|
font-size: @titleFontSize;
|
44
41
|
color: @titleColor;
|
42
|
+
list-style: none;
|
43
|
+
line-height: @titleLineHeight;
|
45
44
|
}
|
46
45
|
|
47
46
|
/* Default Styling */
|
48
|
-
.ui.accordion:not(.styled) .title ~ .content
|
49
|
-
.ui.accordion:not(.styled) .accordion .title ~ .content
|
47
|
+
.ui.accordion:not(.styled) .title ~ .content,
|
48
|
+
.ui.accordion:not(.styled) .accordion .title ~ .content {
|
50
49
|
margin: @contentMargin;
|
51
50
|
padding: @contentPadding;
|
52
51
|
}
|
53
|
-
.ui.accordion:not(.styled) .title ~ .content:
|
52
|
+
.ui.accordion:not(.styled) .title ~ .content:last-child {
|
54
53
|
padding-bottom: 0;
|
55
54
|
}
|
56
55
|
|
@@ -68,6 +67,10 @@
|
|
68
67
|
transition: @iconTransition;
|
69
68
|
vertical-align: @iconVerticalAlign;
|
70
69
|
transform: @iconTransform;
|
70
|
+
&.right when (@variationAccordionRightDropdown) {
|
71
|
+
float:right;
|
72
|
+
transform: @iconTransformRight;
|
73
|
+
}
|
71
74
|
}
|
72
75
|
|
73
76
|
/*--------------
|
@@ -95,6 +98,8 @@
|
|
95
98
|
States
|
96
99
|
*******************************/
|
97
100
|
|
101
|
+
.ui.accordion[open] > .title .dropdown.icon,
|
102
|
+
.ui.accordion .accordion[open] > .title .dropdown.icon,
|
98
103
|
.ui.accordion .active.title .dropdown.icon,
|
99
104
|
.ui.accordion .accordion .active.title .dropdown.icon {
|
100
105
|
transform: @activeIconTransform;
|
@@ -123,8 +128,8 @@
|
|
123
128
|
background: @styledBackground;
|
124
129
|
box-shadow: @styledBoxShadow;
|
125
130
|
}
|
126
|
-
.ui.styled.accordion .title,
|
127
|
-
.ui.styled.accordion .accordion .title {
|
131
|
+
.ui.styled.accordion > .title,
|
132
|
+
.ui.styled.accordion .accordion > .title {
|
128
133
|
margin: @styledTitleMargin;
|
129
134
|
padding: @styledTitlePadding;
|
130
135
|
color: @styledTitleColor;
|
@@ -133,49 +138,101 @@
|
|
133
138
|
transition: @styledTitleTransition;
|
134
139
|
}
|
135
140
|
.ui.styled.accordion > .title:first-child,
|
136
|
-
.ui.styled.accordion .accordion .title:first-child {
|
141
|
+
.ui.styled.accordion .accordion > .title:first-child {
|
137
142
|
border-top: none;
|
138
143
|
}
|
139
144
|
|
140
145
|
|
141
146
|
/* Content */
|
142
|
-
.ui.styled.accordion .content
|
143
|
-
.ui.styled.accordion .accordion .content {
|
147
|
+
.ui.styled.accordion > .content {
|
144
148
|
margin: @styledContentMargin;
|
145
149
|
padding: @styledContentPadding;
|
146
150
|
}
|
147
|
-
.ui.styled.accordion .accordion .content {
|
151
|
+
.ui.styled.accordion .accordion > .content {
|
148
152
|
margin: @styledChildContentMargin;
|
149
153
|
padding: @styledChildContentPadding;
|
150
154
|
}
|
151
155
|
|
152
156
|
|
153
157
|
/* Hover */
|
154
|
-
.ui.styled.accordion .title:hover
|
155
|
-
.ui.styled.accordion .active.title,
|
156
|
-
.ui.styled.accordion .accordion .title:hover,
|
157
|
-
.ui.styled.accordion .accordion .active.title {
|
158
|
+
.ui.styled.accordion > .title:hover {
|
158
159
|
background: @styledTitleHoverBackground;
|
159
160
|
color: @styledTitleHoverColor;
|
160
161
|
}
|
161
|
-
.ui.styled.accordion .accordion .title:hover
|
162
|
-
.ui.styled.accordion .accordion .active.title {
|
162
|
+
.ui.styled.accordion .accordion > .title:hover {
|
163
163
|
background: @styledHoverChildTitleBackground;
|
164
164
|
color: @styledHoverChildTitleColor;
|
165
165
|
}
|
166
166
|
|
167
167
|
|
168
168
|
/* Active */
|
169
|
+
.ui.styled.accordion[open] > .title,
|
169
170
|
.ui.styled.accordion .active.title {
|
170
171
|
background: @styledActiveTitleBackground;
|
171
172
|
color: @styledActiveTitleColor;
|
172
173
|
}
|
174
|
+
.ui.styled.accordion .accordion[open] > .title,
|
173
175
|
.ui.styled.accordion .accordion .active.title {
|
174
176
|
background: @styledActiveChildTitleBackground;
|
175
177
|
color: @styledActiveChildTitleColor;
|
176
178
|
}
|
177
179
|
}
|
178
180
|
|
181
|
+
& when (@variationAccordionCompact) {
|
182
|
+
/*--------------
|
183
|
+
Compact
|
184
|
+
---------------*/
|
185
|
+
|
186
|
+
/* Default Styling */
|
187
|
+
|
188
|
+
.ui.compact.accordion:not(.styled) > .title,
|
189
|
+
.ui.compact.accordion:not(.styled) .accordion > .title {
|
190
|
+
padding: @titlePaddingCompact;
|
191
|
+
}
|
192
|
+
|
193
|
+
.ui.compact.accordion:not(.styled) .title ~ .content,
|
194
|
+
.ui.compact.accordion:not(.styled) .accordion .title ~ .content {
|
195
|
+
padding: @contentPaddingCompact;
|
196
|
+
}
|
197
|
+
|
198
|
+
/* Styled */
|
199
|
+
|
200
|
+
.ui.compact.styled.accordion > .title,
|
201
|
+
.ui.compact.styled.accordion .accordion > .title {
|
202
|
+
padding: @styledTitlePaddingCompact;
|
203
|
+
}
|
204
|
+
|
205
|
+
.ui.compact.styled.accordion .title ~ .content,
|
206
|
+
.ui.compact.styled.accordion .accordion .title ~ .content {
|
207
|
+
padding: @styledContentPaddingCompact;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
/*--------------
|
211
|
+
Very Compact
|
212
|
+
---------------*/
|
213
|
+
|
214
|
+
& when (@variationAccordionVeryCompact) {
|
215
|
+
.ui[class*="very compact"].accordion:not(.styled) > .title,
|
216
|
+
.ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
|
217
|
+
padding: @titlePaddingVeryCompact;
|
218
|
+
}
|
219
|
+
|
220
|
+
.ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
|
221
|
+
.ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
|
222
|
+
padding: @contentPaddingVeryCompact;
|
223
|
+
}
|
224
|
+
|
225
|
+
.ui[class*="very compact"].styled.accordion > .title,
|
226
|
+
.ui[class*="very compact"].styled.accordion .accordion > .title {
|
227
|
+
padding: @styledTitlePaddingVeryCompact;
|
228
|
+
}
|
229
|
+
|
230
|
+
.ui[class*="very compact"].styled.accordion .title ~ .content,
|
231
|
+
.ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
|
232
|
+
padding: @styledContentPaddingVeryCompact;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
179
236
|
|
180
237
|
/*******************************
|
181
238
|
States
|
@@ -185,8 +242,8 @@
|
|
185
242
|
Not Active
|
186
243
|
---------------*/
|
187
244
|
|
188
|
-
.ui.accordion .title ~ .content:not(.active),
|
189
|
-
.ui.accordion .accordion .title ~ .content:not(.active) {
|
245
|
+
.ui.accordion:not(details) .title ~ .content:not(.active),
|
246
|
+
.ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
|
190
247
|
display: none;
|
191
248
|
}
|
192
249
|
|
@@ -210,9 +267,103 @@
|
|
210
267
|
Inverted
|
211
268
|
---------------*/
|
212
269
|
|
213
|
-
.ui.inverted.accordion .title
|
270
|
+
.ui.inverted.accordion.menu .item > .title,
|
271
|
+
.ui.inverted.accordion > .title,
|
272
|
+
.ui.inverted.accordion .accordion > .title {
|
214
273
|
color: @invertedTitleColor;
|
215
274
|
}
|
275
|
+
& when (@variationAccordionStyled) {
|
276
|
+
.ui.inverted.styled.accordion,
|
277
|
+
.ui.inverted.styled.accordion .accordion {
|
278
|
+
background: @invertedStyledBackground;
|
279
|
+
box-shadow: @invertedStyledBoxShadow;
|
280
|
+
}
|
281
|
+
.ui.inverted.styled.accordion > .title,
|
282
|
+
.ui.inverted.styled.accordion .accordion > .title {
|
283
|
+
color: @invertedStyledTitleColor;
|
284
|
+
border-top: @invertedStyledTitleBorder;
|
285
|
+
}
|
286
|
+
|
287
|
+
/* Hover */
|
288
|
+
.ui.inverted.styled.accordion > .title:hover {
|
289
|
+
background: @invertedStyledTitleHoverBackground;
|
290
|
+
color: @invertedStyledTitleHoverColor;
|
291
|
+
}
|
292
|
+
.ui.inverted.styled.accordion .accordion > .title:hover {
|
293
|
+
background: @invertedStyledHoverChildTitleBackground;
|
294
|
+
color: @invertedStyledHoverChildTitleColor;
|
295
|
+
}
|
296
|
+
|
297
|
+
/* Active */
|
298
|
+
.ui.inverted.styled.accordion[open] > .title,
|
299
|
+
.ui.inverted.styled.accordion .active.title {
|
300
|
+
background: @invertedStyledActiveTitleBackground;
|
301
|
+
color: @invertedStyledActiveTitleColor;
|
302
|
+
}
|
303
|
+
.ui.inverted.styled.accordion .accordion[open] > .title,
|
304
|
+
.ui.inverted.styled.accordion .accordion .active.title {
|
305
|
+
background: @invertedStyledActiveChildTitleBackground;
|
306
|
+
color: @invertedStyledActiveChildTitleColor;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
& when (@variationAccordionBasicStyled) {
|
312
|
+
.ui.basic.styled.accordion,
|
313
|
+
.ui.basic.styled.accordion .accordion {
|
314
|
+
background: transparent;
|
315
|
+
box-shadow: none;
|
316
|
+
}
|
317
|
+
.ui.basic.styled.accordion > .title,
|
318
|
+
.ui.basic.styled.accordion .accordion > .title {
|
319
|
+
border: none;
|
320
|
+
color: @basicStyledTitleColor;
|
321
|
+
}
|
322
|
+
.ui.basic.styled.accordion > .title:hover,
|
323
|
+
.ui.basic.styled.accordion .accordion > .title:hover {
|
324
|
+
background: transparent;
|
325
|
+
color: @basicStyledTitleHoverColor;
|
326
|
+
}
|
327
|
+
.ui.basic.styled.accordion[open] > .title,
|
328
|
+
.ui.basic.styled.accordion .active.title,
|
329
|
+
.ui.basic.styled.accordion .accordion[open] > .title,
|
330
|
+
.ui.basic.styled.accordion .accordion .active.title {
|
331
|
+
background: transparent;
|
332
|
+
color: @basicStyledActiveTitleColor;
|
333
|
+
}
|
334
|
+
& when (@variationAccordionInverted) {
|
335
|
+
.ui.inverted.basic.styled.accordion > .title,
|
336
|
+
.ui.inverted.basic.styled.accordion .accordion > .title {
|
337
|
+
background: transparent;
|
338
|
+
color: @invertedBasicStyledTitleColor;
|
339
|
+
}
|
340
|
+
.ui.inverted.basic.styled.accordion > .title:hover,
|
341
|
+
.ui.inverted.basic.styled.accordion .accordion > .title:hover {
|
342
|
+
background: transparent;
|
343
|
+
color: @invertedBasicStyledTitleHoverColor;
|
344
|
+
}
|
345
|
+
.ui.inverted.basic.styled.accordion[open] > .title,
|
346
|
+
.ui.inverted.basic.styled.accordion .active.title,
|
347
|
+
.ui.inverted.basic.styled.accordion .accordion[open] > .title,
|
348
|
+
.ui.inverted.basic.styled.accordion .accordion .active.title {
|
349
|
+
background: transparent;
|
350
|
+
color: @invertedBasicStyledActiveTitleColor;
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
& when (@variationAccordionTree) {
|
356
|
+
.ui.tree.accordion:not(.styled) .title ~ .content,
|
357
|
+
.ui.tree.accordion:not(.styled) .accordion .title ~ .content {
|
358
|
+
padding:@treeContentPadding;
|
359
|
+
}
|
360
|
+
.ui.tree.accordion > .content,
|
361
|
+
.ui.tree.accordion .accordion > .content {
|
362
|
+
margin-left: @treeContentLeftMargin;
|
363
|
+
}
|
364
|
+
.ui.tree.accordion .accordion {
|
365
|
+
margin-top: @treeContentTopMargin;
|
366
|
+
}
|
216
367
|
}
|
217
368
|
|
218
369
|
.loadUIOverrides();
|
@@ -122,7 +122,7 @@ $.fn.calendar = function(parameters) {
|
|
122
122
|
module.set.maxDate($module.data(metadata.maxDate));
|
123
123
|
}
|
124
124
|
module.setting('type', module.get.type());
|
125
|
-
module.setting('on', settings.on ||
|
125
|
+
module.setting('on', settings.on || 'click');
|
126
126
|
},
|
127
127
|
popup: function () {
|
128
128
|
if (settings.inline) {
|
@@ -153,7 +153,10 @@ $.fn.calendar = function(parameters) {
|
|
153
153
|
module.refreshTooltips();
|
154
154
|
return settings.onVisible.apply($container, arguments);
|
155
155
|
};
|
156
|
-
var onHidden =
|
156
|
+
var onHidden = function () {
|
157
|
+
module.blur();
|
158
|
+
return settings.onHidden.apply($container, arguments)
|
159
|
+
}
|
157
160
|
if (!$input.length) {
|
158
161
|
//no input, $container has to handle focus/blur
|
159
162
|
$container.attr('tabindex', '0');
|
@@ -162,10 +165,6 @@ $.fn.calendar = function(parameters) {
|
|
162
165
|
module.focus();
|
163
166
|
return settings.onVisible.apply($container, arguments);
|
164
167
|
};
|
165
|
-
onHidden = function () {
|
166
|
-
module.blur();
|
167
|
-
return settings.onHidden.apply($container, arguments);
|
168
|
-
};
|
169
168
|
}
|
170
169
|
var onShow = function () {
|
171
170
|
//reset the focus date onShow
|
@@ -747,7 +746,7 @@ $.fn.calendar = function(parameters) {
|
|
747
746
|
return $module.data(metadata.maxDate) || null;
|
748
747
|
},
|
749
748
|
monthOffset: function () {
|
750
|
-
return $module.data(metadata.monthOffset) || 0;
|
749
|
+
return $module.data(metadata.monthOffset) || settings.monthOffset || 0;
|
751
750
|
},
|
752
751
|
mode: function () {
|
753
752
|
//only returns valid modes for the current settings
|
@@ -1453,6 +1452,7 @@ $.fn.calendar.settings = {
|
|
1453
1452
|
startCalendar : null, // jquery object or selector for another calendar that represents the start date of a date range
|
1454
1453
|
endCalendar : null, // jquery object or selector for another calendar that represents the end date of a date range
|
1455
1454
|
multiMonth : 1, // show multiple months when in 'day' mode
|
1455
|
+
monthOffset : 0, // position current month by offset when multimonth > 1
|
1456
1456
|
minTimeGap : 5,
|
1457
1457
|
showWeekNumbers : null, // show Number of Week at the very first column of a dayView
|
1458
1458
|
disabledHours : [], // specific hour(s) which won't be selectable and contain additional information.
|
@@ -1468,6 +1468,7 @@ $.fn.calendar.settings = {
|
|
1468
1468
|
position: 'bottom left',
|
1469
1469
|
lastResort: 'bottom left',
|
1470
1470
|
prefer: 'opposite',
|
1471
|
+
observeChanges: false,
|
1471
1472
|
hideOnScroll: false
|
1472
1473
|
},
|
1473
1474
|
|
@@ -1559,7 +1560,7 @@ $.fn.calendar.settings = {
|
|
1559
1560
|
if (!text) {
|
1560
1561
|
return null;
|
1561
1562
|
}
|
1562
|
-
text = String(text).
|
1563
|
+
text = String(text).replace(/\s/g,'');
|
1563
1564
|
if (text.length === 0) {
|
1564
1565
|
return null;
|
1565
1566
|
}
|
@@ -172,6 +172,26 @@
|
|
172
172
|
}
|
173
173
|
}
|
174
174
|
|
175
|
+
& when (@variationCalendarMultiMonth) {
|
176
|
+
.ui.calendar.popup > .ui.grid {
|
177
|
+
margin: @multiMonthMargin;
|
178
|
+
& > .column:not(:first-child) {
|
179
|
+
padding-left: @multiMonthPadding;
|
180
|
+
& > .ui.table {
|
181
|
+
border-top-left-radius:0;
|
182
|
+
border-bottom-left-radius:0;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
& > .column:not(:last-child) {
|
186
|
+
padding-right:@multiMonthPadding;
|
187
|
+
& > .ui.table {
|
188
|
+
border-top-right-radius:0;
|
189
|
+
border-bottom-right-radius:0;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
175
195
|
/*******************************
|
176
196
|
States
|
177
197
|
*******************************/
|
@@ -239,18 +239,26 @@ $.fn.checkbox = function(parameters) {
|
|
239
239
|
}
|
240
240
|
}
|
241
241
|
|
242
|
+
shortcutPressed = false;
|
242
243
|
if(key == keyCode.escape) {
|
243
244
|
module.verbose('Escape key pressed blurring field');
|
244
245
|
$input.blur();
|
245
246
|
shortcutPressed = true;
|
246
247
|
}
|
247
|
-
else if(!event.ctrlKey &&
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
248
|
+
else if(!event.ctrlKey && module.can.change()) {
|
249
|
+
if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
|
250
|
+
module.verbose('Enter/space key pressed, toggling checkbox');
|
251
|
+
module.toggle();
|
252
|
+
shortcutPressed = true;
|
253
|
+
} else if($module.is('.toggle, .slider') && !module.is.radio()) {
|
254
|
+
if(key == keyCode.left && module.is.checked()) {
|
255
|
+
module.uncheck();
|
256
|
+
shortcutPressed = true;
|
257
|
+
} else if(key == keyCode.right && module.is.unchecked()) {
|
258
|
+
module.check();
|
259
|
+
shortcutPressed = true;
|
260
|
+
}
|
261
|
+
}
|
254
262
|
}
|
255
263
|
},
|
256
264
|
keyup: function(event) {
|
@@ -323,7 +331,6 @@ $.fn.checkbox = function(parameters) {
|
|
323
331
|
settings.onEnable.call(input);
|
324
332
|
// preserve legacy callbacks
|
325
333
|
settings.onEnabled.call(input);
|
326
|
-
module.trigger.change();
|
327
334
|
}
|
328
335
|
},
|
329
336
|
|
@@ -338,7 +345,6 @@ $.fn.checkbox = function(parameters) {
|
|
338
345
|
settings.onDisable.call(input);
|
339
346
|
// preserve legacy callbacks
|
340
347
|
settings.onDisabled.call(input);
|
341
|
-
module.trigger.change();
|
342
348
|
}
|
343
349
|
},
|
344
350
|
|
@@ -866,7 +872,7 @@ $.fn.checkbox.settings = {
|
|
866
872
|
|
867
873
|
selector : {
|
868
874
|
checkbox : '.ui.checkbox',
|
869
|
-
label : 'label
|
875
|
+
label : 'label',
|
870
876
|
input : 'input[type="checkbox"], input[type="radio"]',
|
871
877
|
link : 'a[href]'
|
872
878
|
}
|
@@ -55,126 +55,6 @@
|
|
55
55
|
}
|
56
56
|
|
57
57
|
|
58
|
-
& when (@variationCheckboxBox) {
|
59
|
-
/*--------------
|
60
|
-
Box
|
61
|
-
---------------*/
|
62
|
-
|
63
|
-
/* .box selector is deprecated and will be removed in v3 */
|
64
|
-
.ui.checkbox .box {
|
65
|
-
&:extend(.ui.checkbox label all);
|
66
|
-
}
|
67
|
-
.ui.checkbox + .box {
|
68
|
-
&:extend(.ui.checkbox + label all);
|
69
|
-
}
|
70
|
-
.ui.checkbox input:focus ~ .box {
|
71
|
-
&:extend(.ui.checkbox input:focus ~ label all);
|
72
|
-
}
|
73
|
-
.ui.checkbox input:checked ~ .box {
|
74
|
-
&:extend(.ui.checkbox input:checked ~ label all);
|
75
|
-
}
|
76
|
-
& when (@variationCheckboxIndeterminate) {
|
77
|
-
.ui.checkbox input:not([type=radio]):indeterminate ~ .box {
|
78
|
-
&:extend(.ui.checkbox input:not([type=radio]):indeterminate ~ label all);
|
79
|
-
}
|
80
|
-
.ui.checkbox input:not([type=radio]):indeterminate:focus ~ .box {
|
81
|
-
&:extend(.ui.checkbox input:not([type=radio]):indeterminate:focus ~ label all);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
.ui.checkbox input:checked:focus ~ .box {
|
85
|
-
&:extend(.ui.checkbox input:checked:focus ~ label all);
|
86
|
-
}
|
87
|
-
& when (@variationCheckboxDisabled) {
|
88
|
-
.ui.disabled.checkbox .box {
|
89
|
-
&:extend(.ui.disabled.checkbox label all);
|
90
|
-
}
|
91
|
-
|
92
|
-
.ui.checkbox input[disabled] ~ .box {
|
93
|
-
&:extend(.ui.checkbox input[disabled] ~ label all);
|
94
|
-
}
|
95
|
-
}
|
96
|
-
& when (@variationCheckboxRadio) {
|
97
|
-
.ui.radio.checkbox .box {
|
98
|
-
&:extend(.ui.radio.checkbox label all);
|
99
|
-
}
|
100
|
-
.ui.radio.checkbox input:focus ~ .box {
|
101
|
-
&:extend(.ui.radio.checkbox input:focus ~ label all);
|
102
|
-
}
|
103
|
-
.ui.radio.checkbox input:indeterminate ~ .box {
|
104
|
-
&:extend(.ui.radio.checkbox input:indeterminate ~ label all);
|
105
|
-
}
|
106
|
-
.ui.radio.checkbox input:checked ~ .box {
|
107
|
-
&:extend(.ui.radio.checkbox input:checked ~ label all);
|
108
|
-
}
|
109
|
-
.ui.radio.checkbox input:focus:checked ~ .box {
|
110
|
-
&:extend(.ui.radio.checkbox input:focus:checked ~ label all);
|
111
|
-
}
|
112
|
-
}
|
113
|
-
& when (@variationCheckboxSlider) {
|
114
|
-
.ui.slider.checkbox .box {
|
115
|
-
&:extend(.ui.slider.checkbox label all);
|
116
|
-
}
|
117
|
-
.ui.slider.checkbox input:focus ~ .box {
|
118
|
-
&:extend(.ui.slider.checkbox input:focus ~ label all);
|
119
|
-
}
|
120
|
-
.ui.slider.checkbox input:checked ~ .box {
|
121
|
-
&:extend(.ui.slider.checkbox input:checked ~ label all);
|
122
|
-
}
|
123
|
-
.ui.slider.checkbox input:focus:checked ~ .box {
|
124
|
-
&:extend(.ui.slider.checkbox input:focus:checked ~ label all);
|
125
|
-
}
|
126
|
-
}
|
127
|
-
& when (@variationCheckboxToggle) {
|
128
|
-
.ui.toggle.checkbox .box {
|
129
|
-
&:extend(.ui.toggle.checkbox label all);
|
130
|
-
}
|
131
|
-
.ui.toggle.checkbox input ~ .box {
|
132
|
-
&:extend(.ui.toggle.checkbox input ~ label all);
|
133
|
-
}
|
134
|
-
.ui.toggle.checkbox input:focus ~ .box {
|
135
|
-
&:extend(.ui.toggle.checkbox input:focus ~ label all);
|
136
|
-
}
|
137
|
-
.ui.toggle.checkbox input:checked ~ .box {
|
138
|
-
&:extend(.ui.toggle.checkbox input:checked ~ label all);
|
139
|
-
}
|
140
|
-
.ui.toggle.checkbox input:focus:checked ~ .box {
|
141
|
-
&:extend(.ui.toggle.checkbox input:focus:checked ~ label all);
|
142
|
-
}
|
143
|
-
}
|
144
|
-
& when (@variationCheckboxFitted) {
|
145
|
-
.ui.fitted.checkbox .box {
|
146
|
-
&:extend(.ui.fitted.checkbox label all);
|
147
|
-
}
|
148
|
-
}
|
149
|
-
& when (@variationCheckboxInverted) {
|
150
|
-
.ui.inverted.checkbox .box {
|
151
|
-
&:extend(.ui.inverted.checkbox label all);
|
152
|
-
}
|
153
|
-
& when (@variationCheckboxSlider) {
|
154
|
-
.ui.inverted.slider.checkbox .box {
|
155
|
-
&:extend(.ui.inverted.slider.checkbox label all);
|
156
|
-
}
|
157
|
-
.ui.inverted.slider.checkbox input:checked ~ .box {
|
158
|
-
&:extend(.ui.inverted.slider.checkbox input:checked ~ label all);
|
159
|
-
}
|
160
|
-
.ui.inverted.slider.checkbox input:focus:checked ~ .box {
|
161
|
-
&:extend(.ui.inverted.slider.checkbox input:focus:checked ~ label all);
|
162
|
-
}
|
163
|
-
}
|
164
|
-
& when (@variationCheckboxToggle) {
|
165
|
-
.ui.inverted.toggle.checkbox .box {
|
166
|
-
&:extend(.ui.inverted.toggle.checkbox label all);
|
167
|
-
}
|
168
|
-
.ui.inverted.toggle.checkbox input:checked ~ .box {
|
169
|
-
&:extend(.ui.inverted.toggle.checkbox input:checked ~ label all);
|
170
|
-
}
|
171
|
-
.ui.inverted.toggle.checkbox input:focus:checked ~ .box {
|
172
|
-
&:extend(.ui.inverted.toggle.checkbox input:focus:checked ~ label all);
|
173
|
-
}
|
174
|
-
}
|
175
|
-
}
|
176
|
-
}
|
177
|
-
|
178
58
|
.ui.checkbox label {
|
179
59
|
cursor: auto;
|
180
60
|
position: relative;
|
@@ -386,6 +266,7 @@
|
|
386
266
|
}
|
387
267
|
|
388
268
|
/* Selectable Label */
|
269
|
+
.ui.checkbox input + label[for],
|
389
270
|
.ui.checkbox input.hidden + label {
|
390
271
|
cursor: pointer;
|
391
272
|
user-select: none;
|
@@ -796,69 +677,44 @@
|
|
796
677
|
/*--------------------
|
797
678
|
Size
|
798
679
|
---------------------*/
|
680
|
+
& when not (@variationCheckboxSizes = false) {
|
681
|
+
each(@variationCheckboxSizes, {
|
682
|
+
@raw: @{value}Raw;
|
683
|
+
@size: @{value}CheckboxSize;
|
684
|
+
@circleScale: @{value}CheckboxCircleScale;
|
685
|
+
@circleLeft: @{value}CheckboxCircleLeft;
|
799
686
|
|
800
|
-
each(@variationCheckboxSizes, {
|
801
|
-
@raw: @{value}Raw;
|
802
|
-
@size: @{value}CheckboxSize;
|
803
|
-
@circleScale: @{value}CheckboxCircleScale;
|
804
|
-
@circleLeft: @{value}CheckboxCircleLeft;
|
805
|
-
|
806
|
-
.ui.@{value}.checkbox {
|
807
|
-
font-size: @@size;
|
808
|
-
}
|
809
|
-
|
810
|
-
& when (@@raw > 1) {
|
811
|
-
.ui.@{value}.form .checkbox,
|
812
687
|
.ui.@{value}.checkbox {
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
688
|
+
font-size: @@size;
|
689
|
+
}
|
690
|
+
|
691
|
+
& when (@@raw > 1) {
|
692
|
+
.ui.@{value}.form .checkbox,
|
693
|
+
.ui.@{value}.checkbox {
|
694
|
+
&:not(.slider):not(.toggle):not(.radio) {
|
695
|
+
&
|
696
|
+
label:after,
|
697
|
+
label:before {
|
698
|
+
transform: scale(@@raw);
|
699
|
+
transform-origin: left;
|
700
|
+
}
|
826
701
|
}
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
702
|
+
&.radio when (@variationCheckboxRadio) {
|
703
|
+
&
|
704
|
+
label:before {
|
705
|
+
transform: scale(@@raw);
|
706
|
+
transform-origin: left;
|
707
|
+
}
|
708
|
+
&
|
709
|
+
label:after {
|
710
|
+
transform: scale(@@circleScale);
|
711
|
+
transform-origin: left;
|
712
|
+
left: @@circleLeft;
|
713
|
+
}
|
832
714
|
}
|
833
715
|
}
|
834
716
|
}
|
835
|
-
}
|
836
|
-
|
837
|
-
.ui.@{value}.form .checkbox,
|
838
|
-
.ui.@{value}.checkbox {
|
839
|
-
&:not(.slider):not(.toggle):not(.radio) {
|
840
|
-
&
|
841
|
-
.box:after,
|
842
|
-
.box:before {
|
843
|
-
transform: scale(@@raw);
|
844
|
-
transform-origin:left;
|
845
|
-
}
|
846
|
-
}
|
847
|
-
&.radio when (@variationCheckboxRadio) {
|
848
|
-
&
|
849
|
-
.box:before {
|
850
|
-
transform: scale(@@raw);
|
851
|
-
transform-origin:left;
|
852
|
-
}
|
853
|
-
&
|
854
|
-
.box:after {
|
855
|
-
transform:scale(@@circleScale);
|
856
|
-
transform-origin:left;
|
857
|
-
left: @@circleLeft;
|
858
|
-
}
|
859
|
-
}
|
860
|
-
}
|
861
|
-
}
|
862
|
-
})
|
717
|
+
})
|
718
|
+
}
|
863
719
|
|
864
720
|
.loadUIOverrides();
|