-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.css
206 lines (188 loc) · 4.28 KB
/
game.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
@font-face { font-family: AdvancedPixel7; src: url('./fonts/advanced_pixel-7.ttf'); font-size: 4em; }
@font-face { font-family: HomemadeApple; src: url('./fonts/HomemadeApple.ttf'); font-size: 2em; }
@font-face { font-family: MomsTypewriter; src: url('./fonts/Moms_typewriter.ttf'); font-size: 2em; }
.class { background-color: #704214; }
span {
font-family: AdvancedPixel7;
font-size: 3em;
}
h1 {
font-family: AdvancedPixel7;
font-size: 4em;
}
h2 {
font-family: AdvancedPixel7;
font-size: 3em;
}
table, th, td {
border: 0px solid black;
border-collapse: collapse;
}
.user-option-header {
opacity: 0.5;
}
.user-option {
opacity: 0.5;
}
.user-option:hover {
opacity: 0.5;
background-color: lavenderblush;
}
.user-option-label {
opacity: 0.3;
}
.container-popup {
position: relative;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,.8);
}
.popup {
width: 50%;
background: #F8D5A7;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
.game-button {
background-color: #F8D5A7;
font-family: AdvancedPixel7;
font-size: 2em;
}
.journal {
font-family: HomemadeApple;
font-size: 2em;
}
.typewriter {
font-family: MomsTypewriter;
font-size: 1em;
}
.typewriter-title {
font-family: MomsTypewriter;
font-size: 4em;
}
/* hover boxes */
[data-title]:hover:after {
opacity: 1;
transition: all 0.1s ease 0.5s;
visibility: visible;
}
[data-title]:after {
content: attr(data-title);
font-family: AdvancedPixel7;
background-color: #625950;
color: #fff;
font-size: 1em;
position: absolute;
padding: 1px 5px 2px 5px;
bottom: -1.6em;
left: 100%;
white-space: nowrap;
box-shadow: 1px 1px 3px #222222;
opacity: 0;
border: 1px solid #111111;
z-index: 99999;
visibility: hidden;
}
[data-title] {
position: relative;
}
/* image */
.image-parent {
position: relative;
top: 0;
left: 0;
}
.image1 {
position: relative;
top: 0;
left: 0;
}
.image2 {
position: absolute;
top: 0px;
left: 0px;
}
/* console */
.console {
font-family: AdvancedPixel7;
font-size: 0.5em;
}
/* health bar */
progress {
/* Reset the default appearance */
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* Get rid of default border in Firefox. */
border: none;
/* Dimensions */
height: 10px;
}
.progress-20 {
color: red;
}
.progress-20::-webkit-progress-value {
background-color:red;
}
.progress-20::-moz-progress-bar {
background-color:red;
}
.progress-50 {
color: yellow;
}
.progress-50::-webkit-progress-value {
background-color:yellow;
}
.progress-50::-moz-progress-bar {
background-color:yellow;
}
.progress-100 {
color: green;
}
.progress-100::-webkit-progress-value {
background-color:green;
}
.progress-100::-moz-progress-bar {
background-color:green;
}
.slidecontainer {
width: 100%; /* Width of the outside container */
}
/* The slider itself */
.slider {
-webkit-appearance: none; /* Override default CSS styles */
appearance: none;
width: 40%; /* Full-width */
height: 25px; /* Specified height */
background: #d3d3d3; /* Grey background */
outline: none; /* Remove outline */
opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
-webkit-transition: .2s; /* 0.2 seconds transition on hover */
transition: opacity .2s;
}
/* Mouse-over effects
.slider:hover {
opacity: 1;
}*/
/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
width: 25px; /* Set a specific slider handle width */
height: 25px; /* Slider handle height */
background: #5C4033; /* Brown background */
cursor: pointer; /* Cursor on hover */
}
.slider::-moz-range-thumb {
width: 25px; /* Set a specific slider handle width */
height: 25px; /* Slider handle height */
background: #5C4033; /* Brown background */
cursor: pointer; /* Cursor on hover */
}