forked from goldendict/goldendict
-
Notifications
You must be signed in to change notification settings - Fork 0
/
article-style-st-modern.css
180 lines (153 loc) · 3.19 KB
/
article-style-st-modern.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
177
178
179
180
html
{
background-color: white;
}
body
{
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: white;
font-family: Tahoma, Verdana, "Lucida Sans Unicode", "Segoe UI", "Palatino Linotype", "Arial Unicode MS", sans-serif;
}
a
{
text-decoration: none;
color: darkblue;
}
a:hover
{
text-decoration: underline;
}
.gdarticle
{
margin-top: 0.1em;
margin-bottom: 0.4em;
padding: 5px;
border: 1px solid #d0dde2;
border-radius: 8px;
background: white;
}
.gdactivearticle
{
border: 1px solid #3399FF;
}
.gdarticleseparator + script + .gdactivearticle .gddictname
{
border-top: 1px solid #3399FF;
}
.gdarticleseparator
{
display: none;
}
/* Hide the 'From ' string which preceeds dictionary name in the heading */
.gdfromprefix
{
display: none;
}
.gddictname
{
display: -webkit-box; /* needed to be able to reorder elements, e.g. icon, dictionary name, collapse icon */
font-size: 12px;
font-weight: normal;
float: right;
border: 0px;
border-top-right-radius: 8px;
border-bottom-left-radius: 6px;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
padding-right: 0.3em;
color: #4480f8;
background: #E0E8F0;
-webkit-user-select: none;
user-select: none;
cursor: default;
}
/* Actual text with the dictionary title */
.gddicttitle
{
display:block;
-webkit-box-ordinal-group: 1;
}
.gdactivearticle .gddictname
{
font-size: 13px;
font-weight: normal;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
float: right;
border: 1px solid #3399FF;
color: #0066cc;
background: #deecf8;
}
.gdcollapsedarticle .gddictname
{
opacity: 0.7;
}
/* Nice diagonal pattern for the collapsed article */
.gdcollapsedarticle
{
background-image: -webkit-linear-gradient(left top, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-size: 50px 50px;
}
/* Move the collapse/expand buttons to the last, 3rd position */
.collapse_expand_area
{
display: block;
-webkit-box-ordinal-group: 3;
}
.gddicticon
{
display: block;
vertical-align: text-bottom;
padding-right: -1em;
padding-left: 0.3em;
-webkit-box-ordinal-group: 2;
}
.gdexpandicon, .gdexpandicon:hover, .gdcollapseicon, .gdcollapseicon:hover
{
width:15px;
background-position: center 35%;
background-repeat:no-repeat;
vertical-align: text-bottom;
padding-left: -5px;
margin-left: 0px;
}
.gdexpandicon {
background-image: url('qrcx://localhost/icons/expand_article.png');
}
.gdexpandicon:hover {
background-image: url('qrcx://localhost/icons/expand_article_hovered.png');
}
.gdcollapseicon {
background-image: url('qrcx://localhost/icons/collapse_article.png');
}
.gdcollapseicon:hover {
background-image: url('qrcx://localhost/icons/collapse_article_hovered.png');
}
/* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > span:first-child .dsl_headwords,
.gdarticlebody > h3:first-child
{
margin-top: -3px;
display: inline-block;
}
.gdspellsuggestion
{
/* Add some vertical space before the article */
margin-top: 1.5em;
}
.dsl_ex, .dsl_ex .dsl_opt
{
color: steelblue;
}
::selection {
background:#cc0000;
color:#fff;
}
code::selection {
background: #333333;
}