Fossil SCM

Force inheritance of the HTML-mode diff font-size and line-height attributes to fix misalignment in some browsers.

stephan 2021-12-30 19:14 chat-attachment-iframe
Commit cf911e442538368edecef540f45a3d15bd5d363668ba3e12bad727fd3ebeb171
1 file changed +20
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -204,16 +204,22 @@
204204
@
205205
@ table.diff {
206206
@ width: 100%;
207207
@ border-spacing: 0;
208208
@ border: 1px solid black;
209
+@ line-height: inherit;
210
+@ font-size: inherit;
209211
@ }
210212
@ table.diff td {
211213
@ vertical-align: top;
214
+@ line-height: inherit;
215
+@ font-size: inherit;
212216
@ }
213217
@ table.diff pre {
214218
@ margin: 0 0 0 0;
219
+@ line-height: inherit;
220
+@ font-size: inherit;
215221
@ }
216222
@ td.diffln {
217223
@ width: 1px;
218224
@ text-align: right;
219225
@ padding: 0 1em 0 0;
@@ -222,25 +228,37 @@
222228
@ padding-bottom: 0.4em;
223229
@ }
224230
@ td.diffsep {
225231
@ width: 1px;
226232
@ padding: 0 0.3em 0 1em;
233
+@ line-height: inherit;
234
+@ font-size: inherit;
235
+@ }
236
+@ td.diffsep pre {
237
+@ line-height: inherit;
238
+@ font-size: inherit;
227239
@ }
228240
@ td.difftxt pre {
229241
@ overflow-x: auto;
230242
@ }
231243
@ td.diffln ins {
232244
@ background-color: #a0e4b2;
233245
@ text-decoration: none;
246
+@ line-height: inherit;
247
+@ font-size: inherit;
234248
@ }
235249
@ td.diffln del {
236250
@ background-color: #ffc0c0;
237251
@ text-decoration: none;
252
+@ line-height: inherit;
253
+@ font-size: inherit;
238254
@ }
239255
@ td.difftxt del {
240256
@ background-color: #ffe8e8;
241257
@ text-decoration: none;
258
+@ line-height: inherit;
259
+@ font-size: inherit;
242260
@ }
243261
@ td.difftxt del > del {
244262
@ background-color: #ffc0c0;
245263
@ text-decoration: none;
246264
@ font-weight: bold;
@@ -251,10 +269,12 @@
251269
@ font-weight: bold;
252270
@ }
253271
@ td.difftxt ins {
254272
@ background-color: #dafbe1;
255273
@ text-decoration: none;
274
+@ line-height: inherit;
275
+@ font-size: inherit;
256276
@ }
257277
@ td.difftxt ins > ins {
258278
@ background-color: #a0e4b2;
259279
@ text-decoration: none;
260280
@ font-weight: bold;
261281
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -204,16 +204,22 @@
204 @
205 @ table.diff {
206 @ width: 100%;
207 @ border-spacing: 0;
208 @ border: 1px solid black;
 
 
209 @ }
210 @ table.diff td {
211 @ vertical-align: top;
 
 
212 @ }
213 @ table.diff pre {
214 @ margin: 0 0 0 0;
 
 
215 @ }
216 @ td.diffln {
217 @ width: 1px;
218 @ text-align: right;
219 @ padding: 0 1em 0 0;
@@ -222,25 +228,37 @@
222 @ padding-bottom: 0.4em;
223 @ }
224 @ td.diffsep {
225 @ width: 1px;
226 @ padding: 0 0.3em 0 1em;
 
 
 
 
 
 
227 @ }
228 @ td.difftxt pre {
229 @ overflow-x: auto;
230 @ }
231 @ td.diffln ins {
232 @ background-color: #a0e4b2;
233 @ text-decoration: none;
 
 
234 @ }
235 @ td.diffln del {
236 @ background-color: #ffc0c0;
237 @ text-decoration: none;
 
 
238 @ }
239 @ td.difftxt del {
240 @ background-color: #ffe8e8;
241 @ text-decoration: none;
 
 
242 @ }
243 @ td.difftxt del > del {
244 @ background-color: #ffc0c0;
245 @ text-decoration: none;
246 @ font-weight: bold;
@@ -251,10 +269,12 @@
251 @ font-weight: bold;
252 @ }
253 @ td.difftxt ins {
254 @ background-color: #dafbe1;
255 @ text-decoration: none;
 
 
256 @ }
257 @ td.difftxt ins > ins {
258 @ background-color: #a0e4b2;
259 @ text-decoration: none;
260 @ font-weight: bold;
261
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -204,16 +204,22 @@
204 @
205 @ table.diff {
206 @ width: 100%;
207 @ border-spacing: 0;
208 @ border: 1px solid black;
209 @ line-height: inherit;
210 @ font-size: inherit;
211 @ }
212 @ table.diff td {
213 @ vertical-align: top;
214 @ line-height: inherit;
215 @ font-size: inherit;
216 @ }
217 @ table.diff pre {
218 @ margin: 0 0 0 0;
219 @ line-height: inherit;
220 @ font-size: inherit;
221 @ }
222 @ td.diffln {
223 @ width: 1px;
224 @ text-align: right;
225 @ padding: 0 1em 0 0;
@@ -222,25 +228,37 @@
228 @ padding-bottom: 0.4em;
229 @ }
230 @ td.diffsep {
231 @ width: 1px;
232 @ padding: 0 0.3em 0 1em;
233 @ line-height: inherit;
234 @ font-size: inherit;
235 @ }
236 @ td.diffsep pre {
237 @ line-height: inherit;
238 @ font-size: inherit;
239 @ }
240 @ td.difftxt pre {
241 @ overflow-x: auto;
242 @ }
243 @ td.diffln ins {
244 @ background-color: #a0e4b2;
245 @ text-decoration: none;
246 @ line-height: inherit;
247 @ font-size: inherit;
248 @ }
249 @ td.diffln del {
250 @ background-color: #ffc0c0;
251 @ text-decoration: none;
252 @ line-height: inherit;
253 @ font-size: inherit;
254 @ }
255 @ td.difftxt del {
256 @ background-color: #ffe8e8;
257 @ text-decoration: none;
258 @ line-height: inherit;
259 @ font-size: inherit;
260 @ }
261 @ td.difftxt del > del {
262 @ background-color: #ffc0c0;
263 @ text-decoration: none;
264 @ font-weight: bold;
@@ -251,10 +269,12 @@
269 @ font-weight: bold;
270 @ }
271 @ td.difftxt ins {
272 @ background-color: #dafbe1;
273 @ text-decoration: none;
274 @ line-height: inherit;
275 @ font-size: inherit;
276 @ }
277 @ td.difftxt ins > ins {
278 @ background-color: #a0e4b2;
279 @ text-decoration: none;
280 @ font-weight: bold;
281

Keyboard Shortcuts

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