forked from cben/mathdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmathdown.css
More file actions
131 lines (114 loc) · 4.3 KB
/
mathdown.css
File metadata and controls
131 lines (114 loc) · 4.3 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
@charset "utf-8";
/* OVERRIDE LIBS ============================================================ */
/* Override fixed editor size from firepad.css ------------------------------ */
.firepad { height: 100%; }
.firepad .CodeMirror { height: 100%; position: relative; }
.powered-by-firepad { background-image: none; } /* Disable Firepad logo */
/* CodeMirror Hacks --------------------------------------------------------- */
/* These are relevant to the app; other overrides of the original CodeMirror css
are in `css/cm-codemirror.css` */
.CodeMirror { min-height: 100vh; }
@media (min-width: 800px) { .CodeMirror-gutter-wrapper {
height: 100%;
left:-5.5rem !important;
}
}
.CodeMirror-code > pre,
.CodeMirror-code > div { text-indent: 0 !important; padding-left: 0; }
.CodeMirror pre[style] { text-indent: 0; padding-left:0 !important; }
/* We set (in "renderLine" event) negative text-indent on indented lines,
which if inherited by any nested inline-block breaks their positioning
(math overlaps text, tabs become almost invisible). Thanks to
https://github.com/mathjax/MathJax/issues/473 for easy fix. */
.CodeMirror pre > * { text-indent: 0 !important; }
.CodeMirror-selected { background: yellow; }
.CodeMirror-focused .CodeMirror-selected { background: yellow; }
.CodeMirror-gutter-elt {
/* To do: When there are more lines in a header, the gutter folding arrow
should sit on the baseline of the first line. */
position: absolute;
bottom:1rem;
}
/* NORMALIZE BROWSERS ======================================================= */
html {
height: 100%;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
html * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
body { height: 100%; width: 100%; margin:0; }
/* Auto-responsive scaling for various screen sizes ------------------------- */
@media screen and (max-width: 460px) {
html { font-size: 14px; }
}
@media screen and (min-width: 461px) and (max-width: 800px) {
html { font-size: 16px; }
}
@media screen and (min-width: 801px) {
html { font-size: 18px; }
}
/* DEFAULT STYLES & SETUP =================================================== */
/* Setup and Dimensions of Editor Canvas ------------------------------------ */
#content {
clear: both;
background-color: rgb(250,250,250);
min-height: 100%;
}
form, textarea, .CodeMirror {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
padding-right: 1rem;
}
/* TODO: downsizing body is ugly but works better than downsizing form. */
/*body { height: 80%; width: 95%; }*/
/* These would make the editor exactly fill the available space,
but also cause CM to auto-resize and never scroll
(instead whole page scrolls), which makes CM slower.
body { display: table; }
form { display: table-row; } */
.firedpad {
max-width: 100%;
}
.CodeMirror-sizer {
max-width: 35rem;
/*margin-right: 22px;*/
}
.CodeMirror-code {
max-width: 35rem;
}
/* Fonts & Colors ----------------------------------------------------------- */
.CodeMirror,
.CodeMirror-code {
/* Homage to Don Knuth’s Computer Modern fonts; for alternatives
cfr Math.SE: http://graphicdesign.stackexchange.com/a/12961 */
font-family: "Computer Modern", "Times New Roman", Times, serif;
-webkit-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
-webkit-font-kerning: auto;
font-kerning: auto;
line-height: 1.3em;
color: rgb(67,67,67);
}
/* TO DO’s ===================================================================*/
/* Want to disable/de-emphasize coloring of list lines, leaving only bullet colored.
But can't, as long as color is important for lining up continuation lines.
.cm-s-default .cm-variable-2 { color: #003366; }
.cm-s-default .cm-variable-2.cm-formatting-list { color: #05a; }
.cm-s-default .cm-variable-3 { color: #005233; }
.cm-s-default .cm-variable-3.cm-formatting-list { color: #085; }
.cm-s-default .cm-keyword { color: #470052; }
.cm-s-default .cm-keyword.cm-formatting-list { color: #708; }
*/