Repository navigation
Expand file tree
/
Copy pathtranslation.css
More file actions
82 lines (73 loc) · 1.8 KB
/
Copy pathtranslation.css
File metadata and controls
82 lines (73 loc) · 1.8 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
/* SPDX-License-Identifier: MPL-2.0 */
.translation-control {
display: grid;
grid-template-columns: auto minmax(0, auto);
grid-template-areas:
"button status"
"mount mount"
"credit credit";
align-items: center;
gap: 5px 8px;
min-width: 210px;
}
.translation-control > button {
grid-area: button;
min-height: 32px;
padding: 7px 10px;
border-color: var(--amber-soft);
color: var(--amber);
}
.translation-status {
grid-area: status;
max-width: 180px;
color: var(--dim);
font: 700 8px/1.25 var(--mono);
letter-spacing: .07em;
text-transform: uppercase;
}
.translation-status[data-state="online"] { color: var(--green); }
.translation-status[data-state="loading"] { color: var(--amber); }
.translation-status[data-state="error"] { color: var(--oxide); }
.translation-mount {
grid-area: mount;
min-height: 0;
}
.translation-mount:empty { display: none; }
.translation-mount select {
width: 100%;
min-height: 32px;
padding: 5px 8px;
border: 1px solid var(--line);
background: #0d1010;
color: var(--ink);
font: 600 10px/1.2 var(--mono);
}
.translation-credit {
grid-area: credit;
color: var(--dim);
font: 600 8px/1.2 var(--mono);
letter-spacing: .03em;
text-decoration: none;
}
.translation-credit:hover,
.translation-credit:focus-visible { color: var(--amber); }
@media (max-width: 1050px) {
.translation-status { display: none; }
.translation-control {
min-width: 150px;
grid-template-columns: 1fr;
grid-template-areas: "button" "mount" "credit";
}
}
@media (max-width: 780px) {
.masthead { flex-wrap: wrap; }
.translation-control {
flex: 1 0 100%;
min-width: 0;
grid-template-columns: auto minmax(0, 1fr);
grid-template-areas:
"button mount"
"credit credit";
}
.translation-control > button { min-width: 120px; }
}