Skip to content

Commit ce45768

Browse files
committed
style(preview): refinements
1 parent f067a11 commit ce45768

File tree

2 files changed

+59
-12
lines changed

2 files changed

+59
-12
lines changed

static/style/inverted-style.css

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
#issues-container.preview-active {
5858
transform: translateX(-50%);
5959
}
60+
#issues-container.preview-active .issue-element-wrapper {
61+
opacity: 0.5;
62+
transition: 0.33s all cubic-bezier(0, 1, 1, 1);
63+
filter: blur(8px);
64+
}
6065
&::-webkit-scrollbar {
6166
display: none;
6267
}
@@ -116,7 +121,7 @@
116121
#issues-container > div:active {
117122
background-color: #7f7f7f40;
118123
}
119-
h3 {
124+
#issues-container h3 {
120125
line-height: 1;
121126
font-size: 16px;
122127
text-overflow: ellipsis;
@@ -437,12 +442,15 @@
437442
mask-image: radial-gradient(#ffffff20 0, #ffffff80 100%);
438443
pointer-events: none;
439444
}
440-
.preview blockquote{
445+
.preview blockquote {
441446
margin-left: 16px;
442447
opacity: 0.66;
443-
}
444-
.preview sup{
445-
display: block
448+
}
449+
.preview sup {
450+
display: block;
451+
}
452+
.preview hr {
453+
border-color: #00000040;
446454
}
447455
.preview p {
448456
line-height: 1.25;
@@ -456,20 +464,45 @@
456464
}
457465
.preview pre {
458466
/* width: calc(100% - 48px); */
467+
/* overflow: scroll; */
468+
/* margin: 0; */
469+
/* overflow: hidden; */
470+
/* white-space: unset; */
471+
/* position: relative; */
472+
/* width: 50%; */
473+
/* display: inline-block; */
474+
/* background: red; */
475+
/* overflow: hidden; */
476+
/* margin: 0; */
477+
/* white-space: unset; */
478+
position: relative;
479+
/* margin: 48px auto; */
480+
display: inline-block;
481+
width: 100%;
459482
overflow: scroll;
483+
height: 48px;
460484
}
461-
.preview code {
462-
width: 100%;
463-
white-space: initial;
485+
.preview pre code {
486+
/* width: 100%; */
487+
/* white-space: initial; */
488+
/* max-width: 100vw; */
489+
/* overflow: hidden; */
490+
/* display: inline-block; */
491+
/* display: block; */
492+
/* white-space: inherit; */
493+
position: absolute;
464494
}
465495
.preview ul,
466496
.preview ol {
467497
padding-left: 12px;
498+
/* width: calc(100% - 24px); */
499+
margin-left: 12px;
468500
}
469501
.preview h1 {
470502
margin: 8px;
471503
/* text-align: center; */
472504
font-size: 24px;
505+
margin-right: 16px;
473506
}
474507
.preview a {
475508
word-break: break-all;
@@ -551,5 +584,6 @@
551584
letter-spacing: 0;
552585
font-size: 16px;
553586
line-height: 1.25;
587+
/* width: calc(100% - 24px); */
554588
}
555589
}

static/style/style.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
#issues-container.preview-active {
5858
transform: translateX(-50%);
5959
}
60+
#issues-container.preview-active .issue-element-inner {
61+
opacity: 0.5;
62+
/* transition: 0.33s all cubic-bezier(0, 1, 1, 1); */
63+
filter: blur(4px);
64+
}
6065
&::-webkit-scrollbar {
6166
display: none;
6267
}
@@ -437,12 +442,15 @@
437442
mask-image: radial-gradient(#00000020 0, #00000080 100%);
438443
pointer-events: none;
439444
}
440-
.preview blockquote{
445+
.preview blockquote {
441446
margin-left: 16px;
442447
opacity: 0.66;
443-
}
444-
.preview sup{
445-
display: block
448+
}
449+
.preview sup {
450+
display: block;
451+
}
452+
.preview hr {
453+
border-color: #ffffff40;
446454
}
447455
.preview p {
448456
line-height: 1.25;
@@ -483,15 +491,19 @@
483491
/* display: block; */
484492
/* white-space: inherit; */
485493
position: absolute;
494+
font-family: monospace;
486495
}
487496
.preview ul,
488497
.preview ol {
489498
padding-left: 12px;
499+
margin-left: 4px;
490500
}
501+
491502
.preview h1 {
492503
margin: 8px;
493504
/* text-align: center; */
494505
font-size: 24px;
506+
margin-right: 16px;
495507
}
496508
.preview a {
497509
word-break: break-all;
@@ -573,5 +585,6 @@
573585
letter-spacing: 0;
574586
font-size: 16px;
575587
line-height: 1.25;
588+
/* width: calc(100% - 24px); */
576589
}
577590
}

0 commit comments

Comments
 (0)