-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbubblechat.css
More file actions
80 lines (70 loc) · 2.14 KB
/
bubblechat.css
File metadata and controls
80 lines (70 loc) · 2.14 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.bubble {
position: relative;
display: inline-block;
margin: 20px 30px 20px 30px;
text-align: center;
font-family: 'Press Start 2P', cursive;
background-color: #fff;
color: #000;
padding:10px 10px 10px 10px;
box-shadow: 0 -4px #fff, 0 -8px #000, 4px 0 #fff, 4px -4px #000, 8px 0 #000, 0 4px #fff, 0 8px #000, -4px 0 #fff, -4px 4px #000, -8px 0 #000, -4px -4px #000, 4px 4px #000;
box-sizing: border-box;
width: 200px;
}
.bubble::after {
content: '';
display: block;
position: absolute;
box-sizing: border-box;
}
.bubble.shadow {
box-shadow: 0 -4px #fff, 0 -8px #000, 4px 0 #fff, 4px -4px #000, 8px 0 #000, 0 4px #fff, 0 8px #000, -4px 0 #fff, -4px 4px #000, -8px 0 #000, -4px -4px #000, 4px 4px #000, 4px 12px rgba(0, 0, 0, 0.1), 12px 12px rgba(0, 0, 0, 0.1), 8px 8px rgba(0, 0, 0, 0.1);
}
.bubble.mini {
width: 110px;
font-size: 16px;
padding: 16px;
font-family: monospace;
}
.bubble.medium {
width: 350px;
}
.bubble.large {
width: 560px;
font-size: 24px;
text-align: left;
text-transform: uppercase;
}
.bubble.grow {
width: initial;
}
.bubble.top::after {
height: 4px;
width: 4px;
top: -8px;
left: 32px;
box-shadow: 0 -4px #000, 0 -8px #000, 0 -12px #000, 0 -16px #000, -4px -12px #000, -8px -8px #000, -12px -4px #000, -4px -4px #fff, -8px -4px #fff, -4px -8px #fff, -4px 0 #fff, -8px 0 #fff, -12px 0 #fff;
}
.bubble.right::after {
height: 4px;
width: 4px;
top: 20px;
right: -8px;
background: #fff;
box-shadow: 4px -4px #fff, 4px 0 #fff, 8px 0 #fff, 0 -8px #fff, 4px 4px #000, 8px 4px #000, 12px 4px #000, 16px 4px #000, 12px 0 #000, 8px -4px #000, 4px -8px #000, 0 -4px #fff;
}
.bubble.bottom::after {
height: 4px;
width: 4px;
bottom: -8px;
left: 32px;
box-shadow: 0 4px #000, 0 8px #000, 0 12px #000, 0 16px #000, -4px 12px #000, -8px 8px #000, -12px 4px #000, -4px 4px #fff, -8px 4px #fff, -4px 8px #fff, -4px 0 #fff, -8px 0 #fff, -12px 0 #fff;
}
.bubble.left::after {
height: 4px;
width: 4px;
top: 20px;
left: -8px;
background: #fff;
box-shadow: -4px -4px #fff, -4px 0 #fff, -8px 0 #fff, 0 -8px #fff, -4px 4px #000, -8px 4px #000, -12px 4px #000, -16px 4px #000, -12px 0 #000, -8px -4px #000, -4px -8px #000, 0 -4px #fff;
}