jekyll-theme-centos 2.1.1.beta.2 → 2.2.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/people/header.html +1 -1
- data/_sass/bootstrap/_accordion.scss +149 -0
- data/_sass/bootstrap/_alert.scss +71 -0
- data/_sass/bootstrap/_badge.scss +38 -0
- data/_sass/bootstrap/_breadcrumb.scss +40 -0
- data/_sass/bootstrap/_button-group.scss +142 -0
- data/_sass/bootstrap/_buttons.scss +207 -0
- data/_sass/bootstrap/_card.scss +234 -0
- data/_sass/bootstrap/_carousel.scss +226 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_containers.scss +41 -0
- data/_sass/bootstrap/_dropdown.scss +249 -0
- data/_sass/bootstrap/_forms.scss +9 -0
- data/_sass/bootstrap/_functions.scss +302 -0
- data/_sass/bootstrap/_grid.scss +33 -0
- data/_sass/bootstrap/_helpers.scss +10 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_list-group.scss +192 -0
- data/_sass/bootstrap/_maps.scss +54 -0
- data/_sass/bootstrap/_mixins.scss +43 -0
- data/_sass/bootstrap/_modal.scss +237 -0
- data/_sass/bootstrap/_nav.scss +172 -0
- data/_sass/bootstrap/_navbar.scss +278 -0
- data/_sass/bootstrap/_offcanvas.scss +144 -0
- data/_sass/bootstrap/_pagination.scss +109 -0
- data/_sass/bootstrap/_placeholders.scss +51 -0
- data/_sass/bootstrap/_popover.scss +196 -0
- data/_sass/bootstrap/_progress.scss +59 -0
- data/_sass/bootstrap/_reboot.scss +610 -0
- data/_sass/bootstrap/_root.scss +73 -0
- data/_sass/bootstrap/_spinners.scss +85 -0
- data/_sass/bootstrap/_tables.scss +164 -0
- data/_sass/bootstrap/_toasts.scss +73 -0
- data/_sass/bootstrap/_tooltip.scss +120 -0
- data/_sass/bootstrap/_transitions.scss +27 -0
- data/_sass/bootstrap/_type.scss +106 -0
- data/_sass/bootstrap/_utilities.scss +647 -0
- data/_sass/bootstrap/_variables.scss +1634 -0
- data/_sass/bootstrap/bootstrap-grid.scss +64 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +9 -0
- data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
- data/_sass/bootstrap/bootstrap.scss +51 -0
- data/_sass/bootstrap/forms/_floating-labels.scss +75 -0
- data/_sass/bootstrap/forms/_form-check.scss +175 -0
- data/_sass/bootstrap/forms/_form-control.scss +194 -0
- data/_sass/bootstrap/forms/_form-range.scss +91 -0
- data/_sass/bootstrap/forms/_form-select.scss +71 -0
- data/_sass/bootstrap/forms/_form-text.scss +11 -0
- data/_sass/bootstrap/forms/_input-group.scss +132 -0
- data/_sass/bootstrap/forms/_labels.scss +36 -0
- data/_sass/bootstrap/forms/_validation.scss +12 -0
- data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
- data/_sass/bootstrap/helpers/_color-bg.scss +10 -0
- data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
- data/_sass/bootstrap/helpers/_position.scss +36 -0
- data/_sass/bootstrap/helpers/_ratio.scss +26 -0
- data/_sass/bootstrap/helpers/_stacks.scss +15 -0
- data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
- data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
- data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/_sass/bootstrap/helpers/_vr.scss +8 -0
- data/_sass/bootstrap/mixins/_alert.scss +15 -0
- data/_sass/bootstrap/mixins/_backdrop.scss +14 -0
- data/_sass/bootstrap/mixins/_banner.scss +9 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +78 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
- data/_sass/bootstrap/mixins/_buttons.scss +70 -0
- data/_sass/bootstrap/mixins/_caret.scss +64 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
- data/_sass/bootstrap/mixins/_color-scheme.scss +7 -0
- data/_sass/bootstrap/mixins/_container.scss +11 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_forms.scss +152 -0
- data/_sass/bootstrap/mixins/_gradients.scss +47 -0
- data/_sass/bootstrap/mixins/_grid.scss +151 -0
- data/_sass/bootstrap/mixins/_image.scss +16 -0
- data/_sass/bootstrap/mixins/_list-group.scss +24 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_pagination.scss +10 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_table-variants.scss +24 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_utilities.scss +97 -0
- data/_sass/bootstrap/mixins/_visually-hidden.scss +29 -0
- data/_sass/bootstrap/utilities/_api.scss +47 -0
- data/_sass/bootstrap/vendor/_rfs.scss +354 -0
- data/_sass/fontawesome-free/_animated.scss +153 -0
- data/_sass/fontawesome-free/_bordered-pulled.scss +20 -0
- data/_sass/fontawesome-free/_core.scss +43 -0
- data/_sass/fontawesome-free/_fixed-width.scss +7 -0
- data/_sass/fontawesome-free/_functions.scss +57 -0
- data/_sass/fontawesome-free/_icons.scss +9 -0
- data/_sass/fontawesome-free/_list.scss +18 -0
- data/_sass/fontawesome-free/_mixins.scss +75 -0
- data/_sass/fontawesome-free/_rotated-flipped.scss +31 -0
- data/_sass/fontawesome-free/_screen-reader.scss +14 -0
- data/_sass/fontawesome-free/_shims.scss +2042 -0
- data/_sass/fontawesome-free/_sizing.scss +16 -0
- data/_sass/fontawesome-free/_stacked.scss +32 -0
- data/_sass/fontawesome-free/_variables.scss +4957 -0
- data/_sass/fontawesome-free/brands.scss +30 -0
- data/_sass/fontawesome-free/fontawesome.scss +21 -0
- data/_sass/fontawesome-free/regular.scss +26 -0
- data/_sass/fontawesome-free/solid.scss +26 -0
- data/_sass/fontawesome-free/v4-shims.scss +11 -0
- data/assets/css/dataTables.bootstrap5.css +416 -0
- data/assets/css/dataTables.bootstrap5.min.css +5 -0
- data/assets/img/anaconda-symbolic.svg +149 -0
- data/assets/img/anaconda.svg +183 -0
- data/assets/img/centos-dynamicmsg-logo.svg +182 -0
- data/assets/img/centos-dynamicmsg-type.svg +136 -0
- data/assets/img/centos-dynamicmsg-whitelogo.svg +172 -0
- data/assets/img/centos-dynamicmsg-whitetype.svg +142 -0
- data/assets/img/centos-gdm-whitelogo.svg +184 -0
- data/assets/img/centos-ipa-whiteheader.svg +162 -0
- data/assets/img/centos-logo-2bits.svg +142 -0
- data/assets/img/centos-logo.svg +171 -0
- data/assets/img/centos-message-logo.svg +304 -0
- data/assets/img/centos-motif.png +0 -0
- data/assets/img/centos-poweredby-logo.svg +258 -0
- data/assets/img/centos-symbol-2bits.svg +102 -0
- data/assets/img/centos-symbol.svg +121 -0
- data/assets/img/centos-type.svg +125 -0
- data/assets/img/centos-vertical-logo.svg +168 -0
- data/assets/img/centos-vertical-message-logo.svg +316 -0
- data/assets/img/centos-whitelogo.svg +161 -0
- data/assets/img/favicon.svg +121 -0
- data/assets/img/sort_asc.png +0 -0
- data/assets/img/sort_asc_disabled.png +0 -0
- data/assets/img/sort_both.png +0 -0
- data/assets/img/sort_desc.png +0 -0
- data/assets/img/sort_desc_disabled.png +0 -0
- data/assets/js/bootstrap.bundle.js +7075 -0
- data/assets/js/bootstrap.bundle.js.map +1 -0
- data/assets/js/bootstrap.bundle.min.js +7 -0
- data/assets/js/bootstrap.bundle.min.js.map +1 -0
- data/assets/js/bootstrap.esm.js +5202 -0
- data/assets/js/bootstrap.esm.js.map +1 -0
- data/assets/js/bootstrap.esm.min.js +7 -0
- data/assets/js/bootstrap.esm.min.js.map +1 -0
- data/assets/js/bootstrap.js +5249 -0
- data/assets/js/bootstrap.js.map +1 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/bootstrap.min.js.map +1 -0
- data/assets/js/clipboard.js +890 -0
- data/assets/js/clipboard.min.js +7 -0
- data/assets/js/dataTables.bootstrap5.js +200 -0
- data/assets/js/dataTables.bootstrap5.min.js +4 -0
- data/assets/js/dataTables.bootstrap5.min.mjs +4 -0
- data/assets/js/dataTables.bootstrap5.mjs +164 -0
- data/assets/js/jquery.js +10993 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/jquery.min.map +1 -0
- data/assets/js/jquery.slim.js +8894 -0
- data/assets/js/jquery.slim.min.js +2 -0
- data/assets/js/jquery.slim.min.map +1 -0
- data/assets/webfonts/Montserrat-Black.woff +0 -0
- data/assets/webfonts/Montserrat-Black.woff2 +0 -0
- data/assets/webfonts/Montserrat-BlackItalic.woff +0 -0
- data/assets/webfonts/Montserrat-BlackItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Bold.woff +0 -0
- data/assets/webfonts/Montserrat-Bold.woff2 +0 -0
- data/assets/webfonts/Montserrat-BoldItalic.woff +0 -0
- data/assets/webfonts/Montserrat-BoldItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraBold.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraBold.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraBoldItalic.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraBoldItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraLight.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraLight.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraLightItalic.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraLightItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Italic.woff +0 -0
- data/assets/webfonts/Montserrat-Italic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Light.woff +0 -0
- data/assets/webfonts/Montserrat-Light.woff2 +0 -0
- data/assets/webfonts/Montserrat-LightItalic.woff +0 -0
- data/assets/webfonts/Montserrat-LightItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Medium.woff +0 -0
- data/assets/webfonts/Montserrat-Medium.woff2 +0 -0
- data/assets/webfonts/Montserrat-MediumItalic.woff +0 -0
- data/assets/webfonts/Montserrat-MediumItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Regular.woff +0 -0
- data/assets/webfonts/Montserrat-Regular.woff2 +0 -0
- data/assets/webfonts/Montserrat-SemiBold.woff +0 -0
- data/assets/webfonts/Montserrat-SemiBold.woff2 +0 -0
- data/assets/webfonts/Montserrat-SemiBoldItalic.woff +0 -0
- data/assets/webfonts/Montserrat-SemiBoldItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Thin.woff +0 -0
- data/assets/webfonts/Montserrat-Thin.woff2 +0 -0
- data/assets/webfonts/Montserrat-ThinItalic.woff +0 -0
- data/assets/webfonts/Montserrat-ThinItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Black.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Black.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-BlackItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-BlackItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Bold.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Bold.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-BoldItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-BoldItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBold.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBold.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBoldItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBoldItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLight.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLight.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLightItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLightItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Italic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Italic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Light.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Light.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-LightItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-LightItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Medium.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Medium.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-MediumItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-MediumItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Regular.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Regular.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBold.woff +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBold.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBoldItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBoldItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Thin.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Thin.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ThinItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ThinItalic.woff2 +0 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- data/assets/webfonts/fa-v4compatibility.ttf +0 -0
- data/assets/webfonts/fa-v4compatibility.woff2 +0 -0
- data/assets/webfonts/overpass-mono-bold.woff +0 -0
- data/assets/webfonts/overpass-mono-bold.woff2 +0 -0
- data/assets/webfonts/overpass-mono-light.woff +0 -0
- data/assets/webfonts/overpass-mono-light.woff2 +0 -0
- data/assets/webfonts/overpass-mono-regular.woff +0 -0
- data/assets/webfonts/overpass-mono-regular.woff2 +0 -0
- data/assets/webfonts/overpass-mono-semibold.woff +0 -0
- data/assets/webfonts/overpass-mono-semibold.woff2 +0 -0
- metadata +247 -1
@@ -0,0 +1,97 @@
|
|
1
|
+
// Utility generator
|
2
|
+
// Used to generate utilities & print utilities
|
3
|
+
@mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
|
4
|
+
$values: map-get($utility, values);
|
5
|
+
|
6
|
+
// If the values are a list or string, convert it into a map
|
7
|
+
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
8
|
+
$values: zip($values, $values);
|
9
|
+
}
|
10
|
+
|
11
|
+
@each $key, $value in $values {
|
12
|
+
$properties: map-get($utility, property);
|
13
|
+
|
14
|
+
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
15
|
+
@if type-of($properties) == "string" {
|
16
|
+
$properties: append((), $properties);
|
17
|
+
}
|
18
|
+
|
19
|
+
// Use custom class if present
|
20
|
+
$property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1));
|
21
|
+
$property-class: if($property-class == null, "", $property-class);
|
22
|
+
|
23
|
+
// Use custom CSS variable name if present, otherwise default to `class`
|
24
|
+
$css-variable-name: if(map-has-key($utility, css-variable-name), map-get($utility, css-variable-name), map-get($utility, class));
|
25
|
+
|
26
|
+
// State params to generate pseudo-classes
|
27
|
+
$state: if(map-has-key($utility, state), map-get($utility, state), ());
|
28
|
+
|
29
|
+
$infix: if($property-class == "" and str-slice($infix, 1, 1) == "-", str-slice($infix, 2), $infix);
|
30
|
+
|
31
|
+
// Don't prefix if value key is null (e.g. with shadow class)
|
32
|
+
$property-class-modifier: if($key, if($property-class == "" and $infix == "", "", "-") + $key, "");
|
33
|
+
|
34
|
+
@if map-get($utility, rfs) {
|
35
|
+
// Inside the media query
|
36
|
+
@if $is-rfs-media-query {
|
37
|
+
$val: rfs-value($value);
|
38
|
+
|
39
|
+
// Do not render anything if fluid and non fluid values are the same
|
40
|
+
$value: if($val == rfs-fluid-value($value), null, $val);
|
41
|
+
}
|
42
|
+
@else {
|
43
|
+
$value: rfs-fluid-value($value);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
$is-css-var: map-get($utility, css-var);
|
48
|
+
$is-local-vars: map-get($utility, local-vars);
|
49
|
+
$is-rtl: map-get($utility, rtl);
|
50
|
+
|
51
|
+
@if $value != null {
|
52
|
+
@if $is-rtl == false {
|
53
|
+
/* rtl:begin:remove */
|
54
|
+
}
|
55
|
+
|
56
|
+
@if $is-css-var {
|
57
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
58
|
+
--#{$prefix}#{$css-variable-name}: #{$value};
|
59
|
+
}
|
60
|
+
|
61
|
+
@each $pseudo in $state {
|
62
|
+
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
63
|
+
--#{$prefix}#{$css-variable-name}: #{$value};
|
64
|
+
}
|
65
|
+
}
|
66
|
+
} @else {
|
67
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
68
|
+
@each $property in $properties {
|
69
|
+
@if $is-local-vars {
|
70
|
+
@each $local-var, $variable in $is-local-vars {
|
71
|
+
--#{$prefix}#{$local-var}: #{$variable};
|
72
|
+
}
|
73
|
+
}
|
74
|
+
#{$property}: $value if($enable-important-utilities, !important, null);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@each $pseudo in $state {
|
79
|
+
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
80
|
+
@each $property in $properties {
|
81
|
+
@if $is-local-vars {
|
82
|
+
@each $local-var, $variable in $is-local-vars {
|
83
|
+
--#{$prefix}#{$local-var}: #{$variable};
|
84
|
+
}
|
85
|
+
}
|
86
|
+
#{$property}: $value if($enable-important-utilities, !important, null);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
@if $is-rtl == false {
|
93
|
+
/* rtl:end:remove */
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
|
3
|
+
// Hide content visually while keeping it accessible to assistive technologies
|
4
|
+
//
|
5
|
+
// See: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
|
6
|
+
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/
|
7
|
+
|
8
|
+
@mixin visually-hidden() {
|
9
|
+
position: absolute !important;
|
10
|
+
width: 1px !important;
|
11
|
+
height: 1px !important;
|
12
|
+
padding: 0 !important;
|
13
|
+
margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
|
14
|
+
overflow: hidden !important;
|
15
|
+
clip: rect(0, 0, 0, 0) !important;
|
16
|
+
white-space: nowrap !important;
|
17
|
+
border: 0 !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Use to only display content when it's focused, or one of its child elements is focused
|
21
|
+
// (i.e. when focus is within the element/container that the class was applied to)
|
22
|
+
//
|
23
|
+
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
24
|
+
|
25
|
+
@mixin visually-hidden-focusable() {
|
26
|
+
&:not(:focus):not(:focus-within) {
|
27
|
+
@include visually-hidden();
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Loop over each breakpoint
|
2
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
3
|
+
|
4
|
+
// Generate media query if needed
|
5
|
+
@include media-breakpoint-up($breakpoint) {
|
6
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
7
|
+
|
8
|
+
// Loop over each utility property
|
9
|
+
@each $key, $utility in $utilities {
|
10
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
11
|
+
// Only proceed if responsive media queries are enabled or if it's the base media query
|
12
|
+
@if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
|
13
|
+
@include generate-utility($utility, $infix);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// RFS rescaling
|
20
|
+
@media (min-width: $rfs-mq-value) {
|
21
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
22
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
23
|
+
|
24
|
+
@if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) {
|
25
|
+
// Loop over each utility property
|
26
|
+
@each $key, $utility in $utilities {
|
27
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
28
|
+
// Only proceed if responsive media queries are enabled or if it's the base media query
|
29
|
+
@if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") {
|
30
|
+
@include generate-utility($utility, $infix, true);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// Print utilities
|
39
|
+
@media print {
|
40
|
+
@each $key, $utility in $utilities {
|
41
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
42
|
+
// Then check if the utility needs print styles
|
43
|
+
@if type-of($utility) == "map" and map-get($utility, print) == true {
|
44
|
+
@include generate-utility($utility, "-print");
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,354 @@
|
|
1
|
+
// stylelint-disable property-blacklist, scss/dollar-variable-default
|
2
|
+
|
3
|
+
// SCSS RFS mixin
|
4
|
+
//
|
5
|
+
// Automated responsive values for font sizes, paddings, margins and much more
|
6
|
+
//
|
7
|
+
// Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)
|
8
|
+
|
9
|
+
// Configuration
|
10
|
+
|
11
|
+
// Base value
|
12
|
+
$rfs-base-value: 1.25rem !default;
|
13
|
+
$rfs-unit: rem !default;
|
14
|
+
|
15
|
+
@if $rfs-unit != rem and $rfs-unit != px {
|
16
|
+
@error "`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.";
|
17
|
+
}
|
18
|
+
|
19
|
+
// Breakpoint at where values start decreasing if screen width is smaller
|
20
|
+
$rfs-breakpoint: 1200px !default;
|
21
|
+
$rfs-breakpoint-unit: px !default;
|
22
|
+
|
23
|
+
@if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
|
24
|
+
@error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
|
25
|
+
}
|
26
|
+
|
27
|
+
// Resize values based on screen height and width
|
28
|
+
$rfs-two-dimensional: false !default;
|
29
|
+
|
30
|
+
// Factor of decrease
|
31
|
+
$rfs-factor: 10 !default;
|
32
|
+
|
33
|
+
@if type-of($rfs-factor) != number or $rfs-factor <= 1 {
|
34
|
+
@error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
|
35
|
+
}
|
36
|
+
|
37
|
+
// Mode. Possibilities: "min-media-query", "max-media-query"
|
38
|
+
$rfs-mode: min-media-query !default;
|
39
|
+
|
40
|
+
// Generate enable or disable classes. Possibilities: false, "enable" or "disable"
|
41
|
+
$rfs-class: false !default;
|
42
|
+
|
43
|
+
// 1 rem = $rfs-rem-value px
|
44
|
+
$rfs-rem-value: 16 !default;
|
45
|
+
|
46
|
+
// Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
|
47
|
+
$rfs-safari-iframe-resize-bug-fix: false !default;
|
48
|
+
|
49
|
+
// Disable RFS by setting $enable-rfs to false
|
50
|
+
$enable-rfs: true !default;
|
51
|
+
|
52
|
+
// Cache $rfs-base-value unit
|
53
|
+
$rfs-base-value-unit: unit($rfs-base-value);
|
54
|
+
|
55
|
+
@function divide($dividend, $divisor, $precision: 10) {
|
56
|
+
$sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
|
57
|
+
$dividend: abs($dividend);
|
58
|
+
$divisor: abs($divisor);
|
59
|
+
@if $dividend == 0 {
|
60
|
+
@return 0;
|
61
|
+
}
|
62
|
+
@if $divisor == 0 {
|
63
|
+
@error "Cannot divide by 0";
|
64
|
+
}
|
65
|
+
$remainder: $dividend;
|
66
|
+
$result: 0;
|
67
|
+
$factor: 10;
|
68
|
+
@while ($remainder > 0 and $precision >= 0) {
|
69
|
+
$quotient: 0;
|
70
|
+
@while ($remainder >= $divisor) {
|
71
|
+
$remainder: $remainder - $divisor;
|
72
|
+
$quotient: $quotient + 1;
|
73
|
+
}
|
74
|
+
$result: $result * 10 + $quotient;
|
75
|
+
$factor: $factor * .1;
|
76
|
+
$remainder: $remainder * 10;
|
77
|
+
$precision: $precision - 1;
|
78
|
+
@if ($precision < 0 and $remainder >= $divisor * 5) {
|
79
|
+
$result: $result + 1;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
$result: $result * $factor * $sign;
|
83
|
+
$dividend-unit: unit($dividend);
|
84
|
+
$divisor-unit: unit($divisor);
|
85
|
+
$unit-map: (
|
86
|
+
"px": 1px,
|
87
|
+
"rem": 1rem,
|
88
|
+
"em": 1em,
|
89
|
+
"%": 1%
|
90
|
+
);
|
91
|
+
@if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
|
92
|
+
$result: $result * map-get($unit-map, $dividend-unit);
|
93
|
+
}
|
94
|
+
@return $result;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Remove px-unit from $rfs-base-value for calculations
|
98
|
+
@if $rfs-base-value-unit == px {
|
99
|
+
$rfs-base-value: divide($rfs-base-value, $rfs-base-value * 0 + 1);
|
100
|
+
}
|
101
|
+
@else if $rfs-base-value-unit == rem {
|
102
|
+
$rfs-base-value: divide($rfs-base-value, divide($rfs-base-value * 0 + 1, $rfs-rem-value));
|
103
|
+
}
|
104
|
+
|
105
|
+
// Cache $rfs-breakpoint unit to prevent multiple calls
|
106
|
+
$rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
|
107
|
+
|
108
|
+
// Remove unit from $rfs-breakpoint for calculations
|
109
|
+
@if $rfs-breakpoint-unit-cache == px {
|
110
|
+
$rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
|
111
|
+
}
|
112
|
+
@else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" {
|
113
|
+
$rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));
|
114
|
+
}
|
115
|
+
|
116
|
+
// Calculate the media query value
|
117
|
+
$rfs-mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});
|
118
|
+
$rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);
|
119
|
+
$rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);
|
120
|
+
|
121
|
+
// Internal mixin used to determine which media query needs to be used
|
122
|
+
@mixin _rfs-media-query {
|
123
|
+
@if $rfs-two-dimensional {
|
124
|
+
@if $rfs-mode == max-media-query {
|
125
|
+
@media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
|
126
|
+
@content;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
@else {
|
130
|
+
@media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
|
131
|
+
@content;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
@else {
|
136
|
+
@media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
|
137
|
+
@content;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
// Internal mixin that adds disable classes to the selector if needed.
|
143
|
+
@mixin _rfs-rule {
|
144
|
+
@if $rfs-class == disable and $rfs-mode == max-media-query {
|
145
|
+
// Adding an extra class increases specificity, which prevents the media query to override the property
|
146
|
+
&,
|
147
|
+
.disable-rfs &,
|
148
|
+
&.disable-rfs {
|
149
|
+
@content;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
@else if $rfs-class == enable and $rfs-mode == min-media-query {
|
153
|
+
.enable-rfs &,
|
154
|
+
&.enable-rfs {
|
155
|
+
@content;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
@else {
|
159
|
+
@content;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
// Internal mixin that adds enable classes to the selector if needed.
|
164
|
+
@mixin _rfs-media-query-rule {
|
165
|
+
|
166
|
+
@if $rfs-class == enable {
|
167
|
+
@if $rfs-mode == min-media-query {
|
168
|
+
@content;
|
169
|
+
}
|
170
|
+
|
171
|
+
@include _rfs-media-query {
|
172
|
+
.enable-rfs &,
|
173
|
+
&.enable-rfs {
|
174
|
+
@content;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
@else {
|
179
|
+
@if $rfs-class == disable and $rfs-mode == min-media-query {
|
180
|
+
.disable-rfs &,
|
181
|
+
&.disable-rfs {
|
182
|
+
@content;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
@include _rfs-media-query {
|
186
|
+
@content;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
// Helper function to get the formatted non-responsive value
|
192
|
+
@function rfs-value($values) {
|
193
|
+
// Convert to list
|
194
|
+
$values: if(type-of($values) != list, ($values,), $values);
|
195
|
+
|
196
|
+
$val: '';
|
197
|
+
|
198
|
+
// Loop over each value and calculate value
|
199
|
+
@each $value in $values {
|
200
|
+
@if $value == 0 {
|
201
|
+
$val: $val + ' 0';
|
202
|
+
}
|
203
|
+
@else {
|
204
|
+
// Cache $value unit
|
205
|
+
$unit: if(type-of($value) == "number", unit($value), false);
|
206
|
+
|
207
|
+
@if $unit == px {
|
208
|
+
// Convert to rem if needed
|
209
|
+
$val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
|
210
|
+
}
|
211
|
+
@else if $unit == rem {
|
212
|
+
// Convert to px if needed
|
213
|
+
$val: $val + ' ' + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
|
214
|
+
}
|
215
|
+
@else {
|
216
|
+
// If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
|
217
|
+
$val: $val + ' ' + $value;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
// Remove first space
|
223
|
+
@return unquote(str-slice($val, 2));
|
224
|
+
}
|
225
|
+
|
226
|
+
// Helper function to get the responsive value calculated by RFS
|
227
|
+
@function rfs-fluid-value($values) {
|
228
|
+
// Convert to list
|
229
|
+
$values: if(type-of($values) != list, ($values,), $values);
|
230
|
+
|
231
|
+
$val: '';
|
232
|
+
|
233
|
+
// Loop over each value and calculate value
|
234
|
+
@each $value in $values {
|
235
|
+
@if $value == 0 {
|
236
|
+
$val: $val + ' 0';
|
237
|
+
}
|
238
|
+
|
239
|
+
@else {
|
240
|
+
// Cache $value unit
|
241
|
+
$unit: if(type-of($value) == "number", unit($value), false);
|
242
|
+
|
243
|
+
// If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
|
244
|
+
@if not $unit or $unit != px and $unit != rem {
|
245
|
+
$val: $val + ' ' + $value;
|
246
|
+
}
|
247
|
+
|
248
|
+
@else {
|
249
|
+
// Remove unit from $value for calculations
|
250
|
+
$value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));
|
251
|
+
|
252
|
+
// Only add the media query if the value is greater than the minimum value
|
253
|
+
@if abs($value) <= $rfs-base-value or not $enable-rfs {
|
254
|
+
$val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
|
255
|
+
}
|
256
|
+
@else {
|
257
|
+
// Calculate the minimum value
|
258
|
+
$value-min: $rfs-base-value + divide(abs($value) - $rfs-base-value, $rfs-factor);
|
259
|
+
|
260
|
+
// Calculate difference between $value and the minimum value
|
261
|
+
$value-diff: abs($value) - $value-min;
|
262
|
+
|
263
|
+
// Base value formatting
|
264
|
+
$min-width: if($rfs-unit == rem, #{divide($value-min, $rfs-rem-value)}rem, #{$value-min}px);
|
265
|
+
|
266
|
+
// Use negative value if needed
|
267
|
+
$min-width: if($value < 0, -$min-width, $min-width);
|
268
|
+
|
269
|
+
// Use `vmin` if two-dimensional is enabled
|
270
|
+
$variable-unit: if($rfs-two-dimensional, vmin, vw);
|
271
|
+
|
272
|
+
// Calculate the variable width between 0 and $rfs-breakpoint
|
273
|
+
$variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
|
274
|
+
|
275
|
+
// Return the calculated value
|
276
|
+
$val: $val + ' calc(' + $min-width + if($value < 0, ' - ', ' + ') + $variable-width + ')';
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
// Remove first space
|
283
|
+
@return unquote(str-slice($val, 2));
|
284
|
+
}
|
285
|
+
|
286
|
+
// RFS mixin
|
287
|
+
@mixin rfs($values, $property: font-size) {
|
288
|
+
@if $values != null {
|
289
|
+
$val: rfs-value($values);
|
290
|
+
$fluidVal: rfs-fluid-value($values);
|
291
|
+
|
292
|
+
// Do not print the media query if responsive & non-responsive values are the same
|
293
|
+
@if $val == $fluidVal {
|
294
|
+
#{$property}: $val;
|
295
|
+
}
|
296
|
+
@else {
|
297
|
+
@include _rfs-rule {
|
298
|
+
#{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
|
299
|
+
|
300
|
+
// Include safari iframe resize fix if needed
|
301
|
+
min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
|
302
|
+
}
|
303
|
+
|
304
|
+
@include _rfs-media-query-rule {
|
305
|
+
#{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
// Shorthand helper mixins
|
312
|
+
@mixin font-size($value) {
|
313
|
+
@include rfs($value);
|
314
|
+
}
|
315
|
+
|
316
|
+
@mixin padding($value) {
|
317
|
+
@include rfs($value, padding);
|
318
|
+
}
|
319
|
+
|
320
|
+
@mixin padding-top($value) {
|
321
|
+
@include rfs($value, padding-top);
|
322
|
+
}
|
323
|
+
|
324
|
+
@mixin padding-right($value) {
|
325
|
+
@include rfs($value, padding-right);
|
326
|
+
}
|
327
|
+
|
328
|
+
@mixin padding-bottom($value) {
|
329
|
+
@include rfs($value, padding-bottom);
|
330
|
+
}
|
331
|
+
|
332
|
+
@mixin padding-left($value) {
|
333
|
+
@include rfs($value, padding-left);
|
334
|
+
}
|
335
|
+
|
336
|
+
@mixin margin($value) {
|
337
|
+
@include rfs($value, margin);
|
338
|
+
}
|
339
|
+
|
340
|
+
@mixin margin-top($value) {
|
341
|
+
@include rfs($value, margin-top);
|
342
|
+
}
|
343
|
+
|
344
|
+
@mixin margin-right($value) {
|
345
|
+
@include rfs($value, margin-right);
|
346
|
+
}
|
347
|
+
|
348
|
+
@mixin margin-bottom($value) {
|
349
|
+
@include rfs($value, margin-bottom);
|
350
|
+
}
|
351
|
+
|
352
|
+
@mixin margin-left($value) {
|
353
|
+
@include rfs($value, margin-left);
|
354
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
// animating icons
|
2
|
+
// --------------------------
|
3
|
+
|
4
|
+
.#{$fa-css-prefix}-beat {
|
5
|
+
animation-name: #{$fa-css-prefix}-beat;
|
6
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
7
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
8
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
9
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
10
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
|
11
|
+
}
|
12
|
+
|
13
|
+
.#{$fa-css-prefix}-bounce {
|
14
|
+
animation-name: #{$fa-css-prefix}-bounce;
|
15
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
16
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
17
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
18
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
19
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.280, 0.840, 0.420, 1));
|
20
|
+
}
|
21
|
+
|
22
|
+
.#{$fa-css-prefix}-fade {
|
23
|
+
animation-name: #{$fa-css-prefix}-fade;
|
24
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
25
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
26
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
27
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
28
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
|
29
|
+
}
|
30
|
+
|
31
|
+
.#{$fa-css-prefix}-beat-fade {
|
32
|
+
animation-name: #{$fa-css-prefix}-beat-fade;
|
33
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
34
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
35
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
36
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
37
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
|
38
|
+
}
|
39
|
+
|
40
|
+
.#{$fa-css-prefix}-flip {
|
41
|
+
animation-name: #{$fa-css-prefix}-flip;
|
42
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
43
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
44
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
45
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
46
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
|
47
|
+
}
|
48
|
+
|
49
|
+
.#{$fa-css-prefix}-shake {
|
50
|
+
animation-name: #{$fa-css-prefix}-shake;
|
51
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
52
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
53
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
54
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
55
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
|
56
|
+
}
|
57
|
+
|
58
|
+
.#{$fa-css-prefix}-spin {
|
59
|
+
animation-name: #{$fa-css-prefix}-spin;
|
60
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
|
61
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
62
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 2s);
|
63
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
64
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
|
65
|
+
}
|
66
|
+
|
67
|
+
.#{$fa-css-prefix}-spin-reverse {
|
68
|
+
--#{$fa-css-prefix}-animation-direction: reverse;
|
69
|
+
}
|
70
|
+
|
71
|
+
.#{$fa-css-prefix}-pulse,
|
72
|
+
.#{$fa-css-prefix}-spin-pulse {
|
73
|
+
animation-name: #{$fa-css-prefix}-spin;
|
74
|
+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
|
75
|
+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
|
76
|
+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
|
77
|
+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, steps(8));
|
78
|
+
}
|
79
|
+
|
80
|
+
// if agent or operating system prefers reduced motion, disable animations
|
81
|
+
// see: https://www.smashingmagazine.com/2020/09/design-reduced-motion-sensitivities/
|
82
|
+
// see: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
|
83
|
+
@media (prefers-reduced-motion: reduce) {
|
84
|
+
.#{$fa-css-prefix}-beat,
|
85
|
+
.#{$fa-css-prefix}-bounce,
|
86
|
+
.#{$fa-css-prefix}-fade,
|
87
|
+
.#{$fa-css-prefix}-beat-fade,
|
88
|
+
.#{$fa-css-prefix}-flip,
|
89
|
+
.#{$fa-css-prefix}-pulse,
|
90
|
+
.#{$fa-css-prefix}-shake,
|
91
|
+
.#{$fa-css-prefix}-spin,
|
92
|
+
.#{$fa-css-prefix}-spin-pulse {
|
93
|
+
animation-delay: -1ms;
|
94
|
+
animation-duration: 1ms;
|
95
|
+
animation-iteration-count: 1;
|
96
|
+
transition-delay: 0s;
|
97
|
+
transition-duration: 0s;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
@keyframes #{$fa-css-prefix}-beat {
|
102
|
+
0%, 90% { transform: scale(1); }
|
103
|
+
45% { transform: scale(var(--#{$fa-css-prefix}-beat-scale, 1.25)); }
|
104
|
+
}
|
105
|
+
|
106
|
+
@keyframes #{$fa-css-prefix}-bounce {
|
107
|
+
0% { transform: scale(1,1) translateY(0); }
|
108
|
+
10% { transform: scale(var(--#{$fa-css-prefix}-bounce-start-scale-x, 1.1),var(--#{$fa-css-prefix}-bounce-start-scale-y, 0.9)) translateY(0); }
|
109
|
+
30% { transform: scale(var(--#{$fa-css-prefix}-bounce-jump-scale-x, 0.9),var(--#{$fa-css-prefix}-bounce-jump-scale-y, 1.1)) translateY(var(--#{$fa-css-prefix}-bounce-height, -0.5em)); }
|
110
|
+
50% { transform: scale(var(--#{$fa-css-prefix}-bounce-land-scale-x, 1.05),var(--#{$fa-css-prefix}-bounce-land-scale-y, 0.95)) translateY(0); }
|
111
|
+
57% { transform: scale(1,1) translateY(var(--#{$fa-css-prefix}-bounce-rebound, -0.125em)); }
|
112
|
+
64% { transform: scale(1,1) translateY(0); }
|
113
|
+
100% { transform: scale(1,1) translateY(0); }
|
114
|
+
}
|
115
|
+
|
116
|
+
@keyframes #{$fa-css-prefix}-fade {
|
117
|
+
50% { opacity: var(--#{$fa-css-prefix}-fade-opacity, 0.4); }
|
118
|
+
}
|
119
|
+
|
120
|
+
@keyframes #{$fa-css-prefix}-beat-fade {
|
121
|
+
0%, 100% {
|
122
|
+
opacity: var(--#{$fa-css-prefix}-beat-fade-opacity, 0.4);
|
123
|
+
transform: scale(1);
|
124
|
+
}
|
125
|
+
50% {
|
126
|
+
opacity: 1;
|
127
|
+
transform: scale(var(--#{$fa-css-prefix}-beat-fade-scale, 1.125));
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
@keyframes #{$fa-css-prefix}-flip {
|
132
|
+
50% {
|
133
|
+
transform: rotate3d(var(--#{$fa-css-prefix}-flip-x, 0), var(--#{$fa-css-prefix}-flip-y, 1), var(--#{$fa-css-prefix}-flip-z, 0), var(--#{$fa-css-prefix}-flip-angle, -180deg));
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
@keyframes #{$fa-css-prefix}-shake {
|
138
|
+
0% { transform: rotate(-15deg); }
|
139
|
+
4% { transform: rotate(15deg); }
|
140
|
+
8%, 24% { transform: rotate(-18deg); }
|
141
|
+
12%, 28% { transform: rotate(18deg); }
|
142
|
+
16% { transform: rotate(-22deg); }
|
143
|
+
20% { transform: rotate(22deg); }
|
144
|
+
32% { transform: rotate(-12deg); }
|
145
|
+
36% { transform: rotate(12deg); }
|
146
|
+
40%, 100% { transform: rotate(0deg); }
|
147
|
+
}
|
148
|
+
|
149
|
+
@keyframes #{$fa-css-prefix}-spin {
|
150
|
+
0% { transform: rotate(0deg); }
|
151
|
+
100% { transform: rotate(360deg); }
|
152
|
+
}
|
153
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// bordered + pulled icons
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
.#{$fa-css-prefix}-border {
|
5
|
+
border-color: var(--#{$fa-css-prefix}-border-color, #{$fa-border-color});
|
6
|
+
border-radius: var(--#{$fa-css-prefix}-border-radius, #{$fa-border-radius});
|
7
|
+
border-style: var(--#{$fa-css-prefix}-border-style, #{$fa-border-style});
|
8
|
+
border-width: var(--#{$fa-css-prefix}-border-width, #{$fa-border-width});
|
9
|
+
padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
|
10
|
+
}
|
11
|
+
|
12
|
+
.#{$fa-css-prefix}-pull-left {
|
13
|
+
float: left;
|
14
|
+
margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
|
15
|
+
}
|
16
|
+
|
17
|
+
.#{$fa-css-prefix}-pull-right {
|
18
|
+
float: right;
|
19
|
+
margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
|
20
|
+
}
|