-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(utilities): add shadow utilities class.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.has-shadow { | ||
--sira-color-800: var(--sira-colors-bw-800); | ||
--sira-shadow-alpha: 0.1; | ||
--sira-shadow-blur-radius: 1em; | ||
--sira-shadow-spread-radius: 0.1em; | ||
--sira-shadow-offset-x: 0; | ||
--sira-shadow-offset-y: 0.25em; | ||
--sira-shadow-color: rgba(var(--sira-color-800), var(--sira-shadow-alpha)); | ||
box-shadow: var(--sira-shadow-offset-x) var(--sira-shadow-offset-y) var(--sira-shadow-blur-radius) | ||
var(--sira-shadow-spread-radius) var(--sira-shadow-color); | ||
} | ||
|
||
.has-shadow.wider { | ||
--sira-shadow-blur-radius: 3em; | ||
--sira-shadow-spread-radius: 0.35em; | ||
} | ||
|
||
.has-shadow.widest { | ||
--sira-shadow-blur-radius: 5em; | ||
--sira-shadow-spread-radius: 0.6em; | ||
} | ||
|
||
.has-shadow.compact { | ||
--sira-shadow-offset-y: 0.15em; | ||
--sira-shadow-blur-radius: 0.6em; | ||
--sira-shadow-spread-radius: 0.06em; | ||
} | ||
|
||
.has-shadow.bolder { | ||
--sira-shadow-alpha: 0.2; | ||
} | ||
|
||
.has-shadow.boldest { | ||
--sira-shadow-alpha: 0.3; | ||
} | ||
|
||
.has-shadow.rainbow { | ||
box-shadow: rgb(85, 91, 255) 0px 0px 0px 3px, rgb(31, 193, 27) 0px 0px 0px 6px, rgb(255, 217, 19) 0px 0px 0px 9px, | ||
rgb(255, 156, 85) 0px 0px 0px 12px, rgb(255, 85, 85) 0px 0px 0px 15px; | ||
} |
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