-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathclipboard.css
More file actions
195 lines (171 loc) · 3.92 KB
/
clipboard.css
File metadata and controls
195 lines (171 loc) · 3.92 KB
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/** clipboard.css
*
* Styles for View Source code button
* and other listing block formatting
*/
.view-source-button,
.copy-code-button {
color: var(--color-brand-gray4);
display: inline-block;
position: relative;
cursor: pointer;
}
.view-source-button:hover,
.copy-code-button:hover {
text-decoration: none;
}
a.view-source-button:focus,
a.view-source-button:hover,
a.copy-code-button:focus,
a.copy-code-button:hover {
color: var(--color-brand-gray4);
}
.view-source-button:hover::after,
.copy-code-button:hover::after {
content: "";
border: 7px solid transparent;
border-bottom: 10px solid var(--color-brand-white);
position: absolute;
box-shadow: inset 0 0 1px #bec0c1;
top: 7px;
left: 50%;
margin-left: -7px;
pointer-events: none;
}
.view-source-button:hover::before,
.copy-code-button:hover::before {
content: attr(data-title);
color: var(--color-brand-gray4);
font-size: var(--font-base);
font-weight: var(--weight-light);
position: absolute;
top: 14px;
left: 50%;
transform: translateY(100%) translateX(-50%);
padding: 3px 1em;
text-align: center;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
background: var(--color-brand-white);
border: 1px solid var(--color-brand-gray7);
border-radius: 3px;
font-family: "Source Sans Pro", sans-serif;
pointer-events: none;
}
.doc .listingblock code[data-lang] + .source-type-box {
position: absolute;
top: 0;
right: 0;
display: none;
align-items: center;
z-index: 1;
padding-top: 12px;
}
.doc .listingblock code[data-lang] + .source-type-box .data-source {
content: attr(data-lang);
color: var(--color-brand-gray1);
font-size: 0.75rem;
font-weight: var(--weight-normal);
letter-spacing: 1px;
line-height: 18px;
text-transform: uppercase;
font-family: "Source Code Pro", sans-serif;
padding-right: 0.5rem;
border-right: 1px solid var(--color-brand-gray9);
}
/* .doc .listingblock:hover code[data-lang] + .source-type-box .data-source {
display: block;
} */
.doc .listingblock:hover code[data-lang] + .source-type-box {
display: flex;
}
.doc .listingblock code[contenteditable] {
outline: none;
}
.doc .listingblock pre .fade-shadow {
display: none;
background:
transparent
linear-gradient(
180deg,
#f1f7fe0d 0%,
#f1f7fe40 18%,
#f1f7fe 68%,
#f1f7fe 100%
)
0% 0% no-repeat padding-box;
width: 65px;
height: 80%;
position: absolute;
right: 1px;
top: 0;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
/* Safari and Chrome */
.doc .listingblock pre .fade-shadow {
height: calc(100% - 8px);
}
}
/* code.language-console.hljs.shell,
pre code.language-bash.hljs {
white-space: nowrap;
overflow-x: auto;
} */
code::-webkit-scrollbar {
width: 0.25rem;
height: 5px;
}
code::-webkit-scrollbar-thumb {
background-color: var(--color-border);
}
/* New style code block */
.source-type-box {
padding-left: 6px;
border: 1px solid #e5e5e5;
border-bottom: none;
border-radius: 3px 3px 0 0;
display: flex;
justify-content: space-between;
font-size: 14px;
line-height: 20px;
color: #73768a;
font-family: 'Source Code Pro', monospace;
z-index: 1;
position: relative;
}
.source-type-box .left-block,
.source-type-box .right-block {
display: flex;
}
.source-type-box .left-block > * {
padding: 4px 10px;
display: flex;
align-items: center;
}
.source-type-box .right-block > * {
border-left: 1px solid #e5e5e5;
padding: 4px 10px;
display: flex;
align-items: center;
}
.source-type-box .right-block > .run-code {
border: none;
}
.doc .listingblock .source-type-box .data-source {
text-transform: uppercase;
letter-spacing: 0.025em;
font-weight: var(--weight-medium);
}
.view-source-button .svg-inline--fa,
.copy-code-button .svg-inline--fa,
.run-code .svg-inline--fa {
margin-right: 5px;
}
.run-code {
background: #0074e0;
color: #fff;
cursor: pointer;
}
.run-code:hover {
text-decoration: none;
color: #fff;
}