김한준

css

1 +@charset "utf-8";
2 +@import url('https://fonts.googleapis.com/css?family=Noto+Sans+KR|Noto+Serif+KR');
3 +
4 +body {
5 + margin: auto;
6 + text-align: center;
7 + font-family: 'Noto Sans KR', sans-serif;
8 +}
9 +
10 +.output {
11 + width: 2em;
12 + height: 2em;
13 + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
14 + solid silver;
15 + color: #fff;
16 + margin: .5em .25em;
17 + display: inline-flex;
18 + justify-content: center;
19 + align-items: center;
20 + border-radius: 50%;
21 + border: 3px solid transparent;
22 +}
23 +
24 +.output.c1 {
25 + background: #FDD835;
26 + color: #212121;
27 +}
28 +
29 +.output.c2 {
30 + background: #1976D2;
31 +}
32 +
33 +.output.c3 {
34 + background: #D32F2F;
35 +}
36 +
37 +.output.c4 {
38 + background: #616161;
39 +}
40 +
41 +.output.c5 {
42 + background: #388E3C;
43 +}
44 +
45 +.output.match,
46 +[id^="output"] {
47 + border: 3px solid #FF9800;
48 +}
49 +
50 +.output.match_b,
51 +#output6 {
52 + border: 3px solid #9E9E9E;
53 +}
54 +
55 +#stats {
56 + text-align: center;
57 + width: 100%;
58 + position: absolute;
59 + top: calc(50% + 160px);
60 +}
61 +
62 +#stats progress {
63 + width: 600px;
64 + max-width: calc(100% - 2em);
65 +}
66 +
67 +#lottotable {
68 + padding: 1em 0 0 0;
69 + margin: 0;
70 + font-size: 12px;
71 + text-align: left;
72 + width: 100%;
73 + position: absolute;
74 + display: flex;
75 + flex-flow: wrap;
76 + top: calc(50% + 225px);
77 + counter-reset: li;
78 + overflow: hidden;
79 +}
80 +
81 +#lottotable li {
82 + display: inline-table;
83 + text-align: center;
84 + flex: auto;
85 + /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); */
86 + margin: .5em 0;
87 + margin-left: 2em;
88 + padding: 0;
89 + position: relative;
90 + max-width: 30em;
91 + transition: .25s;
92 +}
93 +
94 +#lottotable li::before {
95 + content: counter(li);
96 + counter-increment: li;
97 + position: absolute;
98 + top: 1em;
99 + right: 100%;
100 +}
101 +
102 +#lottotable li:nth-of-type(100n) {
103 + margin-bottom: 3em;
104 +}
105 +
106 +.win {
107 + font-weight: bold;
108 + border-radius: .5em;
109 +}
110 +
111 +.win1 {
112 + background: gold;
113 + box-shadow: 0 2px 5px #b39700;
114 +}
115 +
116 +.win1:hover {
117 + box-shadow: 0 5px 7px #b39700;
118 +}
119 +
120 +.win2 {
121 + background: gold;
122 + box-shadow: 0 2px 5px #b39700;
123 +}
124 +
125 +.win2:hover {
126 + box-shadow: 0 5px 7px #b39700;
127 +}
128 +
129 +.win3 {
130 + background: gold;
131 + box-shadow: 0 2px 5px #b39700;
132 +}
133 +
134 +.win3:hover {
135 + box-shadow: 0 5px 7px #b39700;
136 +}
137 +
138 +.win4 {
139 + background: silver;
140 + box-shadow: 0 2px 5px gray;
141 +}
142 +
143 +.win4:hover {
144 + box-shadow: 0 5px 7px gray;
145 +}
146 +
147 +.win5 {
148 + background: #cd7f32;
149 + box-shadow: 0 2px 5px #905923;
150 +}
151 +
152 +.win5:hover {
153 + box-shadow: 0 5px 7px #905923;
154 +}
155 +
156 +.win:after {
157 + color: #8c0017;
158 + position: absolute;
159 + top: -1em;
160 + right: -1em;
161 + border: 5px double #8c0017;
162 + border-radius: 50%;
163 + padding: 0.25em;
164 + transform: rotate(-15deg);
165 +}
166 +
167 +.win1:after {
168 + content: "1등";
169 +}
170 +
171 +.win2:after {
172 + content: "2등";
173 +}
174 +
175 +.win3:after {
176 + content: "3등";
177 +}
178 +
179 +.win4:after {
180 + content: "4등";
181 +}
182 +
183 +.win5:after {
184 + content: "5등";
185 +}
186 +
187 +#winner {
188 + width: 600px;
189 + max-width: calc(100% - 2em);
190 + height: 200px;
191 + margin: auto;
192 + text-align: center;
193 + position: absolute;
194 + top: calc(50% - 100px);
195 + left: calc(50% - 300px);
196 + transition: .25s, top 0s;
197 +}
198 +
199 +#winner h2 {
200 + margin-top: 1.5em;
201 +}
202 +
203 +#winner.pinned {
204 + max-width: 100%;
205 + font-size: 12px;
206 + width: 100%;
207 + left: 0;
208 + height: 75px;
209 + position: fixed;
210 + top: 0;
211 + margin: 0;
212 +}
213 +
214 +#winner.pinned h2 {
215 + font-size: 12px;
216 + margin: .5em 0 0;
217 +}
218 +
219 +.shadow {
220 + box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
221 + border-radius: 3px;
222 + background: #fff;
223 +}
224 +
225 +.shadow-right {
226 + box-shadow: 2px 0 6px 0 rgba(60, 64, 67, .15);
227 +}
228 +
229 +.shadow-bottom {
230 + box-shadow: 0 2px 6px 0 rgba(60, 64, 67, .15);
231 +}
232 +
233 +.shadow-top-inset {
234 + box-shadow: inset 0 7px 6px -5px rgba(60, 64, 67, .15);
235 +}
236 +
237 +.shadow-bottom-inset {
238 + box-shadow: inset 0 -7px 6px -5px rgba(60, 64, 67, .15);
239 +}
240 +
241 +.shadow-top-inset.shadow-bottom-inset {
242 + box-shadow: inset 0 7px 6px -5px rgba(60, 64, 67, .15), inset 0 -7px 6px -5px rgba(60, 64, 67, .15);
243 +}
244 +
245 +.translation {
246 + /* color: rgba(0, 0, 0, .38); */
247 + opacity: .65;
248 + font-size: .75em;
249 + font-style: italic;
250 + font-family: 'Noto Sans KR', sans-serif;
251 +}
252 +
253 +.key {
254 + transition: .25s;
255 + text-shadow: 0 -1px #e0e0e0;
256 + box-shadow: 0 6px #e0e0e0;
257 + border: 1px solid #e0e0e0;
258 + border-radius: 5px;
259 + margin: -.5em .25em .25em;
260 + padding: .25em .75em;
261 + background: white;
262 + color: #212121;
263 + font-size: .75em;
264 + vertical-align: top;
265 + display: inline-block;
266 + cursor: pointer;
267 + font-family: 'Noto Sans KR', sans-serif;
268 +}
269 +
270 +.key:active,
271 +.key.on {
272 + box-shadow: 0 0px #e0e0e0;
273 + margin: 0 .25em -.25em;
274 +}
275 +
276 +/* ***** mobile ***** */
277 +@media handheld, only screen and (max-device-width:480px), only screen and (max-device-width:320px), screen and (max-width:600px) {
278 + body {
279 + font-size: 12px;
280 + }
281 +
282 + #winner {
283 + height: 150px;
284 + top: calc(50% - 75px);
285 + margin: 1em;
286 + left: inherit;
287 + }
288 +
289 + #winner.pinned {}
290 +
291 + #lottotable {
292 + font-size: 6px;
293 + }
294 +}