-
Notifications
You must be signed in to change notification settings - Fork 2
/
language-tabs.css
61 lines (57 loc) · 1.44 KB
/
language-tabs.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
.gatsby-highlight {
position: relative;
-webkit-overflow-scrolling: touch;
}
.gatsby-highlight pre .line-number-style {
margin-right: 12px;
}
.gatsby-highlight pre[class*='language-'] {
overflow: auto;
-webkit-overflow-scrolling: touch;
padding: 1rem 0.75rem;
border-radius: 0.25rem;
}
.gatsby-highlight pre[class*='language-']::before {
background: black;
border-radius: 0 0 0.25rem 0.25rem;
color: white;
font-size: 12px;
letter-spacing: 0.025rem;
padding: 0.1rem 0.5rem;
position: absolute;
right: 1rem;
text-align: right;
text-transform: uppercase;
top: 13px;
}
.gatsby-highlight pre[class~='language-javascript']::before {
content: 'js';
background: #f7df1e;
color: black;
}
.gatsby-highlight pre[class~='language-js']::before {
content: 'js';
background: #f7df1e;
color: black;
}
.gatsby-highlight pre[class~='language-html']::before {
content: 'html';
background: #005a9c;
color: white;
}
.gatsby-highlight pre[class~='language-css']::before {
content: 'css';
background: #ff9800;
color: white;
}
pre::-webkit-scrollbar {
width: 12px; /* width of the entire scrollbar */
}
pre::-webkit-scrollbar-track {
background: orange; /* color of the tracking area */
}
pre::-webkit-scrollbar-thumb {
background-color: #e48b25ef; /* color of the scroll thumb */
border-radius: 20px; /* roundness of the scroll thumb */
border: 3px solid rgba(255, 123, 0, 0.863); /* creates padding around scroll thumb */
}