Skip to content

Commit

Permalink
sass: migrate to @use
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Dec 15, 2024
1 parent f91c258 commit e56cb6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions src/css/_icons.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@use "sass:meta";
@use "sass:string";
// https://github.com/sass/sass/issues/659#issuecomment-64819075
@function char($character-code) {
@if function-exists("selector-append") {
@return unquote("\"\\#{$character-code}\"");
@if meta.function-exists("selector-append") {
@return string.unquote("\"\\#{$character-code}\"");
}

@return str-slice("\x", 1, 1) + $character-code;
@return string.slice("\x", 1, 1) + $character-code;
}

$icon-font-family: videojs-record;
Expand Down
16 changes: 8 additions & 8 deletions src/css/videojs.record.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import "icons";
@import "main";
@import "fluid";
@use "icons";
@use "main";
@use "fluid";

@import "components/device-button";
@import "components/record-toggle";
@import "components/camera-button";
@import "components/record-indicator";
@import "components/picture-in-picture-toggle";
@use "components/device-button";
@use "components/record-toggle";
@use "components/camera-button";
@use "components/record-indicator";
@use "components/picture-in-picture-toggle";

0 comments on commit e56cb6e

Please sign in to comment.