diff options
Diffstat (limited to 'demo/src/sass/lib')
-rw-r--r-- | demo/src/sass/lib/animation.scss | 7 | ||||
-rw-r--r-- | demo/src/sass/lib/fontface.scss | 10 | ||||
-rw-r--r-- | demo/src/sass/lib/mixins.scss | 6 | ||||
-rw-r--r-- | demo/src/sass/lib/normalize.scss | 17 |
4 files changed, 22 insertions, 18 deletions
diff --git a/demo/src/sass/lib/animation.scss b/demo/src/sass/lib/animation.scss index cc18d59b..751b34c8 100644 --- a/demo/src/sass/lib/animation.scss +++ b/demo/src/sass/lib/animation.scss @@ -3,23 +3,26 @@ // ========================================================================== // Fade -@keyframes fadein { +@keyframes fade-in { 0% { opacity: 0; } + 100% { opacity: 1; } } -@keyframes shrinkHide { +@keyframes shrink-hide { 0% { opacity: 0.5; width: 38px; } + 20% { width: 45px; } + 100% { opacity: 0; width: 0; diff --git a/demo/src/sass/lib/fontface.scss b/demo/src/sass/lib/fontface.scss index d54188d0..3884b44a 100644 --- a/demo/src/sass/lib/fontface.scss +++ b/demo/src/sass/lib/fontface.scss @@ -4,7 +4,7 @@ @font-face { font-display: swap; - font-family: 'Gordita'; + font-family: Gordita; font-style: normal; font-weight: $font-weight-light; src: url('https://cdn.plyr.io/static/fonts/gordita-light.woff2') format('woff2'), @@ -13,7 +13,7 @@ @font-face { font-display: swap; - font-family: 'Gordita'; + font-family: Gordita; font-style: normal; font-weight: $font-weight-regular; src: url('https://cdn.plyr.io/static/fonts/gordita-regular.woff2') format('woff2'), @@ -22,7 +22,7 @@ @font-face { font-display: swap; - font-family: 'Gordita'; + font-family: Gordita; font-style: normal; font-weight: $font-weight-medium; src: url('https://cdn.plyr.io/static/fonts/gordita-medium.woff2') format('woff2'), @@ -31,7 +31,7 @@ @font-face { font-display: swap; - font-family: 'Gordita'; + font-family: Gordita; font-style: normal; font-weight: $font-weight-bold; src: url('https://cdn.plyr.io/static/fonts/gordita-bold.woff2') format('woff2'), @@ -40,7 +40,7 @@ @font-face { font-display: swap; - font-family: 'Gordita'; + font-family: Gordita; font-style: normal; font-weight: $font-weight-black; src: url('https://cdn.plyr.io/static/fonts/gordita-black.woff2') format('woff2'), diff --git a/demo/src/sass/lib/mixins.scss b/demo/src/sass/lib/mixins.scss index 2744bfb5..0f7e66b8 100644 --- a/demo/src/sass/lib/mixins.scss +++ b/demo/src/sass/lib/mixins.scss @@ -2,6 +2,8 @@ // Mixins // ========================================================================== +@use 'sass:math'; + // Convert a <button> into an <a> // --------------------------------------- @mixin cancel-button-styles() { @@ -16,7 +18,7 @@ position: relative; text-align: inherit; text-shadow: inherit; - -moz-user-select: text; // stylelint-disable-line + user-select: text; vertical-align: baseline; width: auto; } @@ -32,7 +34,7 @@ // Leave <body> at 100%/16px // --------------------------------------- @function calculate-rem($size) { - $rem: $size / 16; + $rem: math.div($size, 16); @return #{$rem}rem; } diff --git a/demo/src/sass/lib/normalize.scss b/demo/src/sass/lib/normalize.scss index f2d2c09c..52e4b986 100644 --- a/demo/src/sass/lib/normalize.scss +++ b/demo/src/sass/lib/normalize.scss @@ -11,8 +11,7 @@ html { line-height: 1.15; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ + text-size-adjust: 100%; /* 2 */ } /* Sections @@ -89,7 +88,7 @@ hr { */ pre { - font-family: monospace, monospace; /* 1 */ + font-family: monospace; /* 1 */ font-size: 1em; /* 2 */ } @@ -103,7 +102,7 @@ pre { a { background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ + text-decoration-skip: objects; /* 2 */ } /** @@ -112,7 +111,7 @@ a { */ abbr[title] { - border-bottom: none; /* 1 */ + border-bottom: 0; /* 1 */ text-decoration: underline; /* 2 */ text-decoration: underline dotted; /* 2 */ } @@ -281,7 +280,7 @@ button, html [type='button'], [type='reset'], [type='submit'] { - -webkit-appearance: button; /* 2 */ + appearance: button; /* 2 */ } /** @@ -375,7 +374,7 @@ textarea { */ [type='search'] { - -webkit-appearance: textfield; /* 1 */ + appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } @@ -385,7 +384,7 @@ textarea { [type='search']::-webkit-search-cancel-button, [type='search']::-webkit-search-decoration { - -webkit-appearance: none; + appearance: none; } /** @@ -394,7 +393,7 @@ textarea { */ ::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ + appearance: button; /* 1 */ font: inherit; /* 2 */ } |