2014-10-17 19:58:43 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Fallback for bourbon equivalent
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin clearfix() {
|
|
|
|
*zoom: 1;
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
content: ' ';
|
2014-09-22 17:35:48 +00:00
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
&::after {
|
2014-09-22 17:35:48 +00:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin border_radius($radius: 4px) {
|
2014-11-13 08:33:25 +00:00
|
|
|
border-radius: $radius;
|
2014-09-22 17:35:48 +00:00
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin border_radius_right($radius: 4px) {
|
|
|
|
border-top-right-radius: $radius;
|
|
|
|
border-bottom-right-radius: $radius;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin border_radius_left($radius: 4px) {
|
|
|
|
border-top-left-radius: $radius;
|
|
|
|
border-bottom-left-radius: $radius;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin border_radius_bottom($radius: 4px) {
|
|
|
|
border-bottom-left-radius: $radius;
|
|
|
|
border-bottom-right-radius: $radius;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin border_radius_top($radius: 4px) {
|
|
|
|
border-top-left-radius: $radius;
|
|
|
|
border-top-right-radius: $radius;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin opacity( $opacity: 0.75 ) {
|
|
|
|
opacity: $opacity;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin box_shadow($shadow_x: 3px, $shadow_y: 3px, $shadow_rad: 3px, $shadow_in: 3px, $shadow_color: #888) {
|
|
|
|
box-shadow: $shadow_x $shadow_y $shadow_rad $shadow_in $shadow_color;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin inset_box_shadow($shadow_x: 3px, $shadow_y: 3px, $shadow_rad: 3px, $shadow_in: 3px, $shadow_color: #888) {
|
|
|
|
box-shadow: inset $shadow_x $shadow_y $shadow_rad $shadow_in $shadow_color;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin text_shadow($shadow_x: 3px, $shadow_y: 3px, $shadow_rad: 3px, $shadow_color: #fff) {
|
|
|
|
text-shadow: $shadow_x $shadow_y $shadow_rad $shadow_color;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin vertical_gradient($from: #000, $to: #fff) {
|
2014-11-13 08:40:28 +00:00
|
|
|
background-color: $from;
|
2014-09-22 17:35:48 +00:00
|
|
|
background: -webkit-linear-gradient($from, $to);
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:31:07 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Vendor prefix no longer required.
|
|
|
|
*/
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin transition($selector: all, $animation: ease-in-out, $duration: 0.2s) {
|
2014-09-22 17:35:48 +00:00
|
|
|
transition: $selector $animation $duration;
|
|
|
|
}
|
|
|
|
|
2014-10-17 19:58:43 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Use bourbon mixin instead `@include transform(scale(1.5));`
|
|
|
|
*/
|
2014-09-22 17:35:48 +00:00
|
|
|
@mixin scale($ratio: 1.5) {
|
|
|
|
-webkit-transform: scale($ratio);
|
|
|
|
transform: scale($ratio);
|
|
|
|
}
|
|
|
|
|
2015-03-20 12:49:37 +00:00
|
|
|
/**
|
|
|
|
* Deprecated
|
|
|
|
* Use bourbon mixin instead `@include box-sizing(border-box);`
|
|
|
|
*/
|
|
|
|
@mixin borderbox() {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin darkorlighttextshadow($a, $opacity: 0.8) {
|
2015-03-17 15:45:35 +00:00
|
|
|
@if lightness($a) >= 65% {
|
|
|
|
@include text_shadow(0, -1px, 0, rgba(0, 0, 0, $opacity));
|
2016-08-09 16:28:32 +00:00
|
|
|
}
|
|
|
|
@else {
|
2015-03-17 15:45:35 +00:00
|
|
|
@include text_shadow(0, 1px, 0, rgba(255, 255, 255, $opacity));
|
|
|
|
}
|
2014-09-22 17:35:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Objects
|
|
|
|
*/
|
|
|
|
@mixin menu() {
|
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin mediaright() {
|
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
img {
|
|
|
|
float: right;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin medialeft() {
|
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
img {
|
|
|
|
float: right;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin ir() {
|
|
|
|
display: block;
|
|
|
|
text-indent: -9999px;
|
|
|
|
position: relative;
|
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin icon( $glyph: '\e001' ) {
|
2014-09-22 17:35:48 +00:00
|
|
|
font-family: 'WooCommerce';
|
|
|
|
speak: none;
|
|
|
|
font-weight: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
text-transform: none;
|
|
|
|
line-height: 1;
|
2014-11-14 09:47:45 +00:00
|
|
|
margin: 0;
|
2014-09-22 17:35:48 +00:00
|
|
|
text-indent: 0;
|
|
|
|
position: absolute;
|
2014-11-14 09:47:45 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2014-09-22 17:35:48 +00:00
|
|
|
height: 100%;
|
2016-03-08 09:49:49 +00:00
|
|
|
text-align: center;
|
|
|
|
content: $glyph;
|
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin icon_dashicons( $glyph: '\f333' ) {
|
2016-03-08 09:49:49 +00:00
|
|
|
font-family: 'Dashicons';
|
|
|
|
speak: none;
|
|
|
|
font-weight: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
text-transform: none;
|
|
|
|
line-height: 1;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
margin: 0;
|
|
|
|
text-indent: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2014-09-22 17:35:48 +00:00
|
|
|
text-align: center;
|
|
|
|
content: $glyph;
|
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin iconbefore( $glyph: '\e001' ) {
|
2014-09-22 17:35:48 +00:00
|
|
|
font-family: 'WooCommerce';
|
|
|
|
speak: none;
|
|
|
|
font-weight: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
text-transform: none;
|
|
|
|
line-height: 1;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
2016-08-09 16:28:32 +00:00
|
|
|
margin-right: 0.618em;
|
2014-09-22 17:35:48 +00:00
|
|
|
content: $glyph;
|
2014-12-02 21:19:03 +00:00
|
|
|
text-decoration: none;
|
2014-09-22 17:35:48 +00:00
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin iconbeforedashicons( $glyph: '\f333' ) {
|
2016-03-08 10:41:58 +00:00
|
|
|
font-family: 'Dashicons';
|
|
|
|
speak: none;
|
|
|
|
font-weight: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
text-transform: none;
|
|
|
|
line-height: 1;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
content: $glyph;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2016-08-09 16:28:32 +00:00
|
|
|
@mixin iconafter( $glyph: '\e001' ) {
|
2014-09-22 17:35:48 +00:00
|
|
|
font-family: 'WooCommerce';
|
|
|
|
speak: none;
|
|
|
|
font-weight: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
text-transform: none;
|
|
|
|
line-height: 1;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
2016-08-09 16:28:32 +00:00
|
|
|
margin-left: 0.618em;
|
2014-09-22 17:35:48 +00:00
|
|
|
content: $glyph;
|
2014-12-02 21:19:03 +00:00
|
|
|
text-decoration: none;
|
2014-11-14 09:47:45 +00:00
|
|
|
}
|
|
|
|
|
2014-11-13 18:28:15 +00:00
|
|
|
@mixin loader() {
|
2016-08-09 16:28:32 +00:00
|
|
|
&::before {
|
2014-11-13 18:28:15 +00:00
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
2016-08-09 16:28:32 +00:00
|
|
|
margin-left: -0.5em;
|
|
|
|
margin-top: -0.5em;
|
|
|
|
content: '';
|
2017-05-05 13:33:58 +00:00
|
|
|
animation: spin 1s ease-in-out infinite;
|
2016-08-09 16:28:32 +00:00
|
|
|
background: url('../images/icons/loader.svg') center center;
|
2015-03-17 15:45:35 +00:00
|
|
|
background-size: cover;
|
2014-11-13 18:28:15 +00:00
|
|
|
line-height: 1;
|
|
|
|
text-align: center;
|
2014-11-14 09:47:45 +00:00
|
|
|
font-size: 2em;
|
2016-08-09 16:28:32 +00:00
|
|
|
color: rgba(#000, 0.75);
|
2014-11-13 18:28:15 +00:00
|
|
|
}
|
2015-03-17 15:45:35 +00:00
|
|
|
}
|
2020-11-25 10:07:15 +00:00
|
|
|
|
|
|
|
@mixin inversebuttoncolors {
|
|
|
|
background-color: transparent !important;
|
|
|
|
color: var(--button--color-text-hover) !important;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--button--color-background) !important;
|
|
|
|
color: var(--button--color-text) !important;
|
|
|
|
text-decoration: none !important;
|
|
|
|
}
|
|
|
|
}
|