Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix style on tables #166

Merged
merged 4 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions static/style/inverted-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,17 @@
.preview img {
max-width: 100%;
}
.preview table {
border-collapse: collapse;
margin-bottom: 12px;
}
.preview th {
font-weight: bold;
}
.preview th,
.preview td {
padding: 6px 13px;
}
.preview pre {
position: relative;
display: inline-block;
Expand Down
34 changes: 23 additions & 11 deletions static/style/special.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
:root {
--dark-background: #000210;
--dark-background-half: #00021080;
--alt-dark-background: #808080;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hardcode refac!

--alt-dark-background-half: #80808020;
--light-background: #f8f8f8;
--light-background-half: #f8f8f880;
--alt-light-background: #7f7f7f;
--alt-light-background-half: #7f7f7f20;
}

@media (prefers-color-scheme: dark) {
Expand All @@ -13,14 +17,12 @@
#issues-container > div,
.preview {
background-color: var(--dark-background);
border-color: var(--border-color);
border-color: #80808020;
border-color: var(--alt-dark-background-half);
}
#issues-container > div,
.preview > .preview-content {
box-shadow: inset 0 0 24px #0080ff08;
}

.toolbar.ready {
background-color: var(--dark-background-half);
}
Expand All @@ -36,16 +38,21 @@
filter: blur(0px) drop-shadow(0 0 8px #fff);
}
.preview-body::-webkit-scrollbar-track {
background: var(--dark-background); /* Background */
background: var(--dark-background);
}

.preview-body::-webkit-scrollbar-thumb {
background-color: var(--light-background-half); /* Scrollbar thumb */
background-color: var(--light-background-half);
}

.preview-body::-webkit-scrollbar-thumb:hover {
background-color: var(--light-background);
}
.preview th,
.preview td{
border: 1px solid var(--alt-dark-background);
}
.preview tr:nth-child(even) {
background-color: var(--alt-dark-background-half);
}
}

@media (prefers-color-scheme: light) {
Expand Down Expand Up @@ -82,16 +89,21 @@
background-image: none;
}
.preview-body::-webkit-scrollbar-track {
background: var(--light-background); /* Background */
background: var(--light-background);
}

.preview-body::-webkit-scrollbar-thumb {
background-color: var(--dark-background-half); /* Scrollbar thumb */
background-color: var(--dark-background-half);
}

.preview-body::-webkit-scrollbar-thumb:hover {
background-color: var(--dark-background);
}
.preview th,
.preview td{
border: 1px solid var(--alt-light-background);
}
.preview tr:nth-child(even) {
background-color: var(--alt-light-background-half);
}
}

@keyframes highlight-dark-mode {
Expand Down
11 changes: 11 additions & 0 deletions static/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,17 @@
.preview img {
max-width: 100%;
}
.preview table {
border-collapse: collapse;
margin-bottom: 12px;
}
.preview th {
font-weight: bold;
}
.preview th,
.preview td {
padding: 6px 13px;
}
.preview pre {
position: relative;
display: inline-block;
Expand Down
Loading