-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadows.html
38 lines (38 loc) · 1.35 KB
/
shadows.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shadows</title>
<link rel="stylesheet" href="css/shadows.css">
<script src="https://kit.fontawesome.com/b182c44c0a.js" crossorigin="anonymous"></script>
</head>
<body>
<h1>The perfecT box shadow</h1>
<section>
<!-- <h1>hsl(220 100% 80%)</h1> -->
<div class="dark">
<h2>hsl(0 0% 0% / 0.5)</h2>
<div>
<i class="fa-duotone fa-narwhal"></i>
<p>Shadows that use a transparent black appear too desaturated.</p>
</div>
</div>
<div class="light">
<h2>hsl(220 100% 50%)</h2>
<div>
<p>Shadows that match the hue and saturation of the background with reduced lightness appear too bright.</p>
<i class="fa-duotone fa-bird fa-flip-horizontal"></i>
</div>
</div>
<div class="perfect">
<h2>hsl(220 60% 50%)</h2>
<div>
<i class="fa-duotone fa-ram"></i>
<p>The perfect shadow matches the hue of the background with reduced saturation and lightness.</p>
</div>
</div>
</section>
</body>
</html>