-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (83 loc) · 1.34 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
html,
body {
height: 100%;
padding: 0;
margin: 0;
}
h1 {
text-align: center;
font-size: 3em;
}
h1,
button,
div {
font-family: 'Courier New', Courier, monospace;
}
#container {
display: flex;
justify-content: center;
box-sizing: border-box;
margin: 0 auto;
padding-top: 0;
max-width: 500px;
font-family: 'Josefin Sans', sans-serif;
font-size: .5em;
background-color: white;
flex-wrap: wrap;
}
.cell {
border: 1px solid #000;
width: 25px;
height: 25px;
box-sizing: border-box;
text-align: center;
line-height: 25px;
}
.startCell {
background: green;
}
.finishCell {
background: red;
}
.wall {
background: #000;
}
.foundWay {
background: yellow;
-moz-transition: all 2s ease-in;
/* WebKit */
-webkit-transition: all 2s ease-in;
/* Opera */
-o-transition: all 2s ease-in;
/* Standard */
transition: all 2s ease-in;
}
#generate,
#clear-path-btn,
#find-path-btn {
margin: 0 auto;
display: flex;
margin-top: 1em;
font-size: 1.5em;
}
.alert.fail {
background: #ed0000;
color: #fff;
text-align: center;
padding: 20px;
font-size: 1.5em;
}
@media all and (max-width: 600px) {
.cell {
width: calc(90vw / 20);
height: calc(90vw / 20);
line-height: calc(90vw / 20);
font-size: 0.9em;
}
#container {
width: 90vw;
}
#find-path-btn {
margin-bottom: 1.5em;
}
}