forked from w3c/miniapp-manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.css
177 lines (148 loc) · 2.95 KB
/
local.css
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
.rfc2119-zh {
font-style: normal;
text-emphasis: dot;
-webkit-text-emphasis: dot;
text-emphasis-position: under right;
-webkit-text-emphasis-position: under right;
}
td, th {
padding: 2px 15px;
}
/* From https://github.com/w3c/clreq/blob/gh-pages/local.css */
[lang="zh-hans"] {
font-family: "PingFang SC", "Noto Sans CJK SC", "Heiti SC", "DengXian",
"Microsoft YaHei", Helvetica, Segoe UI, Arial, sans-serif;
}
h2 {
margin-top: 3em;
margin-bottom: 0em;
}
.head h2,
#abstract h2,
#sotd h2 {
margin-top: 0;
}
h3 {
margin-top: 3em;
}
h4 {
margin-top: 2em;
font-size: 100%;
font-weight: normal;
color: #005a9c;
}
h5 {
font-style: inherit !important;
}
.leadin {
font-weight: bold;
}
ins {
background-color: #99ff99;
text-decoration: none;
}
del {
display: inline;
color: silver;
}
figure {
margin-bottom: 2em;
text-align: center;
vertical-align: top;
}
figure img {
vertical-align: middle;
}
figcaption {
text-align: center;
margin: 0.5em 2em;
font-style: italic;
font-size: 90%;
}
.figno:after {
content: ":\00A0 ";
}
code,
samp,
kbd {
font-family: Consolas, "Andale Mono", "Lucida Console",
"Lucida Sans Typewriter", Monaco, "Courier New", monospace;
font-size: 100%;
}
code {
color: #a52a2a;
}
.uname {
text-transform: uppercase;
font-size: 85%;
letter-spacing: 0.03em;
}
#langSwitch {
position: fixed;
top: -14px;
z-index: 10000;
top: 100px;
right: 10px;
width: 5em;
text-align: right;
}
#langSwitch button {
background: #fff none repeat scroll 0% 0%;
border: 1px solid #ccc;
border-radius: 5px;
}
#langSwitch button:lang(zh-hans) {
/* background-color: #fbc481; */
}
.translateme,
.retranslateme {
background-color: #f3f3c3;
background-clip: content-box;
}
.checkme {
background-color: #bbeffc;
background-clip: content-box;
}
.checkme::before {
content: " Check this translation: ";
color: coral;
}
.translateme::before {
content: " Translate this: ";
color: coral;
}
.retranslateme::before {
content: " (Re)translate this: ";
color: coral;
}
.is-multilingual [its-locale-filter-list^="zh"] {
padding-left: 0.4em;
border-left: 3px solid;
}
.is-multilingual [its-locale-filter-list="zh-hans"] {
border-color: rgba(248, 138, 5, 0.5);
}
.is-multilingual h2[its-locale-filter-list^="zh"],
.is-multilingual h3[its-locale-filter-list^="zh"],
.is-multilingual h4[its-locale-filter-list^="zh"],
.is-multilingual h5[its-locale-filter-list^="zh"],
.is-multilingual h6[its-locale-filter-list^="zh"],
.is-multilingual p[its-locale-filter-list^="zh"],
.is-multilingual ol[its-locale-filter-list^="zh"],
.is-multilingual ul[its-locale-filter-list^="zh"] {
margin-left: calc(-0.4em - 2px);
}
.is-multilingual .secno ~ span[its-locale-filter-list^="zh"] {
display: inline-block;
margin-left: 0.3em;
padding-left: 0.3em;
}
.note {
margin-left: -1em !important;
padding-left: 1.5em !important;
}
.note h6 {
margin-top: 1em;
margin-bottom: 0;
font-weight: bold;
}