// Reset <button> styles created by most browsers
button {
- @include disable-mouse-outline;
padding: 0;
appearance: none;
border: 0;
background: transparent;
line-height: 1;
cursor: $global-button-cursor;
+ @include disable-mouse-outline;
}
// Prevent text overflow on pre
/// Adds styles for a breadcrumbs container, along with the styles for the `<li>` and `<a>` elements inside of it.
@mixin breadcrumbs-container {
- @include clearfix;
margin: $breadcrumbs-margin;
list-style: none;
+ @include clearfix;
+
// Item wrapper
li {
float: #{$global-left};
$child-selector: $buttongroup-child-selector,
$spacing: $buttongroup-spacing
) {
- @include clearfix;
margin-bottom: $buttongroup-margin;
@if $global-flexbox {
font-size: 0;
}
+ @include clearfix;
+
#{$child-selector} {
margin: 0;
margin-#{$global-right}: $spacing;
// TODO: Document button-base() mixin
@mixin button-base {
- @include disable-mouse-outline;
display: inline-block;
vertical-align: middle;
margin: $button-margin;
+ border: $button-border;
+ border-radius: $button-radius;
+ transition: $button-transition;
+ font-family: $button-font-family;
+ font-size: map-get($button-sizes, default);
+ font-weight: $button-font-weight;
+ -webkit-appearance: none; // sass-lint:disable-line no-vendor-prefixes
+ line-height: 1;
+ text-align: center;
+ cursor: pointer;
@if (type-of($button-padding) == 'map') {
@each $size, $padding in $button-padding {
padding: $button-padding;
}
- border: $button-border;
- border-radius: $button-radius;
- transition: $button-transition;
- font-family: $button-font-family;
- font-size: map-get($button-sizes, default);
- font-weight: $button-font-weight;
- -webkit-appearance: none; // sass-lint:disable-line no-vendor-prefixes
- line-height: 1;
- text-align: center;
- cursor: pointer;
+ @include disable-mouse-outline;
}
/// Expands a button to make it full-width.
/// Adds styles for a callout.
/// @param {Color} $color [$callout-background] - Color to use.
@mixin callout($color: $callout-background) {
- @include callout-base;
@include callout-style($color);
+ @include callout-base;
}
@mixin foundation-callout {
$x: nth($closebutton-position, 1);
$y: nth($closebutton-position, 2);
- @include disable-mouse-outline;
position: absolute;
z-index: $closebutton-z-index;
color: $closebutton-color;
cursor: pointer;
+ @include disable-mouse-outline;
+
&:hover,
&:focus {
color: $closebutton-color-hover;
$transition: $offcanvas-transition-length $offcanvas-transition-timing,
$fixed: true
) {
- @include disable-mouse-outline;
+ // Set the off-canvas z-index.
+ z-index: $offcanvas-push-zindex;
+ transition: transform $transition;
+ backface-visibility: hidden;
+ background: $background;
@if $fixed == true {
position: fixed;
position: absolute;
}
- // Set the off-canvas z-index.
- z-index: $offcanvas-push-zindex;
+ @include disable-mouse-outline;
// Increase CSS specificity
&.is-transition-push {
z-index: $offcanvas-push-zindex;
}
- transition: transform $transition;
- backface-visibility: hidden;
-
- background: $background;
-
// Hide inactive off-canvas within the content that have the same position
&.is-closed {
visibility: hidden;
/// Adds base styles for the next/previous buttons in an Orbit slider. These styles are shared between the `.orbit-next` and `.orbit-previous` classes in the default CSS.
@mixin orbit-control {
- @include disable-mouse-outline;
- @include vertical-center;
z-index: $orbit-control-zindex;
padding: $orbit-control-padding;
color: $white;
+ @include vertical-center;
+ @include disable-mouse-outline;
&:hover,
&:active,
/// Adds styles for a container of Orbit bullets. /// Adds styles for the Orbit previous button. These styles are used on the `.orbit-bullets` class.
@mixin orbit-bullets {
- @include disable-mouse-outline;
position: relative;
margin-top: $orbit-bullet-margin-top;
margin-bottom: $orbit-bullet-margin-bottom;
text-align: center;
+ @include disable-mouse-outline;
button {
width: $orbit-bullet-diameter;
$padding: $pagination-item-padding,
$background-hover: $pagination-item-background-hover
) {
- @include clearfix;
margin-#{$global-left}: 0;
margin-bottom: $margin-bottom;
+ @include clearfix;
// List item
li {
/// Adds base styles for a modal.
@mixin reveal-modal-base {
- @include disable-mouse-outline;
z-index: $reveal-zindex + 1;
// Workaround android browser z-index bug
backface-visibility: hidden;
border-radius: $reveal-radius;
background-color: $reveal-background;
+ @include disable-mouse-outline;
+
@include breakpoint(medium) {
min-height: 0;
}
// Modal container
.reveal {
- @include reveal-modal-base;
- @include reveal-modal-width($reveal-width);
position: relative;
top: 100px;
margin-right: auto;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
+ @include reveal-modal-base;
+ @include reveal-modal-width($reveal-width);
+
// Remove padding
&.collapse {
padding: 0;
/// Adds the general styles for the slider handles.
@mixin slider-handle {
- @include disable-mouse-outline;
- @include vertical-center;
left: 0;
z-index: 1;
cursor: grab;
transition: $slider-transition;
touch-action: manipulation;
+ @include vertical-center;
+ @include disable-mouse-outline;
+
&:hover {
background-color: scale-color($slider-handle-background, $lightness: -15%);
}
&.unstriped {
tbody {
- @include -zf-table-unstripe();
background-color: $table-background;
+ @include -zf-table-unstripe();
}
}
}
$background: $tab-background,
$border-color: $tab-content-border
) {
- @include clearfix;
margin: $margin;
border: 1px solid $border-color;
background: $background;
list-style-type: none;
+ @include clearfix;
}
/// Augments a tab container to have vertical tabs. Use this in conjunction with `tabs-container()`.
float: #{$global-left};
> a {
- @include disable-mouse-outline;
display: block;
padding: $padding;
font-size: $font-size;
line-height: 1;
color: $color;
+ @include disable-mouse-outline;
&:hover {
background: $background-hover;
/// Adds styles for a top bar container.
@mixin top-bar-container {
+ padding: $topbar-padding;
+
@if $global-flexbox {
display: flex;
flex-wrap: nowrap;
@include clearfix;
}
- padding: $topbar-padding;
-
&,
ul {
background-color: $topbar-background;
line-height: $input-line-height;
color: $input-color;
+ @if has-value($input-transition) {
+ transition: $input-transition;
+ }
+
@if $select-triangle-color != transparent {
- @include background-triangle($select-triangle-color);
background-origin: content-box;
background-position: $global-right (-$form-spacing) center;
background-repeat: no-repeat;
background-size: 9px 6px;
padding-#{$global-right}: ($form-spacing * 1.5);
- }
- @if has-value($input-transition) {
- transition: $input-transition;
+ @include background-triangle($select-triangle-color);
}
// Focus state
// Text inputs
#{text-inputs()},
textarea {
- @include form-element;
appearance: none;
+ @include form-element;
}
// Text areas
// Center positioning
@else if $position == center {
+ margin-left: auto;
+ margin-right: auto;
&, &:last-child:not(:first-child) {
float: none;
clear: both;
}
- margin-right: auto;
- margin-left: auto;
}
@else {
/// Reset a position definition.
@mixin grid-column-unposition {
- @include grid-column-position(auto);
position: static;
margin-right: 0;
margin-left: 0;
+ @include grid-column-position(auto);
}
/// Offsets a column to the right by `$n` columns.
$background: $prototype-separator-background,
$top: $prototype-separator-margin-top
) {
- @include clearfix;
text-align: $align !important;
+ @include clearfix;
&::after {
@include position(relative);
$width: $grid-container,
$padding: $grid-container-padding
) {
- @include xy-gutters($gutters: $padding, $gutter-type: padding);
-
max-width: $width;
margin-left: auto;
margin-right: auto;
+
+ @include xy-gutters($gutters: $padding, $gutter-type: padding);
}
/// Creates a container for your flex cells.