-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
139 lines (123 loc) · 2.37 KB
/
Copy pathstyle.css
File metadata and controls
139 lines (123 loc) · 2.37 KB
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
129
130
131
132
133
134
135
136
137
138
139
* {
margin: 0px;
padding: 0px;
}
/* 1. Styling of the main */
body {
background: grey;
height: 100%;
color: #fff;
padding: 25px;
font-family: sans-serif;
}
main {
display: flex;
justify-content: center;
}
main p {
height: 650px;
line-height: 60px;
font-size: 40px;
padding: 5px;
background-color: rgba(173, 216, 230, 0.5);
border: 2px solid rgb(173, 216, 230);
}
/* 2. Styling of the Informations */
.showPlayerTurn {
display: inline-flex;
align-items: center;
color: rgb(0, 0, 0);
}
.showDiceNumber {
display: inline-flex;
align-items: center;
color: rgb(0, 0, 0);
}
.message {
position: fixed;
box-sizing: border-box;
top: 320px;
/*25px padding top, table is 650px with one row being 50px.
So this needs to be: (height(table) - height(message)) / 2 + Top padding ->
(650 - 60) / 2 + 25 = 590 / 2 + 25 = 295 + 25 = 320px */
left: 0;
width: 100%;
height: 60px;
color: rgb(0, 0, 0);
text-align: center;
line-height: 60px;
font-size: 40px;
background-color: rgba(173, 216, 230, 0.5);
border: 2px solid rgb(173, 216, 230);
}
/* 3. Styling of the game field */
#board {
display: inline-block;
top: 0;
}
#board table {
display: inline-grid;
grid-template-rows: repeat(11, 50px);
gap: 10px;
}
#game-board tr {
display: grid;
justify-content: center;
grid-template-columns: repeat(11, 50px);
gap: 10px;
}
#game-board td {
border-radius: 25px;
color: black;
text-align: center;
font-size: 40px;
}
.field {
background-color: white;
}
.yellow {
background-color: yellow;
}
.green {
background-color: green;
}
.blue {
background-color: blue;
}
.red {
background-color: red;
}
/* 4 .Settings Section */
#div_settings {
position: fixed;
top: 0px;
right: 0px;
line-height: 0;
}
.settings_menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background-color: rgba(173, 216, 230, 0.5);
}
.settings_table {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
box-sizing: border-box;
border: 5px solid black;
background-color: rgb(173, 216, 230);
padding: 10px;
z-index: 2;
font-size: 40px;
}
.settings_table tr {
text-align: center;
}
.settings_table td {
padding: 10px;
}