-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcode.css
90 lines (74 loc) · 1.42 KB
/
code.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
/* Colors for a very simple manually annotated code highlighter */
code {
font-family: 'Roboto Mono', monospace;
}
.code.block {
background-color: var(--background-darker);
padding: 1em;
position: relative;
overflow: auto;
}
.block.code button {
opacity: 0.5;
font-size: 1.5em;
padding: 0.2em;
background-color: transparent;
color: var(--primary-color);
border: none;
position: absolute;
top: 0;
right: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
}
.block.code button:hover, .block.code button:focus {
opacity: 1;
}
code label {
-webkit-user-select: auto; /* Added to support Safari and Safari on iOS */
user-select: auto;
}
/* functions */
code .funct {
color: var(--brand-red);
}
/* punctuations */
code .punct {
color: var(--brand-pink);
}
/* expressions */
code .exprs {
color: var(--secondary-color);
word-break: break-word;
}
/* constants */
code .const {
color: var(--brand-purple);
}
math {
font-family: inherit;
font-size: 1em;
display: inline-block;
width: 100%; /* or any specific width */
overflow-wrap: break-word;
word-wrap: break-word;
}
mfrac {
font-size: 1.3em;
}
mn {
color: var(--brand-purple);
}
mo {
color: var(--brand-pink);
}
ms, mi {
color: var(--secondary-color);
}
ms {
font-style: italic;
}
mtd {
text-align: left;
}