-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonostyles.css
141 lines (117 loc) · 2.54 KB
/
monostyles.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* MONO */
*{
padding: 0px;
margin: 0px;
} /* set padding and margin to 0 as default */
body {
background: rgb(255, 255, 255);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh; /* makes sure comic is centered in entire screen */
width: 100vw;
}
.page {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, 0);
}
.row {
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 100%;
width: 100%;
}
.col {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
height: 100%;
width: 100%;
}
.panel {
border-style: solid;
border-color: black;
background-color: white;
position: relative;
margin: 3vmin;
}
.img {
width: 100%;
height: 100%;
}
.text {
position: absolute;
text-align: center;
border-style: solid;
border-color: black;
color: black;
background-color: white;
font-family:"Comic Sans MS", "Comic Sans";
padding: 2vmin;
}
.dialogue {
height: 100%;
font-family:"Comic Sans MS", "Comic Sans";
}
.title {
position: relative;
border: 0;
font-size-adjust: 0.8;
font-family: monospace;
padding: 4vmin;
}
.inv {
border-color: white;
background-color: black;
color: white;
}
@media screen and (max-width: 177vmin) { /* aspect ratio LESS WIDE than 16/9 */
.page {
height: 56vw; /* 9/16 * 100 */
width: 100vw;
}
.text {
font-size: 1.5vw;
}
}
@media screen and (min-width: 177vmin) { /* aspect ratio MORE WIDE than 16/9 */
.page {
height: 100vh;
width: 178vh; /* 16/9 * 100 */
}
.text {
font-size: 2vh;
}
}
/* MOVING STUFF */
.hidden {
opacity: 0;
}
.shaking {
animation: shake 0.3s infinite;
}
@keyframes shake {
0% { transform: translateX(0) translateY(0) rotate(0)}
20% { transform: translateX(-14px) translateY(-9px) rotate(23deg) }
40% { transform: translateX(16px) translateY(7px) rotate(-19deg) }
60% { transform: translateX(-6px) translateY(-3px) rotate(17deg) }
80% { transform: translateX(3px) translateY(-9px) rotate(-29deg) }
100% { transform: translateX(0) translateY(0) rotate(0)}
}
.appearing {
opacity: 0%;
animation: appear 1s;
animation-fill-mode: forwards;
}
@keyframes appear {
0% {opacity: 0%;}
100% {opacity: 100%;}
}