-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
85 lines (72 loc) · 1.76 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
body {
background-color: gray;
}
/*
The main gird has 2 items - board, panel
*/
.grid-container {
display: inline-grid;
grid-template-columns: auto auto;
grid-gap: 20px;
padding: 20px;
border-radius: 25px;
background-color: rgba(0, 0, 0, 0.1);
}
.grid-item-board-container {
display: grid;
background-image: url("static/board.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
grid-template-columns: repeat(19, 1fr);
--size: 90vmin;
width: var(--size);
height: var(--size);
box-sizing: border-box;
padding: calc(var(--size) / 90);
}
.grid-item-panel-container {
display: grid;
height: 90vmin;
grid-row-gap: 1px;
grid-template-rows: repeat(10, 1fr);
}
/*
board items
*/
.board-item-white, .board-item-black, .board-item-white-stone, .board-item-black-stone {
/* border: 1px solid rgba(0, 0, 0, 0.8); */
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.board-item-white:hover, .board-item-white-stone {
background-image: url("static/white-shell.png");
}
.board-item-black:hover, .board-item-black-stone {
background-image: url("static/black.png");
}
.board-item-white:hover, .board-item-black:hover {
opacity: 0.75;
}
/*
panel items
*/
.panel-item-info-black, .panel-item-info-white {
border-radius: 25px;
padding: 20px;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-size: 120%;
font-weight: bold;
}
.panel-item-info-black {
grid-row-start: 2;
grid-row-end: 3;
background-color: rgba(0, 0, 0, 0.5);
color: rgba(256, 256, 256, 0.8);
}
.panel-item-info-white {
background-color: rgba(256, 256, 256, 0.5);
grid-row-start: 4;
grid-row-end: 5;
}