-
Notifications
You must be signed in to change notification settings - Fork 92
/
cayman-patch.css
131 lines (111 loc) · 2.69 KB
/
cayman-patch.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
/*!
* Modifications to Cayman theme for accessibility
*
* Copyright (c) Lemming
* Released under the MIT License.
* https://github.com/Lemmingh
*/
/* This file is dedicated to improve accessibility of [Cayman theme](https://github.com/jasonlong/cayman-theme).
* Apply it after `cayman.css` to see a difference.
*/
.main-content {
color: black;
}
.main-content blockquote {
color: #606c71;
}
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
border-top: 1px solid #eaecef;
font-weight: bold;
padding-top: 0.3em;
}
.main-content h2 {
text-align: center;
}
.main-content a {
text-decoration: underline dotted;
}
/* Fix a problem related to [Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity).
* Calculate specificity of `a:hover`, `.main-content a`, and `.main-content a:hover`, then you will know why.
*/
.main-content a:hover {
text-decoration: underline solid;
}
blockquote strong {
color: crimson;
}
/* Names of Sarasa fonts changed many times. The list below was updated at Sarasa v0.12.4 */
/* ! Caution: We override any other rules on `font-family` here. */
code,
kbd,
pre,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Fira Mono", "Source Code Pro",
"Droid Sans Mono", "Courier New", "Sarasa Mono SC", "Sarasa Mono", "Source Han Mono", "SimHei", monospace,
"Droid Sans Fallback" !important;
}
summary {
cursor: pointer;
display: list-item;
font-weight: bold;
text-decoration: underline dotted;
}
summary:hover {
text-decoration: underline solid;
}
/* Based on https://github.githubassets.com/assets/github-89d9d3c9d19ddf234d9355a9ff50bcbd.css */
kbd {
background-color: #fafbfc;
border: 1px solid #c6cbd1;
border-bottom-color: #959da5;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #959da5;
color: #444d56;
display: inline-block;
font-weight: 700;
line-height: 1em;
padding: 3px 5px;
vertical-align: middle;
white-space: nowrap;
}
/* Based on https://interactive-examples.mdn.mozilla.net/pages/tabbed/del.html */
del {
text-decoration: line-through;
background-color: #fbb;
color: #555;
}
ins {
text-decoration: none;
background-color: #d4fcbc;
}
/* ! The following rules are designed for this website only */
#toc {
box-shadow: 1px 1px 3px gray;
}
/* Feature: Copy code to clipboard */
.copyButton {
border-radius: 3px;
border-width: 2px;
display: block;
}
.copyButton::before {
content: "\1F4CB";
}
.topBanner {
background-color: green;
color: white;
display: block;
font-size: 1.7rem;
font-weight: bold;
left: 0;
padding: 5px 0;
position: fixed;
text-align: center;
top: 0;
width: 100vw;
z-index: 9999;
}