-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
117 lines (113 loc) · 2.29 KB
/
style.css
File metadata and controls
117 lines (113 loc) · 2.29 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
@charset "UTF-8";
:root{
--gap:8px;
--grid-size:11; /* PROBLEMS_ROW_COL_NUM + 1 */
--cell-size:calc((100vh - 120px) / var(--grid-size));
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
margin:4px;
line-height:1.2;
color:#111;
}
h1 {
font-size: 1.2em;
margin-bottom: 4px;
}
h1 small {
font-size: 0.6em;
font-weight: normal;
color: #666;
}
header{
display:flex;
gap:8px;
align-items:center;
flex-wrap:wrap;
margin-bottom:4px;
}
select, button{
padding:4px 8px;
font-size:12px;
}
#controls {
display:flex;
gap:4px;
align-items:center;
flex-wrap:wrap;
}
#clearHistoryBtn {
gap:4px;
width: 100px;
}
#grid{
display:grid;
grid-template-columns: repeat(var(--grid-size), calc(var(--cell-size) * 1.2));
gap: 0;
margin-top:1px;
border: 1px solid #d0d0d0;
}
.cell{
border-radius:0;
padding:0;
height: var(--cell-size);
display:flex;
flex-direction:column;
justify-content:center;
align-items:stretch;
background:#ffffff;
border-right: 1px solid #d0d0d0;
border-bottom: 1px solid #d0d0d0;
font-size:clamp(25px, calc(var(--cell-size) * 0.2), 14px);
position: relative;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.cell.last-row {
border-bottom: none;
}
.cell.header-cell {
background:#f0f0f0;
font-weight:600;
justify-content:center;
align-items:center;
padding: 5px;
}
.question{
font-weight:600;
margin-bottom:6px;
}
.cell input{
width:100%;
height:100%;
box-sizing:border-box;
padding:0;
font-size:clamp(20px, calc(var(--cell-size) * 0.2), 14px);
text-align:center;
border-radius:0;
border:none;
background:transparent;
outline:none;
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}
.cell input:focus {
background:rgba(0,0,0,0.02);
}
.cell.correct{ background:#e6ffed; }
.cell.wrong{ background:#ffecec; }
.cell.highlight-row { background:#fff9e6 !important; }
.cell.highlight-col { background:#fff9e6 !important; }
footer { margin-top:4px; display:flex; flex-direction:column; gap:2px; font-size:11px; }
@media (max-width:720px){
:root { --cell-size:64px; }
}