-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path16-irregular-drop-shadows.html
More file actions
53 lines (47 loc) · 929 Bytes
/
16-irregular-drop-shadows.html
File metadata and controls
53 lines (47 loc) · 929 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Irregular drop shadows</title>
<link rel="stylesheet" href="css/style.css" />
<style media="screen">
div {
display: inline-block;
vertical-align: middle;
box-sizing: border-box;
width: 100px;
height: 100px;
margin: 0 10px;
background: #fff;
border-radius: 5px;
filter: drop-shadow(2px 2px 5px #000);
}
.speech-bubble {
position: relative;
}
.speech-bubble::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
top: calc(50% - 10px);
right: -10px;
background: #fff;
transform: rotate(45deg);
}
div.one-corner {
background: #fff;
background: linear-gradient(45deg, transparent 15px, #fff 0);
}
div.dashed-border {
background: transparent;
border: 10px dashed #fff;
}
</style>
</head>
<body>
<div class="speech-bubble"></div>
<div class="one-corner"></div>
<div class="dashed-border"></div>
</body>
</html>