-
Notifications
You must be signed in to change notification settings - Fork 349
Expand file tree
/
Copy pathcode.pcss
More file actions
100 lines (91 loc) · 2.26 KB
/
code.pcss
File metadata and controls
100 lines (91 loc) · 2.26 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
#guide {
/* Inline code examples */
code {
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
padding: 0 3px;
font-size: 0.9em;
display: inline;
white-space: pre-wrap;
background: #f8f8f8;
color: #555;
}
a code {
color: #00a9e5;
}
/* Block code examples */
.pre_wrapper {
overflow-x: auto;
position: relative;
width: 100%;
margin: 10px 0 24px 0;
background-color:#343741;
display: inline-flex;
pre {
margin: 0;
}
&.merge {
margin-bottom: 0px;
width: calc(100% - 10px);
&.styled {
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
z-index: 1;
}
}
}
/* Code blocks with and without prettyprint. */
pre {
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
font-weight: 400;
color: #888;
font-size: 16px;
}
/* Code prettified blocks. */
.prettyprint {
/* Extension to pre style above only applied to pretty printed code. Most
* code is pretty printed. */
margin: 0 0 15px 0;
padding: 20px;
border: none;
line-height: 1.5em;
overflow: auto;
white-space: pre;
background-color:#343741;
width: auto;
max-width: 10000px;
span {
/* We need to match the element name exactly or the * rule will
* override here. */
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
}
/* Code prettify styles. */
/* Another color that we could use: fec514 */
.str { color: #adefff; }
.kwd { color: #1ba9f5; }
.com { color: #66747b; }
.typ { color: #f5f7fa; }
.lit { color: #ff886c; }
.pun { color: #f5f7fa; }
.pln { color: #f5f7fa; }
.tag { color: #adefff; }
.atn { color: #adefff; }
.atv { color: #ff886c; }
.dec { color: #66747b; }
/* Alternative language examples. */
.alternative {
display: none;
}
/* Hide "Copy to Clipboard" text */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
border: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap; /* Avoid line breaks */
}
}