-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
115 lines (112 loc) · 2.11 KB
/
Copy pathstyle.css
File metadata and controls
115 lines (112 loc) · 2.11 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
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:500|Source+Serif+Pro&subset=latin-ext');
body{
font-family: 'Source Serif Pro', serif;
margin: 0;
padding: 0;
}
pre,
code{
font-family: 'Source Code Pro', monospace;
}
canvas {
display: block;
margin: auto;
}
h1,
h2,
h3,
h4,
h5,
h6{
font-family: 'Source Code Pro', monospace;
}
blockquote{
font-style: italic;
}
img.images{
display: block;
margin: auto;
border: 3px solid #000;
/* width: 75%; */
min-width: 200px;
}
/* Bare bones style for the desired effect */
pre.code {
display: table;
table-layout: fixed;
width: 100%; /* anything but auto, otherwise fixed layout not guaranteed */
white-space: pre-wrap;
}
pre.code::before {
counter-reset: linenum;
}
pre.code span.tr {
display: table-row;
counter-increment: linenum;
}
pre.code span.th { /* used for line numbers */
display: table-cell;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
pre.code span.th::before {
content: counter(linenum);
text-align: right;
display: block;
}
pre.code span.th {
width: 4em; /* or whatever the desired width of the numbers column is */
}
pre.code code {
display: table-cell;
}
/* Additional styling demo */
pre.code {
border: solid 1px black;
max-width: 650px;
margin: 80px auto;
}
pre.code span.th {
background: #f0f0f0;
padding: 3px;
padding-top: 0px;
border-right: solid 1px silver;
border-top: solid 1px silver;
}
pre.code span.th::before {
font-size: 90%;
color: #999;
}
pre.code span.tr.first-row span.th {
border-top: none;
}
pre.code code {
padding: 3px;
}
pre.code span.e code {
background: #f0f8ff;
}
pre.code span.th::before {
content: counter(linenum) ".";
}
/*END OF CODE STYLING*/
.container{
position: relative;
display: block;
max-width: 800px;
margin: auto;
}
.math{
text-align: center;
font-size: 150%;
}
.footnotes{
font-size: 75%;
}
.snippet{
border: 3px solid #000;
/* background-color: tomato; */
padding: 5px;
/* margin-left: 20px; */
}