-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
117 lines (105 loc) · 1.82 KB
/
Copy pathstyle.css
File metadata and controls
117 lines (105 loc) · 1.82 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
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 20px;
background-color: #181818;
}
.sudoku-grid {
display: grid;
grid-template-columns: repeat(9, 1fr);
gap: 1px;
background-color: #383838;
border: 2px solid #383838;
max-width: 450px;
width: 100%;
height: 100%;
aspect-ratio: 1 / 1;
}
.cell {
background-color: #2D2D2D;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 2px;
box-sizing: border-box;
position: relative;
}
.cell::after {
content: '';
position: absolute;
right: -1px;
bottom: -1px;
width: 2px;
height: 100%;
background-color: #383838;
display: none;
}
.cell::before {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 2px;
background-color: #383838;
display: none;
}
.cell:nth-child(3n)::after {
display: block;
}
.cell:nth-child(n+19):nth-child(-n+27)::before,
.cell:nth-child(n+46):nth-child(-n+54)::before {
display: block;
}
.cell-numbers {
font-size: 0.4em;
color: #888;
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 100%;
height: 50%;
text-align: center;
}
.cell-numbers span {
display: flex;
justify-content: center;
align-items: center;
}
.cell-numbers span.highlighted {
color: #383838;
}
.cell input {
width: 100%;
height: 50%;
text-align: center;
font-size: 1em;
border: none;
outline: none;
background-color: transparent;
color: #ddd;
padding: 0;
margin: 0;
appearance: textfield;
-webkit-appearance: textfield;
}
.buttons {
margin-top: 20px;
display: flex;
flex-direction: row;
align-items: center;
}
button {
padding: 10px 20px;
font-size: 1em;
margin: 0 10px;
background-color: #212121;
color: #ddd;
border-radius: 5px;
border-color: #343434;
border-style: solid;
cursor: pointer;
}