-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
116 lines (99 loc) · 1.74 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
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
:root {
--dark-clr: hsl(0, 0%, 10%);
--dark-clr-hover: hsl(0, 0%, 30%);
--border-grey: hsl(0, 0%, 70%);
--white-clr: hsl(0, 100%, 100%);
font-size: 18px;
font-family: 'Open Sans', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
height: 100vh;
padding: 1em;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
#app {
display: grid;
height: 100%;
width: 50em;
border: 1px solid var(--dark-clr);
grid-template-columns: repeat(50, 1fr);
}
#turn-count {
position: absolute;
top: 0;
left: 0;
margin: 0.5em;
padding: 0.5em 1em;
border-radius: 0.5em;
background-color: var(--dark-clr);
color: var(--white-clr);
}
.cell {
border: 1px solid var(--border-grey);
}
.alive {
background-color: var(--dark-clr);
color: var(--white-clr);
}
.controls {
margin-top: 1em;
background-color: var(--dark-clr);
border-radius: 1em;
padding: 0 1em;
}
.btn {
font-family: inherit;
border: none;
margin: 0;
padding: 1em 2em;
}
.btn-primary {
background: var(--dark-clr);
color: var(--white-clr);
transition: 0.2s ease-in-out;
}
.btn-secondary {
background: var(--white-clr);
color: var(--dark-clr);
}
.btn-primary:hover,
.btn-primary:focus {
background: var(--dark-clr-hover);
color: hsl(0, 50%, 50%);
cursor: pointer;
}
.info {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
width: 50vw;
min-height: 50vh;
background: hsla(0, 0%, 0%, 0.8);
color: var(--white-clr);
padding: 2em;
border-radius: 1em;
}
#info-close {
margin-top: 1em;
border-radius: 1em;
}
p {
margin: 1em;
}
a {
color: hsl(0, 50%, 50%);
}
.hidden {
display: none;
}