-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlexicon.css
174 lines (173 loc) · 3.88 KB
/
lexicon.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
/* Copyright 2016-2023 by zrajm. Released under GPLv3 license. */
/* styles needed beyond first screenfull of content */
/* Side menu (with content) */
.menu.shown aside {
right: 0%;
box-shadow:
0 0 1000px 9999px #0004,
0 0 30px 15px #0003;
}
.menu:not(.shown) aside {
visibility: hidden;
}
.menu aside {
display: flex;
flex-direction: column;
overflow-y: auto;
line-height: 1.5;
}
.menu aside li,
.menu aside p {
margin-top: .5em;
}
.menu aside ul {
list-style-type: none;
}
.menu aside li {
margin-left: 0;
text-indent: -1em;
padding-left: 1em;
}
.menu p {
text-indent: unset !important;
margin: 1em 0;
}
.menu p.hr {
font-weight: bold;
margin: 1.5em 0 0;
padding-top: 1em;
border-top: 1px solid #0004;
}
.menu footer {
padding-top: 2.5em;
margin: auto 0 -.5em;
}
.menu button:hover { box-shadow: unset; }
.menu button.menu-close {
color: #999; /* placeholder text color + #111 */
}
.menu button.menu-open:focus,
.menu button.menu-open:hover {
background: #000e;
color: #a5e7ef;
}
/* Text content */
.tooltip mark {
background: #fd73;
color: inherit;
padding: .125em 0;
}
.tooltip div.imgs {
text-align: center;
margin: -.1875em;
}
.tooltip div.imgs span {
display: inline-block;
margin: .1875em;
}
.tooltip div.imgs img {
display: block;
height: 200px;
width: 150px;
max-height: unset;
margin-bottom: .125rem;
box-shadow: 0 0 5px #0004;
}
.tooltip .sep {
opacity: .375;
padding: 0 .15em;
}
p { margin: 0; }
p:empty + p { margin-top: 1em; }
p:not(:empty) + p { text-indent: 1.5em; }
p.footnote:not(:empty) {
margin-left: 0;
padding-left: 1em;
text-indent: -1em;
}
li {
margin-left: 1.5em;
}
a.tt,
tt {
color: inherit;
word-spacing: .25em;
white-space: nowrap;
font-family: inherit;
font-size: 95%;
background: #ccc;
border-radius: 4px;
padding: 0 .1875em;
}
/* Add pseudo element with large boxshadow behind #search to shade screen. */
/* (Uses pseudo element because any existing boxshadow must also be kept.) */
#search.show-keyboard:before {
content: '';
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
background: transparent;
border-radius: inherit;
box-shadow: 0 0 0 9999px #0004;
z-index: -1;
}
#search.show-keyboard { z-index: 1; }
/* Virtual keyboard */
#search.show-keyboard #keyboard { display: block; }
#keyboard {
box-shadow: 0 3px 6px 2px #0003;
border: 0 !important;
margin: 8px auto 0;
border-radius: 4px;
max-width: 30em;
width: 100%;
position: absolute;
right: 0; left: 0;
top: 100%;
z-index: 1;
line-height: 0;
padding: 4px 2px 4px 4px !important;
text-align: left;
background: #fff;
}
#keyboard:before, #keyboard:after {
content: '';
position: absolute; top: -15px; left: 50%;
border: solid !important;
border-color: #fff #0000 !important;
/* left + right width = triangle base, bottom width = height, top = 0 */
border-width: 0 20px 15px !important;
transform: translateX(-50%);
height: 0;
width: 0;
z-index: -10;
}
#keyboard:before {
top: -16px;
border-bottom-color: #0006 !important;
}
#keyboard nobr {
display: inline-block;
}
#keyboard > :nth-child(5n+1) button { background: #c77bc7; }
#keyboard > :nth-child(5n+2) button { background: #fcaa5d; }
#keyboard > :nth-child(5n+3) button { background: #7b7bc7; }
#keyboard > :nth-child(5n+4) button { background: #7bc77b; }
#keyboard > :nth-child(5n+5) button { background: #c77b7b; }
#keyboard button {
padding: 4px 4px 3px;
margin: 2px 1.5px;
border-radius: 2px;
color: #000b;
min-width: 1em;
}
.selector:hover,
#keyboard button:hover {
box-shadow: inset 1000px 1000px #fff3, /* hover brighten inside */
0 3px 6px 2px #0003; /* hover shadow */
}
#keyboard button:focus:hover {
box-shadow: inset 1000px 1000px #fff3, /* hover brighten inside */
0 3px 6px 2px #0003, /* hover shadow */
0 0 0 3px #abd; /* dark focus outline */
}
/*[eof]*/