-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
112 lines (98 loc) · 2.15 KB
/
style.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
/*
Title: Minesweeper
Description: Classic game of minesweeper for browser
Last Updated: Sep 11, 2023
Developer: Alexander Beck
Email: beckhv2@gmail.com
Github: https://github.com/bexcoding
*/
/* color variables for page theme; red, dark blue, light grey */
:root {
--color-1: #AE0A0A;
--color-2: #1E112D;
--color-3: #DFDFEC;
}
body {
margin: 0;
padding: 0;
font-size: 18px;
background-color: #E5E8F6;
}
/* banner with red minesweeper title */
header {
text-align: center;
font-size: 2em;
height: 160px;
padding: 20px 40px;
background-color: var(--color-1);
color: var(--color-2);
border-bottom: 5px solid var(--color-2);
}
/* main grid display for page below banner */
main {
display: grid;
grid-template-columns: repeat(4, 300px);
grid-template-rows: repeat(4, 200px);
background-color: var(--color-3);
}
/* area on left with score, high score, and new game button */
#display-area {
width: 320px;
height: 800px;
background-color: white;
grid-column: 1 / 2;
grid-row: 1 / 5;
border-right: 5px solid var(--color-2);
font-size: 1.5em;
}
#timer {
text-align: center;
font-size: 2em;
color: var(--color-2);
border-bottom: 5px solid var(--color-2);
}
#scoreboard, #score, #hi-score, #odds, #difficulty, #new-game{
margin-left: 40px;
}
#difficulty {
font-size: 0.6em;
display: flex;
flex-wrap: wrap;
flex-direction: column;
margin-top: 30px;
}
#new-game {
margin-top: 30px;
font-size: 1.1em;
color: white;
background-color: var(--color-2);
border-radius: 10px;
}
#new-game:hover {
color: var(--color-2);
background-color: var(--color-1);
}
/* grid of buttons for game */
#game-grid {
background-color: var(--color-3);
height: 600px;
width: 600px;
margin: 0 auto 0 180px;
padding: 60px 0 0 0;
display: flex;
flex-wrap: wrap;
grid-column: 2 / 4;
grid-row: 1;
}
.game-tile {
height: 10%;
width: 10%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
font-size: 1.5em;
}
.game-tile:hover {
background-color: var(--color-1);
}