diff --git a/clayui.com/src/styles/_autocomplete.scss b/clayui.com/src/styles/_autocomplete.scss index e58dca5a13..66db362893 100644 --- a/clayui.com/src/styles/_autocomplete.scss +++ b/clayui.com/src/styles/_autocomplete.scss @@ -51,8 +51,9 @@ .list-group .list-group-item { border-width: 0; - &:hover, &.active { - background-color: #F5F9FF; + &:hover, + &.active { + background-color: #f5f9ff; } &:first-child { @@ -66,4 +67,4 @@ border-bottom-right-radius: 4px; } } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/_blog.scss b/clayui.com/src/styles/_blog.scss index df8341720a..3e4b8db95b 100644 --- a/clayui.com/src/styles/_blog.scss +++ b/clayui.com/src/styles/_blog.scss @@ -23,4 +23,4 @@ .clay-blog-content { max-width: 840px; } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/_charts.scss b/clayui.com/src/styles/_charts.scss index f6652ec3bd..92ba503eda 100644 --- a/clayui.com/src/styles/_charts.scss +++ b/clayui.com/src/styles/_charts.scss @@ -1,199 +1,251 @@ .bb-chart-arcs-title { - dominant-baseline: middle; - font-size: 1.3em; } + dominant-baseline: middle; + font-size: 1.3em; +} .bb-chart-arcs .bb-chart-arcs-background { - fill: #e0e0e0; - stroke: none; } + fill: #e0e0e0; + stroke: none; +} .bb-chart-arcs .bb-chart-arcs-gauge-unit { - fill: #000; - font-size: 16px; } + fill: #000; + font-size: 16px; +} .bb-chart-arcs .bb-chart-arcs-gauge-max { - fill: #777; } + fill: #777; +} .bb-chart-arcs .bb-chart-arcs-gauge-min { - fill: #777; } + fill: #777; +} .bb-chart-arc .bb-gauge-value { - fill: #000; } + fill: #000; +} .bb-area { - stroke-width: 0; - opacity: 0.2; } + stroke-width: 0; + opacity: 0.2; +} .bb-bar { - stroke-width: 0; } - .bb-bar._expanded_ { - fill-opacity: 0.75; } + stroke-width: 0; +} +.bb-bar._expanded_ { + fill-opacity: 0.75; +} .bb-brush .extent { - fill-opacity: .1; } + fill-opacity: 0.1; +} .bb svg { - font: 10px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - -webkit-tap-highlight-color: transparent; } - -.bb path, .bb line { - fill: none; - stroke: #e5e5eb; } + font: 10px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; + -webkit-tap-highlight-color: transparent; +} + +.bb path, +.bb line { + fill: none; + stroke: #e5e5eb; +} .bb text { - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; } - .bb text tspan { - fill: #6b6c7e; } + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.bb text tspan { + fill: #6b6c7e; +} .bb-legend-item-tile, .bb-xgrid-focus, .bb-ygrid, .bb-event-rect, .bb-bars path { - shape-rendering: crispEdges; } + shape-rendering: crispEdges; +} .bb-chart-arc path { - stroke: #fff; } + stroke: #fff; +} .bb-chart-arc text { - fill: #fff; - font-size: 13px; } + fill: #fff; + font-size: 13px; +} .bb-target.bb-focused { - opacity: 1; } + opacity: 1; +} -.bb-target.bb-focused path.bb-line, .bb-target.bb-focused path.bb-step { - stroke-width: 2px; } +.bb-target.bb-focused path.bb-line, +.bb-target.bb-focused path.bb-step { + stroke-width: 2px; +} .bb-target.bb-defocused { - opacity: 0.3 !important; } + opacity: 0.3 !important; +} .bb-grid line { - stroke: #e5e5eb; - stroke-width: 0.5px; } + stroke: #e5e5eb; + stroke-width: 0.5px; +} .bb-grid text { - fill: #aaa; } + fill: #aaa; +} .bb-legend-item { - font-size: 12px; } + font-size: 12px; +} .bb-legend-item-hidden { - opacity: 0.15; } + opacity: 0.15; +} .bb-legend-background { - opacity: 0.75; - fill: white; - stroke: lightgray; - stroke-width: 1; } + opacity: 0.75; + fill: white; + stroke: lightgray; + stroke-width: 1; +} .bb-line { - stroke-width: 2px; } + stroke-width: 2px; +} .bb-line-dashed-2-2 { - stroke-dasharray: 2 2; } + stroke-dasharray: 2 2; +} .bb-line-dashed-2-3 { - stroke-dasharray: 2 3; } + stroke-dasharray: 2 3; +} .bb-line-dashed-2-4 { - stroke-dasharray: 2 4; } + stroke-dasharray: 2 4; +} .bb-line-dashed-3-2 { - stroke-dasharray: 3 2; } + stroke-dasharray: 3 2; +} .bb-line-dashed-3-3 { - stroke-dasharray: 3 3; } + stroke-dasharray: 3 3; +} .bb-line-dashed-3-4 { - stroke-dasharray: 3 4; } + stroke-dasharray: 3 4; +} .bb-line-dashed-4-2 { - stroke-dasharray: 4 2; } + stroke-dasharray: 4 2; +} .bb-line-dashed-4-3 { - stroke-dasharray: 4 3; } + stroke-dasharray: 4 3; +} .bb-line-dashed-4-4 { - stroke-dasharray: 4 4; } + stroke-dasharray: 4 4; +} .loading-icon { - min-height: 320px; - min-height: 320px; - display: flex; - flex-direction: row; - align-items: center; - vertical-align: middle; } + min-height: 320px; + min-height: 320px; + display: flex; + flex-direction: row; + align-items: center; + vertical-align: middle; +} .bb-circle._expanded_ { - stroke-width: 1px; - stroke: white; } + stroke-width: 1px; + stroke: white; +} .bb-selected-circle { - fill: white; - stroke-width: 2px; } + fill: white; + stroke-width: 2px; +} .bb-region { - fill: steelblue; - fill-opacity: .1; } + fill: steelblue; + fill-opacity: 0.1; +} .bb-text.bb-empty { - fill: #808080; - font-size: 2em; } + fill: #808080; + font-size: 2em; +} .bb-title { - font: 14px sans-serif; } + font: 14px sans-serif; +} .bb-tooltip-container { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: block; - max-width: 276px; - padding: 1px; - font-style: normal; - font-weight: normal; - line-height: 1.5; - text-align: start; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 0.3rem; } + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: block; + max-width: 276px; + padding: 1px; + font-style: normal; + font-weight: normal; + line-height: 1.5; + text-align: start; + word-break: normal; + word-spacing: normal; + white-space: normal; + line-break: auto; + font-size: 0.875rem; + word-wrap: break-word; + background-color: #fff; + background-clip: padding-box; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 0.3rem; +} .bb-tooltip { - border-spacing: 0; - background-color: #fff; - empty-cells: show; - opacity: 0.9; - box-shadow: 7px 7px 12px -9px #777777; } - .bb-tooltip th { - border-bottom: 1px solid rgba(0, 0, 0, 0.2); - font-size: 14px; - padding: 2px 5px; - text-align: left; - color: #000; } - .bb-tooltip td { - font-size: 13px; - padding: 3px 6px; - background-color: #fff; } - .bb-tooltip td > span { - display: inline-block; - width: 10px; - height: 10px; - margin-right: 6px; } - .bb-tooltip td.value { - text-align: right; } - .bb-tooltip td svg { - width: 10px; - height: 10px; - margin-right: 2px; } - -/*# sourceMappingURL=main.css.map */ \ No newline at end of file + border-spacing: 0; + background-color: #fff; + empty-cells: show; + opacity: 0.9; + box-shadow: 7px 7px 12px -9px #777777; +} +.bb-tooltip th { + border-bottom: 1px solid rgba(0, 0, 0, 0.2); + font-size: 14px; + padding: 2px 5px; + text-align: left; + color: #000; +} +.bb-tooltip td { + font-size: 13px; + padding: 3px 6px; + background-color: #fff; +} +.bb-tooltip td > span { + display: inline-block; + width: 10px; + height: 10px; + margin-right: 6px; +} +.bb-tooltip td.value { + text-align: right; +} +.bb-tooltip td svg { + width: 10px; + height: 10px; + margin-right: 2px; +} + +/*# sourceMappingURL=main.css.map */ diff --git a/clayui.com/src/styles/_docsearch.scss b/clayui.com/src/styles/_docsearch.scss index c5d8351f3f..fa64c3cea9 100644 --- a/clayui.com/src/styles/_docsearch.scss +++ b/clayui.com/src/styles/_docsearch.scss @@ -1,137 +1,145 @@ .page-autocomplete { - max-width: 550px; + max-width: 550px; } .page-autocomplete .algolia-autocomplete { - display: block !important; - flex: 1; - width: 100%; + display: block !important; + flex: 1; + width: 100%; - .ds-dropdown-menu { - max-width: auto; - min-width: auto; - } + .ds-dropdown-menu { + max-width: auto; + min-width: auto; + } } .page-autocomplete .algolia-autocomplete .ds-dropdown-menu { - width: 100%; - padding: .75rem 0 !important; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.1); - box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175); + width: 100%; + padding: 0.75rem 0 !important; + background-color: #fff; + background-clip: padding-box; + border: 1px solid rgba(0, 0, 0, 0.1); + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175); } .algolia-autocomplete .ds-dropdown-menu::before { - display: none !important; + display: none !important; } -.algolia-autocomplete .ds-dropdown-menu [class^="ds-dataset-"] { - padding: 0 !important; - overflow: visible !important; - background-color: transparent !important; - border: 0 !important; +.algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] { + padding: 0 !important; + overflow: visible !important; + background-color: transparent !important; + border: 0 !important; } .algolia-autocomplete .ds-dropdown-menu .ds-suggestions { - margin-top: 0 !important; + margin-top: 0 !important; } .algolia-autocomplete .algolia-docsearch-suggestion { - padding: 0 !important; - overflow: visible !important; + padding: 0 !important; + overflow: visible !important; } .algolia-autocomplete .algolia-docsearch-suggestion--category-header { - padding: .125rem 1rem !important; - margin-top: 0 !important; - font-size: .875rem !important; - font-weight: 500 !important; - color: $brand-dark !important; - border-bottom: 0 !important; + padding: 0.125rem 1rem !important; + margin-top: 0 !important; + font-size: 0.875rem !important; + font-weight: 500 !important; + color: $brand-dark !important; + border-bottom: 0 !important; } .algolia-autocomplete .algolia-docsearch-suggestion--wrapper { - float: none !important; - padding-top: 0 !important; + float: none !important; + padding-top: 0 !important; } .algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column { - float: none !important; - width: auto !important; - padding: 0 !important; - text-align: left !important; + float: none !important; + width: auto !important; + padding: 0 !important; + text-align: left !important; } .algolia-autocomplete .algolia-docsearch-suggestion--content { - float: none !important; - width: auto !important; - padding: 0 !important; + float: none !important; + width: auto !important; + padding: 0 !important; } .algolia-autocomplete .algolia-docsearch-suggestion--content::before { - display: none !important; + display: none !important; } -.algolia-autocomplete .ds-suggestion:not(:first-child) .algolia-docsearch-suggestion--category-header { - padding-top: .75rem !important; - margin-top: .75rem !important; - border-top: 1px solid rgba(0, 0, 0, 0.1); +.algolia-autocomplete + .ds-suggestion:not(:first-child) + .algolia-docsearch-suggestion--category-header { + padding-top: 0.75rem !important; + margin-top: 0.75rem !important; + border-top: 1px solid rgba(0, 0, 0, 0.1); } -.algolia-autocomplete .ds-suggestion .algolia-docsearch-suggestion--subcategory-column { - display: none !important; +.algolia-autocomplete + .ds-suggestion + .algolia-docsearch-suggestion--subcategory-column { + display: none !important; } .algolia-autocomplete .algolia-docsearch-suggestion--title { - display: block; - padding: .25rem 1rem !important; - margin-bottom: 0 !important; - font-size: .875rem !important; - font-weight: 400 !important; + display: block; + padding: 0.25rem 1rem !important; + margin-bottom: 0 !important; + font-size: 0.875rem !important; + font-weight: 400 !important; } .algolia-autocomplete .algolia-docsearch-suggestion--text { - padding: 0 1rem .5rem !important; - margin-top: -.25rem; - font-size: .875rem !important; - font-weight: 400; - line-height: 1.25 !important; + padding: 0 1rem 0.5rem !important; + margin-top: -0.25rem; + font-size: 0.875rem !important; + font-weight: 400; + line-height: 1.25 !important; } .algolia-autocomplete .algolia-docsearch-footer { - float: none !important; - width: auto !important; - height: auto !important; - padding: .75rem 1rem 0; - font-size: .75rem !important; - line-height: 1 !important; - color: #767676 !important; - border-top: 1px solid rgba(0, 0, 0, 0.1); + float: none !important; + width: auto !important; + height: auto !important; + padding: 0.75rem 1rem 0; + font-size: 0.75rem !important; + line-height: 1 !important; + color: #767676 !important; + border-top: 1px solid rgba(0, 0, 0, 0.1); } .algolia-autocomplete .algolia-docsearch-footer--logo { - display: inline !important; - overflow: visible !important; - color: inherit !important; - text-indent: 0 !important; - background: none !important; + display: inline !important; + overflow: visible !important; + color: inherit !important; + text-indent: 0 !important; + background: none !important; } .algolia-autocomplete .algolia-docsearch-suggestion--highlight { - color: $brand-dark; - background-color: rgba(179, 71, 45, 0.12); + color: $brand-dark; + background-color: rgba(179, 71, 45, 0.12); } -.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight { - box-shadow: inset 0 -2px 0 0 rgba(179, 71, 45, 0.5) !important; +.algolia-autocomplete + .algolia-docsearch-suggestion--text + .algolia-docsearch-suggestion--highlight { + box-shadow: inset 0 -2px 0 0 rgba(179, 71, 45, 0.5) !important; } -.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content { - background-color: rgba(179, 71, 45, 0.15) !important; +.algolia-autocomplete + .ds-suggestion.ds-cursor + .algolia-docsearch-suggestion--content { + background-color: rgba(179, 71, 45, 0.15) !important; } .algolia-docsearch-suggestion--content, .algolia-docsearch-suggestion--title { - display: block !important; -} \ No newline at end of file + display: block !important; +} diff --git a/clayui.com/src/styles/_landing.scss b/clayui.com/src/styles/_landing.scss index 64a74e7586..626400a6dd 100644 --- a/clayui.com/src/styles/_landing.scss +++ b/clayui.com/src/styles/_landing.scss @@ -1,376 +1,376 @@ .vertical-title { - color: #CDCED9; - font-size: 13px; - font-weight: 700; - letter-spacing: 3px; - margin-top: 250px; - text-transform: uppercase; - transform: rotate(-90deg); + color: #cdced9; + font-size: 13px; + font-weight: 700; + letter-spacing: 3px; + margin-top: 250px; + text-transform: uppercase; + transform: rotate(-90deg); } .home { - background-color: $brand-bg-dark; - - .font-weight-bold { - font-weight: 900 !important; - } - - .card { - border-radius: 12px; - box-shadow: 4px 6px 36px rgba(48, 49, 63, 0.15); - margin-bottom: 32px; - min-height: 100%; - transition: all 0.4s; - - .learn-more { - color: #D2D3DD; - display: inline-flex; - font-size: 15px; - font-weight: bold; - } - - &:hover { - background-color: #FFF6F5; - box-shadow: 6px 9px 36px rgba(48, 49, 63, 0.2); - transform: translateY(-4px); - - .learn-more { - color: $brand-dark; - } - } - - h2 { - color: #393A4A; - font-size: 21px; - line-height: 1.6; - margin-bottom: 16px; - } - - .btn { - color: #393A4A; - font-size: 11px; - letter-spacing: 1.5px; - } - - p { - color: #A1A3B6; - font-size: 18px; - line-height: 1.6; - margin-bottom: 16px; - - @include media-breakpoint-up(sm) { - margin-bottom: 32px; - } - } - - img.mx-auto { - margin: 32px 0 40px; - width: 98px; - } - } + background-color: $brand-bg-dark; + + .font-weight-bold { + font-weight: 900 !important; + } + + .card { + border-radius: 12px; + box-shadow: 4px 6px 36px rgba(48, 49, 63, 0.15); + margin-bottom: 32px; + min-height: 100%; + transition: all 0.4s; + + .learn-more { + color: #d2d3dd; + display: inline-flex; + font-size: 15px; + font-weight: bold; + } + + &:hover { + background-color: #fff6f5; + box-shadow: 6px 9px 36px rgba(48, 49, 63, 0.2); + transform: translateY(-4px); + + .learn-more { + color: $brand-dark; + } + } + + h2 { + color: #393a4a; + font-size: 21px; + line-height: 1.6; + margin-bottom: 16px; + } + + .btn { + color: #393a4a; + font-size: 11px; + letter-spacing: 1.5px; + } + + p { + color: #a1a3b6; + font-size: 18px; + line-height: 1.6; + margin-bottom: 16px; + + @include media-breakpoint-up(sm) { + margin-bottom: 32px; + } + } + + img.mx-auto { + margin: 32px 0 40px; + width: 98px; + } + } } .intro { - background-size: auto; - color: $brand-light; - margin-bottom: 32px; - padding: 88px 0; - - @media (max-width: $screen-md) { - text-align: center !important; - } - - @include media-breakpoint-up(sm) { - padding: 203px 0 216px; - } - - .brand { - display: inline-block; - margin-bottom: 43px; - - .logo { - max-height: 84px; - margin-right: 22px; - - @media (max-width: $screen-md) { - max-width: 60px; - } - } - - .title { - font-size: 84px; - font-weight: 700; - color: $brand-dark; - - @media (max-width: $screen-md) { - font-size: 60px; - } - } - - &:hover { - text-decoration: none; - } - } - - .nav-item { - position: relative; - - &::before { - content: "・"; - color: $brand-dark; - position: absolute; - right: 1px; - } - - &:last-child::before { - content: ""; - } - } - - .h1 { - font-size: 36px; - font-weight: 900; - line-height: 1; - margin: 52px 0 24px; - word-break: normal; - - @include media-breakpoint-up(sm) { - font-size: 64px; - } - - @include media-breakpoint-up(lg) { - font-size: 96px; - margin-bottom: 48px; - } - } - - .h2 { - color: $brand-lighter; - font-size: 36px; - font-weight: 600; - line-height: 57px; - - @include media-breakpoint-up(lg) { - font-size: 48px; - margin-bottom: 73px; - } - - @media (max-width: $screen-md) { - font-size: 31px; - line-height: 43px; - margin-bottom: 40px; - } - } - - .h3 { - color: rgba(255, 255, 255, 0.6); - font-size: 18px; - font-weight: 700; - letter-spacing: 4px; - line-height: 1.7; - margin-bottom: 56px; - - @include media-breakpoint-up(sm) { - font-size: 28px; - letter-spacing: 0.4px; - margin-bottom: 72px; - } - } + background-size: auto; + color: $brand-light; + margin-bottom: 32px; + padding: 88px 0; + + @media (max-width: $screen-md) { + text-align: center !important; + } + + @include media-breakpoint-up(sm) { + padding: 203px 0 216px; + } + + .brand { + display: inline-block; + margin-bottom: 43px; + + .logo { + max-height: 84px; + margin-right: 22px; + + @media (max-width: $screen-md) { + max-width: 60px; + } + } + + .title { + font-size: 84px; + font-weight: 700; + color: $brand-dark; + + @media (max-width: $screen-md) { + font-size: 60px; + } + } + + &:hover { + text-decoration: none; + } + } + + .nav-item { + position: relative; + + &::before { + content: '・'; + color: $brand-dark; + position: absolute; + right: 1px; + } + + &:last-child::before { + content: ''; + } + } + + .h1 { + font-size: 36px; + font-weight: 900; + line-height: 1; + margin: 52px 0 24px; + word-break: normal; + + @include media-breakpoint-up(sm) { + font-size: 64px; + } + + @include media-breakpoint-up(lg) { + font-size: 96px; + margin-bottom: 48px; + } + } + + .h2 { + color: $brand-lighter; + font-size: 36px; + font-weight: 600; + line-height: 57px; + + @include media-breakpoint-up(lg) { + font-size: 48px; + margin-bottom: 73px; + } + + @media (max-width: $screen-md) { + font-size: 31px; + line-height: 43px; + margin-bottom: 40px; + } + } + + .h3 { + color: rgba(255, 255, 255, 0.6); + font-size: 18px; + font-weight: 700; + letter-spacing: 4px; + line-height: 1.7; + margin-bottom: 56px; + + @include media-breakpoint-up(sm) { + font-size: 28px; + letter-spacing: 0.4px; + margin-bottom: 72px; + } + } } .btn-warning-borderless { - color: $brand-lighter; + color: $brand-lighter; - &:hover { - color: $brand-lighter; - } + &:hover { + color: $brand-lighter; + } } .btn-borderless { - border: 1px solid $brand-lighter; + border: 1px solid $brand-lighter; } .btn-brand-color { - color: $brand-dark; + color: $brand-dark; - &:hover { - color: $brand-lighter; - } + &:hover { + color: $brand-lighter; + } } .title-section { - font-size: 32px; - color: $brand-dark; - font-weight: 700; - margin-bottom: 43px; - - svg { - font-size: 42px; - margin-right: 28px; - } - - @media (max-width: $screen-md) { - font-size: 28px; - - svg { - font-size: 36px; - } - } + font-size: 32px; + color: $brand-dark; + font-weight: 700; + margin-bottom: 43px; + + svg { + font-size: 42px; + margin-right: 28px; + } + + @media (max-width: $screen-md) { + font-size: 28px; + + svg { + font-size: 36px; + } + } } .title-section.orange { - color: #ff8f39; + color: #ff8f39; } .title-section ~ .version-section { - margin-bottom: 26px; + margin-bottom: 26px; } .subtitle-section { - color: $brand-lighter; - font-size: 20px; - font-weight: 400; - margin: 0; - - @media (max-width: $screen-md) { - font-size: 18px; - } + color: $brand-lighter; + font-size: 20px; + font-weight: 400; + margin: 0; + + @media (max-width: $screen-md) { + font-size: 18px; + } } .version-section { - color: $brand-lighter; - font-size: 24px; - font-weight: 500; + color: $brand-lighter; + font-size: 24px; + font-weight: 500; } .code-shell { - color: #ffae9a; - display: inline-block; - font-size: 18px; - font-weight: 600; + color: #ffae9a; + display: inline-block; + font-size: 18px; + font-weight: 600; } .spacing { - padding: 141px 20px; + padding: 141px 20px; } .hr { - &:first-child::before, - &::before { - background-color: $brand-bg-dark-lighter; - content: ""; - display: block; - height: 2px; - margin-left: auto; - margin-right: auto; - width: 300px; - } + &:first-child::before, + &::before { + background-color: $brand-bg-dark-lighter; + content: ''; + display: block; + height: 2px; + margin-left: auto; + margin-right: auto; + width: 300px; + } } .warning { - .subtitle-section { - color: #fff4ec; - margin-bottom: 61px; - } - - .btn-borderless { - border-color: #fff4ec; - } - - .btn-warning-borderless { - color: #fff4ec; - } - - .btn-brand-color { - color: #fff4ec; - } + .subtitle-section { + color: #fff4ec; + margin-bottom: 61px; + } + + .btn-borderless { + border-color: #fff4ec; + } + + .btn-warning-borderless { + color: #fff4ec; + } + + .btn-brand-color { + color: #fff4ec; + } } .components { - .subtitle-section { - margin-bottom: 61px; - } + .subtitle-section { + margin-bottom: 61px; + } - img { - margin-bottom: 30px; - } + img { + margin-bottom: 30px; + } } .css { - .title-section { - margin-bottom: 20px; - } + .title-section { + margin-bottom: 20px; + } - .subtitle-section { - margin-bottom: 44px; - } + .subtitle-section { + margin-bottom: 44px; + } - .code-shell { - margin-bottom: 46px; - } + .code-shell { + margin-bottom: 46px; + } } .css, .contribute { - .container-fluid { - @media (max-width: $screen-md) { - text-align: center !important; - } - } + .container-fluid { + @media (max-width: $screen-md) { + text-align: center !important; + } + } } .contribute { - color: #272833; - background-color: $brand-lighter; - padding: 153px 0; - - h2 { - font-size: 34px; - font-weight: 700; - margin-bottom: 14px; - } - - p { - font-size: 24px; - font-weight: 600; - line-height: 1.4; - margin-bottom: 23px; - } - - .btn-dark { - color: $brand-lighter; - } + color: #272833; + background-color: $brand-lighter; + padding: 153px 0; + + h2 { + font-size: 34px; + font-weight: 700; + margin-bottom: 14px; + } + + p { + font-size: 24px; + font-weight: 600; + line-height: 1.4; + margin-bottom: 23px; + } + + .btn-dark { + color: $brand-lighter; + } } .link-blocks { - color: $brand-light; - padding: 80px 0; - - @include media-breakpoint-up(sm) { - padding: 128px 0; - } - - .card { - background-color: #2B2D39; - border-width: 0; - box-shadow: 4px 6px 24px rgba(30, 31, 39, 0.3); - - &:hover { - background-color: #272833; - - a { - color: #D2D3DD; - } - } - - img.mx-auto { - height: 60px; - margin: 32px 0 40px; - } - - a { - color: #545462; - font-weight: bold; - } - } -} \ No newline at end of file + color: $brand-light; + padding: 80px 0; + + @include media-breakpoint-up(sm) { + padding: 128px 0; + } + + .card { + background-color: #2b2d39; + border-width: 0; + box-shadow: 4px 6px 24px rgba(30, 31, 39, 0.3); + + &:hover { + background-color: #272833; + + a { + color: #d2d3dd; + } + } + + img.mx-auto { + height: 60px; + margin: 32px 0 40px; + } + + a { + color: #545462; + font-weight: bold; + } + } +} diff --git a/clayui.com/src/styles/_mixin.scss b/clayui.com/src/styles/_mixin.scss index b6392c208b..e4299c53f2 100644 --- a/clayui.com/src/styles/_mixin.scss +++ b/clayui.com/src/styles/_mixin.scss @@ -1,9 +1,10 @@ @mixin focus-a11y { border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; &:focus { - box-shadow: 0 0 0 0.125rem #FFF, 0 0 0 0.25rem #80ACFF; + box-shadow: 0 0 0 0.125rem #fff, 0 0 0 0.25rem #80acff; outline: 0; } } diff --git a/clayui.com/src/styles/_navbar.scss b/clayui.com/src/styles/_navbar.scss index 85b01fd7d0..c60bcd209c 100644 --- a/clayui.com/src/styles/_navbar.scss +++ b/clayui.com/src/styles/_navbar.scss @@ -79,7 +79,7 @@ min-height: $base-size * 2.92; position: relative; z-index: 100; - border-top: 1px solid rgba(0,0,0,.1); + border-top: 1px solid rgba(0, 0, 0, 0.1); @media (min-width: $grid-float-breakpoint) { display: none; @@ -112,4 +112,4 @@ .lexicon-icon { font-size: 11px; } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/_sidebar.scss b/clayui.com/src/styles/_sidebar.scss index e2d6e471f5..10d5e08529 100644 --- a/clayui.com/src/styles/_sidebar.scss +++ b/clayui.com/src/styles/_sidebar.scss @@ -83,4 +83,4 @@ height: 100vh; flex-shrink: 0; } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/main.scss b/clayui.com/src/styles/main.scss index 15095dc620..e5e4c46b86 100644 --- a/clayui.com/src/styles/main.scss +++ b/clayui.com/src/styles/main.scss @@ -1,20 +1,20 @@ -@import "atlas-variables"; -@import "charts"; +@import 'atlas-variables'; +@import 'charts'; -@import "site/variables"; -@import "mixin"; +@import 'site/variables'; +@import 'mixin'; -@import "autocomplete"; -@import "code"; -@import "docsearch"; -@import "footer"; -@import "guide"; -@import "blog"; -@import "landing"; -@import "navbar"; -@import "prismjs"; -@import "sidebar"; +@import 'autocomplete'; +@import 'code'; +@import 'docsearch'; +@import 'footer'; +@import 'guide'; +@import 'blog'; +@import 'landing'; +@import 'navbar'; +@import 'prismjs'; +@import 'sidebar'; -@import "site/site"; -@import "site/content-site"; -@import "site/sidebar-site"; +@import 'site/site'; +@import 'site/content-site'; +@import 'site/sidebar-site'; diff --git a/clayui.com/src/styles/site/_content-site.scss b/clayui.com/src/styles/site/_content-site.scss index 5c212d7d31..8527199c4b 100644 --- a/clayui.com/src/styles/site/_content-site.scss +++ b/clayui.com/src/styles/site/_content-site.scss @@ -83,8 +83,9 @@ // Cards .clay-site-vertical-card { - .card-header, .card-footer { - background: #EEE; + .card-header, + .card-footer { + background: #eee; padding-bottom: 5px; padding-top: 5px; } @@ -128,15 +129,15 @@ } .form-container { - background-color: #FFF; - border: 1px solid #E8E8EC; + background-color: #fff; + border: 1px solid #e8e8ec; border-radius: 0.25rem; padding: 1.5rem; } // Icons - $site-lexicon-icon-color: #5AF; + $site-lexicon-icon-color: #5af; .clay-site-svg-bg { background-repeat: no-repeat; @@ -180,7 +181,9 @@ } .clay-site-linux-tux { - background-image: clay-svg-url(''); + background-image: clay-svg-url( + '' + ); height: 50px; padding-left: 50px; padding-top: 10px; @@ -222,11 +225,11 @@ .lexicon-icon-asterisk { fill-opacity: 0; - stroke: #078DD8; + stroke: #078dd8; stroke-width: 10px; &:hover { - fill: #078DD8; + fill: #078dd8; fill-opacity: 1; stroke: #000; stroke-opacity: 0.3; @@ -235,9 +238,9 @@ } .lexicon-icon-logout { - fill: #DA3A35; + fill: #da3a35; fill-opacity: 1; - stroke: #FFF; + stroke: #fff; stroke-width: 55px; &:hover { @@ -264,15 +267,16 @@ } .lexicon-icon-exclamation-full { - fill: #E3A200; - stroke: #FFF; + fill: #e3a200; + stroke: #fff; stroke-opacity: 0.4; stroke-width: 40px; &:hover { - animation: exclamationHover 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); + animation: exclamationHover 0.25s + cubic-bezier(0.175, 0.885, 0.32, 1.275); animation-fill-mode: both; - fill: #EC297B; + fill: #ec297b; } } } @@ -426,69 +430,69 @@ } $swatches: ( - 'black': $black, - 'gray-900': $gray-900, - 'gray-800': $gray-800, - 'gray-700': $gray-700, - 'gray-400': $gray-400, - 'gray-600': $gray-600, - 'gray-500': $gray-500, - 'gray-300': $gray-300, - 'gray-200': $gray-200, - 'gray-100': $gray-100, - 'white': $white, - 'blue': $blue, - 'indigo': $indigo, - 'purple': $purple, - 'pink': $pink, - 'orange': $orange, - 'red': $red, - 'yellow': $yellow, - 'green': $green, - 'teal': $teal, - 'cyan': $cyan, - 'primary-d2': $primary-d2, - 'primary-d1': $primary-d1, - 'primary': $primary, - 'primary-l1': $primary-l1, - 'primary-l2': $primary-l2, - 'primary-l3': $primary-l3, - 'secondary-d2': $secondary-d2, - 'secondary-d1': $secondary-d1, - 'secondary': $secondary, - 'secondary-l1': $secondary-l1, - 'secondary-l2': $secondary-l2, - 'secondary-l3': $secondary-l3, - 'success-d2': $success-d2, - 'success-d1': $success-d1, - 'success': $success, - 'success-l1': $success-l1, - 'success-l2': $success-l2, - 'info-d2': $info-d2, - 'info-d1': $info-d1, - 'info': $info, - 'info-l1': $info-l1, - 'info-l2': $info-l2, - 'warning-d2': $warning-d2, - 'warning-d1': $warning-d1, - 'warning': $warning, - 'warning-l1': $warning-l1, - 'warning-l2': $warning-l2, - 'danger-d2': $danger-d2, - 'danger-d1': $danger-d1, - 'danger': $danger, - 'danger-l1': $danger-l1, - 'danger-l2': $danger-l2, - 'light-d2': $light-d2, - 'light-d1': $light-d1, - 'light': $light, - 'light-l1': $light-l1, - 'light-l2': $light-l2, - 'dark-d2': $dark-d2, - 'dark-d1': $dark-d1, - 'dark': $dark, - 'dark-l1': $dark-l1, - 'dark-l2': $dark-l2, + 'black': $black, + 'gray-900': $gray-900, + 'gray-800': $gray-800, + 'gray-700': $gray-700, + 'gray-400': $gray-400, + 'gray-600': $gray-600, + 'gray-500': $gray-500, + 'gray-300': $gray-300, + 'gray-200': $gray-200, + 'gray-100': $gray-100, + 'white': $white, + 'blue': $blue, + 'indigo': $indigo, + 'purple': $purple, + 'pink': $pink, + 'orange': $orange, + 'red': $red, + 'yellow': $yellow, + 'green': $green, + 'teal': $teal, + 'cyan': $cyan, + 'primary-d2': $primary-d2, + 'primary-d1': $primary-d1, + 'primary': $primary, + 'primary-l1': $primary-l1, + 'primary-l2': $primary-l2, + 'primary-l3': $primary-l3, + 'secondary-d2': $secondary-d2, + 'secondary-d1': $secondary-d1, + 'secondary': $secondary, + 'secondary-l1': $secondary-l1, + 'secondary-l2': $secondary-l2, + 'secondary-l3': $secondary-l3, + 'success-d2': $success-d2, + 'success-d1': $success-d1, + 'success': $success, + 'success-l1': $success-l1, + 'success-l2': $success-l2, + 'info-d2': $info-d2, + 'info-d1': $info-d1, + 'info': $info, + 'info-l1': $info-l1, + 'info-l2': $info-l2, + 'warning-d2': $warning-d2, + 'warning-d1': $warning-d1, + 'warning': $warning, + 'warning-l1': $warning-l1, + 'warning-l2': $warning-l2, + 'danger-d2': $danger-d2, + 'danger-d1': $danger-d1, + 'danger': $danger, + 'danger-l1': $danger-l1, + 'danger-l2': $danger-l2, + 'light-d2': $light-d2, + 'light-d1': $light-d1, + 'light': $light, + 'light-l1': $light-l1, + 'light-l2': $light-l2, + 'dark-d2': $dark-d2, + 'dark-d1': $dark-d1, + 'dark': $dark, + 'dark-l1': $dark-l1, + 'dark-l2': $dark-l2, ); @each $swatch, $value in $swatches { @@ -497,4 +501,4 @@ content: '#{$value}'; } } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/site/_sidebar-site.scss b/clayui.com/src/styles/site/_sidebar-site.scss index 7798c6c730..8122fe2ac7 100644 --- a/clayui.com/src/styles/site/_sidebar-site.scss +++ b/clayui.com/src/styles/site/_sidebar-site.scss @@ -18,7 +18,8 @@ } @media (min-width: $grid-float-breakpoint) { - padding: $base-size * 1.33 $base-size $base-size * 2.4 $base-size * 0.33; + padding: $base-size * 1.33 $base-size $base-size * 2.4 $base-size * + 0.33; } @media (max-width: $grid-float-breakpoint - 1) { @@ -93,4 +94,4 @@ transform: rotate(90deg); } } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/site/_site.scss b/clayui.com/src/styles/site/_site.scss index 511f9c3df7..4e126fff5f 100644 --- a/clayui.com/src/styles/site/_site.scss +++ b/clayui.com/src/styles/site/_site.scss @@ -37,4 +37,4 @@ body { @media (min-width: $grid-float-breakpoint) { flex-wrap: nowrap; } -} \ No newline at end of file +} diff --git a/clayui.com/src/styles/site/_variables.scss b/clayui.com/src/styles/site/_variables.scss index 38139067a2..e347374c51 100644 --- a/clayui.com/src/styles/site/_variables.scss +++ b/clayui.com/src/styles/site/_variables.scss @@ -1,4 +1,5 @@ -$font-family-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; +$font-family-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; // Site vars @@ -6,25 +7,25 @@ $base-size: 24px; // 1.5rem aprox // Color -$bg-color: #FFF; +$bg-color: #fff; $docs-header-bg-color: #272833; $footer-bg-color: #272833; $brand-bg-dark: #272833; $brand-bg-dark-lighter: #393a4a; -$brand-dark: #B3472D; -$brand-dark-lighter: #F1F2F5; +$brand-dark: #b3472d; +$brand-dark-lighter: #f1f2f5; $brand-lighter: #ffd6cc; -$brand-light: #F5F5F8; +$brand-light: #f5f5f8; -$brand-light-secondary-text: #A7A9BC; +$brand-light-secondary-text: #a7a9bc; $brand-light-text: $brand-light; -$brand-primary: #B16D50 !default; -$brand-secondary: #30313F; +$brand-primary: #b16d50 !default; +$brand-secondary: #30313f; -$brand-lighten: #FBF8F5; +$brand-lighten: #fbf8f5; $text-color: #000 !default; diff --git a/packages/clay-charts/src/scss/components/_arc.scss b/packages/clay-charts/src/scss/components/_arc.scss index a0c2fda252..dc9877023f 100644 --- a/packages/clay-charts/src/scss/components/_arc.scss +++ b/packages/clay-charts/src/scss/components/_arc.scss @@ -1,29 +1,28 @@ .bb-chart-arcs-title { - dominant-baseline: middle; - font-size: 1.3em; + dominant-baseline: middle; + font-size: 1.3em; } - .bb-chart-arcs { - .bb-chart-arcs-background { - fill: #e0e0e0; - stroke: none; - } + .bb-chart-arcs-background { + fill: #e0e0e0; + stroke: none; + } - .bb-chart-arcs-gauge-unit { - fill: #000; - font-size: 16px; - } + .bb-chart-arcs-gauge-unit { + fill: #000; + font-size: 16px; + } - .bb-chart-arcs-gauge-max { - fill: #777; - } + .bb-chart-arcs-gauge-max { + fill: #777; + } - .bb-chart-arcs-gauge-min { - fill: #777; - } + .bb-chart-arcs-gauge-min { + fill: #777; + } } .bb-chart-arc .bb-gauge-value { - fill: #000; + fill: #000; } diff --git a/packages/clay-charts/src/scss/components/_area.scss b/packages/clay-charts/src/scss/components/_area.scss index d00f373221..9c19a0480c 100644 --- a/packages/clay-charts/src/scss/components/_area.scss +++ b/packages/clay-charts/src/scss/components/_area.scss @@ -1,4 +1,4 @@ .bb-area { - stroke-width: 0; - opacity: 0.2; + stroke-width: 0; + opacity: 0.2; } diff --git a/packages/clay-charts/src/scss/components/_axis.scss b/packages/clay-charts/src/scss/components/_axis.scss index f0bdb98d67..1c3c83d992 100644 --- a/packages/clay-charts/src/scss/components/_axis.scss +++ b/packages/clay-charts/src/scss/components/_axis.scss @@ -1,8 +1,14 @@ -.bb-axis-x .tick {} -.bb-axis-x-label {} +.bb-axis-x .tick { +} +.bb-axis-x-label { +} -.bb-axis-y .tick {} -.bb-axis-y-label {} +.bb-axis-y .tick { +} +.bb-axis-y-label { +} -.bb-axis-y2 .tick {} -.bb-axis-y2-label {} +.bb-axis-y2 .tick { +} +.bb-axis-y2-label { +} diff --git a/packages/clay-charts/src/scss/components/_bar.scss b/packages/clay-charts/src/scss/components/_bar.scss index 197972acc7..cf90fe9b26 100644 --- a/packages/clay-charts/src/scss/components/_bar.scss +++ b/packages/clay-charts/src/scss/components/_bar.scss @@ -1,7 +1,7 @@ .bb-bar { - stroke-width: 0; + stroke-width: 0; - &._expanded_ { - fill-opacity: 0.75; - } + &._expanded_ { + fill-opacity: 0.75; + } } diff --git a/packages/clay-charts/src/scss/components/_brush.scss b/packages/clay-charts/src/scss/components/_brush.scss index 23fd16bfc8..c2591097ba 100644 --- a/packages/clay-charts/src/scss/components/_brush.scss +++ b/packages/clay-charts/src/scss/components/_brush.scss @@ -1,3 +1,3 @@ .bb-brush .extent { - fill-opacity: .1; + fill-opacity: 0.1; } diff --git a/packages/clay-charts/src/scss/components/_chart.scss b/packages/clay-charts/src/scss/components/_chart.scss index b78e2e360d..38f0ab4304 100644 --- a/packages/clay-charts/src/scss/components/_chart.scss +++ b/packages/clay-charts/src/scss/components/_chart.scss @@ -1,24 +1,26 @@ .bb { - svg { - font: 10px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - -webkit-tap-highlight-color: rgba(0,0,0,0); - } + svg { + font: 10px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + } - path, line { - fill: none; - stroke: #e5e5eb; - } + path, + line { + fill: none; + stroke: #e5e5eb; + } - text { - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - - tspan { - fill: #6b6c7e; - } - } + text { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + tspan { + fill: #6b6c7e; + } + } } .bb-legend-item-tile, @@ -26,16 +28,16 @@ .bb-ygrid, .bb-event-rect, .bb-bars path { - shape-rendering: crispEdges; + shape-rendering: crispEdges; } .bb-chart-arc { - path { - stroke: #fff; - } + path { + stroke: #fff; + } - text { - fill: #fff; - font-size: 13px; - } + text { + fill: #fff; + font-size: 13px; + } } diff --git a/packages/clay-charts/src/scss/components/_focus.scss b/packages/clay-charts/src/scss/components/_focus.scss index 7b0c623cf3..8d81348b10 100644 --- a/packages/clay-charts/src/scss/components/_focus.scss +++ b/packages/clay-charts/src/scss/components/_focus.scss @@ -1,15 +1,16 @@ .bb-target { - &.bb-focused { - opacity: 1; - } + &.bb-focused { + opacity: 1; + } - &.bb-focused { - path.bb-line, path.bb-step { - stroke-width: 2px; - } - } + &.bb-focused { + path.bb-line, + path.bb-step { + stroke-width: 2px; + } + } - &.bb-defocused { - opacity: 0.3 !important; - } + &.bb-defocused { + opacity: 0.3 !important; + } } diff --git a/packages/clay-charts/src/scss/components/_grid.scss b/packages/clay-charts/src/scss/components/_grid.scss index ba5b990b68..b0d5c96022 100644 --- a/packages/clay-charts/src/scss/components/_grid.scss +++ b/packages/clay-charts/src/scss/components/_grid.scss @@ -1,16 +1,17 @@ .bb-grid { - line { - stroke: rgb(229, 229, 235); - stroke-width: 0.5px; - } + line { + stroke: rgb(229, 229, 235); + stroke-width: 0.5px; + } - text { - fill: #aaa; - } + text { + fill: #aaa; + } } -.bb-xgrid, .bb-ygrid { - +.bb-xgrid, +.bb-ygrid { } -.bb-xgrid-focus {} +.bb-xgrid-focus { +} diff --git a/packages/clay-charts/src/scss/components/_legend.scss b/packages/clay-charts/src/scss/components/_legend.scss index d0ca2d2125..70a83ce039 100644 --- a/packages/clay-charts/src/scss/components/_legend.scss +++ b/packages/clay-charts/src/scss/components/_legend.scss @@ -1,14 +1,14 @@ .bb-legend-item { - font-size: 12px; + font-size: 12px; } .bb-legend-item-hidden { - opacity: 0.15; + opacity: 0.15; } .bb-legend-background { - opacity: 0.75; - fill: white; - stroke: lightgray; - stroke-width: 1; + opacity: 0.75; + fill: white; + stroke: lightgray; + stroke-width: 1; } diff --git a/packages/clay-charts/src/scss/components/_line.scss b/packages/clay-charts/src/scss/components/_line.scss index 602c4e91cc..d671b58467 100644 --- a/packages/clay-charts/src/scss/components/_line.scss +++ b/packages/clay-charts/src/scss/components/_line.scss @@ -1,39 +1,39 @@ .bb-line { - stroke-width: 2px; + stroke-width: 2px; } .bb-line-dashed-2-2 { - stroke-dasharray: 2 2; + stroke-dasharray: 2 2; } .bb-line-dashed-2-3 { - stroke-dasharray: 2 3; + stroke-dasharray: 2 3; } .bb-line-dashed-2-4 { - stroke-dasharray: 2 4; + stroke-dasharray: 2 4; } .bb-line-dashed-3-2 { - stroke-dasharray: 3 2; + stroke-dasharray: 3 2; } .bb-line-dashed-3-3 { - stroke-dasharray: 3 3; + stroke-dasharray: 3 3; } .bb-line-dashed-3-4 { - stroke-dasharray: 3 4; + stroke-dasharray: 3 4; } .bb-line-dashed-4-2 { - stroke-dasharray: 4 2; + stroke-dasharray: 4 2; } .bb-line-dashed-4-3 { - stroke-dasharray: 4 3; + stroke-dasharray: 4 3; } .bb-line-dashed-4-4 { - stroke-dasharray: 4 4; + stroke-dasharray: 4 4; } diff --git a/packages/clay-charts/src/scss/components/_loading.scss b/packages/clay-charts/src/scss/components/_loading.scss index 32d0d1cd5f..a61199beb6 100644 --- a/packages/clay-charts/src/scss/components/_loading.scss +++ b/packages/clay-charts/src/scss/components/_loading.scss @@ -1,8 +1,8 @@ .loading-icon { min-height: 320px; min-height: 320px; - display: flex; - flex-direction: row; - align-items: center; - vertical-align: middle; + display: flex; + flex-direction: row; + align-items: center; + vertical-align: middle; } diff --git a/packages/clay-charts/src/scss/components/_point.scss b/packages/clay-charts/src/scss/components/_point.scss index 66f99a4585..b25927d639 100644 --- a/packages/clay-charts/src/scss/components/_point.scss +++ b/packages/clay-charts/src/scss/components/_point.scss @@ -1,9 +1,9 @@ .bb-circle._expanded_ { - stroke-width: 1px; - stroke: white; + stroke-width: 1px; + stroke: white; } .bb-selected-circle { - fill: white; - stroke-width: 2px; + fill: white; + stroke-width: 2px; } diff --git a/packages/clay-charts/src/scss/components/_radar.scss b/packages/clay-charts/src/scss/components/_radar.scss index ec7015f41d..338117d759 100644 --- a/packages/clay-charts/src/scss/components/_radar.scss +++ b/packages/clay-charts/src/scss/components/_radar.scss @@ -1,33 +1,32 @@ .bb-chart-radars { - .bb-levels { - polygon { - fill: none; - stroke: #848282; - stroke-width: .5px; - } + .bb-levels { + polygon { + fill: none; + stroke: #848282; + stroke-width: 0.5px; + } - text { - fill: #848282; - } - } + text { + fill: #848282; + } + } - .bb-axis { - line { - stroke: #848282; - stroke-width: .5px; - } + .bb-axis { + line { + stroke: #848282; + stroke-width: 0.5px; + } - text { - font-size: 1.15em; - cursor: default; - } - } + text { + font-size: 1.15em; + cursor: default; + } + } - .bb-shapes { - polygon { - fill-opacity: .2; - stroke-width: 1px; - } - } + .bb-shapes { + polygon { + fill-opacity: 0.2; + stroke-width: 1px; + } + } } - diff --git a/packages/clay-charts/src/scss/components/_region.scss b/packages/clay-charts/src/scss/components/_region.scss index e3b46b73a2..e63ef51471 100644 --- a/packages/clay-charts/src/scss/components/_region.scss +++ b/packages/clay-charts/src/scss/components/_region.scss @@ -1,4 +1,4 @@ .bb-region { - fill: steelblue; - fill-opacity: .1; + fill: steelblue; + fill-opacity: 0.1; } diff --git a/packages/clay-charts/src/scss/components/_select_drag.scss b/packages/clay-charts/src/scss/components/_select_drag.scss index f7a163d1d0..27fefa3215 100644 --- a/packages/clay-charts/src/scss/components/_select_drag.scss +++ b/packages/clay-charts/src/scss/components/_select_drag.scss @@ -1 +1,2 @@ -.bb-dragarea {} +.bb-dragarea { +} diff --git a/packages/clay-charts/src/scss/components/_text.scss b/packages/clay-charts/src/scss/components/_text.scss index 0ba5cd04d4..7e0642ec7f 100644 --- a/packages/clay-charts/src/scss/components/_text.scss +++ b/packages/clay-charts/src/scss/components/_text.scss @@ -1,6 +1,6 @@ .bb-text { - &.bb-empty { - fill: #808080; - font-size: 2em; - } -} \ No newline at end of file + &.bb-empty { + fill: #808080; + font-size: 2em; + } +} diff --git a/packages/clay-charts/src/scss/components/_title.scss b/packages/clay-charts/src/scss/components/_title.scss index 0fc6a40c22..7bebd60a87 100644 --- a/packages/clay-charts/src/scss/components/_title.scss +++ b/packages/clay-charts/src/scss/components/_title.scss @@ -1,3 +1,3 @@ .bb-title { - font: 14px sans-serif; + font: 14px sans-serif; } diff --git a/packages/clay-charts/src/scss/components/_tooltip.scss b/packages/clay-charts/src/scss/components/_tooltip.scss index 9842b8da19..cfa71876df 100644 --- a/packages/clay-charts/src/scss/components/_tooltip.scss +++ b/packages/clay-charts/src/scss/components/_tooltip.scss @@ -1,63 +1,65 @@ .bb-tooltip-container { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: block; - max-width: 276px; - padding: 12px; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-style: normal; - font-weight: normal; - line-height: 1.5; - text-align: start; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - background-color: #fff; - background-clip: padding-box; - border-radius: 0.3rem; - box-shadow: 0 1px 15px -2px rgba(0, 0, 0, 0.2); + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: block; + max-width: 276px; + padding: 12px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; + font-style: normal; + font-weight: normal; + line-height: 1.5; + text-align: start; + word-break: normal; + word-spacing: normal; + white-space: normal; + line-break: auto; + font-size: 0.875rem; + word-wrap: break-word; + background-color: #fff; + background-clip: padding-box; + border-radius: 0.3rem; + box-shadow: 0 1px 15px -2px rgba(0, 0, 0, 0.2); } .bb-tooltip { - border-spacing: 0; - empty-cells: show; + border-spacing: 0; + empty-cells: show; - tr { - } + tr { + } - th { - border-bottom: 1px solid rgba(0, 0, 0, 0.2); - font-size:14px; - padding:2px 5px; - text-align:left; - color: #000; - } + th { + border-bottom: 1px solid rgba(0, 0, 0, 0.2); + font-size: 14px; + padding: 2px 5px; + text-align: left; + color: #000; + } - td { - font-size:13px; - padding: 3px 6px; - background-color:#fff; + td { + font-size: 13px; + padding: 3px 6px; + background-color: #fff; - > span { - display: inline-block; - width: 10px; - height: 10px; - margin-right: 6px; - } + > span { + display: inline-block; + width: 10px; + height: 10px; + margin-right: 6px; + } - &.value { - text-align: right; - } + &.value { + text-align: right; + } - svg { - width: 10px; - height: 10px; - margin-right: 2px; - } - } + svg { + width: 10px; + height: 10px; + margin-right: 2px; + } + } } diff --git a/packages/clay-charts/src/scss/main.scss b/packages/clay-charts/src/scss/main.scss index 29b3ba969b..3559441b1b 100644 --- a/packages/clay-charts/src/scss/main.scss +++ b/packages/clay-charts/src/scss/main.scss @@ -1,18 +1,18 @@ -@import "components/arc"; -@import "components/area"; -@import "components/axis"; -@import "components/bar"; -@import "components/brush"; -@import "components/chart"; -@import "components/focus"; -@import "components/grid"; -@import "components/legend"; -@import "components/line"; -@import "components/loading"; -@import "components/point"; -@import "components/radar"; -@import "components/region"; -@import "components/select_drag"; -@import "components/text"; -@import "components/title"; -@import "components/tooltip"; \ No newline at end of file +@import 'components/arc'; +@import 'components/area'; +@import 'components/axis'; +@import 'components/bar'; +@import 'components/brush'; +@import 'components/chart'; +@import 'components/focus'; +@import 'components/grid'; +@import 'components/legend'; +@import 'components/line'; +@import 'components/loading'; +@import 'components/point'; +@import 'components/radar'; +@import 'components/region'; +@import 'components/select_drag'; +@import 'components/text'; +@import 'components/title'; +@import 'components/tooltip'; diff --git a/packages/clay-css/src/scss/_components.scss b/packages/clay-css/src/scss/_components.scss index 78a592b674..aa7a80a892 100644 --- a/packages/clay-css/src/scss/_components.scss +++ b/packages/clay-css/src/scss/_components.scss @@ -2,66 +2,66 @@ @import url($font-import-url); } -@import "components/_grid"; +@import 'components/_grid'; -@import "components/_alerts"; -@import "components/_aspect-ratio"; -@import "components/_badges"; -@import "components/_breadcrumbs"; -@import "components/_button-groups"; -@import "components/_buttons"; -@import "components/_empty-state"; -@import "components/_labels"; -@import "components/_stickers"; +@import 'components/_alerts'; +@import 'components/_aspect-ratio'; +@import 'components/_badges'; +@import 'components/_breadcrumbs'; +@import 'components/_button-groups'; +@import 'components/_buttons'; +@import 'components/_empty-state'; +@import 'components/_labels'; +@import 'components/_stickers'; -@import "components/_cards"; -@import "components/_dropdowns"; +@import 'components/_cards'; +@import 'components/_dropdowns'; -@import "components/_drilldown"; -@import "components/_forms"; -@import "components/_links"; +@import 'components/_drilldown'; +@import 'components/_forms'; +@import 'components/_links'; -@import "components/_range"; -@import "components/_reorder"; +@import 'components/_range'; +@import 'components/_reorder'; -@import "components/_clay-color"; -@import "components/_custom-forms"; -@import "components/_time"; +@import 'components/_clay-color'; +@import 'components/_custom-forms'; +@import 'components/_time'; -@import "components/_date-picker"; -@import "components/_dual-listbox"; -@import "components/_form-validation"; -@import "components/_icons"; -@import "components/_input-groups"; -@import "components/_list-group"; -@import "components/_modals"; -@import "components/_multi-step-nav"; +@import 'components/_date-picker'; +@import 'components/_dual-listbox'; +@import 'components/_form-validation'; +@import 'components/_icons'; +@import 'components/_input-groups'; +@import 'components/_list-group'; +@import 'components/_modals'; +@import 'components/_multi-step-nav'; -@import "components/_navs"; +@import 'components/_navs'; -@import "components/_menubar"; -@import "components/_navbar"; +@import 'components/_menubar'; +@import 'components/_navbar'; -@import "components/_application-bar"; -@import "components/_management-bar"; -@import "components/_navigation-bar"; +@import 'components/_application-bar'; +@import 'components/_management-bar'; +@import 'components/_navigation-bar'; -@import "components/_pagination"; -@import "components/_panels"; -@import "components/_popovers"; -@import "components/_progress-bars"; -@import "components/_quick-action"; -@import "components/_sheets"; -@import "components/_side-navigation"; -@import "components/_sidebar"; -@import "components/_slideout"; -@import "components/_tables"; -@import "components/_tbar"; -@import "components/_timelines"; -@import "components/_toggle-switch"; -@import "components/_tooltip"; -@import "components/_type"; +@import 'components/_pagination'; +@import 'components/_panels'; +@import 'components/_popovers'; +@import 'components/_progress-bars'; +@import 'components/_quick-action'; +@import 'components/_sheets'; +@import 'components/_side-navigation'; +@import 'components/_sidebar'; +@import 'components/_slideout'; +@import 'components/_tables'; +@import 'components/_tbar'; +@import 'components/_timelines'; +@import 'components/_toggle-switch'; +@import 'components/_tooltip'; +@import 'components/_type'; -@import "components/_utilities"; +@import 'components/_utilities'; -@import "components/_loaders"; \ No newline at end of file +@import 'components/_loaders'; diff --git a/packages/clay-css/src/scss/_mixins.scss b/packages/clay-css/src/scss/_mixins.scss index 327d4ce63a..ae10d7a46b 100644 --- a/packages/clay-css/src/scss/_mixins.scss +++ b/packages/clay-css/src/scss/_mixins.scss @@ -1,39 +1,39 @@ -@import "mixins/_globals"; +@import 'mixins/_globals'; -@import "mixins/_vendor-prefixes"; +@import 'mixins/_vendor-prefixes'; -@import "mixins/_aspect-ratio"; -@import "mixins/_background"; -@import "mixins/_badges"; -@import "mixins/_box-shadow"; -@import "mixins/_buttons"; -@import "mixins/_cards"; -@import "mixins/_close"; -@import "mixins/_dropdown-menu"; -@import "mixins/_forms"; -@import "mixins/_grid"; -@import "mixins/_highlight"; -@import "mixins/_input-groups"; -@import "mixins/_labels"; -@import "mixins/_line-clamp"; -@import "mixins/_links"; -@import "mixins/_list-group"; -@import "mixins/_loaders"; -@import "mixins/_menubar"; -@import "mixins/_modals"; -@import "mixins/_monospace"; -@import "mixins/_nav"; -@import "mixins/_nav-nested"; -@import "mixins/_navbar"; -@import "mixins/_panels"; -@import "mixins/_position"; -@import "mixins/_scale-component"; -@import "mixins/_sheet"; -@import "mixins/_sidebar"; -@import "mixins/_slideout"; -@import "mixins/_stickers"; -@import "mixins/_tbar"; -@import "mixins/_timelines"; -@import "mixins/_toggle-switch"; -@import "mixins/_type"; -@import "mixins/_utilities"; \ No newline at end of file +@import 'mixins/_aspect-ratio'; +@import 'mixins/_background'; +@import 'mixins/_badges'; +@import 'mixins/_box-shadow'; +@import 'mixins/_buttons'; +@import 'mixins/_cards'; +@import 'mixins/_close'; +@import 'mixins/_dropdown-menu'; +@import 'mixins/_forms'; +@import 'mixins/_grid'; +@import 'mixins/_highlight'; +@import 'mixins/_input-groups'; +@import 'mixins/_labels'; +@import 'mixins/_line-clamp'; +@import 'mixins/_links'; +@import 'mixins/_list-group'; +@import 'mixins/_loaders'; +@import 'mixins/_menubar'; +@import 'mixins/_modals'; +@import 'mixins/_monospace'; +@import 'mixins/_nav'; +@import 'mixins/_nav-nested'; +@import 'mixins/_navbar'; +@import 'mixins/_panels'; +@import 'mixins/_position'; +@import 'mixins/_scale-component'; +@import 'mixins/_sheet'; +@import 'mixins/_sidebar'; +@import 'mixins/_slideout'; +@import 'mixins/_stickers'; +@import 'mixins/_tbar'; +@import 'mixins/_timelines'; +@import 'mixins/_toggle-switch'; +@import 'mixins/_type'; +@import 'mixins/_utilities'; diff --git a/packages/clay-css/src/scss/_variables.scss b/packages/clay-css/src/scss/_variables.scss index e8368715b7..af028418be 100644 --- a/packages/clay-css/src/scss/_variables.scss +++ b/packages/clay-css/src/scss/_variables.scss @@ -1,58 +1,58 @@ -@import "variables/_globals"; -@import "variables/_globals-z-index"; - -@import "variables/_alerts"; -@import "variables/_badges"; -@import "variables/_breadcrumbs"; -@import "variables/_buttons"; -@import "variables/_empty-state"; -@import "variables/_labels"; -@import "variables/_stickers"; - -@import "variables/_cards"; -@import "variables/_dropdowns"; - -@import "variables/_drilldown"; -@import "variables/_forms"; -@import "variables/_links"; - -@import "variables/_range"; -@import "variables/_reorder"; - -@import "variables/_clay-color"; -@import "variables/_custom-forms"; -@import "variables/_time"; - -@import "variables/_date-picker"; -@import "variables/_dual-listbox"; -@import "variables/_list-group"; -@import "variables/_loaders"; -@import "variables/_modals"; -@import "variables/_multi-step-nav"; -@import "variables/_navs"; - -@import "variables/_icons"; - -@import "variables/_menubar"; -@import "variables/_navbar"; - -@import "variables/_application-bar"; -@import "variables/_management-bar"; -@import "variables/_navigation-bar"; -@import "variables/_pagination"; -@import "variables/_panels"; -@import "variables/_popovers"; -@import "variables/_progress-bars"; -@import "variables/_quick-action"; -@import "variables/_sheets"; -@import "variables/_side-navigation"; -@import "variables/_sidebar"; -@import "variables/_slideout"; -@import "variables/_tables"; -@import "variables/_tbar"; -@import "variables/_timelines"; -@import "variables/_toggle-switch"; -@import "variables/_tooltip"; -@import "variables/_type"; - -@import "variables/_utilities"; \ No newline at end of file +@import 'variables/_globals'; +@import 'variables/_globals-z-index'; + +@import 'variables/_alerts'; +@import 'variables/_badges'; +@import 'variables/_breadcrumbs'; +@import 'variables/_buttons'; +@import 'variables/_empty-state'; +@import 'variables/_labels'; +@import 'variables/_stickers'; + +@import 'variables/_cards'; +@import 'variables/_dropdowns'; + +@import 'variables/_drilldown'; +@import 'variables/_forms'; +@import 'variables/_links'; + +@import 'variables/_range'; +@import 'variables/_reorder'; + +@import 'variables/_clay-color'; +@import 'variables/_custom-forms'; +@import 'variables/_time'; + +@import 'variables/_date-picker'; +@import 'variables/_dual-listbox'; +@import 'variables/_list-group'; +@import 'variables/_loaders'; +@import 'variables/_modals'; +@import 'variables/_multi-step-nav'; +@import 'variables/_navs'; + +@import 'variables/_icons'; + +@import 'variables/_menubar'; +@import 'variables/_navbar'; + +@import 'variables/_application-bar'; +@import 'variables/_management-bar'; +@import 'variables/_navigation-bar'; +@import 'variables/_pagination'; +@import 'variables/_panels'; +@import 'variables/_popovers'; +@import 'variables/_progress-bars'; +@import 'variables/_quick-action'; +@import 'variables/_sheets'; +@import 'variables/_side-navigation'; +@import 'variables/_sidebar'; +@import 'variables/_slideout'; +@import 'variables/_tables'; +@import 'variables/_tbar'; +@import 'variables/_timelines'; +@import 'variables/_toggle-switch'; +@import 'variables/_tooltip'; +@import 'variables/_type'; + +@import 'variables/_utilities'; diff --git a/packages/clay-css/src/scss/atlas-variables.scss b/packages/clay-css/src/scss/atlas-variables.scss index 6b87771791..98add04642 100644 --- a/packages/clay-css/src/scss/atlas-variables.scss +++ b/packages/clay-css/src/scss/atlas-variables.scss @@ -1,16 +1,16 @@ // INSERT CUSTOM BASE VARS -@import "functions/_global-functions"; +@import 'functions/_global-functions'; -@import "atlas/_variables"; +@import 'atlas/_variables'; -@import "variables/_bs4-variable-overwrites"; +@import 'variables/_bs4-variable-overwrites'; -@import "bootstrap/_functions"; -@import "bootstrap/_variables"; -@import "bootstrap/_mixins"; +@import 'bootstrap/_functions'; +@import 'bootstrap/_variables'; +@import 'bootstrap/_mixins'; -@import "_variables"; -@import "_mixins"; +@import '_variables'; +@import '_mixins'; -// INSERT CUSTOM VARS \ No newline at end of file +// INSERT CUSTOM VARS diff --git a/packages/clay-css/src/scss/atlas.scss b/packages/clay-css/src/scss/atlas.scss index 5c250a6271..c50e19daef 100644 --- a/packages/clay-css/src/scss/atlas.scss +++ b/packages/clay-css/src/scss/atlas.scss @@ -1,17 +1,17 @@ // INSERT CUSTOM VARS -@import "functions/_global-functions"; +@import 'functions/_global-functions'; -@import "atlas/_variables"; +@import 'atlas/_variables'; -@import "variables/_bs4-variable-overwrites"; +@import 'variables/_bs4-variable-overwrites'; -@import "bootstrap/bootstrap"; +@import 'bootstrap/bootstrap'; -@import "_variables"; +@import '_variables'; -@import "_mixins"; +@import '_mixins'; -@import "_components"; +@import '_components'; -// INSERT CUSTOM EXTENSIONS \ No newline at end of file +// INSERT CUSTOM EXTENSIONS diff --git a/packages/clay-css/src/scss/atlas/_variables.scss b/packages/clay-css/src/scss/atlas/_variables.scss index af45329b73..850c9a5e2b 100644 --- a/packages/clay-css/src/scss/atlas/_variables.scss +++ b/packages/clay-css/src/scss/atlas/_variables.scss @@ -1,52 +1,52 @@ -@import "variables/_globals"; - -@import "variables/_alerts"; -@import "variables/_badges"; -@import "variables/_breadcrumbs"; -@import "variables/_buttons"; -@import "variables/_labels"; -@import "variables/_stickers"; - -@import "variables/_cards"; -@import "variables/_dropdowns"; - -@import "variables/_drilldown"; -@import "variables/_forms"; -@import "variables/_links"; - -@import "variables/_range"; -@import "variables/_reorder"; - -@import "variables/_clay-color"; -@import "variables/_custom-forms"; -@import "variables/_time"; - -@import "variables/_date-picker"; -@import "variables/_icons"; -@import "variables/_list-group"; -@import "variables/_loaders"; -@import "variables/_modals"; -@import "variables/_multi-step-nav"; -@import "variables/_navs"; - -@import "variables/_menubar"; -@import "variables/_navbar"; - -@import "variables/_application-bar"; -@import "variables/_management-bar"; -@import "variables/_navigation-bar"; -@import "variables/_pagination"; -@import "variables/_panels"; -@import "variables/_popovers"; -@import "variables/_progress-bars"; -@import "variables/_quick-action"; -@import "variables/_sheets"; -@import "variables/_sidebar"; -@import "variables/_tables"; -@import "variables/_tbar"; -@import "variables/_timelines"; -@import "variables/_toggle-switch"; -@import "variables/_tooltip"; -@import "variables/_type"; - -@import "variables/_utilities"; \ No newline at end of file +@import 'variables/_globals'; + +@import 'variables/_alerts'; +@import 'variables/_badges'; +@import 'variables/_breadcrumbs'; +@import 'variables/_buttons'; +@import 'variables/_labels'; +@import 'variables/_stickers'; + +@import 'variables/_cards'; +@import 'variables/_dropdowns'; + +@import 'variables/_drilldown'; +@import 'variables/_forms'; +@import 'variables/_links'; + +@import 'variables/_range'; +@import 'variables/_reorder'; + +@import 'variables/_clay-color'; +@import 'variables/_custom-forms'; +@import 'variables/_time'; + +@import 'variables/_date-picker'; +@import 'variables/_icons'; +@import 'variables/_list-group'; +@import 'variables/_loaders'; +@import 'variables/_modals'; +@import 'variables/_multi-step-nav'; +@import 'variables/_navs'; + +@import 'variables/_menubar'; +@import 'variables/_navbar'; + +@import 'variables/_application-bar'; +@import 'variables/_management-bar'; +@import 'variables/_navigation-bar'; +@import 'variables/_pagination'; +@import 'variables/_panels'; +@import 'variables/_popovers'; +@import 'variables/_progress-bars'; +@import 'variables/_quick-action'; +@import 'variables/_sheets'; +@import 'variables/_sidebar'; +@import 'variables/_tables'; +@import 'variables/_tbar'; +@import 'variables/_timelines'; +@import 'variables/_toggle-switch'; +@import 'variables/_tooltip'; +@import 'variables/_type'; + +@import 'variables/_utilities'; diff --git a/packages/clay-css/src/scss/atlas/variables/_alerts.scss b/packages/clay-css/src/scss/atlas/variables/_alerts.scss index 508a6a709f..0da9fdd932 100644 --- a/packages/clay-css/src/scss/atlas/variables/_alerts.scss +++ b/packages/clay-css/src/scss/atlas/variables/_alerts.scss @@ -24,17 +24,23 @@ $alert-link-font-weight: $font-weight-semi-bold !default; $alert-indicator-font-size: inherit !default; $alert-title: () !default; -$alert-title: map-deep-merge(( - font-size: 0.875rem, - margin-bottom: 0.25rem, - margin-top: 0 -), $alert-title); +$alert-title: map-deep-merge( + ( + font-size: 0.875rem, + margin-bottom: 0.25rem, + margin-top: 0, + ), + $alert-title +); $alert-subtitle: () !default; -$alert-subtitle: map-deep-merge(( - font-size: 0.75rem, - font-weight: $font-weight-normal -), $alert-subtitle); +$alert-subtitle: map-deep-merge( + ( + font-size: 0.75rem, + font-weight: $font-weight-normal, + ), + $alert-subtitle +); // Alert Notification @@ -43,12 +49,15 @@ $alert-notifications-box-shadow: 0 0.5rem 2rem -0.25rem rgba(0, 0, 0, 0.3) !defa // Alert Autofit Row $alert-autofit-row: () !default; -$alert-autofit-row: map-deep-merge(( - margin-left: -0.25rem, - margin-right: -0.25rem, - autofit-col-padding-left: 0.25rem, - autofit-col-padding-right: 0.25rem, -), $alert-autofit-row); +$alert-autofit-row: map-deep-merge( + ( + margin-left: -0.25rem, + margin-right: -0.25rem, + autofit-col-padding-left: 0.25rem, + autofit-col-padding-right: 0.25rem, + ), + $alert-autofit-row +); // Alert Variants @@ -60,10 +69,13 @@ $alert-primary-close-hover-color: $alert-primary-color !default; $alert-primary-lead-color: $alert-primary-color !default; $alert-primary-link-color: $link-color !default; $alert-primary-btn: () !default; -$alert-primary-btn: map-deep-merge(( - border-color: $primary-l1, - hover-border-color: $primary, -), $alert-primary-btn); +$alert-primary-btn: map-deep-merge( + ( + border-color: $primary-l1, + hover-border-color: $primary, + ), + $alert-primary-btn +); $alert-secondary-color: $secondary !default; $alert-secondary-bg: $secondary-l3 !default; @@ -73,10 +85,13 @@ $alert-secondary-close-hover-color: $alert-secondary-color !default; $alert-secondary-lead-color: $alert-secondary-color !default; $alert-secondary-link-color: $link-color !default; $alert-secondary-btn: () !default; -$alert-secondary-btn: map-deep-merge(( - border-color: $secondary-l1, - hover-border-color: $secondary, -), $alert-secondary-btn); +$alert-secondary-btn: map-deep-merge( + ( + border-color: $secondary-l1, + hover-border-color: $secondary, + ), + $alert-secondary-btn +); $alert-success-color: $success !default; $alert-success-bg: $success-l2 !default; @@ -86,10 +101,13 @@ $alert-success-close-hover-color: $alert-success-color !default; $alert-success-lead-color: $alert-success-color !default; $alert-success-link-color: $link-color !default; $alert-success-btn: () !default; -$alert-success-btn: map-deep-merge(( - border-color: $success-l1, - hover-border-color: $success, -), $alert-success-btn); +$alert-success-btn: map-deep-merge( + ( + border-color: $success-l1, + hover-border-color: $success, + ), + $alert-success-btn +); $alert-info-color: $info !default; $alert-info-bg: $info-l2 !default; @@ -99,10 +117,13 @@ $alert-info-close-hover-color: $alert-info-color !default; $alert-info-lead-color: $alert-info-color !default; $alert-info-link-color: $link-color !default; $alert-info-btn: () !default; -$alert-info-btn: map-deep-merge(( - border-color: $info-l1, - hover-border-color: $info, -), $alert-info-btn); +$alert-info-btn: map-deep-merge( + ( + border-color: $info-l1, + hover-border-color: $info, + ), + $alert-info-btn +); $alert-warning-color: $warning !default; $alert-warning-bg: $warning-l2 !default; @@ -112,10 +133,13 @@ $alert-warning-close-hover-color: $alert-warning-color !default; $alert-warning-lead-color: $alert-warning-color !default; $alert-warning-link-color: $link-color !default; $alert-warning-btn: () !default; -$alert-warning-btn: map-deep-merge(( - border-color: $warning-l1, - hover-border-color: $warning, -), $alert-warning-btn); +$alert-warning-btn: map-deep-merge( + ( + border-color: $warning-l1, + hover-border-color: $warning, + ), + $alert-warning-btn +); $alert-danger-color: $danger !default; $alert-danger-bg: $danger-l2 !default; @@ -125,10 +149,13 @@ $alert-danger-close-hover-color: $alert-danger-color !default; $alert-danger-lead-color: $alert-danger-color !default; $alert-danger-link-color: $link-color !default; $alert-danger-btn: () !default; -$alert-danger-btn: map-deep-merge(( - border-color: $danger-l1, - hover-border-color: $danger, -), $alert-danger-btn); +$alert-danger-btn: map-deep-merge( + ( + border-color: $danger-l1, + hover-border-color: $danger, + ), + $alert-danger-btn +); $alert-light-color: $dark !default; $alert-light-bg: $light-l2 !default; @@ -138,15 +165,18 @@ $alert-light-close-hover-color: $alert-light-color !default; $alert-light-lead-color: $alert-light-color !default; $alert-light-link-color: $link-color !default; $alert-light-btn: () !default; -$alert-light-btn: map-deep-merge(( - border-color: $dark-l1, - color: $dark, - hover-bg: $dark, - hover-border-color: $dark, - hover-color: $white, - active-bg: darken($dark, 5%), - active-border-color: darken($dark, 5%), -), $alert-light-btn); +$alert-light-btn: map-deep-merge( + ( + border-color: $dark-l1, + color: $dark, + hover-bg: $dark, + hover-border-color: $dark, + hover-color: $white, + active-bg: darken($dark, 5%), + active-border-color: darken($dark, 5%), + ), + $alert-light-btn +); $alert-dark-color: $light !default; $alert-dark-bg: $dark-l2 !default; @@ -156,7 +186,10 @@ $alert-dark-close-hover-color: $alert-dark-color !default; $alert-dark-lead-color: $alert-dark-color !default; $alert-dark-link-color: $alert-dark-color !default; $alert-dark-btn: () !default; -$alert-dark-btn: map-deep-merge(( - border-color: $dark-l1, - hover-border-color: $dark, -), $alert-dark-btn); \ No newline at end of file +$alert-dark-btn: map-deep-merge( + ( + border-color: $dark-l1, + hover-border-color: $dark, + ), + $alert-dark-btn +); diff --git a/packages/clay-css/src/scss/atlas/variables/_application-bar.scss b/packages/clay-css/src/scss/atlas/variables/_application-bar.scss index 85e1ba1e7d..22cd8a73df 100644 --- a/packages/clay-css/src/scss/atlas/variables/_application-bar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_application-bar.scss @@ -1,24 +1,33 @@ $application-bar-size: () !default; -$application-bar-size: map-deep-merge(( - title-font-size: 1.125rem, -), $application-bar-size); +$application-bar-size: map-deep-merge( + ( + title-font-size: 1.125rem, + ), + $application-bar-size +); $application-bar-base: () !default; -$application-bar-base: map-deep-merge(( - link-border-radius: $border-radius, - link-outline: 0, - link-transition: box-shadow 0.15s ease-in-out, - link-focus-box-shadow: $btn-focus-box-shadow, - link-disabled-box-shadow: none, -), $application-bar-base); +$application-bar-base: map-deep-merge( + ( + link-border-radius: $border-radius, + link-outline: 0, + link-transition: box-shadow 0.15s ease-in-out, + link-focus-box-shadow: $btn-focus-box-shadow, + link-disabled-box-shadow: none, + ), + $application-bar-base +); $application-bar-dark: () !default; -$application-bar-dark: map-deep-merge(( - bg: $dark-l1, - link-font-weight: $font-weight-semi-bold, - link-hover-bg: rgba(255, 255, 255, 0.03), - link-focus-bg: rgba(255, 255, 255, 0.03), - link-active-bg: rgba(255, 255, 255, 0.06), - link-disabled-bg: transparent, - link-disabled-opacity: 0.5, -), $application-bar-dark); \ No newline at end of file +$application-bar-dark: map-deep-merge( + ( + bg: $dark-l1, + link-font-weight: $font-weight-semi-bold, + link-hover-bg: rgba(255, 255, 255, 0.03), + link-focus-bg: rgba(255, 255, 255, 0.03), + link-active-bg: rgba(255, 255, 255, 0.06), + link-disabled-bg: transparent, + link-disabled-opacity: 0.5, + ), + $application-bar-dark +); diff --git a/packages/clay-css/src/scss/atlas/variables/_badges.scss b/packages/clay-css/src/scss/atlas/variables/_badges.scss index e46f4b0b11..afeedbe939 100644 --- a/packages/clay-css/src/scss/atlas/variables/_badges.scss +++ b/packages/clay-css/src/scss/atlas/variables/_badges.scss @@ -52,4 +52,4 @@ $badge-light-link-color: $badge-light-color !default; $badge-dark-color: $white !default; $badge-dark-bg: $dark !default; $badge-dark-hover-bg: $badge-dark-bg !default; -$badge-dark-hover-color: $badge-dark-color !default; \ No newline at end of file +$badge-dark-hover-color: $badge-dark-color !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_breadcrumbs.scss b/packages/clay-css/src/scss/atlas/variables/_breadcrumbs.scss index 74050de6c5..acc8759d33 100644 --- a/packages/clay-css/src/scss/atlas/variables/_breadcrumbs.scss +++ b/packages/clay-css/src/scss/atlas/variables/_breadcrumbs.scss @@ -6,14 +6,17 @@ $breadcrumb-link-color: $gray-600 !default; $breadcrumb-link-hover-color: $breadcrumb-link-color !default; $breadcrumb-link: () !default; -$breadcrumb-link: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $breadcrumb-link); +$breadcrumb-link: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $breadcrumb-link +); $breadcrumb-active-color: $gray-900 !default; $breadcrumb-divider-color: $breadcrumb-link-color !default; -$breadcrumb-divider-svg-icon-height: 0.6em !default; \ No newline at end of file +$breadcrumb-divider-svg-icon-height: 0.6em !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_buttons.scss b/packages/clay-css/src/scss/atlas/variables/_buttons.scss index 9edbb483df..19964ced32 100644 --- a/packages/clay-css/src/scss/atlas/variables/_buttons.scss +++ b/packages/clay-css/src/scss/atlas/variables/_buttons.scss @@ -3,7 +3,8 @@ $btn-box-shadow: 0 0 rgba(#000, 0) !default; $btn-font-weight: $font-weight-semi-bold !default; $btn-padding-x: 0.9375rem !default; // 15px $btn-padding-y: 0.4375rem !default; // 7px -$btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default; +$btn-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default; $btn-focus-box-shadow: $component-focus-box-shadow !default; @@ -47,247 +48,296 @@ $btn-group-item-margin-right: 1rem !default; // Button Variants $btn-primary: () !default; -$btn-primary: map-deep-merge(( - hover-bg: $primary-d1, - hover-border-color: transparent, - focus-bg: $primary-d1, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $primary, - active-bg: $primary-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, -), $btn-primary); +$btn-primary: map-deep-merge( + ( + hover-bg: $primary-d1, + hover-border-color: transparent, + focus-bg: $primary-d1, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $primary, + active-bg: $primary-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + ), + $btn-primary +); $btn-secondary: () !default; -$btn-secondary: map-deep-merge(( - bg: $white, - border-color: $secondary-l2, - color: $secondary, - hover-bg: $gray-100, - hover-border-color: $secondary-l2, - hover-color: $gray-900, - focus-bg: $gray-100, - focus-border-color: $secondary-l2, - focus-box-shadow: $btn-focus-box-shadow, - focus-color: $gray-900, - disabled-bg: $white, - disabled-border-color: $secondary-l2, - disabled-color: $secondary, - active-border-color: $secondary-l2, - active-color: $gray-900, - active-bg: $gray-200, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, - loading-animation: null, -), $btn-secondary); +$btn-secondary: map-deep-merge( + ( + bg: $white, + border-color: $secondary-l2, + color: $secondary, + hover-bg: $gray-100, + hover-border-color: $secondary-l2, + hover-color: $gray-900, + focus-bg: $gray-100, + focus-border-color: $secondary-l2, + focus-box-shadow: $btn-focus-box-shadow, + focus-color: $gray-900, + disabled-bg: $white, + disabled-border-color: $secondary-l2, + disabled-color: $secondary, + active-border-color: $secondary-l2, + active-color: $gray-900, + active-bg: $gray-200, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + loading-animation: null, + ), + $btn-secondary +); $btn-success: () !default; -$btn-success: map-deep-merge(( - hover-bg: $success-d1, - hover-border-color: transparent, - focus-bg: $success-d1, - focus-border-color: transparent, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $success, - active-bg: $success-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, -), $btn-success); +$btn-success: map-deep-merge( + ( + hover-bg: $success-d1, + hover-border-color: transparent, + focus-bg: $success-d1, + focus-border-color: transparent, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $success, + active-bg: $success-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + ), + $btn-success +); $btn-info: () !default; -$btn-info: map-deep-merge(( - hover-bg: $info-d1, - hover-border-color: transparent, - focus-bg: $info-d1, - focus-border-color: transparent, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $info, - active-bg: $info-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, -), $btn-info); +$btn-info: map-deep-merge( + ( + hover-bg: $info-d1, + hover-border-color: transparent, + focus-bg: $info-d1, + focus-border-color: transparent, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $info, + active-bg: $info-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + ), + $btn-info +); $btn-warning: () !default; -$btn-warning: map-deep-merge(( - hover-bg: $warning-d1, - hover-border-color: transparent, - focus-bg: $warning-d1, - focus-border-color: transparent, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $warning, - active-bg: $warning-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, - loading-animation: 'loading-animation-light', -), $btn-warning); +$btn-warning: map-deep-merge( + ( + hover-bg: $warning-d1, + hover-border-color: transparent, + focus-bg: $warning-d1, + focus-border-color: transparent, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $warning, + active-bg: $warning-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + loading-animation: 'loading-animation-light', + ), + $btn-warning +); $btn-danger: () !default; -$btn-danger: map-deep-merge(( - hover-bg: $danger-d1, - hover-border-color: transparent, - focus-bg: $danger-d1, - focus-border-color: transparent, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $danger, - active-bg: $danger-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, -), $btn-danger); +$btn-danger: map-deep-merge( + ( + hover-bg: $danger-d1, + hover-border-color: transparent, + focus-bg: $danger-d1, + focus-border-color: transparent, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $danger, + active-bg: $danger-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + ), + $btn-danger +); $btn-light: () !default; -$btn-light: map-deep-merge(( - color: $gray-900, - hover-bg: $light-d1, - hover-border-color: transparent, - focus-bg: $light-d1, - focus-border-color: transparent, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $light, - active-bg: $light-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, -), $btn-light); +$btn-light: map-deep-merge( + ( + color: $gray-900, + hover-bg: $light-d1, + hover-border-color: transparent, + focus-bg: $light-d1, + focus-border-color: transparent, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $light, + active-bg: $light-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + ), + $btn-light +); $btn-dark: () !default; -$btn-dark: map-deep-merge(( - hover-bg: $dark-d1, - hover-border-color: transparent, - focus-bg: $dark-d1, - focus-border-color: transparent, - focus-box-shadow: $btn-focus-box-shadow, - disabled-bg: $dark, - active-bg: $dark-d2, - active-border-color: transparent, - active-box-shadow: none, - active-focus-box-shadow: $btn-focus-box-shadow, -), $btn-dark); +$btn-dark: map-deep-merge( + ( + hover-bg: $dark-d1, + hover-border-color: transparent, + focus-bg: $dark-d1, + focus-border-color: transparent, + focus-box-shadow: $btn-focus-box-shadow, + disabled-bg: $dark, + active-bg: $dark-d2, + active-border-color: transparent, + active-box-shadow: none, + active-focus-box-shadow: $btn-focus-box-shadow, + ), + $btn-dark +); // Button Outline Variant $btn-outline-primary: () !default; -$btn-outline-primary: map-deep-merge(( - hover-bg: $primary-l3, - hover-color: $primary, - focus-bg: $primary-l3, - focus-box-shadow: map-get($btn-primary, focus-box-shadow), - focus-color: $primary, - disabled-bg: transparent, - disabled-border-color: map-get($btn-primary, bg), - disabled-color: map-get($btn-primary, bg), - active-bg: lighten(desaturate($primary, 42.05), 41.76), - active-color: $primary, - active-box-shadow: map-get($btn-primary, active-box-shadow), - active-focus-box-shadow: map-get($btn-primary, active-focus-box-shadow), -), $btn-outline-primary); +$btn-outline-primary: map-deep-merge( + ( + hover-bg: $primary-l3, + hover-color: $primary, + focus-bg: $primary-l3, + focus-box-shadow: map-get($btn-primary, focus-box-shadow), + focus-color: $primary, + disabled-bg: transparent, + disabled-border-color: map-get($btn-primary, bg), + disabled-color: map-get($btn-primary, bg), + active-bg: lighten(desaturate($primary, 42.05), 41.76), + active-color: $primary, + active-box-shadow: map-get($btn-primary, active-box-shadow), + active-focus-box-shadow: map-get($btn-primary, active-focus-box-shadow), + ), + $btn-outline-primary +); $btn-outline-secondary: () !default; -$btn-outline-secondary: map-deep-merge(( - bg: null, - border-color: $secondary-l2, - color: null, - hover-bg: rgba($gray-900, 0.03), - hover-border-color: transparent, - hover-color: map-get($btn-secondary, hover-color), - focus-bg: rgba($gray-900, 0.03), - focus-border-color: transparent, - focus-box-shadow: map-get($btn-secondary, focus-box-shadow), - focus-color: map-get($btn-secondary, focus-color), - disabled-bg: transparent, - disabled-border-color: $secondary, - disabled-color: $secondary, - active-bg: rgba($gray-900, 0.06), - active-border-color: transparent, - active-box-shadow: map-get($btn-secondary, active-box-shadow), - active-color: map-get($btn-secondary, active-color), - active-focus-box-shadow: map-get($btn-secondary, active-focus-box-shadow), -), $btn-outline-secondary); +$btn-outline-secondary: map-deep-merge( + ( + bg: null, + border-color: $secondary-l2, + color: null, + hover-bg: rgba($gray-900, 0.03), + hover-border-color: transparent, + hover-color: map-get($btn-secondary, hover-color), + focus-bg: rgba($gray-900, 0.03), + focus-border-color: transparent, + focus-box-shadow: map-get($btn-secondary, focus-box-shadow), + focus-color: map-get($btn-secondary, focus-color), + disabled-bg: transparent, + disabled-border-color: $secondary, + disabled-color: $secondary, + active-bg: rgba($gray-900, 0.06), + active-border-color: transparent, + active-box-shadow: map-get($btn-secondary, active-box-shadow), + active-color: map-get($btn-secondary, active-color), + active-focus-box-shadow: + map-get($btn-secondary, active-focus-box-shadow), + ), + $btn-outline-secondary +); $btn-outline-info: () !default; -$btn-outline-info: map-deep-merge(( - hover-bg: map-get($btn-info, hover-bg), - focus-bg: map-get($btn-info, hover-bg), - focus-box-shadow: map-get($btn-info, focus-box-shadow), - focus-color: $white, - disabled-bg: transparent, - disabled-border-color: map-get($btn-info, bg), - disabled-color: map-get($btn-info, bg), - active-bg: map-get($btn-info, active-bg), - active-box-shadow: map-get($btn-info, active-box-shadow), - active-focus-box-shadow: map-get($btn-info, active-focus-box-shadow), -), $btn-outline-info); +$btn-outline-info: map-deep-merge( + ( + hover-bg: map-get($btn-info, hover-bg), + focus-bg: map-get($btn-info, hover-bg), + focus-box-shadow: map-get($btn-info, focus-box-shadow), + focus-color: $white, + disabled-bg: transparent, + disabled-border-color: map-get($btn-info, bg), + disabled-color: map-get($btn-info, bg), + active-bg: map-get($btn-info, active-bg), + active-box-shadow: map-get($btn-info, active-box-shadow), + active-focus-box-shadow: map-get($btn-info, active-focus-box-shadow), + ), + $btn-outline-info +); $btn-outline-success: () !default; -$btn-outline-success: map-deep-merge(( - hover-bg: map-get($btn-success, hover-bg), - focus-bg: map-get($btn-success, hover-bg), - focus-box-shadow: map-get($btn-success, focus-box-shadow), - focus-color: $white, - disabled-bg: transparent, - disabled-border-color: map-get($btn-success, bg), - disabled-color: map-get($btn-success, bg), - active-bg: map-get($btn-success, active-bg), - active-box-shadow: map-get($btn-success, active-box-shadow), - active-focus-box-shadow: map-get($btn-success, active-focus-box-shadow), -), $btn-outline-success); +$btn-outline-success: map-deep-merge( + ( + hover-bg: map-get($btn-success, hover-bg), + focus-bg: map-get($btn-success, hover-bg), + focus-box-shadow: map-get($btn-success, focus-box-shadow), + focus-color: $white, + disabled-bg: transparent, + disabled-border-color: map-get($btn-success, bg), + disabled-color: map-get($btn-success, bg), + active-bg: map-get($btn-success, active-bg), + active-box-shadow: map-get($btn-success, active-box-shadow), + active-focus-box-shadow: map-get($btn-success, active-focus-box-shadow), + ), + $btn-outline-success +); $btn-outline-warning: () !default; -$btn-outline-warning: map-deep-merge(( - hover-bg: map-get($btn-warning, hover-bg), - focus-bg: map-get($btn-warning, hover-bg), - focus-box-shadow: map-get($btn-warning, focus-box-shadow), - focus-color: $white, - disabled-bg: transparent, - disabled-border-color: map-get($btn-warning, bg), - disabled-color: map-get($btn-warning, bg), - active-bg: map-get($btn-warning, active-bg), - active-box-shadow: map-get($btn-warning, active-box-shadow), - active-focus-box-shadow: map-get($btn-warning, active-focus-box-shadow), -), $btn-outline-warning); +$btn-outline-warning: map-deep-merge( + ( + hover-bg: map-get($btn-warning, hover-bg), + focus-bg: map-get($btn-warning, hover-bg), + focus-box-shadow: map-get($btn-warning, focus-box-shadow), + focus-color: $white, + disabled-bg: transparent, + disabled-border-color: map-get($btn-warning, bg), + disabled-color: map-get($btn-warning, bg), + active-bg: map-get($btn-warning, active-bg), + active-box-shadow: map-get($btn-warning, active-box-shadow), + active-focus-box-shadow: map-get($btn-warning, active-focus-box-shadow), + ), + $btn-outline-warning +); $btn-outline-danger: () !default; -$btn-outline-danger: map-deep-merge(( - hover-bg: map-get($btn-danger, hover-bg), - focus-bg: map-get($btn-danger, hover-bg), - focus-box-shadow: map-get($btn-danger, focus-box-shadow), - focus-color: $white, - disabled-bg: transparent, - disabled-border-color: map-get($btn-danger, bg), - disabled-color: map-get($btn-danger, bg), - active-bg: map-get($btn-danger, active-bg), - active-box-shadow: map-get($btn-danger, active-box-shadow), - active-focus-box-shadow: map-get($btn-danger, active-focus-box-shadow), -), $btn-outline-danger); +$btn-outline-danger: map-deep-merge( + ( + hover-bg: map-get($btn-danger, hover-bg), + focus-bg: map-get($btn-danger, hover-bg), + focus-box-shadow: map-get($btn-danger, focus-box-shadow), + focus-color: $white, + disabled-bg: transparent, + disabled-border-color: map-get($btn-danger, bg), + disabled-color: map-get($btn-danger, bg), + active-bg: map-get($btn-danger, active-bg), + active-box-shadow: map-get($btn-danger, active-box-shadow), + active-focus-box-shadow: map-get($btn-danger, active-focus-box-shadow), + ), + $btn-outline-danger +); $btn-outline-light: () !default; -$btn-outline-light: map-deep-merge(( - hover-bg: map-get($btn-light, hover-bg), - focus-bg: map-get($btn-light, hover-bg), - focus-box-shadow: map-get($btn-light, focus-box-shadow), - focus-color: $gray-900, - disabled-bg: transparent, - disabled-border-color: map-get($btn-light, bg), - disabled-color: map-get($btn-light, bg), - active-bg: map-get($btn-light, active-bg), - active-box-shadow: map-get($btn-light, active-box-shadow), - active-focus-box-shadow: map-get($btn-light, active-focus-box-shadow), -), $btn-outline-light); +$btn-outline-light: map-deep-merge( + ( + hover-bg: map-get($btn-light, hover-bg), + focus-bg: map-get($btn-light, hover-bg), + focus-box-shadow: map-get($btn-light, focus-box-shadow), + focus-color: $gray-900, + disabled-bg: transparent, + disabled-border-color: map-get($btn-light, bg), + disabled-color: map-get($btn-light, bg), + active-bg: map-get($btn-light, active-bg), + active-box-shadow: map-get($btn-light, active-box-shadow), + active-focus-box-shadow: map-get($btn-light, active-focus-box-shadow), + ), + $btn-outline-light +); $btn-outline-dark: () !default; -$btn-outline-dark: map-deep-merge(( - hover-bg: map-get($btn-dark, hover-bg), - focus-bg: map-get($btn-dark, hover-bg), - focus-box-shadow: map-get($btn-dark, focus-box-shadow), - focus-color: $white, - disabled-bg: transparent, - disabled-border-color: map-get($btn-dark, bg), - disabled-color: map-get($btn-dark, bg), - active-bg: map-get($btn-dark, active-bg), - active-box-shadow: map-get($btn-dark, active-box-shadow), - active-focus-box-shadow: map-get($btn-dark, active-focus-box-shadow), -), $btn-outline-dark); \ No newline at end of file +$btn-outline-dark: map-deep-merge( + ( + hover-bg: map-get($btn-dark, hover-bg), + focus-bg: map-get($btn-dark, hover-bg), + focus-box-shadow: map-get($btn-dark, focus-box-shadow), + focus-color: $white, + disabled-bg: transparent, + disabled-border-color: map-get($btn-dark, bg), + disabled-color: map-get($btn-dark, bg), + active-bg: map-get($btn-dark, active-bg), + active-box-shadow: map-get($btn-dark, active-box-shadow), + active-focus-box-shadow: map-get($btn-dark, active-focus-box-shadow), + ), + $btn-outline-dark +); diff --git a/packages/clay-css/src/scss/atlas/variables/_cards.scss b/packages/clay-css/src/scss/atlas/variables/_cards.scss index f595ed4efb..408c2cee00 100644 --- a/packages/clay-css/src/scss/atlas/variables/_cards.scss +++ b/packages/clay-css/src/scss/atlas/variables/_cards.scss @@ -7,106 +7,153 @@ $card-body-padding-left: 1rem !default; $card-body-padding-right: 1rem !default; $card-body-padding-top: 1rem !default; -$card-inner-border-radius: if($card-border-width > 0, calc(#{$card-border-radius} - #{$card-border-width}), $card-border-radius) !default; +$card-inner-border-radius: if( + $card-border-width > 0, + calc(#{$card-border-radius} - #{$card-border-width}), + $card-border-radius +) !default; // Card Title $card-title: () !default; -$card-title: map-deep-merge(( - color: $gray-900, - font-size: 0.875rem, -), $card-title); +$card-title: map-deep-merge( + ( + color: $gray-900, + font-size: 0.875rem, + ), + $card-title +); $card-title-link: () !default; -$card-title-link: map-deep-merge(( - hover-color: map-get($card-title, color) -), $card-title-link); +$card-title-link: map-deep-merge( + ( + hover-color: map-get($card-title, color), + ), + $card-title-link +); // Card Subtitle $card-subtitle: () !default; -$card-subtitle: map-deep-merge(( - font-weight: $font-weight-normal -), $card-subtitle); +$card-subtitle: map-deep-merge( + ( + font-weight: $font-weight-normal, + ), + $card-subtitle +); $card-subtitle-link: () !default; -$card-subtitle-link: map-deep-merge(( - hover-color: $gray-600, -), $card-subtitle-link); +$card-subtitle-link: map-deep-merge( + ( + hover-color: $gray-600, + ), + $card-subtitle-link +); // Card Link $card-link: () !default; -$card-link: map-deep-merge(( - color: $gray-600, - font-size: 0.875rem, - hover-color: $gray-600, - hover-text-decoration: underline -), $card-link); +$card-link: map-deep-merge( + ( + color: $gray-600, + font-size: 0.875rem, + hover-color: $gray-600, + hover-text-decoration: underline, + ), + $card-link +); $checkbox-left-card-padding: 50px !default; -$form-check-card-checked-box-shadow: 0 0 0 2px lighten($component-active-bg, 22.94) !default; +$form-check-card-checked-box-shadow: 0 0 0 2px + lighten($component-active-bg, 22.94) !default; // Card Interactive $card-interactive: () !default; -$card-interactive: map-deep-merge(( - hover-bg: #F7F8F9, - focus-border-color: null, - focus-box-shadow: 0 0 0 2px #FFF#{','} 0 0 0 4px #719AFF, - active-bg: #F1F2F5, -), $card-interactive); +$card-interactive: map-deep-merge( + ( + hover-bg: #f7f8f9, + focus-border-color: null, + focus-box-shadow: 0 0 0 2px #FFF#{','} 0 0 0 4px #719aff, + active-bg: #f1f2f5, + ), + $card-interactive +); // Card Interactive Secondary $card-interactive-secondary: () !default; -$card-interactive-secondary: map-deep-merge(( - hover-border-color: transparent, - hover-box-shadow: 0 0 0 2px #719AFF, - focus-border-color: transparent, - focus-box-shadow: 0 0 0 2px #719AFF, -), $card-interactive-secondary); +$card-interactive-secondary: map-deep-merge( + ( + hover-border-color: transparent, + hover-box-shadow: 0 0 0 2px #719aff, + focus-border-color: transparent, + focus-box-shadow: 0 0 0 2px #719aff, + ), + $card-interactive-secondary +); // Card Type Asset $card-type-asset: () !default; -$card-type-asset: map-deep-merge(( - aspect-ratio-border-color: $gray-300, - card-body-padding-top: 0.75rem -), $card-type-asset); +$card-type-asset: map-deep-merge( + ( + aspect-ratio-border-color: $gray-300, + card-body-padding-top: 0.75rem, + ), + $card-type-asset +); $image-card: () !default; -$image-card: map-deep-merge(( - aspect-ratio-checkered-fg: $gray-300, -), $image-card); +$image-card: map-deep-merge( + ( + aspect-ratio-checkered-fg: $gray-300, + ), + $image-card +); $file-card: () !default; -$file-card: map-deep-merge(( - asset-icon-color: $gray-400, -), $file-card); +$file-card: map-deep-merge( + ( + asset-icon-color: $gray-400, + ), + $file-card +); // Card Type Template $card-type-template-after-highlight: () !default; -$card-type-template-after-highlight: map-deep-merge(( - bottom: -1px, - left: -1px, - right: -1px, -), $card-type-template-after-highlight); +$card-type-template-after-highlight: map-deep-merge( + ( + bottom: -1px, + left: -1px, + right: -1px, + ), + $card-type-template-after-highlight +); $card-type-template-aspect-ratio: () !default; -$card-type-template-aspect-ratio: map-deep-merge(( - bg-image: none, -), $card-type-template-aspect-ratio); +$card-type-template-aspect-ratio: map-deep-merge( + ( + bg-image: none, + ), + $card-type-template-aspect-ratio +); $card-type-template-aspect-ratio-item: () !default; -$card-type-template-aspect-ratio-item: map-deep-merge(( - color: $gray-600, -), $card-type-template-aspect-ratio-item); +$card-type-template-aspect-ratio-item: map-deep-merge( + ( + color: $gray-600, + ), + $card-type-template-aspect-ratio-item +); $card-type-template: () !default; -$card-type-template: map-deep-merge(( - border-width: 1px, - box-shadow: none, -), $card-type-template); \ No newline at end of file +$card-type-template: map-deep-merge( + ( + border-width: 1px, + box-shadow: none, + ), + $card-type-template +); diff --git a/packages/clay-css/src/scss/atlas/variables/_clay-color.scss b/packages/clay-css/src/scss/atlas/variables/_clay-color.scss index 6fafc92eb8..5ec5806ea5 100644 --- a/packages/clay-css/src/scss/atlas/variables/_clay-color.scss +++ b/packages/clay-css/src/scss/atlas/variables/_clay-color.scss @@ -1,29 +1,38 @@ // Clay Color Dropdown Menu Close $clay-color-dropdown-menu-close: () !default; -$clay-color-dropdown-menu-close: map-deep-merge(( - color: $gray-600, - font-size: 0.875rem, - opacity: 1, - hover-bg: rgba($gray-900, 0.03), - focus-bg: rgba($gray-900, 0.03), - active-bg: rgba($gray-900, 0.06), - disabled-bg: transparent, -), $clay-color-dropdown-menu-close); +$clay-color-dropdown-menu-close: map-deep-merge( + ( + color: $gray-600, + font-size: 0.875rem, + opacity: 1, + hover-bg: rgba($gray-900, 0.03), + focus-bg: rgba($gray-900, 0.03), + active-bg: rgba($gray-900, 0.06), + disabled-bg: transparent, + ), + $clay-color-dropdown-menu-close +); // Clay Color Dropdown Menu Component Action $clay-color-dropdown-menu-component-action: () !default; -$clay-color-dropdown-menu-component-action: map-deep-merge(( - hover-bg: null, - hover-color: null, - focus-box-shadow: null, - focus-color: null, -), $clay-color-dropdown-menu-component-action); +$clay-color-dropdown-menu-component-action: map-deep-merge( + ( + hover-bg: null, + hover-color: null, + focus-box-shadow: null, + focus-color: null, + ), + $clay-color-dropdown-menu-component-action +); // Clay Color Pointer $clay-color-pointer: () !default; -$clay-color-pointer: map-deep-merge(( - focus-box-shadow: 0 0 0 0.125rem $primary-l1, -), $clay-color-pointer); \ No newline at end of file +$clay-color-pointer: map-deep-merge( + ( + focus-box-shadow: 0 0 0 0.125rem $primary-l1, + ), + $clay-color-pointer +); diff --git a/packages/clay-css/src/scss/atlas/variables/_custom-forms.scss b/packages/clay-css/src/scss/atlas/variables/_custom-forms.scss index 8c0a50f955..327c5dca0c 100644 --- a/packages/clay-css/src/scss/atlas/variables/_custom-forms.scss +++ b/packages/clay-css/src/scss/atlas/variables/_custom-forms.scss @@ -35,7 +35,10 @@ $custom-control-indicator-checked-border-color: $custom-control-indicator-checke // @deprecated as of v2.2.1 use `$custom-control-indicator-checked-disabled-bg` instead -$custom-control-indicator-disabled-checked-bg: lighten($component-active-bg, 32.94) !default; +$custom-control-indicator-disabled-checked-bg: lighten( + $component-active-bg, + 32.94 +) !default; $custom-control-indicator-checked-disabled-bg: $custom-control-indicator-disabled-checked-bg !default; // @deprecated as of v2.2.1 use `$custom-control-indicator-checked-disabled-border-color` instead @@ -54,9 +57,12 @@ $custom-control-indicator-indeterminate-border-color: $custom-control-indicator- $custom-control-margin-bottom: 1rem !default; $custom-control: () !default; -$custom-control: map-deep-merge(( - line-height: 1, -), $custom-control); +$custom-control: map-deep-merge( + ( + line-height: 1, + ), + $custom-control +); // Custom Control Description @@ -78,15 +84,21 @@ $custom-control-label-disabled-color: $custom-control-description-disabled-color $custom-control-description-small-font-size: 100% !default; $custom-control-label: () !default; -$custom-control-label: map-deep-merge(( - font-size: $custom-control-description-font-size, - font-weight: $custom-control-description-font-weight, -), $custom-control-label); +$custom-control-label: map-deep-merge( + ( + font-size: $custom-control-description-font-size, + font-weight: $custom-control-description-font-weight, + ), + $custom-control-label +); $custom-control-label-text-small: () !default; -$custom-control-label-text-small: map-deep-merge(( - font-size: $custom-control-description-small-font-size, -), $custom-control-label-text-small); +$custom-control-label-text-small: map-deep-merge( + ( + font-size: $custom-control-description-small-font-size, + ), + $custom-control-label-text-small +); // Custom Checkbox @@ -106,4 +118,4 @@ $custom-radio-indicator-disabled-border-color: $custom-control-indicator-disable // @deprecated as of v2.2.1 use `$custom-radio-indicator-checked-disabled-border-color` instead $custom-radio-indicator-disabled-checked-border-color: $custom-control-indicator-disabled-checked-border-color !default; -$custom-radio-indicator-checked-disabled-border-color: $custom-radio-indicator-disabled-checked-border-color !default; \ No newline at end of file +$custom-radio-indicator-checked-disabled-border-color: $custom-radio-indicator-disabled-checked-border-color !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_date-picker.scss b/packages/clay-css/src/scss/atlas/variables/_date-picker.scss index 76c44a68c3..9c35a2f8db 100644 --- a/packages/clay-css/src/scss/atlas/variables/_date-picker.scss +++ b/packages/clay-css/src/scss/atlas/variables/_date-picker.scss @@ -1,57 +1,72 @@ // Date Picker Nav $date-picker-nav-btn: () !default; -$date-picker-nav-btn: map-deep-merge(( - hover-color: $gray-900, - focus-bg: $gray-200, - focus-color: $gray-900, - active-bg: $gray-200, - disabled-color: $gray-500, - disabled-opacity: null, -), $date-picker-nav-btn); +$date-picker-nav-btn: map-deep-merge( + ( + hover-color: $gray-900, + focus-bg: $gray-200, + focus-color: $gray-900, + active-bg: $gray-200, + disabled-color: $gray-500, + disabled-opacity: null, + ), + $date-picker-nav-btn +); $date-picker-nav-select: () !default; -$date-picker-nav-select: map-deep-merge(( - bg: transparent, - border-color: transparent, - color: $secondary, - font-size: $font-size-sm, - font-weight: $font-weight-semi-bold, - height: $input-height-sm, - padding-bottom: 0, - padding-left: 0.5rem, - padding-top: 0, - hover-bg: $gray-200, - hover-color: $gray-900, - focus-bg: $gray-200, - focus-color: $gray-900, - disabled-bg: transparent, - disabled-color: $input-disabled-color, -), $date-picker-nav-select); +$date-picker-nav-select: map-deep-merge( + ( + bg: transparent, + border-color: transparent, + color: $secondary, + font-size: $font-size-sm, + font-weight: $font-weight-semi-bold, + height: $input-height-sm, + padding-bottom: 0, + padding-left: 0.5rem, + padding-top: 0, + hover-bg: $gray-200, + hover-color: $gray-900, + focus-bg: $gray-200, + focus-color: $gray-900, + disabled-bg: transparent, + disabled-color: $input-disabled-color, + ), + $date-picker-nav-select +); // Date Picker Calendar Item $date-picker-date: () !default; -$date-picker-date: map-deep-merge(( - hover-color: $gray-900, - focus-bg: $gray-200, - focus-color: $gray-900, - disabled-color: $gray-500, - disabled-opacity: null, -), $date-picker-date); +$date-picker-date: map-deep-merge( + ( + hover-color: $gray-900, + focus-bg: $gray-200, + focus-color: $gray-900, + disabled-color: $gray-500, + disabled-opacity: null, + ), + $date-picker-date +); $date-picker-previous-month-date: () !default; -$date-picker-previous-month-date: map-deep-merge(( - color: $gray-500, - opacity: null, - focus-opacity: null, - active-opacity: null, -), $date-picker-previous-month-date); +$date-picker-previous-month-date: map-deep-merge( + ( + color: $gray-500, + opacity: null, + focus-opacity: null, + active-opacity: null, + ), + $date-picker-previous-month-date +); $date-picker-next-month-date: () !default; -$date-picker-next-month-date: map-deep-merge(( - color: $gray-500, - opacity: null, - focus-opacity: null, - active-opacity: null, -), $date-picker-next-month-date); \ No newline at end of file +$date-picker-next-month-date: map-deep-merge( + ( + color: $gray-500, + opacity: null, + focus-opacity: null, + active-opacity: null, + ), + $date-picker-next-month-date +); diff --git a/packages/clay-css/src/scss/atlas/variables/_drilldown.scss b/packages/clay-css/src/scss/atlas/variables/_drilldown.scss index 37088f73cd..9306262859 100644 --- a/packages/clay-css/src/scss/atlas/variables/_drilldown.scss +++ b/packages/clay-css/src/scss/atlas/variables/_drilldown.scss @@ -1,5 +1,8 @@ $drilldown-item-header: () !default; -$drilldown-item-header: map-deep-merge(( - font-weight: $font-weight-semi-bold, - text-transform: uppercase, -), $drilldown-item-header); \ No newline at end of file +$drilldown-item-header: map-deep-merge( + ( + font-weight: $font-weight-semi-bold, + text-transform: uppercase, + ), + $drilldown-item-header +); diff --git a/packages/clay-css/src/scss/atlas/variables/_dropdowns.scss b/packages/clay-css/src/scss/atlas/variables/_dropdowns.scss index aa0218f665..51a062e954 100644 --- a/packages/clay-css/src/scss/atlas/variables/_dropdowns.scss +++ b/packages/clay-css/src/scss/atlas/variables/_dropdowns.scss @@ -22,7 +22,7 @@ $dropdown-caption-color: $gray-600 !default; $dropdown-link-color: $gray-600 !default; $dropdown-link-font-weight: $font-weight-normal !default; $dropdown-link-hover-color: $gray-900 !default; -$dropdown-link-hover-bg: lighten($component-active-bg, 44.90) !default; +$dropdown-link-hover-bg: lighten($component-active-bg, 44.9) !default; $dropdown-link-active-color: $dropdown-link-hover-color !default; $dropdown-link-active-bg: $dropdown-link-hover-bg !default; $dropdown-link-active-font-weight: $font-weight-semi-bold !default; @@ -34,47 +34,62 @@ $dropdown-item-padding-y: 0.5rem !default; // 8px // Weird box-shadow inset with border-radius render in IE https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12515080/ $dropdown-item-base: () !default; -$dropdown-item-base: map-deep-merge(( - font-size: inherit, - focus-box-shadow: $component-focus-inset-box-shadow, - focus-outline: 0, - focus-text-decoration: none, - active-class-c-kbd-inline: ( - color: $dropdown-link-active-color, +$dropdown-item-base: map-deep-merge( + ( + font-size: inherit, + focus-box-shadow: $component-focus-inset-box-shadow, + focus-outline: 0, + focus-text-decoration: none, + active-class-c-kbd-inline: ( + color: $dropdown-link-active-color, + ), + disabled-box-shadow: none, + c-kbd-inline: ( + color: $gray-500, + ), ), - disabled-box-shadow: none, - c-kbd-inline: ( - color: $gray-500, - ), -), $dropdown-item-base); + $dropdown-item-base +); $dropdown-section-custom-control-label: () !default; -$dropdown-section-custom-control-label: map-deep-merge(( - color: $secondary, -), $dropdown-section-custom-control-label); +$dropdown-section-custom-control-label: map-deep-merge( + ( + color: $secondary, + ), + $dropdown-section-custom-control-label +); $dropdown-section-active-custom-control-label: () !default; -$dropdown-section-active-custom-control-label: map-deep-merge(( - color: $gray-900, -), $dropdown-section-active-custom-control-label); +$dropdown-section-active-custom-control-label: map-deep-merge( + ( + color: $gray-900, + ), + $dropdown-section-active-custom-control-label +); $dropdown-section-custom-control-label-text: () !default; -$dropdown-section-custom-control-label-text: map-deep-merge(( - padding-left: 1rem, -), $dropdown-section-custom-control-label-text); +$dropdown-section-custom-control-label-text: map-deep-merge( + ( + padding-left: 1rem, + ), + $dropdown-section-custom-control-label-text +); $dropdown-divider-bg: $dropdown-border-color !default; // Autocomplete Dropdown Menu $autocomplete-dropdown-menu: () !default; -$autocomplete-dropdown-menu: map-deep-merge(( - max-height: 10rem, -), $autocomplete-dropdown-menu); +$autocomplete-dropdown-menu: map-deep-merge( + ( + max-height: 10rem, + ), + $autocomplete-dropdown-menu +); // Dropdown Action $dropdown-action-toggle-font-size: 1rem !default; // 16px $dropdown-action-toggle-size: $btn-monospaced-size-sm !default; -$dropdown-action-toggle-disabled-opacity: $btn-disabled-opacity !default; \ No newline at end of file +$dropdown-action-toggle-disabled-opacity: $btn-disabled-opacity !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_forms.scss b/packages/clay-css/src/scss/atlas/variables/_forms.scss index 0dc6876fcd..805a76ec4d 100644 --- a/packages/clay-css/src/scss/atlas/variables/_forms.scss +++ b/packages/clay-css/src/scss/atlas/variables/_forms.scss @@ -56,7 +56,7 @@ $input-box-shadow: 0 0 rgba(0, 0, 0, 0) !default; $input-placeholder-color: $gray-600 !default; $input-label-color: $gray-900 !default; -$input-focus-bg: lighten($component-active-bg, 44.90) !default; +$input-focus-bg: lighten($component-active-bg, 44.9) !default; $input-focus-border-color: lighten($component-active-bg, 22.94) !default; $input-focus-box-shadow: $component-focus-box-shadow !default; @@ -72,17 +72,23 @@ $input-label-disabled-color: $gray-500 !default; $input-readonly-bg: $white !default; $input-readonly: () !default; -$input-readonly: map-deep-merge(( - bg: $input-readonly-bg, - border-color: $input-border-color, - focus-box-shadow: none, -), $input-readonly); +$input-readonly: map-deep-merge( + ( + bg: $input-readonly-bg, + border-color: $input-border-color, + focus-box-shadow: none, + ), + $input-readonly +); $input-plaintext-readonly: () !default; -$input-plaintext-readonly: map-deep-merge(( - focus-border-color: $input-focus-border-color, - focus-box-shadow: none, -), $input-plaintext-readonly); +$input-plaintext-readonly: map-deep-merge( + ( + focus-border-color: $input-focus-border-color, + focus-box-shadow: none, + ), + $input-plaintext-readonly +); $input-danger-bg: $danger-l2 !default; $input-danger-border-color: $danger-l1 !default; @@ -92,15 +98,21 @@ $input-danger-focus-box-shadow: $input-focus-box-shadow !default; $input-danger-color: $input-color !default; $input-danger-readonly: () !default; -$input-danger-readonly: map-deep-merge(( - bg: map-get($input-readonly, bg), - border-color: map-get($input-readonly, border-color), - focus-border-color: $input-focus-border-color, -), $input-danger-readonly); +$input-danger-readonly: map-deep-merge( + ( + bg: map-get($input-readonly, bg), + border-color: map-get($input-readonly, border-color), + focus-border-color: $input-focus-border-color, + ), + $input-danger-readonly +); $input-danger-checkbox-label-color: $danger !default; $input-danger-select-icon-color: $input-danger-border-color !default; -$input-danger-select-icon: clay-icon(caret-double-l, $input-danger-select-icon-color) !default; +$input-danger-select-icon: clay-icon( + caret-double-l, + $input-danger-select-icon-color +) !default; $input-success-bg: $success-l2 !default; $input-success-border-color: $success-l1 !default; @@ -110,15 +122,21 @@ $input-success-focus-box-shadow: $input-focus-box-shadow !default; $input-success-color: $input-color !default; $input-success-readonly: () !default; -$input-success-readonly: map-deep-merge(( - bg: map-get($input-readonly, bg), - border-color: map-get($input-readonly, border-color), - focus-border-color: $input-focus-border-color, -), $input-success-readonly); +$input-success-readonly: map-deep-merge( + ( + bg: map-get($input-readonly, bg), + border-color: map-get($input-readonly, border-color), + focus-border-color: $input-focus-border-color, + ), + $input-success-readonly +); $input-success-checkbox-label-color: $success !default; $input-success-select-icon-color: $input-success-border-color !default; -$input-success-select-icon: clay-icon(caret-double-l, $input-success-select-icon-color) !default; +$input-success-select-icon: clay-icon( + caret-double-l, + $input-success-select-icon-color +) !default; $input-warning-bg: $warning-l2 !default; $input-warning-border-color: $warning-l1 !default; @@ -127,16 +145,22 @@ $input-warning-box-shadow: 0 0 rgba(0, 0, 0, 0) !default; $input-warning-focus-box-shadow: $input-focus-box-shadow !default; $input-warning-readonly: () !default; -$input-warning-readonly: map-deep-merge(( - bg: map-get($input-readonly, bg), - border-color: map-get($input-readonly, border-color), - focus-border-color: $input-focus-border-color, -), $input-warning-readonly); +$input-warning-readonly: map-deep-merge( + ( + bg: map-get($input-readonly, bg), + border-color: map-get($input-readonly, border-color), + focus-border-color: $input-focus-border-color, + ), + $input-warning-readonly +); $input-warning-color: $input-color !default; $input-warning-checkbox-label-color: $warning !default; $input-warning-select-icon-color: $input-warning-border-color !default; -$input-warning-select-icon: clay-icon(caret-double-l, $input-warning-select-icon-color) !default; +$input-warning-select-icon: clay-icon( + caret-double-l, + $input-warning-select-icon-color +) !default; // Select Element @@ -145,20 +169,32 @@ $input-select-bg-size: 1.5em auto !default; $input-select-padding-right: 2em !default; $input-select-icon-color: $gray-600 !default; -$input-select-icon: clay-icon(caret-double-l, $input-select-icon-color) !default; +$input-select-icon: clay-icon( + caret-double-l, + $input-select-icon-color +) !default; $input-select-icon-focus-color: $input-select-icon-color !default; -$input-select-icon-focus: clay-icon(caret-double-l, $input-select-icon-focus-color) !default; +$input-select-icon-focus: clay-icon( + caret-double-l, + $input-select-icon-focus-color +) !default; $input-select-icon-disabled-color: $gray-500 !default; -$input-select-icon-disabled: clay-icon(caret-double-l, $input-select-icon-disabled-color) !default; +$input-select-icon-disabled: clay-icon( + caret-double-l, + $input-select-icon-disabled-color +) !default; $input-select-size: () !default; -$input-select-size: map-deep-merge(( - option: ( - padding: 0.25rem 0.5rem, +$input-select-size: map-deep-merge( + ( + option: ( + padding: 0.25rem 0.5rem, + ), ), -), $input-select-size); + $input-select-size +); // Form Feedback @@ -177,26 +213,30 @@ $input-textarea-height-sm: 80px !default; // Form Control Label (Labels inside Form Control Tag Group) $form-control-label-size: () !default; -$form-control-label-size: map-deep-merge(( - border-width: 0.0625rem, - font-size: map-get($label-lg, font-size), - height: 1.5rem, - margin-bottom: 0.3125rem, - margin-right: 0.625rem, - margin-top: 0.3125rem, - padding-x: map-get($label-lg, padding-x), - padding-y: map-get($label-lg, padding-y), - text-transform: none, - item-spacer-y: map-get($label-lg, item-spacer-y), - lexicon-icon-height: map-get($label-lg, lexicon-icon-height), - lexicon-icon-width: map-get($label-lg, lexicon-icon-width), - sticker-size: map-get($label-lg, sticker-size), - close: map-get($label-lg, close) -), $form-control-label-size); +$form-control-label-size: map-deep-merge( + ( + border-width: 0.0625rem, + font-size: map-get($label-lg, font-size), + height: 1.5rem, + margin-bottom: 0.3125rem, + margin-right: 0.625rem, + margin-top: 0.3125rem, + padding-x: map-get($label-lg, padding-x), + padding-y: map-get($label-lg, padding-y), + text-transform: none, + item-spacer-y: map-get($label-lg, item-spacer-y), + lexicon-icon-height: map-get($label-lg, lexicon-icon-height), + lexicon-icon-width: map-get($label-lg, lexicon-icon-width), + sticker-size: map-get($label-lg, sticker-size), + close: map-get($label-lg, close), + ), + $form-control-label-size +); // Form Group -$form-group-item-label-spacer: ($input-label-font-size * $line-height-base) + $input-label-margin-bottom !default; +$form-group-item-label-spacer: ($input-label-font-size * $line-height-base) + + $input-label-margin-bottom !default; // Input Groups @@ -215,4 +255,4 @@ $input-group-addon-min-width-sm: 2rem !default; // 32px $input-group-secondary-addon-bg: $white !default; $input-group-secondary-addon-border-color: $secondary-l2 !default; -$input-group-secondary-addon-color: $secondary !default; \ No newline at end of file +$input-group-secondary-addon-color: $secondary !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_globals.scss b/packages/clay-css/src/scss/atlas/variables/_globals.scss index cca21465d8..0b163366fc 100644 --- a/packages/clay-css/src/scss/atlas/variables/_globals.scss +++ b/packages/clay-css/src/scss/atlas/variables/_globals.scss @@ -19,14 +19,14 @@ $grid-breakpoints: ( sm: 576px, md: 768px, lg: 992px, - xl: 1280px + xl: 1280px, ) !default; $container-max-widths: ( sm: 540px, md: 720px, lg: 960px, - xl: 1248px + xl: 1248px, ) !default; $grid-gutter-width: 24px !default; @@ -46,7 +46,9 @@ $font-weight-bolder: 900 !default; $line-height-base: 1.5 !default; -$font-family-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default; +$font-family-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, + 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Arial, + sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !default; $headings-font-weight: $font-weight-bold !default; @@ -59,90 +61,102 @@ $h6-font-size: 0.8125rem !default; // 13px // Theme Base Colors -$white: #FFF !default; -$gray-100: #F7F8F9 !default; -$gray-200: #F1F2F5 !default; -$gray-300: #E7E7ED !default; -$gray-400: #CDCED9 !default; -$gray-500: #A7A9BC !default; -$gray-600: #6B6C7E !default; +$white: #fff !default; +$gray-100: #f7f8f9 !default; +$gray-200: #f1f2f5 !default; +$gray-300: #e7e7ed !default; +$gray-400: #cdced9 !default; +$gray-500: #a7a9bc !default; +$gray-600: #6b6c7e !default; $gray-700: #495057 !default; -$gray-800: #393A4A !default; +$gray-800: #393a4a !default; $gray-900: #272833 !default; $black: #000 !default; -$blue: if($enable-lexicon-flat-colors, #4B9FFF, #0B5FFF) !default; -$indigo: if($enable-lexicon-flat-colors, #7785FF, #6610F2) !default; -$purple: if($enable-lexicon-flat-colors, #AF78FF, #6F42C1) !default; -$pink: if($enable-lexicon-flat-colors, #FF73C3, #E83E8C) !default; -$red: if($enable-lexicon-flat-colors, #FF5F5F, #DA1414) !default; -$orange: if($enable-lexicon-flat-colors, #FFB46E, #B95000) !default; -$yellow: if($enable-lexicon-flat-colors, #FFD76E, #FFC107) !default; -$green: if($enable-lexicon-flat-colors, #9BE169, #287D3D) !default; -$teal: if($enable-lexicon-flat-colors, #50D2A0, #20C997) !default; -$cyan: if($enable-lexicon-flat-colors, #5FC8FF, #17A2B8) !default; - -$primary: #0B5FFF !default; -$primary-d1: darken($primary, 5.10) !default; +$blue: if($enable-lexicon-flat-colors, #4b9fff, #0b5fff) !default; +$indigo: if($enable-lexicon-flat-colors, #7785ff, #6610f2) !default; +$purple: if($enable-lexicon-flat-colors, #af78ff, #6f42c1) !default; +$pink: if($enable-lexicon-flat-colors, #ff73c3, #e83e8c) !default; +$red: if($enable-lexicon-flat-colors, #ff5f5f, #da1414) !default; +$orange: if($enable-lexicon-flat-colors, #ffb46e, #b95000) !default; +$yellow: if($enable-lexicon-flat-colors, #ffd76e, #ffc107) !default; +$green: if($enable-lexicon-flat-colors, #9be169, #287d3d) !default; +$teal: if($enable-lexicon-flat-colors, #50d2a0, #20c997) !default; +$cyan: if($enable-lexicon-flat-colors, #5fc8ff, #17a2b8) !default; + +$primary: #0b5fff !default; +$primary-d1: darken($primary, 5.1) !default; $primary-d2: darken($primary, 10) !default; $primary-l1: lighten($primary, 22.94) !default; $primary-l2: lighten($primary, 32.94) !default; -$primary-l3: lighten($primary, 44.90) !default; +$primary-l3: lighten($primary, 44.9) !default; -$secondary: #6B6C7E !default; +$secondary: #6b6c7e !default; $secondary-d1: darken(saturate($secondary, 4.82), 20) !default; $secondary-d2: darken(saturate($secondary, 5.36), 23.92) !default; -$secondary-l1: lighten(saturate(adjust-hue($secondary, -3), 5.39), 23.92) !default; -$secondary-l2: lighten(saturate(adjust-hue($secondary, -2), 5.48), 37.06) !default; -$secondary-l3: lighten(saturate(adjust-hue($secondary, 3), 6.13), 46.08) !default; +$secondary-l1: lighten( + saturate(adjust-hue($secondary, -3), 5.39), + 23.92 +) !default; +$secondary-l2: lighten( + saturate(adjust-hue($secondary, -2), 5.48), + 37.06 +) !default; +$secondary-l3: lighten( + saturate(adjust-hue($secondary, 3), 6.13), + 46.08 +) !default; -$info: #2E5AAC !default; +$info: #2e5aac !default; $info-d1: darken($info, 5) !default; $info-d2: darken($info, 10) !default; $info-l1: lighten(saturate($info, 0.59), 28.04) !default; $info-l2: lighten(desaturate($info, 3.25), 52.94) !default; -$success: #287D3C !default; +$success: #287d3c !default; $success-d1: darken($success, 5) !default; $success-d2: darken($success, 10) !default; $success-l1: lighten(desaturate($success, 0.14), 24.95) !default; $success-l2: lighten(desaturate($success, 1.52), 62.94) !default; -$warning: #B95000 !default; -$warning-d1: darken($warning, 5.10) !default; +$warning: #b95000 !default; +$warning-d1: darken($warning, 5.1) !default; $warning-d2: darken($warning, 10) !default; -$warning-l1: lighten($warning, 24.90) !default; +$warning-l1: lighten($warning, 24.9) !default; $warning-l2: lighten($warning, 60) !default; -$danger: #DA1414 !default; +$danger: #da1414 !default; $danger-d1: darken($danger, 5) !default; $danger-d2: darken($danger, 10) !default; $danger-l1: lighten(desaturate($danger, 0.25), 28.04) !default; $danger-l2: lighten(saturate($danger, 5.04), 50) !default; -$light: #F1F2F5 !default; -$light-d1: darken($light, 5.10) !default; +$light: #f1f2f5 !default; +$light-d1: darken($light, 5.1) !default; $light-d2: darken($light, 10) !default; $light-l1: lighten(desaturate(adjust-hue($light, -15), 2.38), 1.96) !default; $light-l2: lighten(desaturate(adjust-hue($light, -225), 16.67), 4.71) !default; $dark: #272833 !default; -$dark-d1: darken($dark, 5.10) !default; +$dark-d1: darken($dark, 5.1) !default; $dark-d2: darken($dark, 10) !default; $dark-l1: lighten(saturate($dark, 0.18), 4.12) !default; $dark-l2: lighten(desaturate($dark, 0.36), 8.04) !default; $theme-colors: () !default; -$theme-colors: map-deep-merge(( - primary: $primary, - secondary: $secondary, - success: $success, - info: $info, - warning: $warning, - danger: $danger, - light: $light, - dark: $dark -), $theme-colors); +$theme-colors: map-deep-merge( + ( + primary: $primary, + secondary: $secondary, + success: $success, + info: $info, + warning: $warning, + danger: $danger, + light: $light, + dark: $dark, + ), + $theme-colors +); $yiq-text-dark: $gray-900 !default; $yiq-text-light: $white !default; @@ -154,30 +168,50 @@ $text-muted: $gray-500 !default; $link-color: $primary !default; $link-hover-color: $primary-d2 !default; -$component-active-bg: #0B5FFF !default; -$component-active-color: #FFF !default; +$component-active-bg: #0b5fff !default; +$component-active-color: #fff !default; $component-focus-box-shadow: 0 0 0 0.125rem $white#{','} 0 0 0 0.25rem $primary-l1 !default; -$component-focus-inset-box-shadow: inset 0 0 0 0.125rem $primary-l1#{','} inset 0 0 0 0.25rem $white !default; +$component-focus-inset-box-shadow: inset 0 0 0 0.125rem $primary-l1#{','} inset 0 + 0 0 0.25rem $white !default; // Spacing $spacer: 1rem !default; $spacers: () !default; -$spacers: map-deep-merge(( - 0: 0, - 1: ($spacer * .25), - 2: ($spacer * .5), - 3: ($spacer * 1), - 4: ($spacer * 1.5), - 5: ($spacer * 3), - 6: ($spacer * 4.5), - 7: ($spacer * 6), - 8: ($spacer * 7.5), -), $spacers); +$spacers: map-deep-merge( + ( + 0: 0, + 1: ( + $spacer * 0.25, + ), + 2: ( + $spacer * 0.5, + ), + 3: ( + $spacer * 1, + ), + 4: ( + $spacer * 1.5, + ), + 5: ( + $spacer * 3, + ), + 6: ( + $spacer * 4.5, + ), + 7: ( + $spacer * 6, + ), + 8: ( + $spacer * 7.5, + ), + ), + $spacers +); $border-radius: 0.25rem !default; // 4px $border-radius-lg: 0.375rem !default; // 6px $border-radius-sm: 0.1875rem !default; // 3px -$close-text-shadow: none !default; \ No newline at end of file +$close-text-shadow: none !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_icons.scss b/packages/clay-css/src/scss/atlas/variables/_icons.scss index 5c38010aa8..9279db5909 100644 --- a/packages/clay-css/src/scss/atlas/variables/_icons.scss +++ b/packages/clay-css/src/scss/atlas/variables/_icons.scss @@ -1,2 +1,2 @@ $order-arrow-down-active-color: $gray-500 !default; -$order-arrow-up-active-color: $order-arrow-down-active-color !default; \ No newline at end of file +$order-arrow-up-active-color: $order-arrow-down-active-color !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_labels.scss b/packages/clay-css/src/scss/atlas/variables/_labels.scss index 2c80069fc4..25bf94dfc6 100644 --- a/packages/clay-css/src/scss/atlas/variables/_labels.scss +++ b/packages/clay-css/src/scss/atlas/variables/_labels.scss @@ -19,37 +19,45 @@ $label-link-hover-text-decoration: underline !default; // Label Close $label-close: () !default; -$label-close: map-deep-merge(( - disabled-color: inherit -), $label-close); +$label-close: map-deep-merge( + ( + disabled-color: inherit, + ), + $label-close +); // Label Sizes $label-lg: () !default; -$label-lg: map-deep-merge(( - font-size: 0.75rem, - height: 1.5rem, - padding-x: 0.5rem, - padding-y: 0.3125rem, - item-spacer-y: -0.0625rem, - lexicon-icon-height: 1em, - lexicon-icon-width: 1em, - sticker-size: 0.875rem, - close: ( - font-size: 0.625rem, +$label-lg: map-deep-merge( + ( + font-size: 0.75rem, + height: 1.5rem, + padding-x: 0.5rem, + padding-y: 0.3125rem, + item-spacer-y: -0.0625rem, + lexicon-icon-height: 1em, + lexicon-icon-width: 1em, + sticker-size: 0.875rem, + close: ( + font-size: 0.625rem, + ), ), -), $label-lg); + $label-lg +); // Label Variants $label-base: () !default; -$label-base: map-deep-merge(( - outline: 0, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $btn-focus-box-shadow, - disabled-box-shadow: none, -), $label-base); - +$label-base: map-deep-merge( + ( + outline: 0, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $btn-focus-box-shadow, + disabled-box-shadow: none, + ), + $label-base +); // @deprecated as of v2.4.1 use the Sass map `$label-primary` instead @@ -68,12 +76,15 @@ $label-primary-border-color: $primary-l1 !default; $label-primary-hover-border-color: $label-primary-border-color !default; $label-primary: () !default; -$label-primary: map-deep-merge(( - border-color: $label-primary-border-color, - color: $label-primary-color, - hover-border-color: $label-primary-hover-border-color, - hover-color: $label-primary-hover-color, -), $label-primary); +$label-primary: map-deep-merge( + ( + border-color: $label-primary-border-color, + color: $label-primary-color, + hover-border-color: $label-primary-hover-border-color, + hover-color: $label-primary-hover-color, + ), + $label-primary +); // @deprecated as of v2.4.1 use the Sass map `$label-secondary` instead @@ -92,12 +103,15 @@ $label-secondary-border-color: $secondary-l2 !default; $label-secondary-hover-border-color: $label-secondary-border-color !default; $label-secondary: () !default; -$label-secondary: map-deep-merge(( - border-color: $label-secondary-border-color, - color: $label-secondary-color, - hover-border-color: $label-secondary-hover-border-color, - hover-color: $label-secondary-hover-color, -), $label-secondary); +$label-secondary: map-deep-merge( + ( + border-color: $label-secondary-border-color, + color: $label-secondary-color, + hover-border-color: $label-secondary-hover-border-color, + hover-color: $label-secondary-hover-color, + ), + $label-secondary +); // @deprecated as of v2.4.1 use the Sass map `$label-success` instead @@ -116,12 +130,15 @@ $label-success-border-color: $success-l1 !default; $label-success-hover-border-color: $label-success-border-color !default; $label-success: () !default; -$label-success: map-deep-merge(( - border-color: $label-success-border-color, - color: $label-success-color, - hover-border-color: $label-success-hover-border-color, - hover-color: $label-success-hover-color, -), $label-success); +$label-success: map-deep-merge( + ( + border-color: $label-success-border-color, + color: $label-success-color, + hover-border-color: $label-success-hover-border-color, + hover-color: $label-success-hover-color, + ), + $label-success +); // @deprecated as of v2.4.1 use the Sass map `$label-info` instead @@ -140,12 +157,15 @@ $label-info-border-color: $info-l1 !default; $label-info-hover-border-color: $label-info-border-color !default; $label-info: () !default; -$label-info: map-deep-merge(( - border-color: $label-info-border-color, - color: $label-info-color, - hover-border-color: $label-info-hover-border-color, - hover-color: $label-info-hover-color, -), $label-info); +$label-info: map-deep-merge( + ( + border-color: $label-info-border-color, + color: $label-info-color, + hover-border-color: $label-info-hover-border-color, + hover-color: $label-info-hover-color, + ), + $label-info +); // @deprecated as of v2.4.1 use the Sass map `$label-warning` instead @@ -164,12 +184,15 @@ $label-warning-border-color: $warning-l1 !default; $label-warning-hover-border-color: $label-warning-border-color !default; $label-warning: () !default; -$label-warning: map-deep-merge(( - border-color: $label-warning-border-color, - color: $label-warning-color, - hover-border-color: $label-warning-hover-border-color, - hover-color: $label-warning-hover-color, -), $label-warning); +$label-warning: map-deep-merge( + ( + border-color: $label-warning-border-color, + color: $label-warning-color, + hover-border-color: $label-warning-hover-border-color, + hover-color: $label-warning-hover-color, + ), + $label-warning +); // @deprecated as of v2.4.1 use the Sass map `$label-danger` instead @@ -188,12 +211,15 @@ $label-danger-border-color: $danger-l1 !default; $label-danger-hover-border-color: $label-danger-border-color !default; $label-danger: () !default; -$label-danger: map-deep-merge(( - border-color: $label-danger-border-color, - color: $label-danger-color, - hover-border-color: $label-danger-hover-border-color, - hover-color: $label-danger-hover-color, -), $label-danger); +$label-danger: map-deep-merge( + ( + border-color: $label-danger-border-color, + color: $label-danger-color, + hover-border-color: $label-danger-hover-border-color, + hover-color: $label-danger-hover-color, + ), + $label-danger +); // @deprecated as of v2.4.1 use the Sass map `$label-light` instead @@ -216,13 +242,16 @@ $label-light-border-color: $light !default; $label-light-hover-border-color: $label-light-border-color !default; $label-light: () !default; -$label-light: map-deep-merge(( - bg: $label-light-bg, - border-color: $label-light-border-color, - color: $label-light-color, - hover-border-color: $label-light-hover-border-color, - hover-color: $label-light-hover-color, -), $label-light); +$label-light: map-deep-merge( + ( + bg: $label-light-bg, + border-color: $label-light-border-color, + color: $label-light-color, + hover-border-color: $label-light-hover-border-color, + hover-color: $label-light-hover-color, + ), + $label-light +); // @deprecated as of v2.4.1 use the Sass map `$label-dark` instead @@ -241,139 +270,166 @@ $label-dark-border-color: $dark !default; $label-dark-hover-border-color: $label-dark-border-color !default; $label-dark: () !default; -$label-dark: map-deep-merge(( - border-color: $label-dark-border-color, - color: $label-dark-color, - hover-border-color: $label-dark-hover-border-color, - hover-color: $label-dark-hover-color, -), $label-dark); +$label-dark: map-deep-merge( + ( + border-color: $label-dark-border-color, + color: $label-dark-color, + hover-border-color: $label-dark-hover-border-color, + hover-color: $label-dark-hover-color, + ), + $label-dark +); // Label Inverse Variants $label-inverse-primary: () !default; -$label-inverse-primary: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-primary: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-primary); + $label-inverse-primary +); $label-inverse-secondary: () !default; -$label-inverse-secondary: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-secondary: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-secondary); + $label-inverse-secondary +); $label-inverse-success: () !default; -$label-inverse-success: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-success: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-success); + $label-inverse-success +); $label-inverse-info: () !default; -$label-inverse-info: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-info: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-info); + $label-inverse-info +); $label-inverse-warning: () !default; -$label-inverse-warning: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-warning: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-warning); + $label-inverse-warning +); $label-inverse-danger: () !default; -$label-inverse-danger: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-danger: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-danger); + $label-inverse-danger +); $label-inverse-light: () !default; -$label-inverse-light: map-deep-merge(( - color: $dark, - hover: ( - background-color: null, - border-color: null, +$label-inverse-light: map-deep-merge( + ( color: $dark, + hover: ( + background-color: null, + border-color: null, + color: $dark, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-light); + $label-inverse-light +); $label-inverse-dark: () !default; -$label-inverse-dark: map-deep-merge(( - color: $white, - hover: ( - background-color: null, - border-color: null, +$label-inverse-dark: map-deep-merge( + ( color: $white, + hover: ( + background-color: null, + border-color: null, + color: $white, + ), + link-hover: ( + color: null, + ), + close: ( + hover-color: null, + ), ), - link-hover: ( - color: null, - ), - close: ( - hover-color: null, - ), -), $label-inverse-dark); + $label-inverse-dark +); diff --git a/packages/clay-css/src/scss/atlas/variables/_links.scss b/packages/clay-css/src/scss/atlas/variables/_links.scss index 319c1b301d..50c59d405e 100644 --- a/packages/clay-css/src/scss/atlas/variables/_links.scss +++ b/packages/clay-css/src/scss/atlas/variables/_links.scss @@ -1,115 +1,146 @@ $component-link: () !default; -$component-link: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - focus-color: darken($gray-600, 15%), - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $component-link); +$component-link: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + focus-color: darken($gray-600, 15%), + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $component-link +); $link-primary: () !default; -$link-primary: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - focus-color: darken($primary, 15%), - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $link-primary); +$link-primary: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + focus-color: darken($primary, 15%), + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $link-primary +); $link-secondary: () !default; -$link-secondary: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $link-secondary); +$link-secondary: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $link-secondary +); // Component Title $component-title: () !default; -$component-title: map-deep-merge(( - font-size: 1rem, - line-height: 1.25, - margin-bottom: calc((#{$dropdown-action-toggle-size} - (1em * 1.25)) / 2), - margin-top: calc((#{$dropdown-action-toggle-size} - (1em * 1.25)) / 2) -), $component-title); +$component-title: map-deep-merge( + ( + font-size: 1rem, + line-height: 1.25, + margin-bottom: + calc((#{$dropdown-action-toggle-size} - (1em * 1.25)) / 2), + margin-top: calc((#{$dropdown-action-toggle-size} - (1em * 1.25)) / 2), + ), + $component-title +); $component-title-link: () !default; -$component-title-link: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - focus-color: darken($gray-900, 15%), - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $component-title-link); +$component-title-link: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + focus-color: darken($gray-900, 15%), + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $component-title-link +); // Component Subtitle $component-subtitle: () !default; -$component-subtitle: map-deep-merge(( - font-weight: $font-weight-semi-bold, - line-height: 1.45 -), $component-subtitle); +$component-subtitle: map-deep-merge( + ( + font-weight: $font-weight-semi-bold, + line-height: 1.45, + ), + $component-subtitle +); $component-subtitle-link: () !default; -$component-subtitle-link: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $component-subtitle-link); +$component-subtitle-link: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $component-subtitle-link +); // Component Action $component-action: () !default; -$component-action: map-deep-merge(( - font-size: 1rem, - hover-bg: rgba($gray-900, 0.03), - hover-color: $gray-900, - focus-bg: rgba($gray-900, 0.03), - focus-box-shadow: map-get($btn-secondary, focus-box-shadow), - focus-color: $gray-900, - focus-outline: 0, - active-bg: rgba($gray-900, 0.06), - active-color: $gray-900, - btn-focus-box-shadow: map-get($btn-secondary, focus-box-shadow), - disabled-bg: transparent, - disabled-box-shadow: none, -), $component-action); +$component-action: map-deep-merge( + ( + font-size: 1rem, + hover-bg: rgba($gray-900, 0.03), + hover-color: $gray-900, + focus-bg: rgba($gray-900, 0.03), + focus-box-shadow: map-get($btn-secondary, focus-box-shadow), + focus-color: $gray-900, + focus-outline: 0, + active-bg: rgba($gray-900, 0.06), + active-color: $gray-900, + btn-focus-box-shadow: map-get($btn-secondary, focus-box-shadow), + disabled-bg: transparent, + disabled-box-shadow: none, + ), + $component-action +); // Link Outline $link-outline-primary: () !default; -$link-outline-primary: map-deep-merge(( - hover-bg: $primary-l3, - hover-color: $primary, - focus-bg: $primary-l3, - focus-box-shadow: map-get($btn-outline-primary, focus-box-shadow), - focus-color: $primary, - focus-outline: 0, - btn-focus-box-shadow: map-get($btn-outline-primary, focus-box-shadow), - btn-focus-outline: 0, - active-bg: lighten(desaturate($primary, 42.05), 41.76), - active-color: $primary, - disabled-box-shadow: none, -), $link-outline-primary); +$link-outline-primary: map-deep-merge( + ( + hover-bg: $primary-l3, + hover-color: $primary, + focus-bg: $primary-l3, + focus-box-shadow: map-get($btn-outline-primary, focus-box-shadow), + focus-color: $primary, + focus-outline: 0, + btn-focus-box-shadow: map-get($btn-outline-primary, focus-box-shadow), + btn-focus-outline: 0, + active-bg: lighten(desaturate($primary, 42.05), 41.76), + active-color: $primary, + disabled-box-shadow: none, + ), + $link-outline-primary +); $link-outline-secondary: () !default; -$link-outline-secondary: map-deep-merge(( - border-color: $secondary-l2, - hover-bg: rgba($gray-900, 0.03), - hover-color: $gray-900, - focus-bg: rgba($gray-900, 0.03), - focus-box-shadow: map-get($btn-outline-secondary, focus-box-shadow), - focus-color: $gray-900, - focus-outline: 0, - btn-focus-box-shadow: map-get($btn-outline-secondary, focus-box-shadow), - btn-focus-outline: 0, - active-bg: rgba($gray-900, 0.06), - active-color: $gray-900, - disabled-box-shadow: none, -), $link-outline-secondary); \ No newline at end of file +$link-outline-secondary: map-deep-merge( + ( + border-color: $secondary-l2, + hover-bg: rgba($gray-900, 0.03), + hover-color: $gray-900, + focus-bg: rgba($gray-900, 0.03), + focus-box-shadow: map-get($btn-outline-secondary, focus-box-shadow), + focus-color: $gray-900, + focus-outline: 0, + btn-focus-box-shadow: map-get($btn-outline-secondary, focus-box-shadow), + btn-focus-outline: 0, + active-bg: rgba($gray-900, 0.06), + active-color: $gray-900, + disabled-box-shadow: none, + ), + $link-outline-secondary +); diff --git a/packages/clay-css/src/scss/atlas/variables/_list-group.scss b/packages/clay-css/src/scss/atlas/variables/_list-group.scss index a3ffe4a504..0dbb483eba 100644 --- a/packages/clay-css/src/scss/atlas/variables/_list-group.scss +++ b/packages/clay-css/src/scss/atlas/variables/_list-group.scss @@ -1,6 +1,6 @@ $list-group-border-color: $gray-300 !default; $list-group-color: $gray-600 !default; -$list-group-hover-bg: lighten($component-active-bg, 44.90) !default; +$list-group-hover-bg: lighten($component-active-bg, 44.9) !default; $list-group-active-bg: $list-group-hover-bg !default; $list-group-active-border-color: $list-group-border-color !default; $list-group-active-color: $gray-900 !default; @@ -15,79 +15,103 @@ $list-group-header-bg: $gray-100 !default; $list-group-header-padding-y: 0.5rem !default; // 8px $list-group-header-title: () !default; -$list-group-header-title: map-deep-merge(( - color: $gray-600, - font-size: 0.75rem, - text-transform: uppercase -), $list-group-header-title); +$list-group-header-title: map-deep-merge( + ( + color: $gray-600, + font-size: 0.75rem, + text-transform: uppercase, + ), + $list-group-header-title +); // List Group Title $list-group-title-link: () !default; -$list-group-title-link: map-deep-merge(( - border-radius: 1px, - display: inline-block, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $list-group-title-link); +$list-group-title-link: map-deep-merge( + ( + border-radius: 1px, + display: inline-block, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $list-group-title-link +); $list-group-title: () !default; -$list-group-title: map-deep-merge(( - color: $gray-900, - font-size: 0.875rem, - line-height: 1.45 -), $list-group-title); +$list-group-title: map-deep-merge( + ( + color: $gray-900, + font-size: 0.875rem, + line-height: 1.45, + ), + $list-group-title +); // List Group Subtitle $list-group-subtitle-link: () !default; -$list-group-subtitle-link: map-deep-merge(( - border-radius: 1px, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $list-group-subtitle-link); +$list-group-subtitle-link: map-deep-merge( + ( + border-radius: 1px, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $list-group-subtitle-link +); // List Group Text $list-group-text-link: () !default; -$list-group-text-link: map-deep-merge(( - border-radius: 1px, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $list-group-text-link); +$list-group-text-link: map-deep-merge( + ( + border-radius: 1px, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $list-group-text-link +); $list-group-text: () !default; -$list-group-text: map-deep-merge(( - line-height: 1.45 -), $list-group-text); +$list-group-text: map-deep-merge( + ( + line-height: 1.45, + ), + $list-group-text +); // List Group Subtext $list-group-subtext-link: () !default; -$list-group-subtext-link: map-deep-merge(( - border-radius: 1px, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $list-group-subtext-link); +$list-group-subtext-link: map-deep-merge( + ( + border-radius: 1px, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $list-group-subtext-link +); $list-group-subtext: () !default; -$list-group-subtext: map-deep-merge(( - line-height: 1.45 -), $list-group-subtext); +$list-group-subtext: map-deep-merge( + ( + line-height: 1.45, + ), + $list-group-subtext +); $list-group-subtext-active-color: $gray-600 !default; @@ -100,7 +124,10 @@ $list-group-link-active-color: $list-group-link-color !default; // List Group Notification $list-group-notification-item-primary: () !default; -$list-group-notification-item-primary: map-deep-merge(( - border-left-color: lighten($component-active-bg, 22.94), - active-border-left-color: lighten($component-active-bg, 22.94) -), $list-group-notification-item-primary); \ No newline at end of file +$list-group-notification-item-primary: map-deep-merge( + ( + border-left-color: lighten($component-active-bg, 22.94), + active-border-left-color: lighten($component-active-bg, 22.94), + ), + $list-group-notification-item-primary +); diff --git a/packages/clay-css/src/scss/atlas/variables/_loaders.scss b/packages/clay-css/src/scss/atlas/variables/_loaders.scss index d83fa4036b..b483ecaa62 100644 --- a/packages/clay-css/src/scss/atlas/variables/_loaders.scss +++ b/packages/clay-css/src/scss/atlas/variables/_loaders.scss @@ -1,4 +1,7 @@ $loading-animation: () !default; -$loading-animation: map-deep-merge(( - color: $gray-600 -), $loading-animation); \ No newline at end of file +$loading-animation: map-deep-merge( + ( + color: $gray-600, + ), + $loading-animation +); diff --git a/packages/clay-css/src/scss/atlas/variables/_management-bar.scss b/packages/clay-css/src/scss/atlas/variables/_management-bar.scss index db2bf31bc5..eebbe44889 100644 --- a/packages/clay-css/src/scss/atlas/variables/_management-bar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_management-bar.scss @@ -1,32 +1,41 @@ $management-bar-base: () !default; -$management-bar-base: map-deep-merge(( - link-border-radius: $border-radius, - link-outline: 0, - link-transition: box-shadow 0.15s ease-in-out, - link-focus-box-shadow: $btn-focus-box-shadow, - link-disabled-box-shadow: none, -), $management-bar-base); +$management-bar-base: map-deep-merge( + ( + link-border-radius: $border-radius, + link-outline: 0, + link-transition: box-shadow 0.15s ease-in-out, + link-focus-box-shadow: $btn-focus-box-shadow, + link-disabled-box-shadow: none, + ), + $management-bar-base +); $management-bar-light: () !default; -$management-bar-light: map-deep-merge(( - bg: $white, - link-font-weight: $font-weight-semi-bold, - link-hover-color: $gray-900, - link-hover-bg: rgba($gray-900, 0.03), - link-focus-color: $gray-900, - link-focus-bg: rgba($gray-900, 0.03), - link-active-bg: rgba($gray-900, 0.06), - link-disabled-bg: transparent, -), $management-bar-light); +$management-bar-light: map-deep-merge( + ( + bg: $white, + link-font-weight: $font-weight-semi-bold, + link-hover-color: $gray-900, + link-hover-bg: rgba($gray-900, 0.03), + link-focus-color: $gray-900, + link-focus-bg: rgba($gray-900, 0.03), + link-active-bg: rgba($gray-900, 0.06), + link-disabled-bg: transparent, + ), + $management-bar-light +); $management-bar-primary: () !default; -$management-bar-primary: map-deep-merge(( - link-border-radius: $border-radius, - link-font-weight: $font-weight-semi-bold, - link-hover-color: $gray-900, - link-hover-bg: rgba($gray-900, 0.03), - link-focus-color: $gray-900, - link-focus-bg: rgba($gray-900, 0.03), - link-active-bg: rgba($gray-900, 0.06), - link-disabled-bg: transparent, -), $management-bar-primary); \ No newline at end of file +$management-bar-primary: map-deep-merge( + ( + link-border-radius: $border-radius, + link-font-weight: $font-weight-semi-bold, + link-hover-color: $gray-900, + link-hover-bg: rgba($gray-900, 0.03), + link-focus-color: $gray-900, + link-focus-bg: rgba($gray-900, 0.03), + link-active-bg: rgba($gray-900, 0.06), + link-disabled-bg: transparent, + ), + $management-bar-primary +); diff --git a/packages/clay-css/src/scss/atlas/variables/_menubar.scss b/packages/clay-css/src/scss/atlas/variables/_menubar.scss index fb8b73b9bd..2e3cba5bf9 100644 --- a/packages/clay-css/src/scss/atlas/variables/_menubar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_menubar.scss @@ -1,67 +1,75 @@ // Menubar Vertical MD $menubar-vertical-transparent-md: () !default; -$menubar-vertical-transparent-md: map-deep-merge(( - bg-mobile: $white, - link-border-radius: 0.375rem, - link-border-radius-mobile: 0, - link-hover-bg: rgba($gray-900, 0.03), - link-hover-color: $gray-900, - link-active-font-weight: $font-weight-semi-bold, - link: ( - transition: $btn-transition, - focus-bg: rgba($gray-900, 0.03), - focus-color: $gray-900, - focus-box-shadow: map-get($dropdown-item-base, focus-box-shadow), - focus-outline: map-get($dropdown-item-base, focus-outline), - disabled-box-shadow: none, +$menubar-vertical-transparent-md: map-deep-merge( + ( + bg-mobile: $white, + link-border-radius: 0.375rem, + link-border-radius-mobile: 0, + link-hover-bg: rgba($gray-900, 0.03), + link-hover-color: $gray-900, + link-active-font-weight: $font-weight-semi-bold, + link: ( + transition: $btn-transition, + focus-bg: rgba($gray-900, 0.03), + focus-color: $gray-900, + focus-box-shadow: map-get($dropdown-item-base, focus-box-shadow), + focus-outline: map-get($dropdown-item-base, focus-outline), + disabled-box-shadow: none, + ), + link-mobile: ( + transition: none, + focus-bg: $dropdown-link-hover-bg, + focus-border-radius: + map-get($dropdown-item-base, focus-border-radius), + ), + toggler-font-size-mobile: 0.875rem, + toggler-font-weight-mobile: $font-weight-semi-bold, + toggler-mobile: ( + border-radius: 0.375rem, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + disabled-box-shadow: none, + ), ), - link-mobile: ( - transition: none, - focus-bg: $dropdown-link-hover-bg, - focus-border-radius: map-get($dropdown-item-base, focus-border-radius), - ), - toggler-font-size-mobile: 0.875rem, - toggler-font-weight-mobile: $font-weight-semi-bold, - toggler-mobile: ( - border-radius: 0.375rem, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, - disabled-box-shadow: none, - ), -), $menubar-vertical-transparent-md); + $menubar-vertical-transparent-md +); // Menubar Vertical LG $menubar-vertical-transparent-lg: () !default; -$menubar-vertical-transparent-lg: map-deep-merge(( - bg-mobile: $white, - link-border-radius: 0.375rem, - link-border-radius-mobile: 0, - link-hover-bg: rgba($gray-900, 0.03), - link-hover-color: $gray-900, - link-active-font-weight: $font-weight-semi-bold, - link: ( - transition: $btn-transition, - focus-bg: rgba($gray-900, 0.03), - focus-color: $gray-900, - focus-box-shadow: map-get($dropdown-item-base, focus-box-shadow), - focus-outline: map-get($dropdown-item-base, focus-outline), - disabled-box-shadow: none, - ), - link-mobile: ( - transition: none, - focus-bg: $dropdown-link-hover-bg, - focus-border-radius: map-get($dropdown-item-base, focus-border-radius), - ), - toggler-font-size-mobile: 0.875rem, - toggler-font-weight-mobile: $font-weight-semi-bold, - toggler-mobile: ( - border-radius: 0.375rem, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, - disabled-box-shadow: none, +$menubar-vertical-transparent-lg: map-deep-merge( + ( + bg-mobile: $white, + link-border-radius: 0.375rem, + link-border-radius-mobile: 0, + link-hover-bg: rgba($gray-900, 0.03), + link-hover-color: $gray-900, + link-active-font-weight: $font-weight-semi-bold, + link: ( + transition: $btn-transition, + focus-bg: rgba($gray-900, 0.03), + focus-color: $gray-900, + focus-box-shadow: map-get($dropdown-item-base, focus-box-shadow), + focus-outline: map-get($dropdown-item-base, focus-outline), + disabled-box-shadow: none, + ), + link-mobile: ( + transition: none, + focus-bg: $dropdown-link-hover-bg, + focus-border-radius: + map-get($dropdown-item-base, focus-border-radius), + ), + toggler-font-size-mobile: 0.875rem, + toggler-font-weight-mobile: $font-weight-semi-bold, + toggler-mobile: ( + border-radius: 0.375rem, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + disabled-box-shadow: none, + ), ), -), $menubar-vertical-transparent-lg); \ No newline at end of file + $menubar-vertical-transparent-lg +); diff --git a/packages/clay-css/src/scss/atlas/variables/_modals.scss b/packages/clay-css/src/scss/atlas/variables/_modals.scss index 0755f033d4..181603ac7b 100644 --- a/packages/clay-css/src/scss/atlas/variables/_modals.scss +++ b/packages/clay-css/src/scss/atlas/variables/_modals.scss @@ -20,59 +20,71 @@ $modal-title-font-weight: $font-weight-bold !default; // Modal Success $modal-success: () !default; -$modal-success: map-deep-merge(( - header-bg: $success-l2, - header-border-color: $success-l1, - header-color: $success, - header-close: ( - color: $success, - hover-color: inherit, - focus-color: inherit, - disabled-color: inherit - ) -), $modal-success); +$modal-success: map-deep-merge( + ( + header-bg: $success-l2, + header-border-color: $success-l1, + header-color: $success, + header-close: ( + color: $success, + hover-color: inherit, + focus-color: inherit, + disabled-color: inherit, + ), + ), + $modal-success +); // Modal Info $modal-info: () !default; -$modal-info: map-deep-merge(( - header-bg: $info-l2, - header-border-color: $info-l1, - header-color: $info, - header-close: ( - color: $info, - hover-color: inherit, - focus-color: inherit, - disabled-color: inherit - ) -), $modal-info); +$modal-info: map-deep-merge( + ( + header-bg: $info-l2, + header-border-color: $info-l1, + header-color: $info, + header-close: ( + color: $info, + hover-color: inherit, + focus-color: inherit, + disabled-color: inherit, + ), + ), + $modal-info +); // Modal Warning $modal-warning: () !default; -$modal-warning: map-deep-merge(( - header-bg: $warning-l2, - header-border-color: $warning-l1, - header-color: $warning, - header-close: ( - color: $warning, - hover-color: inherit, - focus-color: inherit, - disabled-color: inherit - ) -), $modal-warning); +$modal-warning: map-deep-merge( + ( + header-bg: $warning-l2, + header-border-color: $warning-l1, + header-color: $warning, + header-close: ( + color: $warning, + hover-color: inherit, + focus-color: inherit, + disabled-color: inherit, + ), + ), + $modal-warning +); // Modal Danger $modal-danger: () !default; -$modal-danger: map-deep-merge(( - header-bg: $danger-l2, - header-border-color: $danger-l1, - header-color: $danger, - header-close: ( - color: $danger, - hover-color: inherit, - focus-color: inherit, - disabled-color: inherit - ) -), $modal-danger); \ No newline at end of file +$modal-danger: map-deep-merge( + ( + header-bg: $danger-l2, + header-border-color: $danger-l1, + header-color: $danger, + header-close: ( + color: $danger, + hover-color: inherit, + focus-color: inherit, + disabled-color: inherit, + ), + ), + $modal-danger +); diff --git a/packages/clay-css/src/scss/atlas/variables/_multi-step-nav.scss b/packages/clay-css/src/scss/atlas/variables/_multi-step-nav.scss index 6824fde339..135bf8b6c7 100644 --- a/packages/clay-css/src/scss/atlas/variables/_multi-step-nav.scss +++ b/packages/clay-css/src/scss/atlas/variables/_multi-step-nav.scss @@ -15,4 +15,4 @@ $multi-step-title-font-size: 0.875rem !default; $multi-step-title-font-weight: $font-weight-semi-bold !default; $multi-step-icon-disabled-bg: $multi-step-icon-bg !default; -$multi-step-icon-disabled-color: $gray-500 !default; \ No newline at end of file +$multi-step-icon-disabled-color: $gray-500 !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_navbar.scss b/packages/clay-css/src/scss/atlas/variables/_navbar.scss index 3b7500eb6b..98637f329d 100644 --- a/packages/clay-css/src/scss/atlas/variables/_navbar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_navbar.scss @@ -14,4 +14,4 @@ $navbar-light-disabled-color: $nav-link-disabled-color !default; $navbar-dark-color: $white !default; $navbar-dark-hover-color: $navbar-dark-color !default; $navbar-dark-active-color: $navbar-dark-color !default; -$navbar-dark-disabled-color: $nav-link-disabled-color !default; \ No newline at end of file +$navbar-dark-disabled-color: $nav-link-disabled-color !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_navigation-bar.scss b/packages/clay-css/src/scss/atlas/variables/_navigation-bar.scss index 1a0ed2e39c..180f28b622 100644 --- a/packages/clay-css/src/scss/atlas/variables/_navigation-bar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_navigation-bar.scss @@ -1,41 +1,52 @@ $navigation-bar-size: () !default; -$navigation-bar-size: map-deep-merge(( - border-bottom-width: 0, - collapse-dropdown-item-padding-y-mobile: 0.8125rem, - link-height-mobile: 2rem, - active-border-offset-bottom: -0.5rem, - toggler-link-height: 2rem, - toggler-link-margin-y: 0.5rem, - toggler-link-padding-y: 0, -), $navigation-bar-size); +$navigation-bar-size: map-deep-merge( + ( + border-bottom-width: 0, + collapse-dropdown-item-padding-y-mobile: 0.8125rem, + link-height-mobile: 2rem, + active-border-offset-bottom: -0.5rem, + toggler-link-height: 2rem, + toggler-link-margin-y: 0.5rem, + toggler-link-padding-y: 0, + ), + $navigation-bar-size +); $navigation-bar-base: () !default; -$navigation-bar-base: map-deep-merge(( - link-border-radius: 0, - link-outline: 0, - link-focus-box-shadow: $btn-focus-box-shadow, - link-disabled-box-shadow: none, -), $navigation-bar-base); +$navigation-bar-base: map-deep-merge( + ( + link-border-radius: 0, + link-outline: 0, + link-focus-box-shadow: $btn-focus-box-shadow, + link-disabled-box-shadow: none, + ), + $navigation-bar-base +); $navigation-bar-light: () !default; -$navigation-bar-light: map-deep-merge(( - bg: $white, - link-font-weight: $font-weight-semi-bold, - link-hover-color: $gray-900, - link-focus-color: $gray-900, - link-disabled-color: $gray-600, - link-disabled-opacity: $btn-disabled-opacity, -), $navigation-bar-light); - +$navigation-bar-light: map-deep-merge( + ( + bg: $white, + link-font-weight: $font-weight-semi-bold, + link-hover-color: $gray-900, + link-focus-color: $gray-900, + link-disabled-color: $gray-600, + link-disabled-opacity: $btn-disabled-opacity, + ), + $navigation-bar-light +); $navigation-bar-secondary: () !default; -$navigation-bar-secondary: map-deep-merge(( - bg: $secondary-d1, - link-color: $secondary-l2, - link-font-weight: $font-weight-semi-bold, - link-hover-color: $white, - link-focus-color: $white, - link-active-color: $white, - link-disabled-color: $gray-400, - link-disabled-opacity: $btn-disabled-opacity, -), $navigation-bar-secondary); \ No newline at end of file +$navigation-bar-secondary: map-deep-merge( + ( + bg: $secondary-d1, + link-color: $secondary-l2, + link-font-weight: $font-weight-semi-bold, + link-hover-color: $white, + link-focus-color: $white, + link-active-color: $white, + link-disabled-color: $gray-400, + link-disabled-opacity: $btn-disabled-opacity, + ), + $navigation-bar-secondary +); diff --git a/packages/clay-css/src/scss/atlas/variables/_navs.scss b/packages/clay-css/src/scss/atlas/variables/_navs.scss index 282a970e72..67ba590cf9 100644 --- a/packages/clay-css/src/scss/atlas/variables/_navs.scss +++ b/packages/clay-css/src/scss/atlas/variables/_navs.scss @@ -6,14 +6,20 @@ $nav-link-padding-x: 1rem !default; // 16px $nav-link-padding-y: 0.625rem !default; // 10px $nav-link: () !default; -$nav-link: map-deep-merge(( - disabled-box-shadow: none, -), $nav-link); +$nav-link: map-deep-merge( + ( + disabled-box-shadow: none, + ), + $nav-link +); $nav-link-btn-unstyled: () !default; -$nav-link-btn-unstyled: map-deep-merge(( - focus-box-shadow: 0 0 0 0.125rem $white#{','} 0 0 0 0.25rem $primary-l1, -), $nav-link-btn-unstyled); +$nav-link-btn-unstyled: map-deep-merge( + ( + focus-box-shadow: 0 0 0 0.125rem $white#{','} 0 0 0 0.25rem $primary-l1, + ), + $nav-link-btn-unstyled +); // Nav Nested @@ -36,19 +42,23 @@ $nav-tabs-link-active-border-color: transparent transparent $body-bg !default; $nav-tabs-link-active-color: $gray-900 !default; $nav-tabs-link: () !default; -$nav-tabs-link: map-deep-merge(( - font-weight: $font-weight-semi-bold, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, - disabled-box-shadow: none, -), $nav-tabs-link); +$nav-tabs-link: map-deep-merge( + ( + font-weight: $font-weight-semi-bold, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + disabled-box-shadow: none, + ), + $nav-tabs-link +); // Nav Tabs Link Show $nav-tabs-link-show-color: $nav-tabs-link-active-color !default; $nav-tabs-link-show-bg: transparent !default; -$nav-tabs-link-show-border-color: transparent transparent $nav-tabs-border-color transparent !default; +$nav-tabs-link-show-border-color: transparent transparent $nav-tabs-border-color + transparent !default; // Nav Tabs Tab Pane @@ -65,17 +75,20 @@ $nav-underline-link-active-color: $gray-900 !default; $nav-underline-link-disabled-color: $nav-link-disabled-color !default; $nav-underline-link: () !default; -$nav-underline-link: map-deep-merge(( - border-radius: 1px, - font-weight: $font-weight-semi-bold, - line-height: 1, - padding-bottom: 0.5625rem, - padding-top: 0.5625rem, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, - disabled-box-shadow: none, -), $nav-underline-link); +$nav-underline-link: map-deep-merge( + ( + border-radius: 1px, + font-weight: $font-weight-semi-bold, + line-height: 1, + padding-bottom: 0.5625rem, + padding-top: 0.5625rem, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + disabled-box-shadow: none, + ), + $nav-underline-link +); // Nav Underline Link Highlight @@ -83,4 +96,4 @@ $nav-underline-link-highlight-left: 0 !default; $nav-underline-link-highlight-right: 0 !default; $nav-underline-link-active-highlight: $primary-l1 !default; -$nav-underline-link-active-highlight-height: 0.125rem !default; // 2px \ No newline at end of file +$nav-underline-link-active-highlight-height: 0.125rem !default; // 2px diff --git a/packages/clay-css/src/scss/atlas/variables/_pagination.scss b/packages/clay-css/src/scss/atlas/variables/_pagination.scss index de63693f0d..523fe557e4 100644 --- a/packages/clay-css/src/scss/atlas/variables/_pagination.scss +++ b/packages/clay-css/src/scss/atlas/variables/_pagination.scss @@ -50,11 +50,14 @@ $pagination-disabled-color: $gray-600 !default; $pagination-disabled-opacity: 0.5 !default; $pagination-link-focus: () !default; -$pagination-link-focus: map-deep-merge(( - bg: $pagination-hover-bg, - border-color: $pagination-hover-border-color, - color: $pagination-hover-color, -), $pagination-link-focus); +$pagination-link-focus: map-deep-merge( + ( + bg: $pagination-hover-bg, + border-color: $pagination-hover-border-color, + color: $pagination-hover-color, + ), + $pagination-link-focus +); // Pagination Dropdown Menu @@ -63,11 +66,14 @@ $pagination-dropdown-menu-spacer-y: 0.625rem !default; // 10px // Pagination Items Per Page Link $pagination-items-per-page-link-focus: () !default; -$pagination-items-per-page-link-focus: map-deep-merge(( - bg: map-get($pagination-link-focus, bg), - border-color: map-get($pagination-link-focus, border-color), - color: map-get($pagination-link-focus, color), -), $pagination-items-per-page-link-focus); +$pagination-items-per-page-link-focus: map-deep-merge( + ( + bg: map-get($pagination-link-focus, bg), + border-color: map-get($pagination-link-focus, border-color), + color: map-get($pagination-link-focus, color), + ), + $pagination-items-per-page-link-focus +); // Pagination Results @@ -84,4 +90,4 @@ $pagination-link-border-radius-lg: 0.3125rem !default; // 5px $pagination-font-size-lg: 1.125rem !default; // 18px $pagination-item-height-lg: 2.75rem !default; //44px $pagination-padding-x-lg: 1rem !default; // 16px -$pagination-padding-y-lg: 0 !default; \ No newline at end of file +$pagination-padding-y-lg: 0 !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_panels.scss b/packages/clay-css/src/scss/atlas/variables/_panels.scss index dea409299b..b0ac084ba2 100644 --- a/packages/clay-css/src/scss/atlas/variables/_panels.scss +++ b/packages/clay-css/src/scss/atlas/variables/_panels.scss @@ -7,17 +7,23 @@ $panel-header-link-hover-text-decoration: none !default; $panel-header-collapse-icon-font-size: 0.75rem !default; // 12px $panel-header-link: () !default; -$panel-header-link: map-deep-merge(( - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $panel-header-link); +$panel-header-link: map-deep-merge( + ( + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $panel-header-link +); $panel-header-collapsed-link: () !default; -$panel-header-collapsed-link: map-deep-merge(( - border-color: null, - transition: null, -), $panel-header-collapsed-link); +$panel-header-collapsed-link: map-deep-merge( + ( + border-color: null, + transition: null, + ), + $panel-header-collapsed-link +); // Panel Footer @@ -36,26 +42,35 @@ $panel-title-small-margin-left: 0.375rem !default; // 6px // Panel Group Sm $panel-group-sm: () !default; -$panel-group-sm: map-deep-merge(( - title-font-size: 0.75rem, -), $panel-group-sm); +$panel-group-sm: map-deep-merge( + ( + title-font-size: 0.75rem, + ), + $panel-group-sm +); // Panel Variants $panel-secondary: () !default; -$panel-secondary: map-deep-merge(( - border-color: $gray-300, - color: $gray-600, - header-bg: null, - header-border-color: $gray-300, - footer-bg: null, - footer-border-color: $gray-300, -), $panel-secondary); +$panel-secondary: map-deep-merge( + ( + border-color: $gray-300, + color: $gray-600, + header-bg: null, + header-border-color: $gray-300, + footer-bg: null, + footer-border-color: $gray-300, + ), + $panel-secondary +); // Panel Unstyled $panel-unstyled-header-link: () !default; -$panel-unstyled-header-link: map-deep-merge(( - border-radius: 1px, - focus-box-shadow: 0 0 0 0.25rem $body-bg#{','} 0 0 0 0.375rem $primary-l1, -), $panel-unstyled-header-link); \ No newline at end of file +$panel-unstyled-header-link: map-deep-merge( + ( + border-radius: 1px, + focus-box-shadow: 0 0 0 0.25rem $body-bg#{','} 0 0 0 0.375rem $primary-l1, + ), + $panel-unstyled-header-link +); diff --git a/packages/clay-css/src/scss/atlas/variables/_popovers.scss b/packages/clay-css/src/scss/atlas/variables/_popovers.scss index 28eea227fa..9c858ffd0d 100644 --- a/packages/clay-css/src/scss/atlas/variables/_popovers.scss +++ b/packages/clay-css/src/scss/atlas/variables/_popovers.scss @@ -20,4 +20,4 @@ $popover-header-padding-y: 0.75rem !default; // 12px $popover-body-color: $gray-600 !default; $popover-body-padding-x: 1rem !default; // 16px -$popover-body-padding-y: 0.75rem !default; // 12px \ No newline at end of file +$popover-body-padding-y: 0.75rem !default; // 12px diff --git a/packages/clay-css/src/scss/atlas/variables/_progress-bars.scss b/packages/clay-css/src/scss/atlas/variables/_progress-bars.scss index 0051ba15f1..6d2bc6c9d8 100644 --- a/packages/clay-css/src/scss/atlas/variables/_progress-bars.scss +++ b/packages/clay-css/src/scss/atlas/variables/_progress-bars.scss @@ -10,10 +10,13 @@ $progress-border-radius-lg: 100px !default; // Progress Group $progress-group-subtitle: () !default; -$progress-group-subtitle: map-deep-merge(( - font-size: 0.75rem, - font-weight: $font-weight-normal -), $progress-group-subtitle); +$progress-group-subtitle: map-deep-merge( + ( + font-size: 0.75rem, + font-weight: $font-weight-normal, + ), + $progress-group-subtitle +); $progress-group-addon-font-size: 0.875rem !default; -$progress-group-addon-font-weight: $font-weight-semi-bold !default; \ No newline at end of file +$progress-group-addon-font-weight: $font-weight-semi-bold !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_quick-action.scss b/packages/clay-css/src/scss/atlas/variables/_quick-action.scss index 22e9fd0cee..77655ee189 100644 --- a/packages/clay-css/src/scss/atlas/variables/_quick-action.scss +++ b/packages/clay-css/src/scss/atlas/variables/_quick-action.scss @@ -1,3 +1,3 @@ $quick-action-font-size: 1rem !default; // 16px -$quick-action-item-disabled-opacity: $btn-disabled-opacity !default; \ No newline at end of file +$quick-action-item-disabled-opacity: $btn-disabled-opacity !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_range.scss b/packages/clay-css/src/scss/atlas/variables/_range.scss index 23f7416b3e..8b23e77a6b 100644 --- a/packages/clay-css/src/scss/atlas/variables/_range.scss +++ b/packages/clay-css/src/scss/atlas/variables/_range.scss @@ -1,16 +1,22 @@ $clay-range-disabled-color: $gray-500 !default; $clay-range-input-group-text: () !default; -$clay-range-input-group-text: map-deep-merge(( - color: $gray-500, -), $clay-range-input-group-text); +$clay-range-input-group-text: map-deep-merge( + ( + color: $gray-500, + ), + $clay-range-input-group-text +); $clay-range-input: () !default; -$clay-range-input: map-deep-merge(( - color: $gray-500, - thumb-box-shadow: 0 1px 5px -1px rgba(0, 0, 0, 0.3), - track-bg: $gray-200, - tooltip-padding: 0.5rem 0.75rem, - hover-thumb-bg: $primary-l3, - disabled-thumb-bg: $gray-100, -), $clay-range-input); \ No newline at end of file +$clay-range-input: map-deep-merge( + ( + color: $gray-500, + thumb-box-shadow: 0 1px 5px -1px rgba(0, 0, 0, 0.3), + track-bg: $gray-200, + tooltip-padding: 0.5rem 0.75rem, + hover-thumb-bg: $primary-l3, + disabled-thumb-bg: $gray-100, + ), + $clay-range-input +); diff --git a/packages/clay-css/src/scss/atlas/variables/_reorder.scss b/packages/clay-css/src/scss/atlas/variables/_reorder.scss index aef3f48750..cbc6b43c77 100644 --- a/packages/clay-css/src/scss/atlas/variables/_reorder.scss +++ b/packages/clay-css/src/scss/atlas/variables/_reorder.scss @@ -1,4 +1,7 @@ $clay-reorder-underlay-focus: () !default; -$clay-reorder-underlay-focus: map-deep-merge(( - box-shadow: null, -), $clay-reorder-underlay-focus); \ No newline at end of file +$clay-reorder-underlay-focus: map-deep-merge( + ( + box-shadow: null, + ), + $clay-reorder-underlay-focus +); diff --git a/packages/clay-css/src/scss/atlas/variables/_sheets.scss b/packages/clay-css/src/scss/atlas/variables/_sheets.scss index 8fa31ffc45..1d6ad703e1 100644 --- a/packages/clay-css/src/scss/atlas/variables/_sheets.scss +++ b/packages/clay-css/src/scss/atlas/variables/_sheets.scss @@ -32,12 +32,15 @@ $sheet-subtitle-margin-bottom-mobile: 1rem !default; // 16px // Sheet Subtitle as Panel Header $sheet-subtitle-link: () !default; -$sheet-subtitle-link: map-deep-merge(( - border-radius: 1px, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: 0 0 0 0.25rem $white#{','} 0 0 0 0.375rem $primary-l1, - focus-outline: 0, -), $sheet-subtitle-link); +$sheet-subtitle-link: map-deep-merge( + ( + border-radius: 1px, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: 0 0 0 0.25rem $white#{','} 0 0 0 0.375rem $primary-l1, + focus-outline: 0, + ), + $sheet-subtitle-link +); $sheet-subtitle-collapse-icon-font-size: 0.75rem !default; @@ -47,4 +50,4 @@ $sheet-tertiary-title-margin-bottom-mobile: 0.5rem !default; // 8px $sheet-text-color: $gray-600 !default; -$sheet-text-margin-bottom-mobile: 1rem !default; // 16px \ No newline at end of file +$sheet-text-margin-bottom-mobile: 1rem !default; // 16px diff --git a/packages/clay-css/src/scss/atlas/variables/_sidebar.scss b/packages/clay-css/src/scss/atlas/variables/_sidebar.scss index 31379601d3..e4e69e2a37 100644 --- a/packages/clay-css/src/scss/atlas/variables/_sidebar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_sidebar.scss @@ -1,32 +1,44 @@ // Sidebar Header Title $sidebar-header-component-title: () !default; -$sidebar-header-component-title: map-deep-merge(( - // 20px - font-size: 1.25rem, -), $sidebar-header-component-title); +$sidebar-header-component-title: map-deep-merge( + ( + // 20px + font-size: 1.25rem + ), + $sidebar-header-component-title +); // Sidebar Header Subtitle $sidebar-header-component-subtitle: () !default; -$sidebar-header-component-subtitle: map-deep-merge(( - font-size: 0.75rem, - font-weight: $font-weight-normal -), $sidebar-header-component-subtitle); +$sidebar-header-component-subtitle: map-deep-merge( + ( + font-size: 0.75rem, + font-weight: $font-weight-normal, + ), + $sidebar-header-component-subtitle +); // Sidebar DT $sidebar-dt: () !default; -$sidebar-dt: map-deep-merge(( - font-size: 0.75rem, -), $sidebar-dt); +$sidebar-dt: map-deep-merge( + ( + font-size: 0.75rem, + ), + $sidebar-dt +); // Sidebar DD $sidebar-dd: () !default; -$sidebar-dd: map-deep-merge(( - font-size: 0.875rem, -), $sidebar-dd); +$sidebar-dd: map-deep-merge( + ( + font-size: 0.875rem, + ), + $sidebar-dd +); // Sidebar List Group @@ -35,28 +47,34 @@ $sidebar-list-group-border-color: $secondary-l2 !default; // Sidebar Light $sidebar-light: () !default; -$sidebar-light: map-deep-merge(( - bg: $white, - border-left-width: 0, - box-shadow: -0.25rem 0 0.5rem -0.25rem rgba(0, 0, 0, 0.1), - panel-bg: $gray-200, - dt: ( - color: $gray-600 - ), - dd: ( - clay-link: ( - color: $gray-900 - ) - ), - panel-unstyled: ( - header-link: ( - focus-box-shadow: 0 0 0 0.25rem $white#{','} 0 0 0 0.375rem $primary-l1, +$sidebar-light: map-deep-merge( + ( + bg: $white, + border-left-width: 0, + box-shadow: -0.25rem 0 0.5rem -0.25rem rgba(0, 0, 0, 0.1), + panel-bg: $gray-200, + dt: ( + color: $gray-600, + ), + dd: ( + clay-link: ( + color: $gray-900, + ), + ), + panel-unstyled: ( + header-link: ( + focus-box-shadow: 0 0 0 0.25rem $white#{','} 0 0 0 0.375rem $primary-l1, + ), ), ), -), $sidebar-light); + $sidebar-light +); $sidebar-light-navigation-bar: () !default; -$sidebar-light-navigation-bar: map-deep-merge(( - bg: $white, - border-color: $secondary-l2 -), $sidebar-light-navigation-bar); \ No newline at end of file +$sidebar-light-navigation-bar: map-deep-merge( + ( + bg: $white, + border-color: $secondary-l2, + ), + $sidebar-light-navigation-bar +); diff --git a/packages/clay-css/src/scss/atlas/variables/_stickers.scss b/packages/clay-css/src/scss/atlas/variables/_stickers.scss index b85a7d586e..9b7ee99ee6 100644 --- a/packages/clay-css/src/scss/atlas/variables/_stickers.scss +++ b/packages/clay-css/src/scss/atlas/variables/_stickers.scss @@ -4,19 +4,28 @@ $sticker-font-weight: $font-weight-bold !default; // Sticker Sizes $sticker-sm: () !default; -$sticker-sm: map-deep-merge(( - font-size: 0.75rem, -), $sticker-sm); +$sticker-sm: map-deep-merge( + ( + font-size: 0.75rem, + ), + $sticker-sm +); $sticker-lg: () !default; -$sticker-lg: map-deep-merge(( - font-size: 1.25rem, -), $sticker-lg); +$sticker-lg: map-deep-merge( + ( + font-size: 1.25rem, + ), + $sticker-lg +); $sticker-xl: () !default; -$sticker-xl: map-deep-merge(( - font-size: 1.5rem, -), $sticker-xl); +$sticker-xl: map-deep-merge( + ( + font-size: 1.5rem, + ), + $sticker-xl +); // Sticker Positions @@ -25,9 +34,12 @@ $sticker-inside-offset: 1rem !default; // 16px // Sticker User Icon $sticker-user-icon: () !default; -$sticker-user-icon: map-deep-merge(( - box-shadow: 0 0 0 1px $gray-300, -), $sticker-user-icon); +$sticker-user-icon: map-deep-merge( + ( + box-shadow: 0 0 0 1px $gray-300, + ), + $sticker-user-icon +); // Sticker Variants @@ -53,4 +65,4 @@ $sticker-light-bg: $white !default; $sticker-light-color: $dark !default; $sticker-dark-bg: $dark !default; -$sticker-dark-color: $white !default; \ No newline at end of file +$sticker-dark-color: $white !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_tables.scss b/packages/clay-css/src/scss/atlas/variables/_tables.scss index 592c04aa05..c4004a9886 100644 --- a/packages/clay-css/src/scss/atlas/variables/_tables.scss +++ b/packages/clay-css/src/scss/atlas/variables/_tables.scss @@ -1,6 +1,6 @@ $table-bg: $white !default; $table-accent-bg: $gray-100 !default; -$table-hover-bg: lighten($component-active-bg, 44.90) !default; +$table-hover-bg: lighten($component-active-bg, 44.9) !default; $table-border-color: $gray-300 !default; $table-font-size: 0.875rem !default; @@ -12,14 +12,17 @@ $table-head-color: $gray-600 !default; $table-head-font-weight: $font-weight-semi-bold !default; $table-head-link: () !default; -$table-head-link: map-deep-merge(( - border-radius: 1px, - color: $gray-600, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $table-head-link); +$table-head-link: map-deep-merge( + ( + border-radius: 1px, + color: $gray-600, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $table-head-link +); $table-divider-bg: $gray-100 !default; $table-divider-color: $gray-600 !default; @@ -36,50 +39,62 @@ $table-quick-action-menu-hover-bg: $table-hover-bg !default; // Table Title $table-title-link: () !default; -$table-title-link: map-deep-merge(( - border-radius: 1px, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $table-title-link); +$table-title-link: map-deep-merge( + ( + border-radius: 1px, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $table-title-link +); $table-title: () !default; -$table-title: map-deep-merge(( - color: $gray-900, - font-size: 0.875rem, -), $table-title); +$table-title: map-deep-merge( + ( + color: $gray-900, + font-size: 0.875rem, + ), + $table-title +); // Table Action Link $table-action-link: () !default; -$table-action-link: map-deep-merge(( - color: $gray-600, - font-size: 1rem, - transition: $btn-transition, - hover-bg: rgba(0, 0, 0, 0.02), - hover-color: $gray-900, - focus-bg: rgba(0, 0, 0, 0.02), - focus-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, - active-bg: rgba(0, 0, 0, 0.04), -), $table-action-link); +$table-action-link: map-deep-merge( + ( + color: $gray-600, + font-size: 1rem, + transition: $btn-transition, + hover-bg: rgba(0, 0, 0, 0.02), + hover-color: $gray-900, + focus-bg: rgba(0, 0, 0, 0.02), + focus-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + active-bg: rgba(0, 0, 0, 0.04), + ), + $table-action-link +); // Table Link $table-link: () !default; -$table-link: map-deep-merge(( - border-radius: 1px, - color: $gray-900, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $table-link); +$table-link: map-deep-merge( + ( + border-radius: 1px, + color: $gray-900, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $table-link +); // Table List @@ -101,50 +116,62 @@ $table-list-divider-padding-y: 0.4375rem !default; // 7px // Table List Title $table-list-title: () !default; -$table-list-title: map-deep-merge(( - color: $gray-900, - font-size: 0.875rem, - line-height: 1.45 -), $table-list-title); +$table-list-title: map-deep-merge( + ( + color: $gray-900, + font-size: 0.875rem, + line-height: 1.45, + ), + $table-list-title +); $table-list-title-link: () !default; -$table-list-title-link: map-deep-merge(( - border-radius: 1px, - color: $gray-900, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $table-list-title-link); +$table-list-title-link: map-deep-merge( + ( + border-radius: 1px, + color: $gray-900, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $table-list-title-link +); // Table List Link $table-list-link: () !default; -$table-list-link: map-deep-merge(( - border-radius: 1px, - color: $gray-900, - display: inline-block, - max-width: 100%, - transition: box-shadow 0.15s ease-in-out, - hover-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, -), $table-list-link); +$table-list-link: map-deep-merge( + ( + border-radius: 1px, + color: $gray-900, + display: inline-block, + max-width: 100%, + transition: box-shadow 0.15s ease-in-out, + hover-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + ), + $table-list-link +); // Table List Action Link $table-list-action-link: () !default; -$table-list-action-link: map-deep-merge(( - color: $gray-600, - font-size: 1rem, - transition: $btn-transition, - hover-bg: rgba(0, 0, 0, 0.02), - hover-color: $gray-900, - focus-bg: rgba(0, 0, 0, 0.02), - focus-color: $gray-900, - focus-box-shadow: $component-focus-box-shadow, - focus-outline: 0, - active-bg: rgba(0, 0, 0, 0.04), -), $table-list-action-link); \ No newline at end of file +$table-list-action-link: map-deep-merge( + ( + color: $gray-600, + font-size: 1rem, + transition: $btn-transition, + hover-bg: rgba(0, 0, 0, 0.02), + hover-color: $gray-900, + focus-bg: rgba(0, 0, 0, 0.02), + focus-color: $gray-900, + focus-box-shadow: $component-focus-box-shadow, + focus-outline: 0, + active-bg: rgba(0, 0, 0, 0.04), + ), + $table-list-action-link +); diff --git a/packages/clay-css/src/scss/atlas/variables/_tbar.scss b/packages/clay-css/src/scss/atlas/variables/_tbar.scss index a32208d703..6a691a841f 100644 --- a/packages/clay-css/src/scss/atlas/variables/_tbar.scss +++ b/packages/clay-css/src/scss/atlas/variables/_tbar.scss @@ -1,37 +1,55 @@ $component-tbar: () !default; -$component-tbar: map-deep-merge(( - border-color: $gray-300, - color: $gray-600, -), $component-tbar); +$component-tbar: map-deep-merge( + ( + border-color: $gray-300, + color: $gray-600, + ), + $component-tbar +); // Subnav Tbar Primary $subnav-tbar-primary-component-link: () !default; -$subnav-tbar-primary-component-link: map-deep-merge(( - disabled-opacity: 0.65 -), $subnav-tbar-primary-component-link); +$subnav-tbar-primary-component-link: map-deep-merge( + ( + disabled-opacity: 0.65, + ), + $subnav-tbar-primary-component-link +); $subnav-tbar-primary-component-label-close: () !default; -$subnav-tbar-primary-component-label-close: map-deep-merge(( - disabled-opacity: 0.65 -), $subnav-tbar-primary-component-label-close); +$subnav-tbar-primary-component-label-close: map-deep-merge( + ( + disabled-opacity: 0.65, + ), + $subnav-tbar-primary-component-label-close +); // Subnav Tbar Primary Disabled $subnav-tbar-primary-disabled-component-label: () !default; -$subnav-tbar-primary-disabled-component-label: map-deep-merge(( - border-color: #8E94AA -), $subnav-tbar-primary-disabled-component-label); +$subnav-tbar-primary-disabled-component-label: map-deep-merge( + ( + border-color: #8e94aa, + ), + $subnav-tbar-primary-disabled-component-label +); $subnav-tbar-primary-disabled: () !default; -$subnav-tbar-primary-disabled: map-deep-merge(( - color: #8E94AA -), $subnav-tbar-primary-disabled); +$subnav-tbar-primary-disabled: map-deep-merge( + ( + color: #8e94aa, + ), + $subnav-tbar-primary-disabled +); // Subnav Tbar Light $subnav-tbar-light: () !default; -$subnav-tbar-light: map-deep-merge(( - bg-color: $light-l2, - color: $gray-600, -), $subnav-tbar-light); \ No newline at end of file +$subnav-tbar-light: map-deep-merge( + ( + bg-color: $light-l2, + color: $gray-600, + ), + $subnav-tbar-light +); diff --git a/packages/clay-css/src/scss/atlas/variables/_time.scss b/packages/clay-css/src/scss/atlas/variables/_time.scss index 150c4aa1a8..3e31654761 100644 --- a/packages/clay-css/src/scss/atlas/variables/_time.scss +++ b/packages/clay-css/src/scss/atlas/variables/_time.scss @@ -1,10 +1,16 @@ $clay-time-btn: () !default; -$clay-time-btn: map-deep-merge(( - color: $secondary, - focus-box-shadow: 0 0 0 1px #80ACFF, -), $clay-time-btn); +$clay-time-btn: map-deep-merge( + ( + color: $secondary, + focus-box-shadow: 0 0 0 1px #80acff, + ), + $clay-time-btn +); $clay-time-inner-spin: () !default; -$clay-time-inner-spin: map-deep-merge(( - border-color: $secondary-l2, -), $clay-time-inner-spin); \ No newline at end of file +$clay-time-inner-spin: map-deep-merge( + ( + border-color: $secondary-l2, + ), + $clay-time-inner-spin +); diff --git a/packages/clay-css/src/scss/atlas/variables/_timelines.scss b/packages/clay-css/src/scss/atlas/variables/_timelines.scss index fb63f7019c..6d3fde28fe 100644 --- a/packages/clay-css/src/scss/atlas/variables/_timelines.scss +++ b/packages/clay-css/src/scss/atlas/variables/_timelines.scss @@ -1,3 +1,3 @@ $timeline-border-color: $gray-900 !default; $timeline-icon-border-color: $gray-600 !default; -$timeline-increment-label-color: $gray-600 !default; \ No newline at end of file +$timeline-increment-label-color: $gray-600 !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_toggle-switch.scss b/packages/clay-css/src/scss/atlas/variables/_toggle-switch.scss index 12bad2472a..dadfc9693d 100644 --- a/packages/clay-css/src/scss/atlas/variables/_toggle-switch.scss +++ b/packages/clay-css/src/scss/atlas/variables/_toggle-switch.scss @@ -5,8 +5,10 @@ $toggle-switch-bar-padding-mobile: 4px !default; $toggle-switch-button-width: 24px !default; // 24px $toggle-switch-button-width-mobile: 16px !default; // 16px -$toggle-switch-bar-height: ($toggle-switch-bar-padding * 2) + $toggle-switch-button-width !default; -$toggle-switch-bar-height-mobile: ($toggle-switch-bar-padding-mobile * 2) + $toggle-switch-button-width-mobile !default; +$toggle-switch-bar-height: ($toggle-switch-bar-padding * 2) + + $toggle-switch-button-width !default; +$toggle-switch-bar-height-mobile: ($toggle-switch-bar-padding-mobile * 2) + + $toggle-switch-button-width-mobile !default; $toggle-switch-bar-width: 60px !default; // width of switch bar $toggle-switch-bar-width-mobile: 44px !default; // width of switch bar @@ -37,4 +39,4 @@ $toggle-switch-bar-on-icon-color: $white !default; $toggle-switch-button-on-bg: $white !default; $toggle-switch-button-on-border-color: $white !default; $toggle-switch-button-on-border-radius: $toggle-switch-button-border-radius !default; -$toggle-switch-button-on-icon-color: $gray-900 !default; \ No newline at end of file +$toggle-switch-button-on-icon-color: $gray-900 !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_tooltip.scss b/packages/clay-css/src/scss/atlas/variables/_tooltip.scss index d83d2f0f7d..5a1629f1bd 100644 --- a/packages/clay-css/src/scss/atlas/variables/_tooltip.scss +++ b/packages/clay-css/src/scss/atlas/variables/_tooltip.scss @@ -6,4 +6,4 @@ $tooltip-opacity: 1 !default; $tooltip-padding-x: 0.75rem !default; // 12px $tooltip-padding-y: 0.75rem !default; // 12px -$tooltip-arrow-offset: 0.5rem !default; // 8px \ No newline at end of file +$tooltip-arrow-offset: 0.5rem !default; // 8px diff --git a/packages/clay-css/src/scss/atlas/variables/_type.scss b/packages/clay-css/src/scss/atlas/variables/_type.scss index 7634de0691..9f1a136527 100644 --- a/packages/clay-css/src/scss/atlas/variables/_type.scss +++ b/packages/clay-css/src/scss/atlas/variables/_type.scss @@ -2,4 +2,4 @@ $b-font-weight: $font-weight-semi-bold !default; $strong-font-weight: $font-weight-semi-bold !default; -$code-color: #E83E8C !default; \ No newline at end of file +$code-color: #e83e8c !default; diff --git a/packages/clay-css/src/scss/atlas/variables/_utilities.scss b/packages/clay-css/src/scss/atlas/variables/_utilities.scss index 059b8ce7e9..4c0dfbc559 100644 --- a/packages/clay-css/src/scss/atlas/variables/_utilities.scss +++ b/packages/clay-css/src/scss/atlas/variables/_utilities.scss @@ -3,26 +3,32 @@ $bg-checkered-fg: $gray-300 !default; // C Focus Inset $c-focus-inset-focus: () !default; -$c-focus-inset-focus: map-deep-merge(( - box-shadow: $component-focus-inset-box-shadow, - border-color: $primary-l1, - outline: 0, -), $c-focus-inset-focus); +$c-focus-inset-focus: map-deep-merge( + ( + box-shadow: $component-focus-inset-box-shadow, + border-color: $primary-l1, + outline: 0, + ), + $c-focus-inset-focus +); // Close $close: () !default; -$close: map-deep-merge(( - color: $gray-900, - opacity: 1, - hover-color: $gray-900, - hover-opacity: 1, - focus-box-shadow: $btn-focus-box-shadow, - focus-opacity: 1, - focus-outline: 0, - disabled-color: $gray-600, - disabled-opacity: $btn-disabled-opacity, - btn-focus-box-shadow: $btn-focus-box-shadow, -), $close); +$close: map-deep-merge( + ( + color: $gray-900, + opacity: 1, + hover-color: $gray-900, + hover-opacity: 1, + focus-box-shadow: $btn-focus-box-shadow, + focus-opacity: 1, + focus-outline: 0, + disabled-color: $gray-600, + disabled-opacity: $btn-disabled-opacity, + btn-focus-box-shadow: $btn-focus-box-shadow, + ), + $close +); -$page-header-bg: $white !default; \ No newline at end of file +$page-header-bg: $white !default; diff --git a/packages/clay-css/src/scss/base-variables.scss b/packages/clay-css/src/scss/base-variables.scss index 187955de80..2a868e6c3d 100644 --- a/packages/clay-css/src/scss/base-variables.scss +++ b/packages/clay-css/src/scss/base-variables.scss @@ -1,14 +1,14 @@ // INSERT CUSTOM BASE VARS -@import "functions/_global-functions"; +@import 'functions/_global-functions'; -@import "variables/_bs4-variable-overwrites"; +@import 'variables/_bs4-variable-overwrites'; -@import "bootstrap/_functions"; -@import "bootstrap/_variables"; -@import "bootstrap/_mixins"; +@import 'bootstrap/_functions'; +@import 'bootstrap/_variables'; +@import 'bootstrap/_mixins'; -@import "_variables"; -@import "_mixins"; +@import '_variables'; +@import '_mixins'; -// INSERT CUSTOM VARS \ No newline at end of file +// INSERT CUSTOM VARS diff --git a/packages/clay-css/src/scss/base.scss b/packages/clay-css/src/scss/base.scss index 9229f563ac..8138d3fd25 100644 --- a/packages/clay-css/src/scss/base.scss +++ b/packages/clay-css/src/scss/base.scss @@ -1,15 +1,15 @@ // INSERT CUSTOM VARS -@import "functions/_global-functions"; +@import 'functions/_global-functions'; -@import "variables/_bs4-variable-overwrites"; +@import 'variables/_bs4-variable-overwrites'; -@import "bootstrap/bootstrap"; +@import 'bootstrap/bootstrap'; -@import "_variables"; +@import '_variables'; -@import "_mixins"; +@import '_mixins'; -@import "_components"; +@import '_components'; -// INSERT CUSTOM EXTENSIONS \ No newline at end of file +// INSERT CUSTOM EXTENSIONS diff --git a/packages/clay-css/src/scss/bootstrap.scss b/packages/clay-css/src/scss/bootstrap.scss index 87b192fa7a..47b9dc3c0c 100644 --- a/packages/clay-css/src/scss/bootstrap.scss +++ b/packages/clay-css/src/scss/bootstrap.scss @@ -1,5 +1,5 @@ // INSERT CUSTOM VARS -@import "bootstrap/bootstrap"; +@import 'bootstrap/bootstrap'; -// INSERT CUSTOM EXTENSIONS \ No newline at end of file +// INSERT CUSTOM EXTENSIONS diff --git a/packages/clay-css/src/scss/components/_alerts.scss b/packages/clay-css/src/scss/components/_alerts.scss index cf1c71d363..3cd752b673 100644 --- a/packages/clay-css/src/scss/components/_alerts.scss +++ b/packages/clay-css/src/scss/components/_alerts.scss @@ -82,7 +82,9 @@ .container-fluid { padding-bottom: $alert-dismissible-padding-bottom; padding-left: $alert-dismissible-padding-left; - padding-right: calc(#{$alert-dismissible-padding-right} + #{$grid-gutter-width / 2}); + padding-right: calc( + #{$alert-dismissible-padding-right} + #{$grid-gutter-width / 2} + ); padding-top: $alert-dismissible-padding-top; position: relative; } @@ -225,4 +227,4 @@ color: map-get($value, lead-color); } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_application-bar.scss b/packages/clay-css/src/scss/components/_application-bar.scss index 1dc6656551..018b402391 100644 --- a/packages/clay-css/src/scss/components/_application-bar.scss +++ b/packages/clay-css/src/scss/components/_application-bar.scss @@ -16,4 +16,4 @@ .application-bar-dark { @include clay-navbar-variant($application-bar-dark); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_aspect-ratio.scss b/packages/clay-css/src/scss/components/_aspect-ratio.scss index 166331e489..7744ac8d53 100644 --- a/packages/clay-css/src/scss/components/_aspect-ratio.scss +++ b/packages/clay-css/src/scss/components/_aspect-ratio.scss @@ -231,4 +231,4 @@ .aspect-ratio-bg-center { @extend %aspect-ratio-bg-center; -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_badges.scss b/packages/clay-css/src/scss/components/_badges.scss index 459d336f5b..41d42beda0 100644 --- a/packages/clay-css/src/scss/components/_badges.scss +++ b/packages/clay-css/src/scss/components/_badges.scss @@ -149,4 +149,4 @@ } } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_breadcrumbs.scss b/packages/clay-css/src/scss/components/_breadcrumbs.scss index 961e079aed..9c24f5a934 100644 --- a/packages/clay-css/src/scss/components/_breadcrumbs.scss +++ b/packages/clay-css/src/scss/components/_breadcrumbs.scss @@ -49,8 +49,7 @@ position: absolute; top: 50%; width: $breadcrumb-divider-svg-icon-width; - } - @else { + } @else { font-family: $breadcrumb-divider-font-family; font-weight: $breadcrumb-divider-font-weight; padding-left: 0.4em; @@ -80,4 +79,4 @@ @include clay-scale-component { max-width: $breadcrumb-text-truncate-max-width-mobile; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_buttons.scss b/packages/clay-css/src/scss/components/_buttons.scss index c0afcfffd8..b8d191fb74 100644 --- a/packages/clay-css/src/scss/components/_buttons.scss +++ b/packages/clay-css/src/scss/components/_buttons.scss @@ -230,7 +230,9 @@ margin: #{math-sign($btn-padding-y)} #{math-sign($btn-padding-x)}; @include clay-scale-component { - margin: #{math-sign($btn-padding-y-mobile)} #{math-sign($btn-padding-x-mobile)}; + margin: #{math-sign($btn-padding-y-mobile)} #{math-sign( + $btn-padding-x-mobile + )}; } } @@ -252,10 +254,13 @@ .btn-sm { .c-inner { - margin: #{math-sign($btn-padding-y-sm)} #{math-sign($btn-padding-x-sm)}; + margin: #{math-sign($btn-padding-y-sm)} + #{math-sign($btn-padding-x-sm)}; @include clay-scale-component { - margin: #{math-sign($btn-padding-y-sm-mobile)} #{math-sign($btn-padding-x-sm-mobile)}; + margin: #{math-sign($btn-padding-y-sm-mobile)} #{math-sign( + $btn-padding-x-sm-mobile + )}; } } @@ -267,10 +272,13 @@ .btn-lg { .c-inner { - margin: #{math-sign($btn-padding-y-lg)} #{math-sign($btn-padding-x-lg)}; + margin: #{math-sign($btn-padding-y-lg)} + #{math-sign($btn-padding-x-lg)}; @include clay-scale-component { - margin: #{math-sign($btn-padding-y-lg-mobile)} #{math-sign($btn-padding-x-lg-mobile)}; + margin: #{math-sign($btn-padding-y-lg-mobile)} #{math-sign( + $btn-padding-x-lg-mobile + )}; } } @@ -338,4 +346,4 @@ .btn .loading-animation { font-size: 1em; margin-top: $inline-item-lexicon-icon-margin-top; -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_cards.scss b/packages/clay-css/src/scss/components/_cards.scss index e6603d8574..f187fdf13d 100644 --- a/packages/clay-css/src/scss/components/_cards.scss +++ b/packages/clay-css/src/scss/components/_cards.scss @@ -179,7 +179,9 @@ } .autofit-col:first-child .card-item-first { - @include border-radius($card-inner-border-radius 0 0 $card-inner-border-radius); + @include border-radius( + $card-inner-border-radius 0 0 $card-inner-border-radius + ); } .card-item-last { @@ -189,7 +191,9 @@ } .autofit-col:last-child .card-item-last { - @include border-radius(0 $card-inner-border-radius $card-inner-border-radius 0); + @include border-radius( + 0 $card-inner-border-radius $card-inner-border-radius 0 + ); } .rounded { @@ -210,16 +214,18 @@ border-top-left-radius: $card-rounded-inner-border-radius; .card-item-first { - border-radius: $card-rounded-inner-border-radius 0 0 $card-rounded-inner-border-radius; + border-radius: $card-rounded-inner-border-radius 0 0 + $card-rounded-inner-border-radius; } } - .autofit-col:last-child{ + .autofit-col:last-child { border-bottom-right-radius: $card-rounded-inner-border-radius; border-top-right-radius: $card-rounded-inner-border-radius; .card-item-last { - border-radius: 0 $card-rounded-inner-border-radius $card-rounded-inner-border-radius 0; + border-radius: 0 $card-rounded-inner-border-radius + $card-rounded-inner-border-radius 0; } } } @@ -242,7 +248,8 @@ border-top-left-radius: $card-rounded-0-inner-border-radius; .card-item-first { - border-radius: $card-rounded-0-inner-border-radius 0 0 $card-rounded-0-inner-border-radius; + border-radius: $card-rounded-0-inner-border-radius 0 0 + $card-rounded-0-inner-border-radius; } } @@ -251,7 +258,8 @@ border-top-right-radius: $card-rounded-0-inner-border-radius; .card-item-last { - border-radius: 0 $card-rounded-0-inner-border-radius $card-rounded-0-inner-border-radius 0; + border-radius: 0 $card-rounded-0-inner-border-radius + $card-rounded-0-inner-border-radius 0; } } } @@ -274,7 +282,8 @@ border-top-left-radius: $card-rounded-circle-inner-border-radius; .card-item-first { - border-radius: $card-rounded-circle-inner-border-radius 0 0 $card-rounded-circle-inner-border-radius; + border-radius: $card-rounded-circle-inner-border-radius 0 0 + $card-rounded-circle-inner-border-radius; } } @@ -283,7 +292,8 @@ border-top-right-radius: $card-rounded-circle-inner-border-radius; .card-item-last { - border-radius: 0 $card-rounded-circle-inner-border-radius $card-rounded-circle-inner-border-radius 0; + border-radius: 0 $card-rounded-circle-inner-border-radius + $card-rounded-circle-inner-border-radius 0; } } } @@ -555,4 +565,4 @@ .template-card-horizontal { @include clay-card-variant($template-card-horizontal); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_clay-color.scss b/packages/clay-css/src/scss/components/_clay-color.scss index edcdd55a9d..c35f704c7c 100644 --- a/packages/clay-css/src/scss/components/_clay-color.scss +++ b/packages/clay-css/src/scss/components/_clay-color.scss @@ -26,7 +26,9 @@ } .component-action { - @include clay-button-variant($clay-color-dropdown-menu-component-action); + @include clay-button-variant( + $clay-color-dropdown-menu-component-action + ); } .form-control { @@ -38,7 +40,9 @@ } .input-group-inset-item-before { - @include clay-container($clay-color-dropdown-menu-input-group-inset-item-before); + @include clay-container( + $clay-color-dropdown-menu-input-group-inset-item-before + ); } } @@ -99,7 +103,8 @@ } .clay-color-map-hsb { - background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #FFF, rgba(255, 255, 255, 0)); + background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), + linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); @include clay-container($clay-color-map-hsb); } @@ -118,7 +123,9 @@ } .input-group-inset-item-before { - @include clay-container($clay-color-map-values-input-group-inset-item-before); + @include clay-container( + $clay-color-map-values-input-group-inset-item-before + ); } .form-group { @@ -133,9 +140,18 @@ } .clay-color-range-hue { - background-image: linear-gradient(270deg, #FC0D1B 0%, #FC22D6 18.23%, #1824FB 34.25%, #2BF6FD 50.28%, #2BFD2E 67.58%, #FCFD37 81.22%, #FC121B 100%); + background-image: linear-gradient( + 270deg, + #fc0d1b 0%, + #fc22d6 18.23%, + #1824fb 34.25%, + #2bf6fd 50.28%, + #2bfd2e 67.58%, + #fcfd37 81.22%, + #fc121b 100% + ); } .clay-color-range-pointer { @include clay-button-variant($clay-color-range-pointer); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_custom-forms.scss b/packages/clay-css/src/scss/components/_custom-forms.scss index c5f18976f6..54f2296546 100644 --- a/packages/clay-css/src/scss/components/_custom-forms.scss +++ b/packages/clay-css/src/scss/components/_custom-forms.scss @@ -47,7 +47,7 @@ + .input-group { border-radius: 1px; - box-shadow: 0 0 0 0.075rem #FFF, $btn-focus-box-shadow; + box-shadow: 0 0 0 0.075rem #fff, $btn-focus-box-shadow; } } @@ -229,4 +229,4 @@ label.custom-control-label { + .custom-control-inline { margin-left: $custom-control-spacer-x; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_date-picker.scss b/packages/clay-css/src/scss/components/_date-picker.scss index cdd7f8ab85..695d99b44a 100644 --- a/packages/clay-css/src/scss/components/_date-picker.scss +++ b/packages/clay-css/src/scss/components/_date-picker.scss @@ -100,4 +100,4 @@ .next-month-date { @include clay-button-variant($date-picker-next-month-date); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_drilldown.scss b/packages/clay-css/src/scss/components/_drilldown.scss index 963698f74f..1c8d029975 100644 --- a/packages/clay-css/src/scss/components/_drilldown.scss +++ b/packages/clay-css/src/scss/components/_drilldown.scss @@ -41,4 +41,4 @@ .transitioning { display: block; -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_dropdowns.scss b/packages/clay-css/src/scss/components/_dropdowns.scss index 7fa6331214..81e8c21b4b 100644 --- a/packages/clay-css/src/scss/components/_dropdowns.scss +++ b/packages/clay-css/src/scss/components/_dropdowns.scss @@ -6,12 +6,12 @@ white-space: normal; word-wrap: break-word; - @if not ($dropdown-header-padding-y == $dropdown-padding-y) { + @if not($dropdown-header-padding-y == $dropdown-padding-y) { padding-bottom: $dropdown-header-padding-y; padding-top: $dropdown-header-padding-y; } - @if not ($dropdown-header-padding-x == $dropdown-item-padding-x) { + @if not($dropdown-header-padding-x == $dropdown-item-padding-x) { padding-left: $dropdown-header-padding-x; padding-right: $dropdown-header-padding-x; } @@ -229,13 +229,18 @@ .dropdown-subheader, .dropdown-caption, .dropdown-item { - padding-left: $dropdown-item-padding-x + $dropdown-item-indicator-size + $dropdown-item-indicator-spacer-x; + padding-left: $dropdown-item-padding-x + $dropdown-item-indicator-size + + $dropdown-item-indicator-spacer-x; } @if ($enable-c-inner) { .dropdown-item { .c-inner { - margin-left: math-sign($dropdown-item-padding-x + $dropdown-item-indicator-size + $dropdown-item-indicator-spacer-x); + margin-left: math-sign( + $dropdown-item-padding-x + + $dropdown-item-indicator-size + + $dropdown-item-indicator-spacer-x + ); } } } @@ -258,11 +263,16 @@ } .dropdown-item { - padding-right: $dropdown-item-padding-x + $dropdown-item-indicator-size + $dropdown-item-indicator-spacer-x; + padding-right: $dropdown-item-padding-x + $dropdown-item-indicator-size + + $dropdown-item-indicator-spacer-x; @if ($enable-c-inner) { .c-inner { - margin-right: math-sign($dropdown-item-padding-x + $dropdown-item-indicator-size + $dropdown-item-indicator-spacer-x); + margin-right: math-sign( + $dropdown-item-padding-x + + $dropdown-item-indicator-size + + $dropdown-item-indicator-spacer-x + ); } } } @@ -341,7 +351,7 @@ margin-top: 0; right: 100% !important; top: 50% !important; - transform: translate(0 , -50%) !important; + transform: translate(0, -50%) !important; will-change: auto !important; } @@ -374,7 +384,7 @@ margin-top: 0; right: auto !important; top: 50% !important; - transform: translate(0 , -50%) !important; + transform: translate(0, -50%) !important; will-change: auto !important; } @@ -457,4 +467,4 @@ .navbar-right .dropdown-menu-center { left: 50%; right: auto; -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_form-validation.scss b/packages/clay-css/src/scss/components/_form-validation.scss index 4b6ebdc779..06f7c865ee 100644 --- a/packages/clay-css/src/scss/components/_form-validation.scss +++ b/packages/clay-css/src/scss/components/_form-validation.scss @@ -114,12 +114,21 @@ .input-group-item { &.focus { - box-shadow: setter($input-danger-focus-box-shadow, $input-danger-box-shadow); + box-shadow: setter( + $input-danger-focus-box-shadow, + $input-danger-box-shadow + ); .form-control, .input-group-inset-item { - background-color: setter($input-danger-focus-bg, $input-danger-bg); - border-color: setter($input-danger-focus-border-color, $input-danger-border-color); + background-color: setter( + $input-danger-focus-bg, + $input-danger-bg + ); + border-color: setter( + $input-danger-focus-border-color, + $input-danger-border-color + ); } } @@ -127,8 +136,14 @@ box-shadow: none; ~ .input-group-inset-item { - background-color: setter($input-danger-focus-bg, $input-danger-bg); - border-color: setter($input-danger-focus-border-color, $input-danger-border-color); + background-color: setter( + $input-danger-focus-bg, + $input-danger-bg + ); + border-color: setter( + $input-danger-focus-border-color, + $input-danger-border-color + ); } } } @@ -186,12 +201,21 @@ .input-group-item { &.focus { - box-shadow: setter($input-warning-focus-box-shadow, $input-warning-box-shadow); + box-shadow: setter( + $input-warning-focus-box-shadow, + $input-warning-box-shadow + ); .form-control, .input-group-inset-item { - background-color: setter($input-warning-focus-bg, $input-warning-bg); - border-color: setter($input-warning-focus-border-color, $input-warning-border-color); + background-color: setter( + $input-warning-focus-bg, + $input-warning-bg + ); + border-color: setter( + $input-warning-focus-border-color, + $input-warning-border-color + ); } } @@ -199,8 +223,14 @@ box-shadow: none; ~ .input-group-inset-item { - background-color: setter($input-warning-focus-bg, $input-warning-bg); - border-color: setter($input-warning-focus-border-color, $input-warning-border-color); + background-color: setter( + $input-warning-focus-bg, + $input-warning-bg + ); + border-color: setter( + $input-warning-focus-border-color, + $input-warning-border-color + ); } } } @@ -258,12 +288,21 @@ .input-group-item { &.focus { - box-shadow: setter($input-success-focus-box-shadow, $input-success-box-shadow); + box-shadow: setter( + $input-success-focus-box-shadow, + $input-success-box-shadow + ); .form-control, .input-group-inset-item { - background-color: setter($input-success-focus-bg, $input-success-bg); - border-color: setter($input-success-focus-border-color, $input-success-border-color); + background-color: setter( + $input-success-focus-bg, + $input-success-bg + ); + border-color: setter( + $input-success-focus-border-color, + $input-success-border-color + ); } } @@ -271,8 +310,14 @@ box-shadow: none; ~ .input-group-inset-item { - background-color: setter($input-success-focus-bg, $input-success-bg); - border-color: setter($input-success-focus-border-color, $input-success-border-color); + background-color: setter( + $input-success-focus-bg, + $input-success-bg + ); + border-color: setter( + $input-success-focus-border-color, + $input-success-border-color + ); } } } @@ -282,4 +327,4 @@ border-color: $input-success-border-color; box-shadow: $input-success-box-shadow; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_forms.scss b/packages/clay-css/src/scss/components/_forms.scss index 116adec3f0..7565350036 100644 --- a/packages/clay-css/src/scss/components/_forms.scss +++ b/packages/clay-css/src/scss/components/_forms.scss @@ -1,4 +1,4 @@ -[type="checkbox"] { +[type='checkbox'] { cursor: $form-check-input-cursor; height: 14px; width: 14px; @@ -8,7 +8,7 @@ } } -[type="radio"] { +[type='radio'] { cursor: $form-check-input-cursor; height: 15px; width: 14px; @@ -88,19 +88,19 @@ label { border-right-width: $input-border-right-width; border-top-width: $input-border-top-width; - @if not ($input-font-size == $font-size-base) { + @if not($input-font-size == $font-size-base) { font-size: $input-font-size; } height: $input-height; min-width: 0; - @if not ($input-padding-y == $btn-padding-y) { + @if not($input-padding-y == $btn-padding-y) { padding-bottom: $input-padding-y; padding-top: $input-padding-y; } - @if not ($input-padding-x == $btn-padding-x) { + @if not($input-padding-x == $btn-padding-x) { padding-left: $input-padding-x; padding-right: $input-padding-x; } @@ -128,7 +128,7 @@ label { opacity: $input-disabled-opacity; } - &[type="range"] { + &[type='range'] { background-color: transparent; border-color: transparent; padding: 0; @@ -144,7 +144,7 @@ label { } } - &:not([type="range"]) { + &:not([type='range']) { @media screen and (-webkit-min-device-pixel-ratio: 0) { -webkit-appearance: none; } @@ -169,14 +169,14 @@ label { border-right-width: $input-border-right-width; border-top-width: $input-border-top-width; - @if not ($input-font-size == $font-size-base) { + @if not($input-font-size == $font-size-base) { font-size: $input-font-size; } height: $input-height; min-width: 0; - @if not ($input-padding-y == $btn-padding-y) { + @if not($input-padding-y == $btn-padding-y) { padding-bottom: $input-padding-y; padding-top: $input-padding-y; } @@ -364,7 +364,7 @@ fieldset[disabled] label { } .form-check.disabled .form-check-label { - @if not ($input-label-disabled-color == $text-muted) { + @if not($input-label-disabled-color == $text-muted) { color: $input-label-disabled-color; } } @@ -411,7 +411,6 @@ fieldset[disabled] label { } %clay-select-form-control-lg { - height: $input-height-lg; @include clay-scale-component { @@ -608,4 +607,4 @@ textarea.form-control-sm, margin-top: $form-group-sm-item-label-spacer; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_grid.scss b/packages/clay-css/src/scss/components/_grid.scss index be78d738d3..9710ecca02 100644 --- a/packages/clay-css/src/scss/components/_grid.scss +++ b/packages/clay-css/src/scss/components/_grid.scss @@ -18,7 +18,7 @@ // .container-no-gutters-sm-down, md-down, lg-down, xl-down - @if not ($infix == '') { + @if not($infix == '') { &#{$infix}-down { @include media-breakpoint-down($breakpoint) { @include clay-container-no-gutters; @@ -46,7 +46,9 @@ @include clay-container($container-form-lg); .menubar-vertical-expand-lg { - $container-form-lg-breakpoint-down: clay-breakpoint-prev(map-get($container-form-lg, breakpoint-up)); + $container-form-lg-breakpoint-down: clay-breakpoint-prev( + map-get($container-form-lg, breakpoint-up) + ); @include media-breakpoint-down($container-form-lg-breakpoint-down) { margin-top: -(map-get($container-form-lg, padding-top-mobile)); @@ -57,4 +59,4 @@ .container-view { @include clay-container($container-view); } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_icons.scss b/packages/clay-css/src/scss/components/_icons.scss index a6c93d1361..c8cd539a6a 100644 --- a/packages/clay-css/src/scss/components/_icons.scss +++ b/packages/clay-css/src/scss/components/_icons.scss @@ -97,4 +97,4 @@ button.collapse-icon { -ms-transform: translateY(-50%); transform: translateY(-50%); } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_input-groups.scss b/packages/clay-css/src/scss/components/_input-groups.scss index be3b848720..4f921387f5 100644 --- a/packages/clay-css/src/scss/components/_input-groups.scss +++ b/packages/clay-css/src/scss/components/_input-groups.scss @@ -99,13 +99,19 @@ .input-group > .input-group-prepend > .form-file .btn, .input-group > .input-group-append:not(:last-child) > .form-file .btn, -.input-group > .input-group-append:last-child > .form-file:not(:last-child) .btn { +.input-group + > .input-group-append:last-child + > .form-file:not(:last-child) + .btn { @include border-right-radius(0); } .input-group > .input-group-append > .form-file .btn, .input-group > .input-group-prepend:not(:first-child) > .form-file .btn, -.input-group > .input-group-prepend:first-child > .form-file:not(:first-child) .btn { +.input-group + > .input-group-prepend:first-child + > .form-file:not(:first-child) + .btn { @include border-left-radius(0); } @@ -369,7 +375,9 @@ height: 75%; .btn { - @include clay-button-size($input-group-lg-inset-item-form-file-btn); + @include clay-button-size( + $input-group-lg-inset-item-form-file-btn + ); } } } @@ -436,7 +444,9 @@ height: 75%; .btn { - @include clay-button-size($input-group-sm-inset-item-form-file-btn); + @include clay-button-size( + $input-group-sm-inset-item-form-file-btn + ); } } } @@ -449,13 +459,13 @@ // Input Group Password .input-group-password { - .form-control[type="text"] ~ .input-group-inset-item { + .form-control[type='text'] ~ .input-group-inset-item { .input-password-label { display: none; } } - .form-control[type="password"] ~ .input-group-inset-item { + .form-control[type='password'] ~ .input-group-inset-item { .input-text-label { display: none; } @@ -468,4 +478,4 @@ .input-group { @extend %clay-input-group-sm; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_labels.scss b/packages/clay-css/src/scss/components/_labels.scss index 40091eeca8..7ef6a60825 100644 --- a/packages/clay-css/src/scss/components/_labels.scss +++ b/packages/clay-css/src/scss/components/_labels.scss @@ -182,4 +182,4 @@ button.label { .label-#{$color} { @include clay-label-variant(map-get($label-palette, $color)); } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_links.scss b/packages/clay-css/src/scss/components/_links.scss index 1437eb430a..9b0f5eeba8 100644 --- a/packages/clay-css/src/scss/components/_links.scss +++ b/packages/clay-css/src/scss/components/_links.scss @@ -64,4 +64,4 @@ button.link-outline { .component-action { @include clay-link($component-action); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_list-group.scss b/packages/clay-css/src/scss/components/_list-group.scss index 42b7e2e754..416ba443e6 100644 --- a/packages/clay-css/src/scss/components/_list-group.scss +++ b/packages/clay-css/src/scss/components/_list-group.scss @@ -217,9 +217,10 @@ } .list-group-item-action { - @if ($enable-c-inner){ + @if ($enable-c-inner) { .c-inner { - margin: #{math-sign($list-group-item-padding-y)} #{math-sign($list-group-item-padding-x)}; + margin: #{math-sign($list-group-item-padding-y)} + #{math-sign($list-group-item-padding-x)}; width: auto; } } @@ -353,7 +354,9 @@ .list-group-item { border-width: 0; - @include clay-list-group-notification-item-variant($list-group-notification-item); + @include clay-list-group-notification-item-variant( + $list-group-notification-item + ); } .list-group-item-flex { @@ -363,16 +366,21 @@ } .list-group-item-primary { - @include clay-list-group-notification-item-variant($list-group-notification-item-primary); + @include clay-list-group-notification-item-variant( + $list-group-notification-item-primary + ); } .quick-action-menu { - margin-bottom: -$list-group-item-padding-y + $list-group-notification-item-border-bottom-width; - margin-top: -$list-group-item-padding-y + $list-group-notification-item-border-top-width; + margin-bottom: -$list-group-item-padding-y + + $list-group-notification-item-border-bottom-width; + margin-top: -$list-group-item-padding-y + + $list-group-notification-item-border-top-width; } .autofit-col .quick-action-item { - margin-top: $list-group-notification-item-border-top-width - $list-group-item-flex-offset-top; + margin-top: $list-group-notification-item-border-top-width - + $list-group-item-flex-offset-top; } } @@ -386,4 +394,4 @@ .quick-action-menu { @include clay-container($list-group-sm-quick-action-menu); } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_loaders.scss b/packages/clay-css/src/scss/components/_loaders.scss index 29b36e66f4..b29cc37094 100644 --- a/packages/clay-css/src/scss/components/_loaders.scss +++ b/packages/clay-css/src/scss/components/_loaders.scss @@ -32,4 +32,4 @@ .loading-animation.loading-animation-sm { font-size: $loading-icon-font-size-sm; -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_management-bar.scss b/packages/clay-css/src/scss/components/_management-bar.scss index 6f7a12d527..8beaac2d57 100644 --- a/packages/clay-css/src/scss/components/_management-bar.scss +++ b/packages/clay-css/src/scss/components/_management-bar.scss @@ -16,4 +16,4 @@ .management-bar-primary { @include clay-navbar-variant($management-bar-primary); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_menubar.scss b/packages/clay-css/src/scss/components/_menubar.scss index 9504adb4ab..a4c810ebc3 100644 --- a/packages/clay-css/src/scss/components/_menubar.scss +++ b/packages/clay-css/src/scss/components/_menubar.scss @@ -14,7 +14,9 @@ @include clay-menubar-vertical-expand($menubar-vertical-expand-md); &.menubar-transparent { - @include clay-menubar-vertical-variant($menubar-vertical-transparent-md); + @include clay-menubar-vertical-variant( + $menubar-vertical-transparent-md + ); } &.menubar-decorated { @@ -23,7 +25,9 @@ @include clay-css($menubar-vertical-decorated-md-nav); > .nav-item .nav { - @include clay-css($menubar-vertical-decorated-md-nav-item-nav); + @include clay-css( + $menubar-vertical-decorated-md-nav-item-nav + ); } } @@ -31,7 +35,9 @@ @include clay-css($menubar-vertical-decorated-md-nav-link); &.active::after { - @include clay-css($menubar-vertical-decorated-md-nav-link-after-active); + @include clay-css( + $menubar-vertical-decorated-md-nav-link-after-active + ); } } } @@ -44,7 +50,9 @@ @include clay-menubar-vertical-expand($menubar-vertical-expand-lg); &.menubar-transparent { - @include clay-menubar-vertical-variant($menubar-vertical-transparent-lg); + @include clay-menubar-vertical-variant( + $menubar-vertical-transparent-lg + ); } &.menubar-decorated { @@ -53,7 +61,9 @@ @include clay-css($menubar-vertical-decorated-lg-nav); > .nav-item .nav { - @include clay-css($menubar-vertical-decorated-lg-nav-item-nav); + @include clay-css( + $menubar-vertical-decorated-lg-nav-item-nav + ); } } @@ -61,7 +71,9 @@ @include clay-css($menubar-vertical-decorated-lg-nav-link); &.active::after { - @include clay-css($menubar-vertical-decorated-lg-nav-link-after-active); + @include clay-css( + $menubar-vertical-decorated-lg-nav-link-after-active + ); } } } diff --git a/packages/clay-css/src/scss/components/_modals.scss b/packages/clay-css/src/scss/components/_modals.scss index 1be6183f4d..eff702872d 100644 --- a/packages/clay-css/src/scss/components/_modals.scss +++ b/packages/clay-css/src/scss/components/_modals.scss @@ -320,4 +320,4 @@ .modal-#{$color} { @include clay-modal-variant($value); } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_multi-step-nav.scss b/packages/clay-css/src/scss/components/_multi-step-nav.scss index 68eeae2124..51bd77c70d 100644 --- a/packages/clay-css/src/scss/components/_multi-step-nav.scss +++ b/packages/clay-css/src/scss/components/_multi-step-nav.scss @@ -10,7 +10,8 @@ .multi-step-indicator-label-bottom { .multi-step-item { - padding-bottom: $multi-step-indicator-label-font-size * $line-height-base; + padding-bottom: $multi-step-indicator-label-font-size * + $line-height-base; } .multi-step-indicator-label { @@ -78,7 +79,8 @@ &.complete { .dropdown .multi-step-icon { - &, &:active { + &, + &:active { background-image: none; } } @@ -335,7 +337,9 @@ .multi-step-item { margin-bottom: 0; min-width: $multi-step-icon-size; - padding-top: $multi-step-title-font-size + $multi-step-title-margin-bottom + ($multi-step-divider-height / 2); + padding-top: $multi-step-title-font-size + + $multi-step-title-margin-bottom + + ($multi-step-divider-height / 2); } .multi-step-title { @@ -346,4 +350,4 @@ display: none; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_navbar.scss b/packages/clay-css/src/scss/components/_navbar.scss index d55e1142aa..66df7fe03c 100644 --- a/packages/clay-css/src/scss/components/_navbar.scss +++ b/packages/clay-css/src/scss/components/_navbar.scss @@ -232,7 +232,7 @@ // .navbar-expand-sm, md, lg, xl - @if not ($infix == '') { + @if not($infix == '') { @include media-breakpoint-down($breakpoint) { &.navbar-collapse-absolute { .navbar-collapse { @@ -277,7 +277,9 @@ .navbar-nav { .dropdown-toggle .navbar-text-truncate { - max-width: calc(100% - #{$navbar-text-truncate-spacer-right}); + max-width: calc( + 100% - #{$navbar-text-truncate-spacer-right} + ); } .dropdown-divider { @@ -313,7 +315,8 @@ .show-dropdown-on-collapse { .dropdown-header, .dropdown-item { - padding: $nav-link-padding-y $navbar-nav-link-padding-x; + padding: $nav-link-padding-y + $navbar-nav-link-padding-x; } .dropdown-menu { @@ -346,7 +349,7 @@ // .navbar-expand-sm, md, lg, xl @include media-breakpoint-up($next) { - @if not ($infix == '') { + @if not($infix == '') { .navbar-brand .navbar-text-truncate { max-width: $navbar-text-truncate-max-width; } @@ -362,7 +365,8 @@ } .dropdown-toggle .navbar-text-truncate { - max-width: $navbar-text-truncate-max-width - $navbar-text-truncate-spacer-right; + max-width: $navbar-text-truncate-max-width - + $navbar-text-truncate-spacer-right; } } @@ -469,4 +473,4 @@ } } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_navigation-bar.scss b/packages/clay-css/src/scss/components/_navigation-bar.scss index 2ef5ab3192..83f2480dec 100644 --- a/packages/clay-css/src/scss/components/_navigation-bar.scss +++ b/packages/clay-css/src/scss/components/_navigation-bar.scss @@ -9,4 +9,4 @@ .navigation-bar-secondary { @include clay-navbar-variant($navigation-bar-secondary); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_navs.scss b/packages/clay-css/src/scss/components/_navs.scss index ec409d7004..2bb92cc5f0 100644 --- a/packages/clay-css/src/scss/components/_navs.scss +++ b/packages/clay-css/src/scss/components/_navs.scss @@ -161,7 +161,7 @@ } } -.dropdown-item[data-toggle="tab"] { +.dropdown-item[data-toggle='tab'] { .dropdown-item-indicator, .dropdown-item-indicator-start, .dropdown-item-indicator-end { @@ -184,7 +184,10 @@ .nav-underline .nav-item:nth-of-type(#{$index}n + 0) { .nav-link::after { - background-color: nth($nav-underline-link-highlight-palette, $index); + background-color: nth( + $nav-underline-link-highlight-palette, + $index + ); } } } @@ -219,11 +222,19 @@ .nav-link.active, .nav-item.show .nav-link { &:after { - @if not ($nav-underline-link-active-content == $nav-underline-link-highlight-content) { + @if not( + $nav-underline-link-active-content == + $nav-underline-link-highlight-content + ) + { content: $nav-underline-link-active-content; } - @if not ($nav-underline-link-active-highlight-height == $nav-underline-link-highlight-height) { + @if not( + $nav-underline-link-active-highlight-height == + $nav-underline-link-highlight-height + ) + { height: $nav-underline-link-active-highlight-height; } } @@ -232,4 +243,4 @@ .nav-item .nav-link.disabled:after { background-color: $nav-underline-link-disabled-highlight; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_pagination.scss b/packages/clay-css/src/scss/components/_pagination.scss index 019e8a2d10..803c83fc34 100644 --- a/packages/clay-css/src/scss/components/_pagination.scss +++ b/packages/clay-css/src/scss/components/_pagination.scss @@ -166,7 +166,8 @@ @if ($enable-c-inner) { .c-inner { - margin: #{math-sign($pagination-padding-y-sm)} #{math-sign($pagination-padding-x)}; + margin: #{math-sign($pagination-padding-y-sm)} + #{math-sign($pagination-padding-x)}; } } } @@ -184,7 +185,8 @@ @if ($enable-c-inner) { .c-inner { - margin: #{math-sign($pagination-padding-y-sm)} #{math-sign($pagination-padding-x-sm)}; + margin: #{math-sign($pagination-padding-y-sm)} + #{math-sign($pagination-padding-x-sm)}; } } @@ -213,7 +215,8 @@ @if ($enable-c-inner) { .c-inner { - margin: #{math-sign($pagination-padding-y-lg)} #{math-sign($pagination-padding-x)}; + margin: #{math-sign($pagination-padding-y-lg)} + #{math-sign($pagination-padding-x)}; } } } @@ -231,7 +234,8 @@ @if ($enable-c-inner) { .c-inner { - margin: #{math-sign($pagination-padding-y-lg)} #{math-sign($pagination-padding-x-lg)}; + margin: #{math-sign($pagination-padding-y-lg)} + #{math-sign($pagination-padding-x-lg)}; } } @@ -239,4 +243,4 @@ padding: $pagination-padding-y-lg $pagination-padding-x-lg; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_panels.scss b/packages/clay-css/src/scss/components/_panels.scss index 565cb48b6b..c9fe3e1e5d 100644 --- a/packages/clay-css/src/scss/components/_panels.scss +++ b/packages/clay-css/src/scss/components/_panels.scss @@ -13,7 +13,7 @@ .panel-header { border-bottom: $panel-header-border-bottom-width solid transparent; - @if not ($panel-header-offset-border-radius == 0) { + @if not($panel-header-offset-border-radius == 0) { @include border-top-radius($panel-header-offset-border-radius); } @@ -26,13 +26,14 @@ @if ($enable-c-inner) { .c-inner { - margin: #{math-sign($panel-header-padding-y)} #{math-sign($panel-header-padding-x)}; + margin: #{math-sign($panel-header-padding-y)} + #{math-sign($panel-header-padding-x)}; width: auto; } } &.collapsed { - @if not ($panel-header-offset-border-radius == 0) { + @if not($panel-header-offset-border-radius == 0) { @include border-bottom-radius($panel-header-offset-border-radius); } } @@ -43,8 +44,12 @@ @if ($enable-c-inner) { .c-inner { - margin-left: #{math-sign($panel-header-collapse-icon-padding-left)}; - margin-right: #{math-sign($panel-header-collapse-icon-padding-right)}; + margin-left: #{math-sign( + $panel-header-collapse-icon-padding-left + )}; + margin-right: #{math-sign( + $panel-header-collapse-icon-padding-right + )}; } } } @@ -77,7 +82,7 @@ } .panel-footer { - @if not ($panel-footer-offset-border-radius == 0) { + @if not($panel-footer-offset-border-radius == 0) { @include border-bottom-radius($panel-footer-offset-border-radius); } @@ -126,8 +131,10 @@ @include border-bottom-radius($panel-border-radius); .panel-header.collapsed { - @if not ($panel-header-offset-border-radius == 0) { - @include border-bottom-radius($panel-header-offset-border-radius); + @if not($panel-header-offset-border-radius == 0) { + @include border-bottom-radius( + $panel-header-offset-border-radius + ); } } } @@ -162,7 +169,8 @@ } .panel-header { - &, &.collapsed { + &, + &.collapsed { border-radius: 0; } } @@ -275,8 +283,12 @@ @if ($enable-c-inner) { .c-inner { - margin-left: #{math-sign($panel-group-flush-collapse-icon-padding-left)}; - margin-right: #{math-sign($panel-group-flush-collapse-icon-padding-right)}; + margin-left: #{math-sign( + $panel-group-flush-collapse-icon-padding-left + )}; + margin-right: #{math-sign( + $panel-group-flush-collapse-icon-padding-right + )}; } } } @@ -306,4 +318,4 @@ .panel-unstyled { @include clay-panel-variant($panel-unstyled); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_popovers.scss b/packages/clay-css/src/scss/components/_popovers.scss index c4e43d15bf..eb0b1160b0 100644 --- a/packages/clay-css/src/scss/components/_popovers.scss +++ b/packages/clay-css/src/scss/components/_popovers.scss @@ -23,11 +23,15 @@ .popover-header { border-color: $popover-header-border-color; - @if not ($popover-offset-border-width == calc(#{$border-radius-lg} - #{$popover-border-width})) { + @if not( + $popover-offset-border-width == + calc(#{$border-radius-lg} - #{$popover-border-width}) + ) + { @include border-top-radius($popover-offset-border-width); } - @if not ($popover-header-font-size == $font-size-base) { + @if not($popover-header-font-size == $font-size-base) { font-size: $popover-header-font-size; } @@ -51,7 +55,9 @@ margin-bottom: $popover-arrow-height; .arrow { - bottom: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1); + bottom: calc( + (#{$popover-arrow-height} + #{$popover-border-width}) * -1 + ); margin: 0; &::after { @@ -95,13 +101,15 @@ &::after { border-right-color: $popover-arrow-color; - border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0; + border-width: ($popover-arrow-width / 2) $popover-arrow-height + ($popover-arrow-width / 2) 0; left: $popover-border-width; } &::before { border-right-color: $popover-arrow-outer-color; - border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0; + border-width: ($popover-arrow-width / 2) $popover-arrow-height + ($popover-arrow-width / 2) 0; left: 0; } } @@ -132,13 +140,15 @@ &:after { border-bottom-color: $popover-arrow-color; - border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2); + border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height + ($popover-arrow-width / 2); top: $popover-border-width; } &:before { border-bottom-color: $popover-arrow-outer-color; - border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2); + border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height + ($popover-arrow-width / 2); top: 0; } } @@ -171,13 +181,15 @@ &::after { border-left-color: $popover-arrow-color; - border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height; + border-width: ($popover-arrow-width / 2) 0 + ($popover-arrow-width / 2) $popover-arrow-height; right: $popover-border-width; } &::before { border-left-color: $popover-arrow-outer-color; - border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height; + border-width: ($popover-arrow-width / 2) 0 + ($popover-arrow-width / 2) $popover-arrow-height; right: 0; } } @@ -241,4 +253,4 @@ .arrow { top: $popover-arrow-offset; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_progress-bars.scss b/packages/clay-css/src/scss/components/_progress-bars.scss index 476971ebb0..f7204d2217 100644 --- a/packages/clay-css/src/scss/components/_progress-bars.scss +++ b/packages/clay-css/src/scss/components/_progress-bars.scss @@ -79,4 +79,4 @@ color: map-get($value, group-feedback-color); } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_quick-action.scss b/packages/clay-css/src/scss/components/_quick-action.scss index 39d42eb11e..045e5a262f 100644 --- a/packages/clay-css/src/scss/components/_quick-action.scss +++ b/packages/clay-css/src/scss/components/_quick-action.scss @@ -38,4 +38,4 @@ .lexicon-icon { margin-top: 0; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_range.scss b/packages/clay-css/src/scss/components/_range.scss index 95900ca083..619b5e2e0f 100644 --- a/packages/clay-css/src/scss/components/_range.scss +++ b/packages/clay-css/src/scss/components/_range.scss @@ -42,4 +42,4 @@ .input-group { align-items: flex-end; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_sheets.scss b/packages/clay-css/src/scss/components/_sheets.scss index 6278512728..403f39d02b 100644 --- a/packages/clay-css/src/scss/components/_sheets.scss +++ b/packages/clay-css/src/scss/components/_sheets.scss @@ -11,14 +11,14 @@ @include border-radius($sheet-border-radius); padding-bottom: $sheet-padding-bottom; - padding-left: $sheet-padding-left; - padding-right: $sheet-padding-right; + padding-left: $sheet-padding-left; + padding-right: $sheet-padding-right; padding-top: $sheet-padding-top; @include clay-scale-component { padding-bottom: $sheet-padding-bottom-mobile; - padding-left: $sheet-padding-left-mobile; - padding-right: $sheet-padding-right-mobile; + padding-left: $sheet-padding-left-mobile; + padding-right: $sheet-padding-right-mobile; padding-top: $sheet-padding-top-mobile; } @@ -189,8 +189,12 @@ fieldset { @if ($enable-c-inner) { .c-inner { - margin-left: #{math-sign($sheet-subtitle-collapse-icon-padding-left)}; - margin-right: #{math-sign($sheet-subtitle-collapse-icon-padding-right)}; + margin-left: #{math-sign( + $sheet-subtitle-collapse-icon-padding-left + )}; + margin-right: #{math-sign( + $sheet-subtitle-collapse-icon-padding-right + )}; } } } @@ -254,4 +258,4 @@ a.sheet-subtitle { font-size: $sheet-text-font-size-mobile; margin-bottom: $sheet-text-margin-bottom-mobile; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_side-navigation.scss b/packages/clay-css/src/scss/components/_side-navigation.scss index a701576145..a82c7c0a7a 100644 --- a/packages/clay-css/src/scss/components/_side-navigation.scss +++ b/packages/clay-css/src/scss/components/_side-navigation.scss @@ -133,4 +133,4 @@ right: 0; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_stickers.scss b/packages/clay-css/src/scss/components/_stickers.scss index 52dbbdf059..d28c5a062f 100644 --- a/packages/clay-css/src/scss/components/_stickers.scss +++ b/packages/clay-css/src/scss/components/_stickers.scss @@ -149,4 +149,4 @@ .sticker-circle, .sticker-circle .sticker-overlay { @include border-radius($sticker-circle-border-radius); -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_tables.scss b/packages/clay-css/src/scss/components/_tables.scss index d37d98f629..c84ec16e85 100644 --- a/packages/clay-css/src/scss/components/_tables.scss +++ b/packages/clay-css/src/scss/components/_tables.scss @@ -134,7 +134,11 @@ th { thead { td, th { - @if ($table-head-border-top-width == 0 and $table-head-border-top-width) { + @if ( + $table-head-border-top-width == + 0 and + $table-head-border-top-width + ) { border-top-width: $table-border-width; } } @@ -325,14 +329,14 @@ th { td { // top, bottom box-shadow: inset 0 #{$table-list-border-y-width} $table-list-border-color, - 0 #{$table-list-border-y-width} $table-list-border-color; + 0 #{$table-list-border-y-width} $table-list-border-color; padding-top: $table-list-border-y-width + $table-cell-padding; &:first-child { // top, bottom, left box-shadow: inset 0 #{$table-list-border-y-width} $table-list-border-color, - 0 #{$table-list-border-y-width} $table-list-border-color, - inset #{$table-list-border-x-width} 0 $table-list-border-color; + 0 #{$table-list-border-y-width} $table-list-border-color, + inset #{$table-list-border-x-width} 0 $table-list-border-color; padding-left: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; } @@ -340,8 +344,8 @@ th { &:last-child { // top, right, bottom box-shadow: inset 0 #{$table-list-border-y-width} $table-list-border-color, - inset #{-$table-list-border-x-width} 0 $table-list-border-color, - 0 #{$table-list-border-y-width} $table-list-border-color; + inset #{-$table-list-border-x-width} 0 $table-list-border-color, + 0 #{$table-list-border-y-width} $table-list-border-color; padding-right: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; } @@ -349,9 +353,9 @@ th { &:only-child { // top, right, bottom, left box-shadow: inset 0 #{$table-list-border-y-width} $table-list-border-color, - inset #{-$table-list-border-x-width} 0 $table-list-border-color, - 0 #{$table-list-border-y-width} $table-list-border-color, - inset #{$table-list-border-x-width} 0 $table-list-border-color; + inset #{-$table-list-border-x-width} 0 $table-list-border-color, + 0 #{$table-list-border-y-width} $table-list-border-color, + inset #{$table-list-border-x-width} 0 $table-list-border-color; padding-left: $table-list-border-x-width + $table-cell-padding; padding-right: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; @@ -361,8 +365,8 @@ th { .table-cell-start { // top, bottom, left box-shadow: inset 0 #{$table-list-border-y-width} $table-list-border-color, - 0 #{$table-list-border-y-width} $table-list-border-color, - inset #{$table-list-border-x-width} 0 $table-list-border-color; + 0 #{$table-list-border-y-width} $table-list-border-color, + inset #{$table-list-border-x-width} 0 $table-list-border-color; padding-left: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; } @@ -370,8 +374,8 @@ th { .table-cell-end { // top, right, bottom box-shadow: inset 0 #{$table-list-border-y-width} $table-list-border-color, - inset #{-$table-list-border-x-width} 0 $table-list-border-color, - 0 #{$table-list-border-y-width} $table-list-border-color; + inset #{-$table-list-border-x-width} 0 $table-list-border-color, + 0 #{$table-list-border-y-width} $table-list-border-color; padding-right: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; } @@ -414,17 +418,17 @@ th { td { // top, right, bottom box-shadow: inset 0 #{$table-list-border-y-width} #{$table-list-border-color}, - inset #{-$table-list-border-x-width} 0 #{$table-list-border-color}, - 0 #{$table-list-border-y-width} #{$table-list-border-color}; + inset #{-$table-list-border-x-width} 0 #{$table-list-border-color}, + 0 #{$table-list-border-y-width} #{$table-list-border-color}; padding-right: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; &:first-child { // top, right, bottom, left box-shadow: inset 0 #{$table-list-border-y-width} #{$table-list-border-color}, - inset #{-$table-list-border-x-width} 0 #{$table-list-border-color}, - 0 #{$table-list-border-y-width} #{$table-list-border-color}, - inset #{$table-list-border-x-width} 0 #{$table-list-border-color}; + inset #{-$table-list-border-x-width} 0 #{$table-list-border-color}, + 0 #{$table-list-border-y-width} #{$table-list-border-color}, + inset #{$table-list-border-x-width} 0 #{$table-list-border-color}; padding-left: $table-list-border-x-width + $table-cell-padding; padding-right: $table-list-border-x-width + $table-cell-padding; padding-top: $table-list-border-y-width + $table-cell-padding; @@ -601,7 +605,8 @@ th { th { padding-bottom: $table-list-divider-padding-y; padding-left: $table-list-border-x-width + $table-list-divider-padding-x; - padding-right: $table-list-border-x-width + $table-list-divider-padding-x; + padding-right: $table-list-border-x-width + + $table-list-divider-padding-x; padding-top: $table-list-border-y-width + $table-list-divider-padding-y; } } @@ -907,4 +912,4 @@ th { max-width: none; width: auto; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_time.scss b/packages/clay-css/src/scss/components/_time.scss index 00cbc4bc38..b65a4cf97a 100644 --- a/packages/clay-css/src/scss/components/_time.scss +++ b/packages/clay-css/src/scss/components/_time.scss @@ -62,4 +62,4 @@ .btn { @include clay-button-variant($clay-time-inner-spin-btn); } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_timelines.scss b/packages/clay-css/src/scss/components/_timelines.scss index e62e699c34..bf4bba659f 100644 --- a/packages/clay-css/src/scss/components/_timelines.scss +++ b/packages/clay-css/src/scss/components/_timelines.scss @@ -150,9 +150,13 @@ } .timeline-spacing-xl { - @include clay-timeline-spacing($timeline-outer-spacing-xl, $timeline-inner-spacing-xl, $timeline-item-padding-y-xl); + @include clay-timeline-spacing( + $timeline-outer-spacing-xl, + $timeline-inner-spacing-xl, + $timeline-item-padding-y-xl + ); .timeline-increment-text { max-width: $timeline-inner-spacing-xl + $timeline-outer-spacing-xl; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_toggle-switch.scss b/packages/clay-css/src/scss/components/_toggle-switch.scss index 5293046445..31da2af7e8 100644 --- a/packages/clay-css/src/scss/components/_toggle-switch.scss +++ b/packages/clay-css/src/scss/components/_toggle-switch.scss @@ -17,10 +17,20 @@ .toggle-switch-label { line-height: $simple-toggle-switch-label-line-height; margin-bottom: 0; - max-width: calc(100% - #{clay-data-label-text-position($toggle-switch-bar-width, $toggle-switch-bar-padding)}); + max-width: calc( + 100% - #{clay-data-label-text-position( + $toggle-switch-bar-width, + $toggle-switch-bar-padding + )} + ); @include clay-scale-component { - max-width: calc(100% - #{clay-data-label-text-position($toggle-switch-bar-width-mobile, $toggle-switch-bar-padding-mobile)}); + max-width: calc( + 100% - #{clay-data-label-text-position( + $toggle-switch-bar-width-mobile, + $toggle-switch-bar-padding-mobile + )} + ); } } } @@ -161,7 +171,10 @@ label.toggle-switch { .toggle-switch-handle { &:after { content: attr(data-label-off); - margin-left: clay-data-label-text-position($toggle-switch-bar-width, $toggle-switch-bar-padding); + margin-left: clay-data-label-text-position( + $toggle-switch-bar-width, + $toggle-switch-bar-padding + ); transition: $toggle-switch-transition; white-space: nowrap; } @@ -190,7 +203,8 @@ label.toggle-switch { } .toggle-switch-icon-off { - left: $toggle-switch-bar-width - $toggle-switch-bar-padding - $toggle-switch-button-width; + left: $toggle-switch-bar-width - $toggle-switch-bar-padding - + $toggle-switch-button-width; } .button-icon { @@ -211,7 +225,8 @@ label.toggle-switch { border-style: solid; border-width: $toggle-switch-button-border-width; - left: $toggle-switch-bar-width - $toggle-switch-bar-padding - $toggle-switch-button-width; + left: $toggle-switch-bar-width - $toggle-switch-bar-padding - + $toggle-switch-button-width; } &:before { @@ -234,7 +249,8 @@ label.toggle-switch { .button-icon { color: $toggle-switch-button-on-icon-color; - left: $toggle-switch-bar-width - $toggle-switch-bar-padding - $toggle-switch-button-width; + left: $toggle-switch-bar-width - $toggle-switch-bar-padding - + $toggle-switch-button-width; } .button-icon-on, @@ -317,7 +333,10 @@ label.toggle-switch { } .toggle-switch-handle:after { - margin-left: clay-data-label-text-position($toggle-switch-bar-width-mobile, $toggle-switch-bar-padding-mobile); + margin-left: clay-data-label-text-position( + $toggle-switch-bar-width-mobile, + $toggle-switch-bar-padding-mobile + ); } .toggle-switch-icon { @@ -332,21 +351,30 @@ label.toggle-switch { } .toggle-switch-icon-off { - left: $toggle-switch-bar-width-mobile - $toggle-switch-bar-padding-mobile - $toggle-switch-button-width-mobile; + left: $toggle-switch-bar-width-mobile - + $toggle-switch-bar-padding-mobile - + $toggle-switch-button-width-mobile; } } &:checked ~ .toggle-switch-bar { &:after { - left: $toggle-switch-bar-width-mobile - $toggle-switch-bar-padding-mobile - $toggle-switch-button-width-mobile; + left: $toggle-switch-bar-width-mobile - + $toggle-switch-bar-padding-mobile - + $toggle-switch-button-width-mobile; } .toggle-switch-handle:after { - margin-left: clay-data-label-text-position($toggle-switch-bar-width-mobile, $toggle-switch-bar-padding-mobile); + margin-left: clay-data-label-text-position( + $toggle-switch-bar-width-mobile, + $toggle-switch-bar-padding-mobile + ); } .button-icon { - left: $toggle-switch-bar-width-mobile - $toggle-switch-bar-padding-mobile - $toggle-switch-button-width-mobile; + left: $toggle-switch-bar-width-mobile - + $toggle-switch-bar-padding-mobile - + $toggle-switch-button-width-mobile; } } } @@ -355,4 +383,4 @@ label.toggle-switch { .toggle-switch-text-right { line-height: $toggle-switch-bar-height-mobile; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_tooltip.scss b/packages/clay-css/src/scss/components/_tooltip.scss index ee7810278a..cfd59db647 100644 --- a/packages/clay-css/src/scss/components/_tooltip.scss +++ b/packages/clay-css/src/scss/components/_tooltip.scss @@ -95,7 +95,8 @@ &::before { border-left-color: $tooltip-arrow-color; - border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height; + border-width: ($tooltip-arrow-width / 2) 0 + ($tooltip-arrow-width / 2) $tooltip-arrow-height; left: 0; } } @@ -122,7 +123,8 @@ &::before { border-right-color: $tooltip-arrow-color; - border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0; + border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height + ($tooltip-arrow-width / 2) 0; right: 0; } } @@ -158,4 +160,4 @@ bottom: 0; left: 50%; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_type.scss b/packages/clay-css/src/scss/components/_type.scss index 8b29061352..a8638b6b19 100644 --- a/packages/clay-css/src/scss/components/_type.scss +++ b/packages/clay-css/src/scss/components/_type.scss @@ -166,4 +166,4 @@ mark, white-space: nowrap; word-wrap: normal; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/components/_utilities.scss b/packages/clay-css/src/scss/components/_utilities.scss index 5005dc5208..fe63d32863 100644 --- a/packages/clay-css/src/scss/components/_utilities.scss +++ b/packages/clay-css/src/scss/components/_utilities.scss @@ -238,7 +238,7 @@ @extend %autofit-float-end-md-down; } -// C Inner +// C Inner @if ($enable-c-inner) { .c-inner { @@ -405,4 +405,4 @@ margin-left: auto; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/mixins/_aspect-ratio.scss b/packages/clay-css/src/scss/mixins/_aspect-ratio.scss index c5b667633a..36fef8163a 100644 --- a/packages/clay-css/src/scss/mixins/_aspect-ratio.scss +++ b/packages/clay-css/src/scss/mixins/_aspect-ratio.scss @@ -125,4 +125,4 @@ width: $lexicon-icon-width; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/mixins/_background.scss b/packages/clay-css/src/scss/mixins/_background.scss index b0d6013b16..8bfa059351 100644 --- a/packages/clay-css/src/scss/mixins/_background.scss +++ b/packages/clay-css/src/scss/mixins/_background.scss @@ -11,7 +11,10 @@ @mixin clay-bg-checkered($fg-color: $gray-200, $bg-color: null) { background-color: $bg-color; - background-image: linear-gradient(45deg, $fg-color 25%, transparent 25%), linear-gradient(-45deg, $fg-color 25%, transparent 25%), linear-gradient(45deg, transparent 75%, $fg-color 75%), linear-gradient(-45deg, transparent 75%, $fg-color 75%); + background-image: linear-gradient(45deg, $fg-color 25%, transparent 25%), + linear-gradient(-45deg, $fg-color 25%, transparent 25%), + linear-gradient(45deg, transparent 75%, $fg-color 75%), + linear-gradient(-45deg, transparent 75%, $fg-color 75%); background-position: 0 0, 0 10px, 10px -10px, -10px 0px; background-size: 20px 20px; } @@ -33,12 +36,21 @@ @mixin clay-indicator-bg($map) { $indicator: map-get($map, indicator); - $indicator-bg-position: setter(map-get($map, indicator-bg-position), top 0.125rem left); + $indicator-bg-position: setter( + map-get($map, indicator-bg-position), + top 0.125rem left + ); $indicator-bg-size: setter(map-get($map, indicator-bg-size), 100%); $indicator-display: setter(map-get($map, indicator-display), inline-block); - $indicator-height: setter(map-get($map, indicator-height), #{$line-height-base}em); + $indicator-height: setter( + map-get($map, indicator-height), + #{$line-height-base}em + ); $indicator-text-indent: map-get($map, indicator-text-indent); - $indicator-vertical-align: setter(map-get($map, indicator-vertical-align), middle); + $indicator-vertical-align: setter( + map-get($map, indicator-vertical-align), + middle + ); $indicator-width: setter(map-get($map, indicator-width), 1em); background-image: $indicator; @@ -55,4 +67,4 @@ .lexicon-icon { display: none; } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/mixins/_badges.scss b/packages/clay-css/src/scss/mixins/_badges.scss index 6c555022e3..eb5de5ff8c 100644 --- a/packages/clay-css/src/scss/mixins/_badges.scss +++ b/packages/clay-css/src/scss/mixins/_badges.scss @@ -23,7 +23,10 @@ $padding-x: map-get($map, padding-x); $padding-y: setter(map-get($map, padding-y), 0); - $lexicon-icon-height: setter(map-get($map, lexicon-icon-height), map-get($map, lexicon-icon-width)); + $lexicon-icon-height: setter( + map-get($map, lexicon-icon-height), + map-get($map, lexicon-icon-width) + ); $lexicon-icon-margin-top: map-get($map, lexicon-icon-margin-top); $lexicon-icon-width: map-get($map, lexicon-icon-width); @@ -56,4 +59,4 @@ width: $lexicon-icon-width; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/mixins/_box-shadow.scss b/packages/clay-css/src/scss/mixins/_box-shadow.scss index c420826100..9f96844428 100644 --- a/packages/clay-css/src/scss/mixins/_box-shadow.scss +++ b/packages/clay-css/src/scss/mixins/_box-shadow.scss @@ -11,4 +11,4 @@ box-shadow: $shadow; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/mixins/_buttons.scss b/packages/clay-css/src/scss/mixins/_buttons.scss index a3b45384f1..85986acda3 100644 --- a/packages/clay-css/src/scss/mixins/_buttons.scss +++ b/packages/clay-css/src/scss/mixins/_buttons.scss @@ -81,101 +81,140 @@ $breakpoint-down: map-get($map, breakpoint-down); - $base: map-merge(( - background-color: map-get($map, bg), - ), $map); + $base: map-merge( + ( + background-color: map-get($map, bg), + ), + $map + ); $hover: setter(map-get($map, hover), ()); - $hover: map-merge(( - background-color: map-get($map, hover-bg), - border-color: map-get($map, hover-border-color), - color: map-get($map, hover-color), - opacity: map-get($map, hover-opacity), - text-decoration: map-get($map, hover-text-decoration), - z-index: map-get($map, hover-z-index), - ), $hover); + $hover: map-merge( + ( + background-color: map-get($map, hover-bg), + border-color: map-get($map, hover-border-color), + color: map-get($map, hover-color), + opacity: map-get($map, hover-opacity), + text-decoration: map-get($map, hover-text-decoration), + z-index: map-get($map, hover-z-index), + ), + $hover + ); $focus: setter(map-get($map, focus), ()); - $focus: map-merge(( - background-color: map-get($map, focus-bg), - border-color: map-get($map, focus-border-color), - box-shadow: map-get($map, focus-box-shadow), - color: map-get($map, focus-color), - opacity: map-get($map, focus-opacity), - outline: map-get($map, focus-outline), - z-index: map-get($map, focus-z-index), - ), $focus); + $focus: map-merge( + ( + background-color: map-get($map, focus-bg), + border-color: map-get($map, focus-border-color), + box-shadow: map-get($map, focus-box-shadow), + color: map-get($map, focus-color), + opacity: map-get($map, focus-opacity), + outline: map-get($map, focus-outline), + z-index: map-get($map, focus-z-index), + ), + $focus + ); $disabled: setter(map-get($map, disabled), ()); - $disabled: map-merge(( - background-color: map-get($map, disabled-bg), - border-color: map-get($map, disabled-border-color), - box-shadow: map-get($map, disabled-box-shadow), - color: map-get($map, disabled-color), - cursor: map-get($map, disabled-cursor), - opacity: map-get($map, disabled-opacity), - z-index: map-get($map, disabled-z-index), - ), $disabled); + $disabled: map-merge( + ( + background-color: map-get($map, disabled-bg), + border-color: map-get($map, disabled-border-color), + box-shadow: map-get($map, disabled-box-shadow), + color: map-get($map, disabled-color), + cursor: map-get($map, disabled-cursor), + opacity: map-get($map, disabled-opacity), + z-index: map-get($map, disabled-z-index), + ), + $disabled + ); $active: setter(map-get($map, active), ()); - $active: map-merge(( - background-color: map-get($map, active-bg), - border-color: map-get($map, active-border-color), - box-shadow: map-get($map, active-box-shadow), - color: map-get($map, active-color), - opacity: map-get($map, active-opacity), - z-index: map-get($map, active-z-index), - ), $active); + $active: map-merge( + ( + background-color: map-get($map, active-bg), + border-color: map-get($map, active-border-color), + box-shadow: map-get($map, active-box-shadow), + color: map-get($map, active-color), + opacity: map-get($map, active-opacity), + z-index: map-get($map, active-z-index), + ), + $active + ); $active-class-after: setter(map-get($map, active-class-after), ()); $active-focus: setter(map-get($map, active-focus), ()); - $active-focus: map-merge(( - box-shadow: setter( - map-get($map, active-focus-box-shadow), map-get($focus, box-shadow)), - ), $active-focus); + $active-focus: map-merge( + ( + box-shadow: + setter( + map-get($map, active-focus-box-shadow), + map-get($focus, box-shadow) + ), + ), + $active-focus + ); $lexicon-icon: setter(map-get($map, lexicon-icon), ()); - $lexicon-icon: map-merge(( - font-size: map-get($map, lexicon-icon-font-size), - margin-bottom: map-get($map, lexicon-icon-margin-bottom), - margin-right: map-get($map, lexicon-icon-margin-right), - margin-left: map-get($map, lexicon-icon-margin-left), - margin-top: map-get($map, lexicon-icon-margin-top), - ), $lexicon-icon); + $lexicon-icon: map-merge( + ( + font-size: map-get($map, lexicon-icon-font-size), + margin-bottom: map-get($map, lexicon-icon-margin-bottom), + margin-right: map-get($map, lexicon-icon-margin-right), + margin-left: map-get($map, lexicon-icon-margin-left), + margin-top: map-get($map, lexicon-icon-margin-top), + ), + $lexicon-icon + ); $inline-item: setter(map-get($map, inline-item), ()); - $inline-item: map-merge(( - font-size: map-get($map, inline-item-font-size), - ), $inline-item); + $inline-item: map-merge( + ( + font-size: map-get($map, inline-item-font-size), + ), + $inline-item + ); $section: setter(map-get($map, section), ()); - $section: map-merge(( - font-size: map-get($map, section-font-size), - font-weight: map-get($map, section-font-weight), - line-height: map-get($map, section-line-height), - ), $section); + $section: map-merge( + ( + font-size: map-get($map, section-font-size), + font-weight: map-get($map, section-font-weight), + line-height: map-get($map, section-line-height), + ), + $section + ); $mobile: setter(map-get($map, mobile), ()); - $mobile: map-merge(( - font-size: map-get($map, font-size-mobile), - height: map-get($map, height-mobile), - padding-bottom: map-get($map, padding-bottom-mobile), - padding-left: map-get($map, padding-left-mobile), - padding-right: map-get($map, padding-right-mobile), - padding-top: map-get($map, padding-top-mobile), - width: map-get($map, width-mobile), - ), $mobile); - - $loading-animation: setter(map-get($map, loading-animation), $clay-unset-placeholder); + $mobile: map-merge( + ( + font-size: map-get($map, font-size-mobile), + height: map-get($map, height-mobile), + padding-bottom: map-get($map, padding-bottom-mobile), + padding-left: map-get($map, padding-left-mobile), + padding-right: map-get($map, padding-right-mobile), + padding-top: map-get($map, padding-top-mobile), + width: map-get($map, width-mobile), + ), + $mobile + ); + + $loading-animation: setter( + map-get($map, loading-animation), + $clay-unset-placeholder + ); $c-inner: setter(map-get($map, c-inner), ()); - $c-inner: map-merge(( - margin-bottom: math-sign(map-get($map, padding-bottom)), - margin-left: math-sign(map-get($map, padding-left)), - margin-right: math-sign(map-get($map, padding-right)), - margin-top: math-sign(map-get($map, padding-top)), - ), $c-inner); + $c-inner: map-merge( + ( + margin-bottom: math-sign(map-get($map, padding-bottom)), + margin-left: math-sign(map-get($map, padding-left)), + margin-right: math-sign(map-get($map, padding-right)), + margin-top: math-sign(map-get($map, padding-top)), + ), + $c-inner + ); @if ($enabled) { @include clay-css($base); diff --git a/packages/clay-css/src/scss/mixins/_cards.scss b/packages/clay-css/src/scss/mixins/_cards.scss index 79c8b58210..41e141e774 100644 --- a/packages/clay-css/src/scss/mixins/_cards.scss +++ b/packages/clay-css/src/scss/mixins/_cards.scss @@ -407,33 +407,63 @@ @mixin clay-card-type-asset($map) { $enabled: setter(map-get($map, enabled), true); - $aspect-ratio-border-color: setter(map-get($map, aspect-ratio-border-color), $card-border-color); - $aspect-ratio-border-style: setter(map-get($map, aspect-ratio-border-style), solid); + $aspect-ratio-border-color: setter( + map-get($map, aspect-ratio-border-color), + $card-border-color + ); + $aspect-ratio-border-style: setter( + map-get($map, aspect-ratio-border-style), + solid + ); // The Sass map key name `aspect-ratio-border-bottom-width` is deprecated as of v2.5.1 use `aspect-ratio-border-width` instead - $aspect-ratio-border-bottom-width: setter(map-get($map, aspect-ratio-border-bottom-width), 0 0 0.0625rem 0); // 0 0 1px 0 + $aspect-ratio-border-bottom-width: setter( + map-get($map, aspect-ratio-border-bottom-width), + 0 0 0.0625rem 0 + ); // 0 0 1px 0 $aspect-ratio-border-width: map-get($map, aspect-ratio-border-width); - $aspect-ratio-horizontal: setter(map-get($map, aspect-ratio-horizontal), 16); + $aspect-ratio-horizontal: setter( + map-get($map, aspect-ratio-horizontal), + 16 + ); $aspect-ratio-vertical: setter(map-get($map, aspect-ratio-vertical), 9); $card-body-padding-bottom: map-get($map, card-body-padding-bottom); $card-body-padding-left: map-get($map, card-body-padding-left); $card-body-padding-right: map-get($map, card-body-padding-right); $card-body-padding-top: map-get($map, card-body-padding-top); - $card-row-align-items: setter(map-get($map, card-row-align-items), flex-start); + $card-row-align-items: setter( + map-get($map, card-row-align-items), + flex-start + ); $checkbox-cursor: setter(map-get($map, checkbox-cursor), $link-cursor); $asset-icon-color: map-get($map, asset-icon-color); $asset-icon-width: setter(map-get($map, asset-icon-width), 22.225%); - $asset-icon-sticker-border-radius: setter(map-get($map, asset-icon-sticker-border-radius), 50%); - $asset-icon-sticker-font-size: setter(map-get($map, asset-icon-sticker-font-size), 2vw); - - $dropdown-action-offset-bottom: map-get($map, dropdown-action-offset-bottom); + $asset-icon-sticker-border-radius: setter( + map-get($map, asset-icon-sticker-border-radius), + 50% + ); + $asset-icon-sticker-font-size: setter( + map-get($map, asset-icon-sticker-font-size), + 2vw + ); + + $dropdown-action-offset-bottom: map-get( + $map, + dropdown-action-offset-bottom + ); $dropdown-action-offset-left: map-get($map, dropdown-action-offset-left); - $dropdown-action-offset-right: setter(map-get($map, dropdown-action-offset-right), -0.5rem); // -8px - $dropdown-action-offset-top: setter(map-get($map, dropdown-action-offset-top), -0.1875rem); // -3px + $dropdown-action-offset-right: setter( + map-get($map, dropdown-action-offset-right), + -0.5rem + ); // -8px + $dropdown-action-offset-top: setter( + map-get($map, dropdown-action-offset-top), + -0.1875rem + ); // -3px @if ($enabled) { .aspect-ratio { @@ -446,7 +476,10 @@ border-width: $aspect-ratio-border-bottom-width; } - @include clay-aspect-ratio($aspect-ratio-horizontal, $aspect-ratio-vertical); + @include clay-aspect-ratio( + $aspect-ratio-horizontal, + $aspect-ratio-vertical + ); .custom-control label, .form-check-label { @@ -515,7 +548,7 @@ /// @example /// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true /// aspect-ratio-bg: {Color | String | Null}, -/// aspect-ratio-checkered-fg: {Color | Null}, // Pass parameter to `clay-bg-checkered` mixin +/// aspect-ratio-checkered-fg: {Color | Null}, // Pass parameter to `clay-bg-checkered` mixin /// aspect-ratio-checkered-bg: {Color}, /// asset-icon-color: {Color | String | Null}, /// asset-icon-max-width: {Number | String | Null}, @@ -539,8 +572,14 @@ $asset-icon-min-width: map-get($map, asset-icon-min-width); $asset-icon-width: map-get($map, asset-icon-width); - $asset-icon-lexicon-icon-height: map-get($map, asset-icon-lexicon-icon-height); - $asset-icon-lexicon-icon-width: map-get($map, asset-icon-lexicon-icon-width); + $asset-icon-lexicon-icon-height: map-get( + $map, + asset-icon-lexicon-icon-height + ); + $asset-icon-lexicon-icon-width: map-get( + $map, + asset-icon-lexicon-icon-width + ); @if ($enabled) { .aspect-ratio { @@ -596,9 +635,15 @@ $sticker-line-height: map-get($map, sticker-line-height); $sticker-size: map-get($map, sticker-size); - $dropdown-action-offset-bottom: map-get($map, dropdown-action-offset-bottom); + $dropdown-action-offset-bottom: map-get( + $map, + dropdown-action-offset-bottom + ); $dropdown-action-offset-left: map-get($map, dropdown-action-offset-left); - $dropdown-action-offset-right: setter(map-get($map, dropdown-action-offset-right), -0.5rem); // -8px + $dropdown-action-offset-right: setter( + map-get($map, dropdown-action-offset-right), + -0.5rem + ); // -8px $dropdown-action-offset-top: map-get($map, dropdown-action-offset-top); @if ($enabled) { @@ -619,8 +664,12 @@ .sticker { font-size: $sticker-font-size; height: $sticker-size; - line-height: if($sticker-line-height, $sticker-line-height, $sticker-size); + line-height: if( + $sticker-line-height, + $sticker-line-height, + $sticker-size + ); width: $sticker-size; } } -} \ No newline at end of file +} diff --git a/packages/clay-css/src/scss/mixins/_close.scss b/packages/clay-css/src/scss/mixins/_close.scss index 518726f1b5..522207cd89 100644 --- a/packages/clay-css/src/scss/mixins/_close.scss +++ b/packages/clay-css/src/scss/mixins/_close.scss @@ -50,68 +50,92 @@ @mixin clay-close($map) { $enabled: setter(map-get($map, enabled), true); - $base: map-merge(( - background-color: map-get($map, bg), - ), $map); + $base: map-merge( + ( + background-color: map-get($map, bg), + ), + $map + ); $hover: setter(map-get($map, hover), ()); - $hover: map-merge(( - background-color: map-get($map, hover-bg), - color: map-get($map, hover-color), - opacity: map-get($map, hover-opacity), - text-decoration: map-get($map, hover-text-decoration), - ), $hover); + $hover: map-merge( + ( + background-color: map-get($map, hover-bg), + color: map-get($map, hover-color), + opacity: map-get($map, hover-opacity), + text-decoration: map-get($map, hover-text-decoration), + ), + $hover + ); $focus: setter(map-get($map, focus), ()); - $focus: map-merge(( - background-color: map-get($map, focus-bg), - box-shadow: map-get($map, focus-box-shadow), - color: map-get($map, focus-color), - opacity: map-get($map, focus-opacity), - outline: map-get($map, focus-outline), - text-decoration: map-get($map, focus-text-decoration), - ), $focus); + $focus: map-merge( + ( + background-color: map-get($map, focus-bg), + box-shadow: map-get($map, focus-box-shadow), + color: map-get($map, focus-color), + opacity: map-get($map, focus-opacity), + outline: map-get($map, focus-outline), + text-decoration: map-get($map, focus-text-decoration), + ), + $focus + ); $disabled: setter(map-get($map, disabled), ()); - $disabled: map-merge(( - background-color: map-get($map, disabled-bg), - border-color: map-get($map, disabled-border-color), - box-shadow: map-get($map, disabled-box-shadow), - color: map-get($map, disabled-color), - cursor: map-get($map, disabled-cursor), - opacity: map-get($map, disabled-opacity), - pointer-events: map-get($map, disabled-pointer-events), - text-decoration: map-get($map, disabled-text-decoration), - ), $disabled); + $disabled: map-merge( + ( + background-color: map-get($map, disabled-bg), + border-color: map-get($map, disabled-border-color), + box-shadow: map-get($map, disabled-box-shadow), + color: map-get($map, disabled-color), + cursor: map-get($map, disabled-cursor), + opacity: map-get($map, disabled-opacity), + pointer-events: map-get($map, disabled-pointer-events), + text-decoration: map-get($map, disabled-text-decoration), + ), + $disabled + ); $active: setter(map-get($map, active), ()); - $active: map-merge(( - background-color: map-get($map, active-bg), - border-color: map-get($map, active-border-color), - color: map-get($map, active-color), - ), $active); + $active: map-merge( + ( + background-color: map-get($map, active-bg), + border-color: map-get($map, active-border-color), + color: map-get($map, active-color), + ), + $active + ); $btn-focus: setter(map-get($map, btn-focus), ()); - $btn-focus: map-merge(( - box-shadow: map-get($map, btn-focus-box-shadow), - outline: map-get($map, btn-focus-outline), - ), $btn-focus); + $btn-focus: map-merge( + ( + box-shadow: map-get($map, btn-focus-box-shadow), + outline: map-get($map, btn-focus-outline), + ), + $btn-focus + ); $lexicon-icon: setter(map-get($map, lexicon-icon), ()); - $lexicon-icon: map-merge(( - margin-bottom: map-get($map, lexicon-icon-margin-bottom), - margin-left: map-get($map, lexicon-icon-margin-left), - margin-right: map-get($map, lexicon-icon-margin-right), - margin-top: map-get($map, lexicon-icon-margin-top), - ), $lexicon-icon); + $lexicon-icon: map-merge( + ( + margin-bottom: map-get($map, lexicon-icon-margin-bottom), + margin-left: map-get($map, lexicon-icon-margin-left), + margin-right: map-get($map, lexicon-icon-margin-right), + margin-top: map-get($map, lexicon-icon-margin-top), + ), + $lexicon-icon + ); $c-inner: setter(map-get($map, c-inner), ()); - $c-inner: map-merge(( - margin-bottom: math-sign(map-get($map, padding-bottom)), - margin-left: math-sign(map-get($map, padding-left)), - margin-right: math-sign(map-get($map, padding-right)), - margin-top: math-sign(map-get($map, padding-top)), - ), $c-inner); + $c-inner: map-merge( + ( + margin-bottom: math-sign(map-get($map, padding-bottom)), + margin-left: math-sign(map-get($map, padding-left)), + margin-right: math-sign(map-get($map, padding-right)), + margin-top: math-sign(map-get($map, padding-top)), + ), + $c-inner + ); @if ($enabled) { @include clay-css($base); diff --git a/packages/clay-css/src/scss/mixins/_dropdown-menu.scss b/packages/clay-css/src/scss/mixins/_dropdown-menu.scss index c04cc24704..48656edb80 100644 --- a/packages/clay-css/src/scss/mixins/_dropdown-menu.scss +++ b/packages/clay-css/src/scss/mixins/_dropdown-menu.scss @@ -236,7 +236,10 @@ $active-font-weight: map-get($map, active-font-weight); $active-text-decoration: map-get($map, active-text-decoration); - $active-c-kbd-inline: map-deep-merge((), map-get($map, active-c-kbd-inline)); + $active-c-kbd-inline: map-deep-merge( + (), + map-get($map, active-c-kbd-inline) + ); $active-class-bg: map-get($map, active-class-bg); $active-class-border-color: map-get($map, active-class-border-color); @@ -244,7 +247,10 @@ $active-class-font-weight: map-get($map, active-class-font-weight); $active-class-text-decoration: map-get($map, active-class-text-decoration); - $active-class-c-kbd-inline: map-deep-merge((), map-get($map, active-class-c-kbd-inline)); + $active-class-c-kbd-inline: map-deep-merge( + (), + map-get($map, active-class-c-kbd-inline) + ); $disabled-bg: map-get($map, disabled-bg); $disabled-border-color: map-get($map, disabled-border-color); @@ -256,23 +262,32 @@ $disabled-pointer-events: map-get($map, disabled-pointer-events); $disabled-text-decoration: map-get($map, disabled-text-decoration); - $disabled-c-kbd-inline: map-deep-merge((), map-get($map, disabled-c-kbd-inline)); + $disabled-c-kbd-inline: map-deep-merge( + (), + map-get($map, disabled-c-kbd-inline) + ); - $disabled-active-pointer-events: map-get($map, disabled-active-pointer-events); + $disabled-active-pointer-events: map-get( + $map, + disabled-active-pointer-events + ); $autofit-row: map-deep-merge((), map-get($map, autofit-row)); $c-kbd-inline: map-deep-merge((), map-get($map, c-kbd-inline)); $c-inner: setter(map-get($map, c-inner), ()); - $c-inner: map-deep-merge(( - flex-grow: 1, - margin-bottom: math-sign($padding-bottom), - margin-left: math-sign($padding-left), - margin-right: math-sign($padding-right), - margin-top: math-sign($padding-top), - width: auto, - ), $c-inner); + $c-inner: map-deep-merge( + ( + flex-grow: 1, + margin-bottom: math-sign($padding-bottom), + margin-left: math-sign($padding-left), + margin-right: math-sign($padding-right), + margin-top: math-sign($padding-top), + width: auto, + ), + $c-inner + ); @if ($enabled) { background-color: $bg; // For `