# Background
- 'background'
+ - 'background-image'
+ - 'background-color'
- 'background-attachment'
- 'background-clip'
- - 'background-color'
- - 'background-image'
- - 'background-repeat'
+ - 'background-origin'
- 'background-position'
+ - 'background-repeat'
- 'background-size'
# Shadow
}
.is-accordion-submenu-parent[aria-expanded='true'] > span::after {
- transform-origin: 50% 50%;
transform: scaleY(-1);
+ transform-origin: 50% 50%;
}
}
color: $accordion-item-color;
:last-child:not(.is-active) > & {
- border-radius: 0 0 $global-radius $global-radius;
border-bottom: $accordion-content-border;
+ border-radius: 0 0 $global-radius $global-radius;
}
&:hover,
@if $accordion-plusminus {
&::before {
- content: '+';
position: absolute;
- #{$global-right}: 1rem;
top: 50%;
+ #{$global-right}: 1rem;
margin-top: -0.5rem;
+ content: '+';
}
.is-active > &::before {
@include disable-mouse-outline;
display: inline-block;
vertical-align: middle;
- padding: $button-padding;
margin: $button-margin;
+ padding: $button-padding;
-webkit-appearance: none;
border: 1px solid transparent;
transition: $button-transition;
font-size: map-get($button-sizes, default);
- text-align: center;
line-height: 1;
+ text-align: center;
cursor: pointer;
}
@if $dir == horizontal {
> li.opens-left {
> .is-dropdown-submenu {
- left: auto;
- right: 0;
top: 100%;
+ right: 0;
+ left: auto;
}
}
> li.opens-right {
> .is-dropdown-submenu {
+ top: 100%;
right: auto;
left: 0;
- top: 100%;
}
}
display: none;
min-width: $dropdownmenu-min-width;
- background: $dropdownmenu-background;
border: $dropdownmenu-border;
+ background: $dropdownmenu-background;
.is-dropdown-submenu-parent {
@if $dropdownmenu-arrows {
}
> li > a {
- align-items: flex-start;
justify-content: flex-start;
+ align-items: flex-start;
}
}
@else {
// Active state
.active > a {
- color: $menu-item-color-active;
background: $menu-item-background-active;
+ color: $menu-item-color-active;
}
// Menu with border
z-index: $offcanvas-zindex;
max-height: 100%;
- overflow-y: auto;
- background: $offcanvas-background;
transform: translateX(0) translateY(0);
+ background: $offcanvas-background;
+ overflow-y: auto;
}
@mixin off-canvas-position(
$vertical-size: $offcanvas-vertical-size
) {
@if $position == left {
- left: -$size;
top: 0;
+ left: -$size;
width: $size;
}
@else if $position == right {
- right: -$size;
top: 0;
+ right: -$size;
width: $size;
}
@else if $position == top {
/// Adds styles for the inner Orbit slide container. These styles are used on the `.orbit-container` class.
@mixin orbit-container {
position: relative;
+ height: 0px; // Prevent FOUC by not showing until JS sets height
margin: 0;
- overflow: hidden;
list-style: none;
- height: 0px; // Prevent FOUC by not showing until JS sets height
+ overflow: hidden;
}
/// Adds styles for the individual slides of an Orbit slider. These styles are used on the `.orbit-slide` class.
@mixin progress-container {
height: $progress-height;
margin-bottom: $progress-margin-bottom;
- background-color: $progress-background;
border-radius: $progress-radius;
+ background-color: $progress-background;
}
/// Adds styles for the inner meter of a progress bar.
@mixin responsive-embed($ratio: $responsive-embed-ratio) {
position: relative;
height: 0;
- padding-bottom: responsive-embed($ratio);
margin-bottom: $responsive-embed-margin-bottom;
+ padding-bottom: responsive-embed($ratio);
overflow: hidden;
iframe,
border-radius: $switch-radius;
background: $switch-background;
transition: $switch-paddle-transition;
- cursor: pointer;
// Resetting these <label> presets so type styles cascade down
font-weight: inherit;
color: inherit;
+ cursor: pointer;
+
// Needed to override specificity
input + & {
margin: 0;
code {
padding: $code-padding;
- background-color: $code-background;
border: $code-border;
+ background-color: $code-background;
font-family: $code-font-family;
font-weight: $code-font-weight;
content: '';
@if ($triangle-direction == down) {
- border-color: $triangle-color transparent transparent;
- border-top-style: solid;
border-bottom-width: 0;
+ border-top-style: solid;
+ border-color: $triangle-color transparent transparent;
}
@if ($triangle-direction == up) {
- border-color: transparent transparent $triangle-color;
- border-bottom-style: solid;
border-top-width: 0;
+ border-bottom-style: solid;
+ border-color: transparent transparent $triangle-color;
}
@if ($triangle-direction == right) {
- border-color: transparent transparent transparent $triangle-color;
- border-left-style: solid;
border-right-width: 0;
+ border-left-style: solid;
+ border-color: transparent transparent transparent $triangle-color;
}
@if ($triangle-direction == left) {
- border-color: transparent $triangle-color transparent transparent;
- border-right-style: solid;
border-left-width: 0;
+ border-right-style: solid;
+ border-color: transparent $triangle-color transparent transparent;
}
}
height: $weight;
background: $color;
+ box-shadow: $shadow;
content: '';
$offset: ($weight + $spacing) * ($i - 1);
$shadow: append($shadow, 0 $offset 0 $color, comma);
}
-
- box-shadow: $shadow;
}
// Hover state
/// Reverses the CSS output created by the `element-invisible()` mixin.
@mixin element-invisible-off {
position: static !important;
- height: auto;
width: auto;
+ height: auto;
overflow: visible;
clip: auto;
}