fomantic-ui 2.10.0-beta.64 → 2.10.0-beta.66
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/.eslintrc.js +0 -3
- package/.stylelintrc.js +1 -13
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +2 -2
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +21 -21
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -10
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +9 -25
- package/dist/components/dropdown.js +6 -12
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- 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 +1 -1
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +8 -6
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +3 -5
- package/dist/components/form.js +2 -2
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +10 -37
- 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 +1 -3
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +4 -13
- package/dist/components/label.min.css +2 -2
- 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 +6 -21
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +8 -6
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- 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 +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +19 -73
- package/dist/components/popup.js +11 -13
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +4 -13
- package/dist/components/progress.js +6 -6
- package/dist/components/progress.min.css +2 -2
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +47 -208
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +2 -5
- package/dist/components/reveal.min.css +2 -2
- package/dist/components/search.css +2 -3
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- 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 +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +3 -3
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +6 -6
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +12 -14
- 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 +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +8 -6
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +3 -3
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +12 -14
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +148 -457
- package/dist/semantic.js +120 -135
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +3 -3
- package/src/definitions/behaviors/api.js +1 -1
- package/src/definitions/behaviors/form.js +1 -1
- package/src/definitions/behaviors/visibility.js +11 -13
- package/src/definitions/collections/breadcrumb.less +0 -1
- package/src/definitions/collections/form.less +1 -7
- package/src/definitions/collections/grid.less +0 -1
- package/src/definitions/collections/menu.less +5 -21
- package/src/definitions/collections/message.less +0 -1
- package/src/definitions/collections/table.less +0 -1
- package/src/definitions/elements/button.less +0 -1
- package/src/definitions/elements/container.less +0 -1
- package/src/definitions/elements/divider.less +0 -1
- package/src/definitions/elements/emoji.less +1 -1
- package/src/definitions/elements/flag.less +1 -1
- package/src/definitions/elements/header.less +0 -1
- package/src/definitions/elements/icon.less +10 -37
- package/src/definitions/elements/image.less +0 -1
- package/src/definitions/elements/input.less +0 -3
- package/src/definitions/elements/label.less +3 -13
- package/src/definitions/elements/list.less +0 -1
- package/src/definitions/elements/loader.less +0 -1
- package/src/definitions/elements/placeholder.less +0 -1
- package/src/definitions/elements/rail.less +0 -1
- package/src/definitions/elements/reveal.less +1 -5
- package/src/definitions/elements/segment.less +0 -1
- package/src/definitions/elements/step.less +0 -1
- package/src/definitions/elements/text.less +0 -1
- package/src/definitions/globals/reset.less +0 -1
- package/src/definitions/globals/site.less +0 -1
- package/src/definitions/modules/accordion.less +0 -1
- package/src/definitions/modules/calendar.js +20 -20
- package/src/definitions/modules/calendar.less +0 -1
- package/src/definitions/modules/checkbox.js +0 -9
- package/src/definitions/modules/checkbox.less +0 -1
- package/src/definitions/modules/dimmer.less +0 -1
- package/src/definitions/modules/dropdown.js +5 -11
- package/src/definitions/modules/dropdown.less +8 -25
- package/src/definitions/modules/embed.less +0 -1
- package/src/definitions/modules/flyout.js +7 -5
- package/src/definitions/modules/flyout.less +0 -1
- package/src/definitions/modules/modal.js +7 -5
- package/src/definitions/modules/modal.less +0 -1
- package/src/definitions/modules/nag.less +0 -1
- package/src/definitions/modules/popup.js +10 -12
- package/src/definitions/modules/popup.less +18 -73
- package/src/definitions/modules/progress.js +5 -5
- package/src/definitions/modules/progress.less +3 -13
- package/src/definitions/modules/rating.less +0 -1
- package/src/definitions/modules/search.less +1 -3
- package/src/definitions/modules/shape.less +0 -1
- package/src/definitions/modules/sidebar.js +2 -2
- package/src/definitions/modules/sidebar.less +0 -1
- package/src/definitions/modules/slider.js +5 -5
- package/src/definitions/modules/slider.less +0 -1
- package/src/definitions/modules/sticky.js +11 -13
- package/src/definitions/modules/sticky.less +0 -1
- package/src/definitions/modules/tab.less +0 -1
- package/src/definitions/modules/toast.js +7 -5
- package/src/definitions/modules/toast.less +0 -1
- package/src/definitions/modules/transition.js +2 -2
- package/src/definitions/modules/transition.less +0 -1
- package/src/definitions/views/ad.less +0 -1
- package/src/definitions/views/card.less +0 -1
- package/src/definitions/views/comment.less +0 -1
- package/src/definitions/views/feed.less +0 -1
- package/src/definitions/views/item.less +0 -1
- package/src/definitions/views/statistic.less +0 -1
- package/src/semantic.less +1 -1
- package/src/themes/amazon/elements/button.variables +0 -1
- package/src/themes/amazon/globals/site.variables +0 -1
- package/src/themes/bootstrap3/elements/button.variables +0 -1
- package/src/themes/default/collections/form.variables +0 -1
- package/src/themes/default/elements/button.variables +0 -1
- package/src/themes/default/globals/reset.overrides +45 -201
- package/src/themes/default/modules/accordion.variables +0 -1
- package/src/themes/default/views/card.variables +0 -1
- package/src/themes/default/views/item.variables +0 -1
- package/src/themes/github/modules/dropdown.variables +0 -2
- package/src/themes/twitter/elements/button.variables +0 -1
- package/tasks/admin/distributions/create.js +2 -2
- package/tasks/config/project/config.js +1 -1
- package/tasks/install.js +3 -1
- package/test/meteor/assets.js +2 -2
- package/test/meteor/fonts.js +10 -11
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
save: {
|
|
325
325
|
bodyMargin: function () {
|
|
326
326
|
initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
|
|
327
|
-
initialBodyMarginInt = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
|
|
327
|
+
initialBodyMarginInt = Number.parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
|
|
328
328
|
const bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
|
|
329
329
|
tempBodyMargin = initialBodyMarginInt + bodyScrollbarWidth;
|
|
330
330
|
},
|
|
@@ -672,7 +672,7 @@
|
|
|
672
672
|
return module.cache.isFirefox;
|
|
673
673
|
},
|
|
674
674
|
iframe: function () {
|
|
675
|
-
return !(self === top);
|
|
675
|
+
return !(window.self === window.top);
|
|
676
676
|
},
|
|
677
677
|
mobile: function () {
|
|
678
678
|
const userAgent = navigator.userAgent;
|
|
@@ -815,9 +815,9 @@
|
|
|
815
815
|
: pagePos - module.get.trackOffset() - module.get.trackStartPos();
|
|
816
816
|
},
|
|
817
817
|
closestThumb: function (eventPos) {
|
|
818
|
-
const thumbPos = parseFloat(module.determine.thumbPos($thumb));
|
|
818
|
+
const thumbPos = Number.parseFloat(module.determine.thumbPos($thumb));
|
|
819
819
|
const thumbDelta = Math.abs(eventPos - thumbPos);
|
|
820
|
-
const secondThumbPos = parseFloat(module.determine.thumbPos($secondThumb));
|
|
820
|
+
const secondThumbPos = Number.parseFloat(module.determine.thumbPos($secondThumb));
|
|
821
821
|
const secondThumbDelta = Math.abs(eventPos - secondThumbPos);
|
|
822
822
|
if (thumbDelta === secondThumbDelta && module.get.thumbValue() === module.get.min()) {
|
|
823
823
|
return $secondThumb;
|
|
@@ -826,9 +826,9 @@
|
|
|
826
826
|
return thumbDelta <= secondThumbDelta ? $thumb : $secondThumb;
|
|
827
827
|
},
|
|
828
828
|
closestThumbPos: function (eventPos) {
|
|
829
|
-
const thumbPos = parseFloat(module.determine.thumbPos($thumb));
|
|
829
|
+
const thumbPos = Number.parseFloat(module.determine.thumbPos($thumb));
|
|
830
830
|
const thumbDelta = Math.abs(eventPos - thumbPos);
|
|
831
|
-
const secondThumbPos = parseFloat(module.determine.thumbPos($secondThumb));
|
|
831
|
+
const secondThumbPos = Number.parseFloat(module.determine.thumbPos($secondThumb));
|
|
832
832
|
const secondThumbDelta = Math.abs(eventPos - secondThumbPos);
|
|
833
833
|
|
|
834
834
|
return thumbDelta <= secondThumbDelta ? thumbPos : secondThumbPos;
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
const $child = $(this);
|
|
988
988
|
let attrValue = $child.attr('data-value');
|
|
989
989
|
if (attrValue) {
|
|
990
|
-
attrValue = parseInt(attrValue, 10);
|
|
990
|
+
attrValue = Number.parseInt(attrValue, 10);
|
|
991
991
|
if (attrValue >= thumbVal && attrValue <= secondThumbVal) {
|
|
992
992
|
$child.addClass(className.active);
|
|
993
993
|
} else {
|
|
@@ -171,16 +171,14 @@
|
|
|
171
171
|
}, 100);
|
|
172
172
|
},
|
|
173
173
|
documentChanged: function (mutations) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
});
|
|
174
|
+
for (const mutation of mutations) {
|
|
175
|
+
for (const node of mutation.removedNodes) {
|
|
176
|
+
if (node === element || $(node).find(element).length > 0) {
|
|
177
|
+
module.debug('Element removed from DOM, tearing down events');
|
|
178
|
+
module.destroy();
|
|
179
|
+
}
|
|
182
180
|
}
|
|
183
|
-
}
|
|
181
|
+
}
|
|
184
182
|
},
|
|
185
183
|
load: function () {
|
|
186
184
|
module.verbose('Page contents finished loading');
|
|
@@ -236,8 +234,8 @@
|
|
|
236
234
|
};
|
|
237
235
|
const element = {
|
|
238
236
|
margin: {
|
|
239
|
-
top: parseInt($module.css('margin-top'), 10),
|
|
240
|
-
bottom: parseInt($module.css('margin-bottom'), 10),
|
|
237
|
+
top: Number.parseInt($module.css('margin-top'), 10),
|
|
238
|
+
bottom: Number.parseInt($module.css('margin-bottom'), 10),
|
|
241
239
|
},
|
|
242
240
|
offset: $module.offset(),
|
|
243
241
|
width: $module.outerWidth(),
|
|
@@ -305,8 +303,8 @@
|
|
|
305
303
|
}
|
|
306
304
|
|
|
307
305
|
return module.is.top()
|
|
308
|
-
? Math.abs(parseInt($module.css('top'), 10)) || 0
|
|
309
|
-
: Math.abs(parseInt($module.css('bottom'), 10)) || 0;
|
|
306
|
+
? Math.abs(Number.parseInt($module.css('top'), 10)) || 0
|
|
307
|
+
: Math.abs(Number.parseInt($module.css('bottom'), 10)) || 0;
|
|
310
308
|
},
|
|
311
309
|
|
|
312
310
|
elementScroll: function (scroll = $scroll.scrollTop()) {
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
module.error(error.verticalCard);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
settings.actions
|
|
249
|
+
for (const el of settings.actions) {
|
|
250
250
|
const icon = el[fields.icon]
|
|
251
251
|
? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
|
|
252
252
|
+ ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
|
|
@@ -256,6 +256,8 @@
|
|
|
256
256
|
const click = el[fields.click] && isFunction(el[fields.click])
|
|
257
257
|
? el[fields.click]
|
|
258
258
|
: function () {};
|
|
259
|
+
const elementRef = element;
|
|
260
|
+
const $moduleRef = $module;
|
|
259
261
|
$actions.append($('<button/>', {
|
|
260
262
|
html: icon + text,
|
|
261
263
|
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
|
|
@@ -263,14 +265,14 @@
|
|
|
263
265
|
on: {
|
|
264
266
|
click: function () {
|
|
265
267
|
const $button = $(this);
|
|
266
|
-
if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(
|
|
268
|
+
if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(elementRef, $moduleRef) === false) {
|
|
267
269
|
return;
|
|
268
270
|
}
|
|
269
271
|
module.close();
|
|
270
272
|
},
|
|
271
273
|
},
|
|
272
274
|
}));
|
|
273
|
-
}
|
|
275
|
+
}
|
|
274
276
|
}
|
|
275
277
|
if ($actions && $actions.hasClass(className.vertical)) {
|
|
276
278
|
$toast.addClass(className.vertical);
|
|
@@ -565,9 +567,9 @@
|
|
|
565
567
|
const classes = selector.trim().split(/\s+/);
|
|
566
568
|
let result = '';
|
|
567
569
|
|
|
568
|
-
|
|
570
|
+
for (const element of classes) {
|
|
569
571
|
result += '.' + element;
|
|
570
|
-
}
|
|
572
|
+
}
|
|
571
573
|
|
|
572
574
|
return result;
|
|
573
575
|
},
|
|
@@ -518,8 +518,8 @@
|
|
|
518
518
|
|
|
519
519
|
return typeof duration === 'string'
|
|
520
520
|
? (duration.includes('ms')
|
|
521
|
-
? parseFloat(duration)
|
|
522
|
-
: parseFloat(duration) * 1000)
|
|
521
|
+
? Number.parseFloat(duration)
|
|
522
|
+
: Number.parseFloat(duration) * 1000)
|
|
523
523
|
: duration;
|
|
524
524
|
},
|
|
525
525
|
displayType: function (shouldDetermine = true) {
|
package/src/semantic.less
CHANGED
|
@@ -129,7 +129,6 @@
|
|
|
129
129
|
/* Inverted */
|
|
130
130
|
@invertedInputBackground: @inputBackground;
|
|
131
131
|
@invertedInputBorderColor: @whiteBorderColor;
|
|
132
|
-
@invertedInputBoxShadow: @inputBoxShadow;
|
|
133
132
|
@invertedInputColor: @inputColor;
|
|
134
133
|
@invertedLabelColor: @invertedTextColor;
|
|
135
134
|
@invertedInputBoxShadow: none;
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
/*! normalize
|
|
1
|
+
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
|
|
3
|
+
/*
|
|
4
|
+
Document
|
|
5
|
+
========
|
|
6
|
+
*/
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* 1. Correct the line height in all browsers.
|
|
8
10
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
11
|
+
* 3. Use a more readable tab size (opinionated).
|
|
9
12
|
*/
|
|
10
13
|
|
|
11
14
|
html {
|
|
12
15
|
line-height: 1.15; /* 1 */
|
|
13
16
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
17
|
+
tab-size: 4; /* 3 */
|
|
14
18
|
}
|
|
15
19
|
|
|
16
|
-
/*
|
|
17
|
-
|
|
20
|
+
/*
|
|
21
|
+
Sections
|
|
22
|
+
========
|
|
23
|
+
*/
|
|
18
24
|
|
|
19
25
|
/**
|
|
20
26
|
* Remove the margin in all browsers.
|
|
@@ -24,74 +30,13 @@ body {
|
|
|
24
30
|
margin: 0;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
main {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
-
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
h1 {
|
|
41
|
-
font-size: 2em;
|
|
42
|
-
margin: 0.67em 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Grouping content
|
|
46
|
-
========================================================================== */
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 1. Add the correct box sizing in Firefox.
|
|
50
|
-
* 2. Show the overflow in Edge and IE.
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
hr {
|
|
54
|
-
box-sizing: content-box; /* 1 */
|
|
55
|
-
height: 0; /* 1 */
|
|
56
|
-
overflow: visible; /* 2 */
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
pre {
|
|
65
|
-
// https://github.com/necolas/normalize.css/issues/519
|
|
66
|
-
// stylelint-disable-next-line font-family-no-duplicate-names
|
|
67
|
-
font-family: monospace, monospace; /* 1 */
|
|
68
|
-
font-size: 1em; /* 2 */
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Text-level semantics
|
|
72
|
-
========================================================================== */
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Remove the gray background on active links in IE 10.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
a {
|
|
79
|
-
background-color: transparent;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* 1. Remove the bottom border in Chrome 57-
|
|
84
|
-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
abbr[title] {
|
|
88
|
-
border-bottom: none; /* 1 */
|
|
89
|
-
text-decoration: underline; /* 2 */
|
|
90
|
-
text-decoration: underline dotted; /* 2 */
|
|
91
|
-
}
|
|
33
|
+
/*
|
|
34
|
+
Text-level semantics
|
|
35
|
+
====================
|
|
36
|
+
*/
|
|
92
37
|
|
|
93
38
|
/**
|
|
94
|
-
* Add the correct font weight in Chrome
|
|
39
|
+
* Add the correct font weight in Chrome and Safari.
|
|
95
40
|
*/
|
|
96
41
|
|
|
97
42
|
b,
|
|
@@ -100,16 +45,15 @@ strong {
|
|
|
100
45
|
}
|
|
101
46
|
|
|
102
47
|
/**
|
|
103
|
-
* 1.
|
|
104
|
-
* 2. Correct the odd
|
|
48
|
+
* 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
49
|
+
* 2. Correct the odd 'em' font sizing in all browsers.
|
|
105
50
|
*/
|
|
106
51
|
|
|
107
52
|
code,
|
|
108
53
|
kbd,
|
|
109
|
-
samp
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
font-family: monospace, monospace; /* 1 */
|
|
54
|
+
samp,
|
|
55
|
+
pre {
|
|
56
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
|
|
113
57
|
font-size: 1em; /* 2 */
|
|
114
58
|
}
|
|
115
59
|
|
|
@@ -122,8 +66,7 @@ small {
|
|
|
122
66
|
}
|
|
123
67
|
|
|
124
68
|
/**
|
|
125
|
-
* Prevent
|
|
126
|
-
* all browsers.
|
|
69
|
+
* Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
127
70
|
*/
|
|
128
71
|
|
|
129
72
|
sub,
|
|
@@ -142,19 +85,23 @@ sup {
|
|
|
142
85
|
top: -0.5em;
|
|
143
86
|
}
|
|
144
87
|
|
|
145
|
-
/*
|
|
146
|
-
|
|
88
|
+
/*
|
|
89
|
+
Tabular data
|
|
90
|
+
============
|
|
91
|
+
*/
|
|
147
92
|
|
|
148
93
|
/**
|
|
149
|
-
*
|
|
94
|
+
* Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
150
95
|
*/
|
|
151
96
|
|
|
152
|
-
|
|
153
|
-
border-
|
|
97
|
+
table {
|
|
98
|
+
border-color: currentColor;
|
|
154
99
|
}
|
|
155
100
|
|
|
156
|
-
/*
|
|
157
|
-
|
|
101
|
+
/*
|
|
102
|
+
Forms
|
|
103
|
+
=====
|
|
104
|
+
*/
|
|
158
105
|
|
|
159
106
|
/**
|
|
160
107
|
* 1. Change the font styles in all browsers.
|
|
@@ -172,26 +119,6 @@ textarea {
|
|
|
172
119
|
margin: 0; /* 2 */
|
|
173
120
|
}
|
|
174
121
|
|
|
175
|
-
/**
|
|
176
|
-
* Show the overflow in IE.
|
|
177
|
-
* 1. Show the overflow in Edge.
|
|
178
|
-
*/
|
|
179
|
-
|
|
180
|
-
button,
|
|
181
|
-
input {
|
|
182
|
-
overflow: visible; /* 1 */
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
187
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
button,
|
|
191
|
-
select {
|
|
192
|
-
text-transform: none; /* 1 */
|
|
193
|
-
}
|
|
194
|
-
|
|
195
122
|
/**
|
|
196
123
|
* Correct the inability to style clickable types in iOS and Safari.
|
|
197
124
|
*/
|
|
@@ -204,54 +131,15 @@ button,
|
|
|
204
131
|
}
|
|
205
132
|
|
|
206
133
|
/**
|
|
207
|
-
* Remove the
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
button::-moz-focus-inner,
|
|
211
|
-
[type="button"]::-moz-focus-inner,
|
|
212
|
-
[type="reset"]::-moz-focus-inner,
|
|
213
|
-
[type="submit"]::-moz-focus-inner {
|
|
214
|
-
border-style: none;
|
|
215
|
-
padding: 0;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Restore the focus styles unset by the previous rule.
|
|
220
|
-
*/
|
|
221
|
-
|
|
222
|
-
button:-moz-focusring,
|
|
223
|
-
[type="button"]:-moz-focusring,
|
|
224
|
-
[type="reset"]:-moz-focusring,
|
|
225
|
-
[type="submit"]:-moz-focusring {
|
|
226
|
-
outline: 1px dotted ButtonText;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Correct the padding in Firefox.
|
|
231
|
-
*/
|
|
232
|
-
|
|
233
|
-
fieldset {
|
|
234
|
-
padding: 0.35em 0.75em 0.625em;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* 1. Correct the text wrapping in Edge and IE.
|
|
239
|
-
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
240
|
-
* 3. Remove the padding so developers are not caught out when they zero out
|
|
241
|
-
* `fieldset` elements in all browsers.
|
|
134
|
+
* Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
|
|
242
135
|
*/
|
|
243
136
|
|
|
244
137
|
legend {
|
|
245
|
-
|
|
246
|
-
color: inherit; /* 2 */
|
|
247
|
-
display: table; /* 1 */
|
|
248
|
-
max-width: 100%; /* 1 */
|
|
249
|
-
padding: 0; /* 3 */
|
|
250
|
-
white-space: normal; /* 1 */
|
|
138
|
+
padding: 0;
|
|
251
139
|
}
|
|
252
140
|
|
|
253
141
|
/**
|
|
254
|
-
* Add the correct vertical alignment in Chrome
|
|
142
|
+
* Add the correct vertical alignment in Chrome and Firefox.
|
|
255
143
|
*/
|
|
256
144
|
|
|
257
145
|
progress {
|
|
@@ -259,30 +147,11 @@ progress {
|
|
|
259
147
|
}
|
|
260
148
|
|
|
261
149
|
/**
|
|
262
|
-
*
|
|
150
|
+
* Correct the cursor style of increment and decrement buttons in Safari.
|
|
263
151
|
*/
|
|
264
152
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* 1. Add the correct box sizing in IE 10.
|
|
271
|
-
* 2. Remove the padding in IE 10.
|
|
272
|
-
*/
|
|
273
|
-
|
|
274
|
-
[type="checkbox"],
|
|
275
|
-
[type="radio"] {
|
|
276
|
-
box-sizing: border-box; /* 1 */
|
|
277
|
-
padding: 0; /* 2 */
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
282
|
-
*/
|
|
283
|
-
|
|
284
|
-
[type="number"]::-webkit-inner-spin-button,
|
|
285
|
-
[type="number"]::-webkit-outer-spin-button {
|
|
153
|
+
::-webkit-inner-spin-button,
|
|
154
|
+
::-webkit-outer-spin-button {
|
|
286
155
|
height: auto;
|
|
287
156
|
}
|
|
288
157
|
|
|
@@ -300,13 +169,13 @@ textarea {
|
|
|
300
169
|
* Remove the inner padding in Chrome and Safari on macOS.
|
|
301
170
|
*/
|
|
302
171
|
|
|
303
|
-
|
|
172
|
+
::-webkit-search-decoration {
|
|
304
173
|
-webkit-appearance: none;
|
|
305
174
|
}
|
|
306
175
|
|
|
307
176
|
/**
|
|
308
177
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
309
|
-
* 2. Change font properties to
|
|
178
|
+
* 2. Change font properties to 'inherit' in Safari.
|
|
310
179
|
*/
|
|
311
180
|
|
|
312
181
|
::-webkit-file-upload-button {
|
|
@@ -314,40 +183,15 @@ textarea {
|
|
|
314
183
|
font: inherit; /* 2 */
|
|
315
184
|
}
|
|
316
185
|
|
|
317
|
-
/* Interactive
|
|
318
|
-
========================================================================== */
|
|
319
|
-
|
|
320
186
|
/*
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
details {
|
|
325
|
-
display: block;
|
|
326
|
-
}
|
|
187
|
+
Interactive
|
|
188
|
+
===========
|
|
189
|
+
*/
|
|
327
190
|
|
|
328
191
|
/*
|
|
329
|
-
* Add the correct display in
|
|
192
|
+
* Add the correct display in Chrome and Safari.
|
|
330
193
|
*/
|
|
331
194
|
|
|
332
195
|
summary {
|
|
333
196
|
display: list-item;
|
|
334
197
|
}
|
|
335
|
-
|
|
336
|
-
/* Misc
|
|
337
|
-
========================================================================== */
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Add the correct display in IE 10+.
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
template {
|
|
344
|
-
display: none;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Add the correct display in IE 10.
|
|
349
|
-
*/
|
|
350
|
-
|
|
351
|
-
[hidden] {
|
|
352
|
-
display: none;
|
|
353
|
-
}
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
@styledTitlePadding: 0.75em 1em;
|
|
76
76
|
@styledTitleFontWeight: @bold;
|
|
77
77
|
@styledTitleColor: @unselectedTextColor;
|
|
78
|
-
@styledTitleTransition: background-color @defaultDuration @defaultEasing;
|
|
79
78
|
@styledTitleBorder: 1px solid @borderColor;
|
|
80
79
|
@styledTitleTransition:
|
|
81
80
|
background @defaultDuration @defaultEasing,
|