blob: fe7c5d31428bf0fc4fb80631986b51c9a808e5bc (
plain)
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
|
.dsc-outer {
--active-1: oklch(75% 0.15 195.032);
--active-2: oklch(75% 0.15 328.437);
--active-3: oklch(75% 0.15 109.374);
transform: rotate(-45deg) scale(0.7);
width: fit-content;
height: fit-content;
margin: auto;
display: grid;
gap: 0.5em;
grid-template-columns: auto auto;
padding: 0.5em;
border: none;
&[data-solved] {
outline: 2px solid var(--active-1);
}
>button {
font-size: 1.5em;
&.dsc-submit {
writing-mode: sideways-rl;
}
}
}
button {
border: 2px outset #000;
background-color: #eee;
&:active {
border: 2px inset #000;
}
}
.dsc-inner {
grid-column-start: 1;
border: 2px inset #000;
display: grid;
gap: 0.5em;
padding: 0.5em;
>button {
height: 2em;
width: 2em;
aspect-ratio: 1 / 1;
display: flex;
justify-content: center;
align-items: center;
font-size: 2em;
>span {
transform: rotate(45deg);
pointer-events: none;
}
&:disabled {
border: 2px solid #000;
outline: 1px solid #000;
color: #000;
}
&[data-active="1"] {
background-color: var(--active-1);
}
&[data-active="2"] {
background-color: var(--active-2);
}
&[data-active="3"] {
background-color: var(--active-3);
}
}
}
|