Fossil SCM

Added a few 'inherits' CSS properties to resolve font size mayem when hilightjs does its thing.

stephan 2020-08-15 09:15 line-number-selection
Commit 618c6b131979604f7268f999fb1f7e3833f4a9cea4ab5a40bb525442faf95043
1 file changed +7 -1
+7 -1
--- src/default.css
+++ src/default.css
@@ -1153,12 +1153,13 @@
11531153
font-weight: initial;
11541154
margin: 0 0.25em 0 0.25em;
11551155
vertical-align: middle;
11561156
}
11571157
1158
-table.numbered-lines td {
1158
+table.numbered-lines > tbody > tr > td {
11591159
font-family: monospace;
1160
+ font-size: inherit;
11601161
line-height: 1.35;
11611162
white-space: pre;
11621163
margin: 0;
11631164
white-space: nowrap;
11641165
vertical-align: top;
@@ -1185,10 +1186,13 @@
11851186
margin: 0;
11861187
padding: 0;
11871188
overflow-x: auto;
11881189
overflow-y: hidden /* apparently not needed, but eases my mind */;
11891190
padding: 0 0 1em 0 /*prevents a slight underlap at bottom from triggering a scrollar */;
1191
+ line-height: inherit;
1192
+ font-size: inherit;
1193
+ font-family: inherit;
11901194
}
11911195
table.numbered-lines td.file-content > pre > code {
11921196
margin: 0;
11931197
padding: 0;
11941198
white-space: pre;
@@ -1196,10 +1200,12 @@
11961200
font-size: inherit;
11971201
font-family: inherit;
11981202
}
11991203
table.numbered-lines td.file-content > pre > code > * {
12001204
box-sizing: border-box;
1205
+ font-size: inherit;
1206
+ line-height: inherit;
12011207
}
12021208
div.selectedText/*legacy*/,
12031209
table.numbered-lines td.line-numbers span.selected-line/*replacement*/ {
12041210
font-weight: bold;
12051211
color: blue;
12061212
--- src/default.css
+++ src/default.css
@@ -1153,12 +1153,13 @@
1153 font-weight: initial;
1154 margin: 0 0.25em 0 0.25em;
1155 vertical-align: middle;
1156 }
1157
1158 table.numbered-lines td {
1159 font-family: monospace;
 
1160 line-height: 1.35;
1161 white-space: pre;
1162 margin: 0;
1163 white-space: nowrap;
1164 vertical-align: top;
@@ -1185,10 +1186,13 @@
1185 margin: 0;
1186 padding: 0;
1187 overflow-x: auto;
1188 overflow-y: hidden /* apparently not needed, but eases my mind */;
1189 padding: 0 0 1em 0 /*prevents a slight underlap at bottom from triggering a scrollar */;
 
 
 
1190 }
1191 table.numbered-lines td.file-content > pre > code {
1192 margin: 0;
1193 padding: 0;
1194 white-space: pre;
@@ -1196,10 +1200,12 @@
1196 font-size: inherit;
1197 font-family: inherit;
1198 }
1199 table.numbered-lines td.file-content > pre > code > * {
1200 box-sizing: border-box;
 
 
1201 }
1202 div.selectedText/*legacy*/,
1203 table.numbered-lines td.line-numbers span.selected-line/*replacement*/ {
1204 font-weight: bold;
1205 color: blue;
1206
--- src/default.css
+++ src/default.css
@@ -1153,12 +1153,13 @@
1153 font-weight: initial;
1154 margin: 0 0.25em 0 0.25em;
1155 vertical-align: middle;
1156 }
1157
1158 table.numbered-lines > tbody > tr > td {
1159 font-family: monospace;
1160 font-size: inherit;
1161 line-height: 1.35;
1162 white-space: pre;
1163 margin: 0;
1164 white-space: nowrap;
1165 vertical-align: top;
@@ -1185,10 +1186,13 @@
1186 margin: 0;
1187 padding: 0;
1188 overflow-x: auto;
1189 overflow-y: hidden /* apparently not needed, but eases my mind */;
1190 padding: 0 0 1em 0 /*prevents a slight underlap at bottom from triggering a scrollar */;
1191 line-height: inherit;
1192 font-size: inherit;
1193 font-family: inherit;
1194 }
1195 table.numbered-lines td.file-content > pre > code {
1196 margin: 0;
1197 padding: 0;
1198 white-space: pre;
@@ -1196,10 +1200,12 @@
1200 font-size: inherit;
1201 font-family: inherit;
1202 }
1203 table.numbered-lines td.file-content > pre > code > * {
1204 box-sizing: border-box;
1205 font-size: inherit;
1206 line-height: inherit;
1207 }
1208 div.selectedText/*legacy*/,
1209 table.numbered-lines td.line-numbers span.selected-line/*replacement*/ {
1210 font-weight: bold;
1211 color: blue;
1212

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button