-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (106 loc) · 1.99 KB
/
style.css
File metadata and controls
121 lines (106 loc) · 1.99 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
* {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* 🚫 no scrolling */
touch-action: manipulation;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #ffffff;
}
.hide-board {
display: none;
}
/* App container */
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
/* Title */
h1 {
margin: 10px 0 6px;
font-size: 22px;
}
/* Menu + Top bar */
#menu,
#top-bar {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-bottom: 8px;
}
#menu button,
#top-bar button {
padding: 6px 14px;
border-radius: 18px;
border: none;
background: #f1f1f1;
font-size: 14px;
}
#timer, #lives {
font-size: 14px;
}
.hidden {
display: none;
}
/* ======================= */
/* Sudoku Grid (LOCKED) */
/* ======================= */
#sudoku {
width: min(92vmin, 360px);
height: min(92vmin, 360px);
display: grid;
grid-template-columns: repeat(9, 1fr);
grid-template-rows: repeat(9, 1fr);
border: 3px solid #000;
}
/* Cells */
.cell {
width: 100%;
height: 100%;
border: 1px solid #bbb;
text-align: center;
font-size: clamp(16px, 4.5vmin, 20px);
font-weight: 500;
outline: none;
background: #fff;
padding: 0;
}
/* Fixed cells */
.cell:disabled {
background: #f2f2f2;
color: #555;
font-weight: 700;
}
/* Wrong input */
.invalid {
background: #ffd6d6;
}
/* ======================= */
/* 3×3 BLOCK BORDERS */
/* ======================= */
/* Vertical block borders */
.cell:nth-child(9n + 4),
.cell:nth-child(9n + 7) {
border-left: 2px solid #000;
}
/* Horizontal block borders */
.cell:nth-child(n + 28):nth-child(-n + 36),
.cell:nth-child(n + 55):nth-child(-n + 63) {
border-top: 2px solid #000;
}
/* Message */
#message {
margin-top: 10px;
font-size: 16px;
font-weight: 600;
text-align: center;
white-space: pre-line;
}