-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcore.css
118 lines (95 loc) · 1.59 KB
/
core.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
/* Variables */
:root {
--tile-size: min(calc(100vw / 10), 50px);
}
/* Font */
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-weight: bold;
color: #f4dcb4;
}
h1 {
font-size: 2.5rem;
}
.title {
color: white;
font-size: 4rem;
}
.small-text {
font-size: 0.8rem;
}
/* Structure */
.content {
display: flex;
flex-direction: column;
align-items: center;
}
#wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
background-color: #4e4e4e;
}
#cover {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
#board {
display: grid;
width: fit-content;
grid-template-columns: repeat(8, var(--tile-size));
grid-template-rows: repeat(8, var(--tile-size));
border: calc(var(--tile-size) / 2) solid #3d3d3d;
border-radius: 1rem;
}
#tooltip {
padding-top: 1rem;
opacity: 0;
transition: 2s;
}
#tag {
position: absolute;
bottom: 0.7rem;
}
.header {
display: flex;
justify-content: center;
padding-bottom: 2rem;
}
.footer {
display: flex;
justify-content: center;
}
/* Board tiles */
.light {
background-color: #f4dcb4;
}
.dark {
background-color: #b48c64;
}
.light:hover {
background-color: #fce6c0;
}
.dark:hover {
background-color: #c4986d;
}
.square {
width: auto;
height: auto;
transition: all .2s ease-in-out;
}
.square:hover {
transform: scale(1.06);
}
.start {
background-color: rgb(61, 99, 54);
}