forked from soywiz-archive/docs-old.korge.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
newsearch.css
82 lines (79 loc) · 1.59 KB
/
newsearch.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
.newsearch {
border: 2px solid black;
padding: 8px;
min-width: 300px;
max-width: 50vw;
width: 720px;
background: #223;
color: #bbb;
position: absolute;
z-index: 9999;
left: 0;
top: 0;
font-family: Arial, serif;
display: none;
max-height: 70vh;
overflow-y: auto;
overflow-x: hidden;
}
.newsearch::-webkit-scrollbar { width: 14px; height: 14px; }
.newsearch::-webkit-scrollbar-track { background: #494755; }
.newsearch::-webkit-scrollbar-thumb { background: #757688; border-radius: 5px; border: 2px solid #494755; }
.newsearch::-webkit-scrollbar-thumb:hover { background: #89879a; }
.newsearch.search-show {
display: block;
}
.newsearch.search-loading:after {
content: 'Loading...';
}
.newsearch.search-no-results:after {
content: 'No results';
}
.newsearch h2 {
margin: 0;
margin-bottom: 8px;
border-bottom: 1px solid #dddddd;
background: transparent;
}
.newsearch h2:hover::after {
content: ''
}
.newsearch .block {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-bottom: 1em;
cursor: pointer;
text-decoration: none;
color: #bbb;
padding: 8px;
}
.newsearch .block.active {
background: #304566;
}
.newsearch .block .section {
min-width: 40%;
max-width: 40%;
padding-right: 1em;
box-sizing: border-box;
text-overflow: ellipsis;
}
.newsearch .block .content {
padding-left: 1em;
box-sizing: border-box;
min-width: 60%;
max-width: 60%;
text-wrap: normal;
white-space: pre-wrap;
}
.search-highlight {
background: #313443;
color: #aebcff;
font-weight: bold;
}
.newsearch pre {
background: transparent;
border: none;
box-shadow: none;
color: inherit;
}