Skip to content

Commit

Permalink
style(preview): refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Dec 4, 2023
1 parent ce45768 commit 129753c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 15 deletions.
26 changes: 17 additions & 9 deletions static/style/inverted-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
#issues-container.preview-active {
transform: translateX(-50%);
}
#issues-container.preview-active .issue-element-wrapper {
#issues-container.preview-active .issue-element-inner {
opacity: 0.5;
transition: 0.33s all cubic-bezier(0, 1, 1, 1);
filter: blur(8px);
/* transition: 0.33s all cubic-bezier(0, 1, 1, 1); */
filter: blur(4px);
}
&::-webkit-scrollbar {
display: none;
Expand Down Expand Up @@ -491,13 +491,14 @@
/* display: block; */
/* white-space: inherit; */
position: absolute;
font-family: monospace;
}
.preview ul,
.preview ol {
padding-left: 12px;
/* width: calc(100% - 24px); */
margin-left: 12px;
margin-left: 4px;
}

.preview h1 {
margin: 8px;
/* text-align: center; */
Expand All @@ -511,6 +512,8 @@
/* width: calc(100% - 48px); */
max-width: 640px;
overflow: scroll;
max-height: calc(100vh - 168px);
pointer-events: all;
}

.preview {
Expand All @@ -536,7 +539,6 @@
display: flex;
transform: translateX(0%);
flex-wrap: wrap;
overflow: scroll;
max-height: calc(100vh - 71px);
pointer-events: none;
}
Expand All @@ -550,9 +552,10 @@
}
.preview-header {
display: flex;
align-items: center;
/* align-items: center; */
/* justify-content: space-between; */
margin-bottom: 8px;
/* margin-bottom: 8px; */
/* position: fixed; */
}
.preview-header > a {
word-wrap: initial;
Expand All @@ -564,11 +567,16 @@
.preview-body {
margin: 16px;
overflow: scroll;
width: calc(100% - 48px);
width: calc(100% - 32px);
/* margin-top: 48px; */
/* height: calc( 100% - 512px); */
overflow: hidden;
/* background: red; */
}
.preview-content {
/* padding: 16px; */
width: 100%;
/* position: relative; */
}
.preview button.close-preview {
/* height: 100%; */
Expand Down
38 changes: 32 additions & 6 deletions static/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,12 @@
/* width: calc(100% - 48px); */
max-width: 640px;
overflow: scroll;
max-height: calc(100vh - 136px);
pointer-events: all;
}

.preview {
overflow: hidden;
/* overflow: hidden; */
text-align: left;
position: fixed;
/* bottom: 0; */
Expand All @@ -537,10 +539,21 @@
display: flex;
transform: translateX(0%);
flex-wrap: wrap;
overflow: scroll;
max-height: calc(100vh - 71px);
/* max-height: calc(100vh - 71px); */
/* background: red; */
}
.preview {
pointer-events: none;
}
.preview * {
pointer-events: none;
}
.preview.active {
pointer-events: all;
}
.preview.active * {
pointer-events: all;
}
.close-preview svg {
fill: #ffffff80;
}
Expand All @@ -551,10 +564,16 @@
}
.preview-header {
display: flex;
align-items: center;
/* align-items: center; */
/* justify-content: space-between; */
margin-bottom: 8px;
/* margin-bottom: 8px; */
/* position: fixed; */
justify-content: space-between;
align-items: center;
margin: auto 8px;
}

.preview-header {}
.preview-header > a {
word-wrap: initial;
}
Expand All @@ -565,11 +584,18 @@
.preview-body {
margin: 16px;
overflow: scroll;
width: calc(100% - 48px);
width: calc(100% - 32px);
/* margin-top: 48px; */
/* height: calc( 100% - 512px); */
overflow: hidden;
/* background: red; */
margin-bottom: 0;
margin-top: 8px;
}
.preview-content {
/* padding: 16px; */
width: 100%;
/* position: relative; */
}
.preview button.close-preview {
/* height: 100%; */
Expand Down

0 comments on commit 129753c

Please sign in to comment.