-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
96 lines (96 loc) · 1.73 KB
/
style.css
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// These are the styles for the comic
body {
background-color: #efefef;
font-family: "Comic Sans MS", sans-serif;
line-height: 1.2;
text-align: center;
padding: 40px 0 0 20px;
}
h1 {
text-transform: uppercase;
font-size: 40px;
color: #d02626;
}
.comic {
max-width: 826px;
margin: 60px auto 0;
}
.scene {
width: 250px;
height: 250px;
border: 3px solid black;
background: white;
margin: 8px;
display: inline-block;
position: relative;
}
.scene img {
width: 100%;
height: 100%;
display: block;
}
.caption {
padding: 10px;
margin: 0;
position: absolute;
left: 0;
right: 0;
background: #e2e971;
text-align: left;
top: 0;
}
.caption.bottom {
bottom: 0;
top:auto;
border-top: 2px solid black;
}
.caption.top {
top: 0;
border-bottom: 2px solid black;
}
.speech {
width: 40%;
border-radius:50%;
border: 2px solid black;
margin: 0;
position: absolute;
z-index: 1;
background: snow ;
padding: 20px;
top: -15px;
text-align: center;
}
/* Advanced CSS for the speech pointer */
.speech:after {
border-color: snow transparent;
border-style: solid;
border-width: 13px 13px 0;
bottom: -11px;
content: "";
display: block;
left: 50%;
margin-left:-14px;
position: absolute;
width: 0;
}
.speech:before {
border-color: black transparent;
border-style: solid;
border-width: 16px 16px 0;
bottom: -15px;
content: "";
display: block;
left: 50%;
margin-left:-17px;
position: absolute;
width: 0;
}
.speech.left {
left:-15px;
}
.speech.right {
right:-15px;
}
footer {
clear: both;
}