-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from BQXBQX/dev-max
feat: combine shadow into one variable
- Loading branch information
Showing
8 changed files
with
76 additions
and
25 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// box-shadow variables | ||
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | ||
$shadow: | ||
0 1px 3px 0 rgba(0, 0, 0, 0.1), | ||
0 1px 2px -1px rgba(0, 0, 0, 0.1); | ||
$shadow-md: | ||
0 4px 6px -1px rgb(0 0 0 / 0.1), | ||
0 2px 4px -2px rgb(0 0 0 / 0.1); | ||
$shadow-lg: | ||
0 10px 15px -3px rgb(0 0 0 / 0.1), | ||
0 4px 6px -4px rgb(0 0 0 / 0.1); | ||
$shadow-xl: | ||
0 20px 25px -5px rgb(0 0 0 / 0.1), | ||
0 8px 10px -6px rgb(0 0 0 / 0.1); | ||
$shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); | ||
$shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); | ||
|
||
@mixin shadow { | ||
&.shadow-regular { | ||
box-shadow: $shadow; | ||
} | ||
&.shadow-small { | ||
box-shadow: $shadow-sm; | ||
} | ||
&.shadow-medium { | ||
box-shadow: $shadow-md; | ||
} | ||
&.shadow-large { | ||
box-shadow: $shadow-lg; | ||
} | ||
&.shadow-extraLarge { | ||
box-shadow: $shadow-xl; | ||
} | ||
&.shadow-inner { | ||
box-shadow: $shadow-inner; | ||
} | ||
} | ||
|
||
// border variables |
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