/* 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 // 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: fade(@black, 0%); // 6 } // IE10+ doesn't honor `` in some cases. @-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 color: @text-color; font-size: @font-size-base; font-family: @font-family; font-variant: @font-variant-base; line-height: @line-height-base; background-color: @body-background; // 2 font-feature-settings: @font-feature-settings-base; } // 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, `
`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 border-bottom: 0; // 1 cursor: help; // 3 } address { margin-bottom: 1em; font-style: normal; line-height: inherit; } input[type='text'], input[type='password'], input[type='number'], textarea { -webkit-appearance: none; } ol, ul, dl { margin-top: 0; margin-bottom: 1em; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 500; } dd { margin-bottom: 0.5em; margin-left: 0; // Undo browser default } blockquote { margin: 0 0 1em; } dfn { font-style: italic; // Add the correct font style in Android 4.3- } b, strong { font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari } small { font-size: 80%; // Add the correct font size in all browsers } // // Prevent `sub` and `sup` elements from affecting the line height in // all browsers. // sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } // // Links // a { color: @link-color; text-decoration: @link-decoration; background-color: transparent; // remove the gray background on active links in IE 10. outline: none; cursor: pointer; transition: color 0.3s; -webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+. &:hover { color: @link-hover-color; } &:active { color: @link-active-color; } &:active, &:hover { text-decoration: @link-hover-decoration; outline: 0; } &[disabled] { color: @disabled-color; cursor: not-allowed; pointer-events: none; } } // // Code // pre, code, kbd, samp { font-size: 1em; // Correct the odd `em` font sizing in all browsers. font-family: @code-family; } pre { // remove browser default top margin margin-top: 0; // Reset browser default of `1em` to use `em`s margin-bottom: 1em; // Don't allow content to break outside overflow: auto; } // // Figures // figure { // Apply a consistent margin strategy (matches our type styles). margin: 0 0 1em; } // // Images and content // img { vertical-align: middle; border-style: none; // remove the border on images inside links in IE 10-. } svg:not(:root) { overflow: hidden; // Hide the overflow in IE } // Avoid 300ms click delay on touch devices that support the `touch-action` CSS property. // // In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11 // DON'T remove the click delay when `` is present. // However, they DO support emoving the click delay via `touch-action: manipulation`. // See: // * https://getbootstrap.com/docs/4.0/content/reboot/#click-delay-optimization-for-touch // * http://caniuse.com/#feat=css-touch-action // * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay a, area, button, [role='button'], input:not([type='range']), label, select, summary, textarea { touch-action: manipulation; } // // Tables // table { border-collapse: collapse; // Prevent double borders } caption { padding-top: 0.75em; padding-bottom: 0.3em; color: @text-color-secondary; text-align: left; caption-side: bottom; } th { // Matches default `