// foundation.zurb.com
// Licensed under MIT Open Source
+// scss-lint:disable ColorVariable, QualifyingElement, VendorPrefix
+
////
/// @group global
////
}
&.small {
- @include callout-size(.5rem);
+ @include callout-size(0.5rem);
}
&.large {
padding-#{$global-right}: 1.5rem;
position: relative;
}
+
&.is-down-arrow > a::after {
@include css-triangle(5px, $dropdownmenu-arrow-color, down);
position: absolute;
top: rem-calc(2px) + rem-calc(get-side($menu-item-padding, top));
#{$global-right}: 5px;
}
+
&.is-left-arrow > a::after {
@include css-triangle(5px, $dropdownmenu-arrow-color, left);
float: left;
margin-left: 0;
margin-right: 10px;
}
+
&.is-right-arrow > a::after {
@include css-triangle(5px, $dropdownmenu-arrow-color, right);
}
right: 0;
left: auto;
}
+
&.is-right-arrow.opens-inner .submenu {
left: 0;
right: auto;
}
+
&.opens-inner .submenu {
top: 100%;
}
background: $dropdownmenu-background;
border: $dropdownmenu-border;
- @if (type_of($dropdownmenu-border-width) == 'number') {
+ @if (type-of($dropdownmenu-border-width) == 'number') {
margin-top: (-$dropdownmenu-border-width);
}
z-index: $offcanvas-zindex;
max-height: 100%;
overflow-y: auto;
- transform: translateX(0px);
+ transform: translateX(0);
}
@mixin off-canvas-position(
.position-left.reveal-for-#{$name} {
@include off-canvas-reveal(left);
}
+
.position-right.reveal-for-#{$name} {
@include off-canvas-reveal(right);
}
@mixin orbit-slide {
width: 100%;
max-height: 100%;
+
&.no-motionui {
&.is-active {
top: 0;
z-index: $reveal-zindex + 1;
padding: $reveal-padding;
border: $reveal-border;
- // margin: 100px auto 0 100px;
- margin: 100px auto 0 auto;
+ margin: 100px auto 0;
background-color: $reveal-background;
border-radius: $reveal-radius;
min-height: 100vh;
max-width: none;
margin-left: 0;
- border: none;
+ border: 0;
}
@mixin foundation-reveal {
body.is-reveal-open {
overflow: hidden;
}
-
+
// Overlay
.reveal-overlay {
@include reveal-overlay;
@include reveal-modal-width($reveal-width);
position: absolute;
overflow-y: auto;
+
// Remove padding
&.collapse {
padding: 0;
.sticky {
position: absolute;
z-index: 0;
- transform: translate3d(0,0,0);
+ transform: translate3d(0, 0, 0);
}
.sticky.is-stuck {
display: none;
}
}
- } @else {
+ }
+ @else {
thead {
display: none;
}
&:hover {
background: $tab-item-background-hover;
}
-
+
&:focus,
&[aria-selected='true'] {
background: $tab-background-active;
// Vertical
.tabs.vertical {
- @include tabs-container-vertical;
+ @include tabs-container-vertical;
}
// Simple
}
.tabs-panel {
- @include tabs-panel;
+ @include tabs-panel;
}
}
}
input.button {
- width:auto;
+ width: auto;
}
}
/// makes sections stacked
-@mixin top-bar-stacked() {
+@mixin top-bar-stacked {
// Sub-sections
.top-bar-right {
width: 100%;
}
+
.top-bar-left {
width: 100%;
}
.top-bar {
@include top-bar-container;
}
- // generate classes for stacking on each screen size (defined in $breakpoint-classes)
+
+ // Generate classes for stacking on each screen size (defined in $breakpoint-classes)
@each $size in $breakpoint-classes {
.stacked-for-#{$size} {
@include breakpoint($size down) {
}
}
}
- // stack on small screens as default
+
+ // Stack on small screens as default
@include breakpoint(small down) {
@include top-bar-stacked;
}
.top-bar-left {
float: left;
}
+
.top-bar-right {
float: right;
}
width: 100%;
margin-bottom: $form-spacing;
- & > *:first-child {
+ > :first-child {
border-radius: $global-radius 0 0 $global-radius;
}
- & > *:last-child {
- & > * {
+ > :last-child {
+ > * {
border-radius: 0 $global-radius $global-radius 0;
}
}
}
// Reset Normalize setting content-box to search elements
+ // scss-lint:disable QualifyingElement
input[type='search'] {
box-sizing: border-box;
}
) {
@include grid-row;
@include grid-column($gutter: $gutter);
-
+
&,
&:last-child {
float: none;
// Licensed under MIT Open Source
@mixin foundation-text-alignment {
- @each $size in $breakpoint-classes {
- @include breakpoint($size) {
- @each $align in (left, right, center, justify) {
- @if $size != 'small' {
- .#{$size}-text-#{$align} {
- text-align: $align;
- }
+ @each $size in $breakpoint-classes {
+ @include breakpoint($size) {
+ @each $align in (left, right, center, justify) {
+ @if $size != 'small' {
+ .#{$size}-text-#{$align} {
+ text-align: $align;
}
- @else {
- .text-#{$align} {
- text-align: $align;
- }
+ }
+ @else {
+ .text-#{$align} {
+ text-align: $align;
}
}
}
}
+ }
}
@each $size, $headers in $header-sizes {
@include breakpoint($size) {
@each $header, $font-size in $headers {
- #{$header} { font-size: rem-calc($font-size); }
+ #{$header} {
+ font-size: rem-calc($font-size);
+ }
}
}
}
/// @param {Number} $weight - Height of individual bars in the icon.
/// @param {Number} $bars - Number of bars in the icon.
@mixin hamburger(
- $color: black,
+ $color: #000,
$color-hover: #666,
$width: 20px,
$height: 16px,