Skip to content

Commit f1b930e

Browse files
committed
style(preview): pre code layout fix
1 parent 4926fe7 commit f1b930e

File tree

2 files changed

+50
-4
lines changed

2 files changed

+50
-4
lines changed

static/style/inverted-style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,19 @@
437437
mask-image: radial-gradient(#ffffff20 0, #ffffff80 100%);
438438
pointer-events: none;
439439
}
440+
.preview blockquote{
441+
margin-left: 16px;
442+
opacity: 0.66;
443+
}
444+
.preview sup{
445+
display: block
446+
}
440447
.preview p {
441448
line-height: 1.25;
442449
word-break: break-word;
443450
margin-bottom: 12px;
451+
letter-spacing: 0;
452+
font-size: 16px;
444453
}
445454
.preview img {
446455
max-width: 100%;
@@ -460,6 +469,7 @@
460469
.preview h1 {
461470
margin: 8px;
462471
/* text-align: center; */
472+
font-size: 24px;
463473
}
464474
.preview a {
465475
word-break: break-all;
@@ -538,5 +548,8 @@
538548
}
539549
.preview li {
540550
margin-bottom: 8px;
551+
letter-spacing: 0;
552+
font-size: 16px;
553+
line-height: 1.25;
541554
}
542555
}

static/style/style.css

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,22 +437,52 @@
437437
mask-image: radial-gradient(#00000020 0, #00000080 100%);
438438
pointer-events: none;
439439
}
440+
.preview blockquote{
441+
margin-left: 16px;
442+
opacity: 0.66;
443+
}
444+
.preview sup{
445+
display: block
446+
}
440447
.preview p {
441-
line-height: 1.5;
448+
line-height: 1.25;
442449
word-break: break-word;
443450
margin-bottom: 12px;
444451
letter-spacing: 0;
452+
font-size: 16px;
445453
}
446454
.preview img {
447455
max-width: 100%;
448456
}
449457
.preview pre {
450458
/* width: calc(100% - 48px); */
459+
/* overflow: scroll; */
460+
/* margin: 0; */
461+
/* overflow: hidden; */
462+
/* white-space: unset; */
463+
/* position: relative; */
464+
/* width: 50%; */
465+
/* display: inline-block; */
466+
/* background: red; */
467+
/* overflow: hidden; */
468+
/* margin: 0; */
469+
/* white-space: unset; */
470+
position: relative;
471+
/* margin: 48px auto; */
472+
display: inline-block;
473+
width: 100%;
451474
overflow: scroll;
475+
height: 48px;
452476
}
453-
.preview code {
454-
width: 100%;
455-
white-space: initial;
477+
.preview pre code {
478+
/* width: 100%; */
479+
/* white-space: initial; */
480+
/* max-width: 100vw; */
481+
/* overflow: hidden; */
482+
/* display: inline-block; */
483+
/* display: block; */
484+
/* white-space: inherit; */
485+
position: absolute;
456486
}
457487
.preview ul,
458488
.preview ol {
@@ -461,6 +491,7 @@
461491
.preview h1 {
462492
margin: 8px;
463493
/* text-align: center; */
494+
font-size: 24px;
464495
}
465496
.preview a {
466497
word-break: break-all;
@@ -540,5 +571,7 @@
540571
.preview li {
541572
margin-bottom: 8px;
542573
letter-spacing: 0;
574+
font-size: 16px;
575+
line-height: 1.25;
543576
}
544577
}

0 commit comments

Comments
 (0)