forked from torch2424/wasmboy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (107 loc) · 2.01 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
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
/* General styles for the debugger, and the index component */
html,
body {
font: 14px/1.21 'Helvetica Neue', arial, sans-serif;
font-weight: 400;
/* For mobile phones to be able to scroll the view into place */
min-height: 600px;
}
h1 {
text-align: center;
font-weight: bold !important;
}
p {
text-align: center;
max-width: 640px;
margin-left: auto;
margin-right: auto;
}
button {
margin-left: 5px;
margin-right: 5px;
}
input[type='checkbox'] {
margin-left: 5px;
}
.hide {
display: none;
}
.notification {
width: 50vw;
max-width: 400px;
color: #fafafa;
background-color: rgba(0, 0, 0, 0.65) !important;
position: fixed !important;
bottom: 10px;
right: 20px;
text-overflow: wrap !important;
z-index: 100000;
}
.wasmboy {
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.wasmboy__title {
margin-top: 10px;
margin-bottom: 10px;
font-size: 1rem;
}
.wasmboy__canvas-container {
text-align: center;
}
.wasmboy__canvas-container__canvas {
border: 1px solid black;
/* Width and height are 160x144 pixel aspect ratio in vw */
width: 50vw;
height: 45vw;
min-width: 160px;
min-height: 144px;
max-width: 640px;
max-height: 576px;
}
/* https://atomiks.github.io/30-seconds-of-css/ */
@keyframes donut-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.donut {
display: inline-block;
border: 4px solid rgba(0, 0, 0, 0.1);
border-left-color: #7983ff;
border-radius: 50%;
width: 30px;
height: 30px;
animation: donut-spin 1.2s linear infinite;
}
/* animate.css https://github.com/daneden/animate.css/blob/master/animate.css */
.animated {
-webkit-animation-duration: 0.5s;
animation-duration: 0.5s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@-webkit-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn;
}