PluginProbe
PayPlug for WooCommerce (Official) / 1.0.21
PayPlug for WooCommerce (Official) v1.0.21
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
payplug / assets / scss / main / _mixins.scss

_mixins.scss in PayPlug for WooCommerce (Official) 1.0.21, at assets/scss/main/_mixins.scss

41 lines 840 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Bourbon's essentials mixins
2 $em-base: 16px !default;
3 // Strip units
4 @function strip-units($value) {
5 @return ($value / ($value * 0 + 1));
6 }
7 // PX to EM
8 @function em($pxval, $base: $em-base) {
9 @if not unitless($pxval) {
10 $pxval: strip-units($pxval);
11 }
12 @if not unitless($base) {
13 $base: strip-units($base);
14 }
15 @return ($pxval / $base) * 1em;
16 }
17 //Breakpoints
18 $breakpoints: (
19 xsm: em(480),
20 sm: em(768),
21 md: em(1024),
22 lg: em(1260),
23 xlg: em(1440)
24 );
25
26 @mixin breakpoints($breakpoint) {
27 @media screen and (min-width: map-get($map: $breakpoints, $key: $breakpoint)) {
28 @content;
29 }
30 }
31 // Hover Active Focus pseudo selector mixin
32 @mixin hover {
33 &:hover, &:active, &:focus {
34 @content;
35 }
36 }
37 // Smooth text
38 @mixin smoothText {
39 -webkit-font-smoothing: antialiased;
40 -moz-osx-font-smoothing: grayscale;
41 }