-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a separate file for realistic shadows
- Loading branch information
1 parent
c9e9b9c
commit 4b24a00
Showing
6 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
:root { | ||
--shadow-color: 145deg 33% 52%; | ||
--shadow-elevation-low: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34), | ||
0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.35), | ||
1px 2px 2.5px -2.4px hsl(var(--shadow-color) / 0.35); | ||
--shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36), | ||
0.8px 1.7px 2.1px -0.8px hsl(var(--shadow-color) / 0.36), | ||
2.1px 4.2px 5.3px -1.6px hsl(var(--shadow-color) / 0.37), | ||
5.1px 10.1px 12.8px -2.4px hsl(var(--shadow-color) / 0.37); | ||
--shadow-elevation-high: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34), | ||
1.5px 3px 3.8px -0.4px hsl(var(--shadow-color) / 0.34), | ||
2.8px 5.6px 7.1px -0.7px hsl(var(--shadow-color) / 0.34), | ||
4.6px 9.2px 11.6px -1px hsl(var(--shadow-color) / 0.34), | ||
7.3px 14.7px 18.6px -1.4px hsl(var(--shadow-color) / 0.34), | ||
11.4px 22.8px 28.9px -1.8px hsl(var(--shadow-color) / 0.34), | ||
17.3px 34.7px 43.9px -2.1px hsl(var(--shadow-color) / 0.35), | ||
25.5px 51px 64.6px -2.4px hsl(var(--shadow-color) / 0.35); | ||
} | ||
|
||
.card-box { | ||
box-shadow: var(--shadow-elevation-medium); | ||
} |