|
|
|
/* stylelint-disable at-rule-no-unknown */
|
|
|
|
|
|
|
|
// Reboot
|
|
|
|
//
|
|
|
|
// Normalization of HTML elements, manually forked from Normalize.css to remove
|
|
|
|
// styles targeting irrelevant browsers while applying new styles.
|
|
|
|
//
|
|
|
|
// Normalize is licensed MIT. https://github.com/necolas/normalize.css
|
|
|
|
|
|
|
|
// http://stackoverflow.com/a/13611748/3040605
|
|
|
|
@font-face {
|
|
|
|
font-family: "Monospace Number";
|
|
|
|
src: local("Tahoma");
|
|
|
|
unicode-range: U+30-39;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: "Chinese Quote";
|
|
|
|
src: local("PingFang SC"), local("SimSun");
|
|
|
|
unicode-range: U+2018, U+2019, U+201c, U+201d;
|
|
|
|
}
|
|
|
|
|
|
|
|
// HTML & Body reset
|
|
|
|
html, body {
|
|
|
|
.square(100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
// remove the clear button of a text input control in IE10+
|
|
|
|
input::-ms-clear, input::-ms-reveal {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Document
|
|
|
|
//
|
|
|
|
// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
|
|
|
|
// 2. Change the default font family in all browsers.
|
|
|
|
// 3. Correct the line height in all browsers.
|
|
|
|
// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
|
|
|
|
// 5. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so
|
|
|
|
// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
|
|
|
|
// 6. Change the default tap highlight to be completely transparent in iOS.
|
|
|
|
|
|
|
|
*,
|
|
|
|
*::before,
|
|
|
|
*::after {
|
|
|
|
box-sizing: border-box; // 1
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-family: sans-serif; // 2
|
|
|
|
line-height: 1.15; // 3
|
|
|
|
-webkit-text-size-adjust: 100%; // 4
|
|
|
|
-ms-text-size-adjust: 100%; // 4
|
|
|
|
-ms-overflow-style: scrollbar; // 5
|
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 6
|
|
|
|
}
|
|
|
|
|
|
|
|
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
|
|
|
@at-root {
|
|
|
|
@-ms-viewport { width: device-width; }
|
|
|
|
}
|
|
|
|
|
|
|
|
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
|
|
|
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body
|
|
|
|
//
|
|
|
|
// 1. remove the margin in all browsers.
|
|
|
|
// 2. As a best practice, apply a default `body-background`.
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0; // 1
|
|
|
|
font-family: @font-family;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
color: @text-color;
|
|
|
|
background-color: @body-background; // 2
|
|
|
|
}
|
|
|
|
|
|
|
|
// Suppress the focus outline on elements that cannot be accessed via keyboard.
|
|
|
|
// This prevents an unwanted focus outline from appearing around elements that
|
|
|
|
// might still respond to pointer events.
|
|
|
|
//
|
|
|
|
// Credit: https://github.com/suitcss/base
|
|
|
|
[tabindex="-1"]:focus {
|
|
|
|
outline: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Content grouping
|
|
|
|
//
|
|
|
|
// 1. Add the correct box sizing in Firefox.
|
|
|
|
// 2. Show the overflow in Edge and IE.
|
|
|
|
|
|
|
|
hr {
|
|
|
|
box-sizing: content-box; // 1
|
|
|
|
height: 0; // 1
|
|
|
|
overflow: visible; // 2
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Typography
|
|
|
|
//
|
|
|
|
|
|
|
|
// remove top margins from headings
|
|
|
|
//
|
|
|
|
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
|
|
|
// margin for easier control within type scales as it avoids margin collapsing.
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: .5em;
|
|
|
|
color: @heading-color;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reset margins on paragraphs
|
|
|
|
//
|
|
|
|
// Similarly, the top margin on `<p>`s get reset. However, we also reset the
|
|
|
|
// bottom margin to use `em` units instead of `em`.
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Abbreviations
|
|
|
|
//
|
|
|
|
// 1. remove the bottom border in Firefox 39-.
|
|
|
|
// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
|
|
// 3. Add explicit cursor to indicate changed behavior.
|
|
|
|
// 4. Duplicate behavior to the data-* attribute for our tooltip plugin
|
|
|
|
|
|
|
|
abbr[title],
|
|
|
|
abbr[data-original-title] { // 4
|
|
|
|
text-decoration: underline; // 2
|
|
|
|
text-decoration: underline dotted; // 2
|
|
|
|
cursor: help; // 3
|
|
|
|
border-bottom: 0; // 1
|
|
|
|