-
Notifications
You must be signed in to change notification settings - Fork 14
/
box-shadow-inset.html
executable file
·39 lines (35 loc) · 1.3 KB
/
box-shadow-inset.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
39
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Various inset shadows</title>
<style type="text/css">
.arena ol {display: flex; margin: 2em 0; padding: 0;}
.arena ol li {list-style: none; width: 15ch;
margin-right: 50px; padding: 2ch 1ch;
font: bold 1em sans-serif;
background: #DDD; border: medium solid;}
.box.rounded {border-radius: 3ch;}
.box:nth-of-type(1) {box-shadow: inset 1em 1em 2px rgba(0,0,0,0.5);}
.box:nth-of-type(2) {box-shadow: inset 2em 0.5em 0.25em rgba(128,0,0,0.5);}
.box:nth-of-type(3) {box-shadow: 0.5em 2ch 1vw 13px rgba(0,128,0,0.5) inset;}
.box:nth-of-type(4) {box-shadow: inset -10px 25px 5px -5px rgba(0,128,128,0.5);}
.box:nth-of-type(5) {box-shadow: 0.67em 1.33em 0 -0.1em rgba(0,0,0,0.5) inset;}
.box:nth-of-type(6) {box-shadow: inset 0.67em 1.33em 0.2em -0.1em rgba(0,0,0,0.5);}
.box:nth-of-type(7) {box-shadow: 0 0 2ch 2ch rgba(128,128,0,0.5) inset;}
</style>
</head>
<body>
<section class="arena">
<ol>
<li class="box">This is a shadowed box.</li>
<li class="box">This is a shadowed box.</li>
<li class="box">This is a shadowed box.</li>
<li class="box">This is a shadowed box.</li>
<li class="box rounded">This is a shadowed box.</li>
<li class="box rounded">This is a shadowed box.</li>
<li class="box rounded">This is a shadowed box.</li>
</ol>
</section>
</body>
</html>