|
| 1 | +.post-single--compare .post-content table:not(.highlighttable, .highlight table, .gist .highlight) { |
| 2 | + width: 100%; |
| 3 | + margin: 20px 0 28px; |
| 4 | + border-collapse: separate; |
| 5 | + border-spacing: 0; |
| 6 | + border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); |
| 7 | + border-radius: 14px; |
| 8 | + overflow: hidden; |
| 9 | + background: color-mix(in srgb, var(--entry) 84%, white); |
| 10 | + box-shadow: 0 12px 30px -24px color-mix(in srgb, var(--primary) 35%, transparent); |
| 11 | +} |
| 12 | + |
| 13 | +body.dark .post-single--compare .post-content table:not(.highlighttable, .highlight table, .gist .highlight) { |
| 14 | + background: color-mix(in srgb, var(--entry) 92%, black); |
| 15 | +} |
| 16 | + |
| 17 | +.post-single--compare .post-content table thead th { |
| 18 | + border-bottom: 2px solid color-mix(in srgb, var(--primary) 40%, var(--border)); |
| 19 | + background: color-mix(in srgb, var(--primary) 10%, var(--entry)); |
| 20 | + color: var(--primary); |
| 21 | + font-weight: 700; |
| 22 | + letter-spacing: 0.01em; |
| 23 | +} |
| 24 | + |
| 25 | +body.dark .post-single--compare .post-content table thead th { |
| 26 | + background: color-mix(in srgb, var(--primary) 20%, var(--entry)); |
| 27 | +} |
| 28 | + |
| 29 | +.post-single--compare .post-content table th, |
| 30 | +.post-single--compare .post-content table td { |
| 31 | + border-right: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border)); |
| 32 | + border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border)); |
| 33 | + padding: 22px 24px !important; |
| 34 | + vertical-align: top; |
| 35 | +} |
| 36 | + |
| 37 | +@media (max-width: 900px) { |
| 38 | + .post-single--compare .post-content table th, |
| 39 | + .post-single--compare .post-content table td { |
| 40 | + padding: 18px 20px !important; |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +.post-single--compare .post-content table th:last-child, |
| 45 | +.post-single--compare .post-content table td:last-child { |
| 46 | + border-right: 0; |
| 47 | +} |
| 48 | + |
| 49 | +.post-single--compare .post-content table tbody tr:last-child td { |
| 50 | + border-bottom: 0; |
| 51 | +} |
| 52 | + |
| 53 | +.post-single--compare .post-content table tbody tr:nth-child(odd) { |
| 54 | + background: color-mix(in srgb, var(--entry) 90%, white); |
| 55 | +} |
| 56 | + |
| 57 | +.post-single--compare .post-content table tbody tr:nth-child(even) { |
| 58 | + background: color-mix(in srgb, var(--entry) 96%, var(--primary) 4%); |
| 59 | +} |
| 60 | + |
| 61 | +body.dark .post-single--compare .post-content table tbody tr:nth-child(odd) { |
| 62 | + background: color-mix(in srgb, var(--entry) 96%, black); |
| 63 | +} |
| 64 | + |
| 65 | +body.dark .post-single--compare .post-content table tbody tr:nth-child(even) { |
| 66 | + background: color-mix(in srgb, var(--entry) 90%, var(--primary) 8%); |
| 67 | +} |
| 68 | + |
| 69 | +.post-single--compare .post-content table tbody tr:hover { |
| 70 | + background: color-mix(in srgb, var(--primary) 12%, var(--entry)); |
| 71 | +} |
| 72 | + |
| 73 | +.post-single--compare .post-content table tbody td:first-child { |
| 74 | + font-weight: 600; |
| 75 | + color: var(--primary); |
| 76 | +} |
| 77 | + |
| 78 | +@media (max-width: 900px) { |
| 79 | + .post-single--compare .post-content table:not(.highlighttable, .highlight table, .gist .highlight) { |
| 80 | + display: block; |
| 81 | + min-width: 700px; |
| 82 | + max-width: 100%; |
| 83 | + overflow-x: auto; |
| 84 | + -webkit-overflow-scrolling: touch; |
| 85 | + } |
| 86 | +} |
0 commit comments