-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
412 changed files
with
5,268 additions
and
1,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
@forward 'mixin/rotate'; | ||
@forward 'mixin/caret'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
@mixin caret() { | ||
&::after { | ||
transition: transform 0.3s; | ||
} | ||
@use 'rotate'; | ||
|
||
&[aria-expanded='true'] { | ||
&::after { | ||
transform: rotate(-180deg); | ||
} | ||
} | ||
@mixin caret() { | ||
@include rotate.rotate('&[aria-expanded="true"]', '-180', 'after'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@mixin rotate($activeSelector, $deg: -180, $pseudo: before, $duration: 0.3) { | ||
&::#{$pseudo} { | ||
transition: transform #{$duration}s; | ||
} | ||
|
||
#{$activeSelector} { | ||
&::#{$pseudo} { | ||
transform: rotate(#{$deg}deg); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
@use 'sass:map'; | ||
@use 'module/elevation/variable/shadows'; | ||
@use 'module/utilities'; | ||
@use '../variable/colors'; | ||
@use 'module/legacy'; | ||
|
||
@mixin shadow($layer) { | ||
@if map.has-key(shadows.$values, $layer) { | ||
filter: drop-shadow(var(--#{$layer}-shadow)); | ||
@mixin shadow($layer, $legacy: false, $background: null) { | ||
@if $legacy { | ||
@include utilities.nest($background) { | ||
@include legacy.is(ie11) { | ||
box-shadow: 0 0 0 1px #{map.get(colors.$values, light)}; | ||
} | ||
} | ||
} | ||
@else { | ||
@if map.has-key(shadows.$values, $layer) { | ||
filter: drop-shadow(var(--#{$layer}-shadow)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@forward 'mixin/contrast'; | ||
@forward 'mixin/forced-colors'; | ||
@forward 'mixin/motion'; | ||
@forward 'mixin/transparency'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// Mixin de contraste | ||
/// @param {string} $contrast - more ou less | ||
/// @example scss - | ||
/// pour un contraste plus élevé : | ||
/// @include contrast() { | ||
/// // your styles | ||
/// } | ||
/// ou pour un contraste moins élevé : | ||
/// @include contrast(less) { | ||
/// // your styles | ||
/// } | ||
|
||
@mixin contrast($contrast: more) { | ||
@media (prefers-contrast: $contrast) { | ||
@content; | ||
} | ||
} |
Oops, something went wrong.