-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
128 lines (106 loc) · 2.13 KB
/
styles.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
body {
margin: 0;
transition: background-color 200ms ease-in-out;
}
.square-container {
position: relative;
width: 100%;
}
.square-container::after {
content: "";
display: block;
padding-bottom: 100%;
}
.game-container {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
position: absolute;
}
.coordinate {
display: flex;
justify-content: center;
align-items: center;
}
.cell {
border-radius: 30%;
transition: background-color 0.2s ease-in-out,
width 0.2s,
height 0.2s;
}
.cell.alive {
width: 70%;
height: 70%;
}
.cell.dead {
width: 40%;
height: 40%;
}
.light-theme .cell.dead {
background-color: rgb(244, 245, 247);
}
.dark-theme .cell.dead {
background-color: rgba(30, 30, 30, 0.77);
}
.cell.orange {
background-color: rgba(255, 171, 0, 0.8);
}
.cell.green {
background-color: rgba(54, 179, 126, 0.8);
}
.cell.blue {
background-color: rgba(0, 184, 217, 0.8);
}
.cell.purple {
background-color: rgba(101, 84, 192, 0.8);
}
.button {
flex: 1;
min-height: 40px;
padding: 0 16px;
margin: 0;
color: white;
border-style: solid;
border-color: rgba(100, 100, 100, 0.80);
border-top-width: 2px;
border-bottom-width: 0;
border-left-width: 1px;
border-right-width: 1px;
white-space: nowrap;
font-size: 18px;
background-color: rgba(94, 98, 110, 0.685);
transition: background-color 300ms ease-in-out,
visibility 300ms ease-in-out;
}
.button:active {
filter:brightness(65%);
}
.play-button {
background-color: rgba(54, 179, 126, 0.8)
}
.control-panel {
position: fixed;
bottom: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
width: 100%;
max-height: 240px;
}
.import-field {
position: fixed;
bottom: 40px;
right: 0;
border-radius: 4px;
border-width: 2px;
resize: none;
padding: 8px;
height: 24px;
width: 250px;
font-size: 16px;
}
.import-field.invalid {
border-color: rgb(255, 86, 48);
background-color: rgb(255, 161, 140);
}