Skip to content

Commit 36570a0

Browse files
authored
Merge pull request #166 from vichydra/fix/tables
feat: fix style on tables
2 parents 5ad2731 + f099bbd commit 36570a0

File tree

3 files changed

+45
-11
lines changed

3 files changed

+45
-11
lines changed

static/style/inverted-style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,17 @@
528528
.preview img {
529529
max-width: 100%;
530530
}
531+
.preview table {
532+
border-collapse: collapse;
533+
margin-bottom: 12px;
534+
}
535+
.preview th {
536+
font-weight: bold;
537+
}
538+
.preview th,
539+
.preview td {
540+
padding: 6px 13px;
541+
}
531542
.preview pre {
532543
position: relative;
533544
display: inline-block;

static/style/special.css

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
:root {
22
--dark-background: #000210;
33
--dark-background-half: #00021080;
4+
--alt-dark-background: #808080;
5+
--alt-dark-background-half: #80808020;
46
--light-background: #f8f8f8;
57
--light-background-half: #f8f8f880;
8+
--alt-light-background: #7f7f7f;
9+
--alt-light-background-half: #7f7f7f20;
610
}
711

812
@media (prefers-color-scheme: dark) {
@@ -13,14 +17,12 @@
1317
#issues-container > div,
1418
.preview {
1519
background-color: var(--dark-background);
16-
border-color: var(--border-color);
17-
border-color: #80808020;
20+
border-color: var(--alt-dark-background-half);
1821
}
1922
#issues-container > div,
2023
.preview > .preview-content {
2124
box-shadow: inset 0 0 24px #0080ff08;
2225
}
23-
2426
.toolbar.ready {
2527
background-color: var(--dark-background-half);
2628
}
@@ -36,16 +38,21 @@
3638
filter: blur(0px) drop-shadow(0 0 8px #fff);
3739
}
3840
.preview-body::-webkit-scrollbar-track {
39-
background: var(--dark-background); /* Background */
41+
background: var(--dark-background);
4042
}
41-
4243
.preview-body::-webkit-scrollbar-thumb {
43-
background-color: var(--light-background-half); /* Scrollbar thumb */
44+
background-color: var(--light-background-half);
4445
}
45-
4646
.preview-body::-webkit-scrollbar-thumb:hover {
4747
background-color: var(--light-background);
4848
}
49+
.preview th,
50+
.preview td{
51+
border: 1px solid var(--alt-dark-background);
52+
}
53+
.preview tr:nth-child(even) {
54+
background-color: var(--alt-dark-background-half);
55+
}
4956
}
5057

5158
@media (prefers-color-scheme: light) {
@@ -82,16 +89,21 @@
8289
background-image: none;
8390
}
8491
.preview-body::-webkit-scrollbar-track {
85-
background: var(--light-background); /* Background */
92+
background: var(--light-background);
8693
}
87-
8894
.preview-body::-webkit-scrollbar-thumb {
89-
background-color: var(--dark-background-half); /* Scrollbar thumb */
95+
background-color: var(--dark-background-half);
9096
}
91-
9297
.preview-body::-webkit-scrollbar-thumb:hover {
9398
background-color: var(--dark-background);
9499
}
100+
.preview th,
101+
.preview td{
102+
border: 1px solid var(--alt-light-background);
103+
}
104+
.preview tr:nth-child(even) {
105+
background-color: var(--alt-light-background-half);
106+
}
95107
}
96108

97109
@keyframes highlight-dark-mode {

static/style/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,17 @@
528528
.preview img {
529529
max-width: 100%;
530530
}
531+
.preview table {
532+
border-collapse: collapse;
533+
margin-bottom: 12px;
534+
}
535+
.preview th {
536+
font-weight: bold;
537+
}
538+
.preview th,
539+
.preview td {
540+
padding: 6px 13px;
541+
}
531542
.preview pre {
532543
position: relative;
533544
display: inline-block;

0 commit comments

Comments
 (0)