AutorÃa | Ultima modificación | Ver Log |
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix// 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// 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. Change the default tap highlight to be completely transparent in iOS.*,*::before,*::after {box-sizing: border-box; // 1}html {font-family: sans-serif; // 2line-height: 1.15; // 3text-size-adjust: 100%; // 4-webkit-text-size-adjust: 100%; // 4-webkit-tap-highlight-color: rgba($black, 0); // 5}// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)// stylelint-disable-next-line selector-list-comma-newline-afterarticle,aside,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 `background-color`.// 3. Set an explicit initial text-align value so that we can later use// the `inherit` value on things like `<th>` elements.body:not(#tinymce) {margin: 0; // 1font-family: $font-family-base;@include font-size($font-size-base);font-weight: $font-weight-base;line-height: $line-height-base;color: $body-color;text-align: left; // 3background-color: $body-bg; // 2@include media-breakpoint-between(xs, sm) {font-size: 14px;}&.pagelayout-maintenance,&.path-login {background: var(--topbar-color);background: linear-gradient(90deg, var(--topbar-color) 0%, rgba($container-bg,1) 60%);}&.pagelayout-maintenance.theme-dark,&.path-login.theme-dark {background-color: $body-bg;color: $dm-body-color;}&.theme-dark {background-color: $dm-body-bg;color: $dm-body-color;}}#page-admin-reportbuilder-edit {background: $container-bg!important;}.theme-dark#page-admin-reportbuilder-edit {background: $dm-container-bg!important;}// Future-proof rule: in browsers that support :focus-visible, suppress the focus outline// on elements that programmatically receive focus but wouldn't normally show a visible// focus outline. In general, this would mean that the outline is only applied if the// interaction that led to the element receiving programmatic focus was a keyboard interaction,// or the browser has somehow determined that the user is primarily a keyboard user and/or// wants focus outlines to always be presented.//// See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible// and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/[tabindex="-1"]:focus:not(:focus-visible) {outline-offset: 2px;}// Content grouping//// 1. Add the correct box sizing in Firefox.// 2. Show the overflow in Edge and IE.hr {box-sizing: content-box; // 1height: 0; // 1overflow: visible; // 2}.hr-xsmall {width: 30px;margin-left: auto;margin-right: auto;}.hr-small {width: 30px;margin: 30px auto;}//// 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.// stylelint-disable-next-line selector-list-comma-newline-afterh1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: $headings-margin-bottom;}// Reset margins on paragraphs//// Similarly, the top margin on `<p>`s get reset. However, we also reset the// bottom margin to use `rem` units instead of `em`.p {margin-top: 0;margin-bottom: $paragraph-margin-bottom;&:only-child {margin-bottom: 0;}}// Abbreviations//// 1. Duplicate behavior to the data-* attribute for our tooltip plugin// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.// 3. Add explicit cursor to indicate changed behavior.// 4. Remove the bottom border in Firefox 39-.abbr[title],abbr[data-original-title] {// 1cursor: help; // 3border-bottom: 0; // 4}address {margin-bottom: 1rem;font-style: normal;line-height: inherit;}ol,ul,dl {margin-top: 0;margin-bottom: 1rem;}ol ol,ul ul,ol ul,ul ol {margin-bottom: 0;}dt {font-weight: $dt-font-weight;}dd {margin-bottom: .5rem;margin-left: 0; // Undo browser default}blockquote {margin: 0 0 1rem;}b,strong {font-weight: $font-weight-bolder; // Add the correct font weight in Chrome, Edge, and Safari}small {@include 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;@include font-size(75%);line-height: 0;vertical-align: baseline;}sub {bottom: -.25em;}sup {top: -.5em;}//// Links//a {color: $link-color;text-decoration: $link-decoration;background-color: transparent; // Remove the gray background on active links in IE 10.transition: $transition-base;word-break: break-word;@include hover() {color: $link-hover-color;.theme-dark & {color: $dm-link-hover-color;}}.theme-dark & {color: $dm-link-color;}}// And undo these styles for placeholder links/named anchors (without href).// It would be more straightforward to just use a[href] in previous block, but that// causes specificity issues in many other styles that are too complex to fix.// See https://github.com/twbs/bootstrap/issues/19402a:not([href]):not([class]) {color: inherit;text-decoration: none;@include hover() {color: inherit;text-decoration: none;}}//// Code//pre,code,kbd,samp {font-family: $font-family-monospace;@include font-size(1rem); // Correct the odd `em` font sizing in all browsers.}pre {// Remove browser default top marginmargin-top: 0;// Reset browser default of `1em` to use `rem`smargin-bottom: 1rem;// Don't allow content to break outsideoverflow: auto;// Disable auto-hiding scrollbar in IE & legacy Edge to avoid overlap,// making it impossible to interact with the content-ms-overflow-style: scrollbar;}//// Figures//figure {// Apply a consistent margin strategy (matches our type styles).margin: 0 0 1rem;}//// Images and content//img {vertical-align: middle;border-style: none; // Remove the border on images inside links in IE 10-.}svg {// Workaround for the SVG overflow bug in IE10/11 is still required.// See https://github.com/twbs/bootstrap/issues/26878overflow: hidden;vertical-align: middle;}//// Tables//table {border-collapse: collapse; // Prevent double borders}caption {padding-top: $table-cell-padding;padding-bottom: $table-cell-padding;color: $table-caption-color;text-align: left;caption-side: bottom;.theme-dark & {color: $dm-table-caption-color;}}// 1. Removes font-weight bold by inheriting// 2. Matches default `<td>` alignment by inheriting `text-align`.// 3. Fix alignment for Safarith {font-weight: $table-th-font-weight; // 1text-align: inherit; // 2text-align: -webkit-match-parent; // 3}//// Forms//label {// Allow labels to use `margin` for spacing.display: inline-block;margin-bottom: $label-margin-bottom;font-weight: $font-weight-medium;}// Remove the default `border-radius` that macOS Chrome adds.//// Details at https://github.com/twbs/bootstrap/issues/24093button {// stylelint-disable-next-line property-disallowed-listborder-radius: 0;}// Explicitly remove focus outline in Chromium when it shouldn't be// visible (e.g. as result of mouse click or touch tap). It already// should be doing this automatically, but seems to currently be// confused and applies its very visible two-tone outline anyway.button:focus:not(:focus-visible) {outline-offset: 2px;}:focus-visible {outline: 2px solid rgba($blue-600, .9);outline-offset: 2px;}input,button,select,optgroup,textarea {margin: 0; // Remove the margin in Firefox and Safarifont-family: inherit;@include font-size(inherit);line-height: inherit;}button,input {overflow: visible; // Show the overflow in Edge}button,select {text-transform: none; // Remove the inheritance of text transform in Firefox}// Set the cursor for non-`<button>` buttons//// Details at https://github.com/twbs/bootstrap/pull/30562[role="button"] {cursor: pointer;}// Remove the inheritance of word-wrap in Safari.//// Details at https://github.com/twbs/bootstrap/issues/24990select {word-wrap: normal;}// 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,[type="button"],// 1[type="reset"],[type="submit"] {-webkit-appearance: button; // 2}// Opinionated: add "hand" cursor to non-disabled button elements.@if $enable-pointer-cursor-for-buttons {button,[type="button"],[type="reset"],[type="submit"] {&:not(:disabled) {cursor: pointer;}}}// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner {padding: 0;border-style: none;}input[type="radio"],input[type="checkbox"] {box-sizing: border-box; // 1. Add the correct box sizing in IE 10-padding: 0; // 2. Remove the padding in IE 10-}input[type="radio"] {margin: 10px;}textarea {overflow: auto; // Remove the default vertical scrollbar in IE.// Textareas should really only resize vertically so they don't break their (horizontal) containers.resize: vertical;}fieldset {// Browsers set a default `min-width: min-content;` on fieldsets,// unlike e.g. `<div>`s, which have `min-width: 0;` by default.// So we reset that to ensure fieldsets behave more like a standard block element.// See https://github.com/twbs/bootstrap/issues/12359// and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elementsmin-width: 0;// Reset the default outline behavior of fieldsets so they don't affect page layout.padding: 0;margin: 0;border: 0;}// 1. Correct the text wrapping in Edge and IE.// 2. Correct the color inheritance from `fieldset` elements in IE.legend {display: block;width: 100%;max-width: 100%; // 1padding: 0;font-size: $font-size-sm;font-weight: $font-weight-bold;line-height: inherit;color: inherit; // 2opacity: .7;white-space: normal; // 1}progress {vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.}// Fix height of inputs with a type of datetime-local, date, month, week, or time// See https://github.com/twbs/bootstrap/issues/18842::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field {padding: 0;}::-webkit-inner-spin-button {height: auto;}// 1. Correct the outline style in Safari.// 2. This overrides the extra rounded corners on search inputs in iOS so that our// `.form-control` class can properly style them. Note that this cannot simply// be added to `.form-control` as it's not specific enough. For details, see// https://github.com/twbs/bootstrap/issues/11586.[type="search"] {outline-offset: -2px; // 1-webkit-appearance: textfield; // 2}// 1. A few input types should stay LTR// See https://rtlstyling.com/posts/rtl-styling#form-inputs// 2. RTL only output// See https://rtlcss.com/learn/usage-guide/control-directives/#raw/* rtl:raw:[type="tel"],[type="url"],[type="email"],[type="number"] {direction: ltr;}*/// Remove the inner padding in Chrome and Safari on macOS.::-webkit-search-decoration {-webkit-appearance: none;}// Remove padding around color pickers in webkit browsers::-webkit-color-swatch-wrapper {padding: 0;}// Inherit font family and line height for file input buttons::file-selector-button {font: inherit;}// 1. Change font properties to `inherit`// 2. Correct the inability to style clickable types in iOS and Safari.::-webkit-file-upload-button {font: inherit; // 1-webkit-appearance: button; // 2}// Correct element displaysoutput {display: inline-block;}// Remove border from iframeiframe {border: 0;}// Summary//// 1. Add the correct display in all browserssummary {display: list-item; // 1cursor: pointer;}// Progress//// Add the correct vertical alignment in Chrome, Firefox, and Opera.progress {vertical-align: baseline;}// Hidden attribute//// Always hide an element with the `hidden` HTML attribute.[hidden] {display: none !important;}$thin-scroll-bg-thumb: $gray-600 !default;$thin-scroll-bg-hover: $gray-700 !default;$dm-thin-scroll-bg-thumb: $dm-gray-100 !default;$dm-thin-scroll-bg-hover: $dm-gray-200 !default;// Thin scrollbars.@mixin thin-scrolls($bg-track) {// Firefox.scrollbar-width: thin;scrollbar-color: $thin-scroll-bg-thumb $bg-track;// Chrome, Edge and Safari.&::-webkit-scrollbar {width: 8px;}&::-webkit-scrollbar-track {background: $bg-track;border-radius: 20px;}&::-webkit-scrollbar-thumb {background-color: $thin-scroll-bg-thumb;border-radius: 20px;//border: 3px solid $bg-track;}&::-webkit-scrollbar-thumb:hover {background-color: $thin-scroll-bg-hover;}}@mixin dm-thin-scrolls($bg-track) {// Firefox.scrollbar-width: thin;scrollbar-color: $dm-thin-scroll-bg-thumb $dm-bg-track;// Chrome, Edge and Safari.&::-webkit-scrollbar {width: 8px;}&::-webkit-scrollbar-track {background: $dm-bg-track;border-radius: 20px;}&::-webkit-scrollbar-thumb {background-color: $dm-thin-scroll-bg-thumb;border-radius: 20px;//border: 3px solid $dm-bg-track;}&::-webkit-scrollbar-thumb:hover {background-color: $dm-thin-scroll-bg-hover;}}.dark-mode:root {color-scheme: dark;}