diff --git a/lib/css/base/_stacks-body.less b/lib/css/base/_stacks-body.less index f32f3a891c..af0c86ef46 100644 --- a/lib/css/base/_stacks-body.less +++ b/lib/css/base/_stacks-body.less @@ -34,6 +34,7 @@ body { body { #stacks-internals #load-config(); + margin: 0; box-sizing: border-box; min-height: 100%; background-color: @body-background; diff --git a/lib/css/base/_stacks-configuration-static.less b/lib/css/base/_stacks-configuration-static.less index 17636d6f5c..86668a7f05 100644 --- a/lib/css/base/_stacks-configuration-static.less +++ b/lib/css/base/_stacks-configuration-static.less @@ -5,11 +5,6 @@ // OPTIONS // ------- // -// #stacks-config-static { @css-reset: normalize; } -// -// `normalize` is the default, which will include normalize.css (the Nicolas Gallagher reset). Other -// legal options are `meyer` for the Eric Meyer reset, and `none` if no CSS reset should be compiled in. -// // // #stacks-config-static { @breakpoints: 1264px, 980px, 640px; } // @@ -39,21 +34,7 @@ // is on the root element, because the selector-free breakpoint group still applies. // // Any selector, if given, MUST select the root (html) element. -// -// Previously, the CSS reset option was a simple global variable. For backwards compatibility, we'll handle it correctly for a bit. -@stacks-include-css-reset: this-is-deprecated; #stacks-config-static { - - #handle-old-reset-option() when (@stacks-include-css-reset = this-is-deprecated) { - // the variable wasn't overridden -- good! - @css-reset: normalize; // other possible values are `meyer` and `none` - } - #handle-old-reset-option() when not (@stacks-include-css-reset = this-is-deprecated) { - // Somebody overwrote the variable, so this project is using the legacy option. Handle it. - @css-reset: @stacks-include-css-reset; - } - #handle-old-reset-option(); - @breakpoints: @breakpoint-lg, @breakpoint-md, @breakpoint-sm; } diff --git a/lib/css/base/_stacks-reset-meyer.less b/lib/css/base/_stacks-reset-meyer.less deleted file mode 100644 index 967566d196..0000000000 --- a/lib/css/base/_stacks-reset-meyer.less +++ /dev/null @@ -1,64 +0,0 @@ -/* stylelint-disable */ -// ============================================================================ -// http://meyerweb.com/eric/tools/css/reset/ -// v2.0 | 20110126 -// License: none (public domain) -// ---------------------------------------------------------------------------- -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font: inherit; - font-size: 100%; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} -/* the stuff below isn't in the original Eric Meyer reset */ -sub, -sup { - font-size: 80%; - line-height: 1; - vertical-align: sub; -} - -sup { - vertical-align: super; -} - -button { - margin: 0; /* for Safari */ -} diff --git a/lib/css/base/_stacks-reset-normalize.less b/lib/css/base/_stacks-reset-normalize.less deleted file mode 100644 index d81f5cb2dc..0000000000 --- a/lib/css/base/_stacks-reset-normalize.less +++ /dev/null @@ -1,449 +0,0 @@ -/* stylelint-disable */ -/* normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ - -/* Document - ========================================================================== */ - -/** - * 1. Correct the line height in all browsers. - * 2. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - -html { - line-height: 1.15; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers (opinionated). - */ - -body { - margin: 0; -} - -/** - * Add the correct display in IE 9-. - */ - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - margin: 0.67em 0; - font-size: 2em; -} - -/* Grouping content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. - */ - -figcaption, -figure, -main { /* 1 */ - display: block; -} - -/** - * Add the correct margin in IE 8. - */ - -figure { - margin: 1em 40px; -} - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - overflow: visible; /* 2 */ - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - -a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ -} - -/** - * 1. Remove the bottom border in Chrome 57- and Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; /* 2 */ -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font style in Android 4.3-. - */ - -dfn { - font-style: italic; -} - -/** - * Add the correct background and color in IE 9-. - */ - -mark { - background-color: #ff0; - color: #000; -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * 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; -} - -/* Embedded content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -audio, -video { - display: inline-block; -} - -/** - * Add the correct display in iOS 4-7. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Remove the border on images inside links in IE 10-. - */ - -img { - border-style: none; -} - -/** - * Hide the overflow in IE. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - margin: 0; /* 2 */ - font-family: sans-serif; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - padding: 0; - border-style: none; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ - -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - display: table; /* 1 */ - box-sizing: border-box; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - color: inherit; /* 2 */ - white-space: normal; /* 1 */ -} - -/** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Remove the default vertical scrollbar in IE. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. - */ - -details, /* 1 */ -menu { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Scripting - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -canvas { - display: inline-block; -} - -/** - * Add the correct display in IE. - */ - -template { - display: none; -} - -/* Hidden - ========================================================================== */ - -/** - * Add the correct display in IE 10-. - */ - -[hidden] { - display: none; -} diff --git a/lib/css/base/_stacks-reset.less b/lib/css/base/_stacks-reset.less deleted file mode 100644 index 2c210fa884..0000000000 --- a/lib/css/base/_stacks-reset.less +++ /dev/null @@ -1,20 +0,0 @@ -// the default CSS reset is normalize.css; other possibilities are the Eric Meyer reset, and no reset at all. - -#stacks-internals() { - #include-css-reset(meyer) { - @import "_stacks-reset-meyer.less"; - } - #include-css-reset(normalize) { - @import "_stacks-reset-normalize.less"; - } - /* stylelint-disable block-no-empty */ - #include-css-reset(none) { - } - /* stylelint-enable */ -} - -& { - #stacks-internals #load-static-config(); - #stacks-internals #include-css-reset(@css-reset); -} - diff --git a/lib/css/components/_stacks-buttons.less b/lib/css/components/_stacks-buttons.less index 6be59d3c72..7fe8291a5a 100644 --- a/lib/css/components/_stacks-buttons.less +++ b/lib/css/components/_stacks-buttons.less @@ -20,7 +20,7 @@ position: relative; display: inline-block; padding: 0.8em; - color: var(--theme-button-color); + margin: 0; border: 1px solid transparent; border-radius: @br-sm; background-color: transparent; diff --git a/lib/css/stacks-static.less b/lib/css/stacks-static.less index 8a8f105a8c..358f6f6807 100644 --- a/lib/css/stacks-static.less +++ b/lib/css/stacks-static.less @@ -13,7 +13,6 @@ // The following items are elements which we DO NOT allow communities // to modify via variables. // ---------------------------------------------------------------------------- -@import "base/_stacks-reset.less"; @import "base/_stacks-icons.less"; // -- COMPONENTS