-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmdviewer.css
152 lines (127 loc) · 3.55 KB
/
mdviewer.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
/* GUI */
@media screen {
#ui-status-bar {
display: block;
position: fixed;
max-width: 90%;
bottom: 2px;
left: 2px;
color: rgb(0, 0, 0);
background: rgb(239, 239, 239);
padding: 2px 5px;
border: none;
border-radius: 2px;
font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Tahoma, Ubuntu, sans-serif;
font-size: 13px;
font-weight: 400;
line-height: 1.2;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z-index: 1000;
zoom: reset;
user-select: none;
-webkit-user-select: none;
}
#ui-status-bar span.secondary-text {
opacity: 0.6;
}
#ui-toc {
display: block;
position: fixed;
max-height: 95vh;
width: 440px;
overflow-y: auto;
right: 10px;
bottom: 10px;
background: rgba(0, 0, 0, 0.8);
padding: 20px 20px 40px 20px;
border: none;
border-radius: 3px;
text-align: left;
z-index: 1010;
zoom: reset;
user-select: none;
-webkit-user-select: none;
}
#ui-toc::-webkit-scrollbar {
width: 6px;
}
#ui-toc::-webkit-scrollbar-track {
background: transparent;
margin: 0 0;
}
#ui-toc::-webkit-scrollbar-track:disabled {
display: none;
}
#ui-toc::-webkit-scrollbar-thumb {
border-radius: 3px;
min-height: 40px;
-webkit-transition: background 0.2s;
transition: background 0.2s;
background: rgba(256, 256, 256, 0.2);
}
#ui-toc::-webkit-scrollbar-thumb:hover {
-webkit-transition: background 0.2s;
transition: background 0.2s;
background: rgba(256, 256, 256, 0.4);
}
#ui-toc div.ui-toc-h1 {
margin-left: 0px;
}
#ui-toc div.ui-toc-h2 {
margin-left: 20px;
}
#ui-toc div.ui-toc-h3 {
margin-left: 40px;
}
#ui-toc div.ui-toc-h4 {
margin-left: 60px;
}
#ui-toc div.ui-toc-h5 {
margin-left: 80px;
}
#ui-toc div.ui-toc-h6 {
margin-left: 100px;
}
#ui-toc a {
display: block;
text-decoration: none !important;
border: none !important;
outline: none !important;
color: rgba(255, 255, 255, 0.98) !important;
font-size: 14px;
line-height: 1.2;
padding: 5px 0;
font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Tahoma, Ubuntu, sans-serif;
font-weight: 400;
background: none !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#ui-toc a:hover, #ui-toc a:focus {
color: rgb(150, 220, 255) !important;
}
#ui-toc #ui-toc-hide {
display: block;
position: fixed;
bottom: 15px;
right: 30px;
width: 24px;
height: 24px;
background: url("data:image/svg+xml;utf8,<svg focusable='false' height='24px' width='24px' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z' fill='white'></path><path d='M0 0h24v24H0z' fill='none'></path></svg>") no-repeat !important;
z-index: 1000;
cursor: pointer;
opacity: 0.2;
}
#ui-toc #ui-toc-hide:hover {
opacity: 0.8;
}
}
@media print {
#ui-status-bar, #ui-toc {
display: none !important;
}
}