Skip to content

Commit ab04175

Browse files
committed
style: Adjust table border and breakout styles, including color and opacity for pseudo-elements.
1 parent 42e5a96 commit ab04175

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/_tricks.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
table.borderless {
2+
th,
23
td {
34
border: none;
45
}

src/breakout.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
}
3131

3232
/* Tables are so special :( */
33-
&:is(table) {
33+
&:is(table):not(.does-not-exist) {
34+
/* @TODO: add postcss's `:not(.does-not-exist)` to tricks-wiki */
3435
/* Let them full-bleed */
3536
width: max-content;
3637
min-width: auto;
@@ -41,6 +42,10 @@
4142
display: block;
4243
overflow-x: auto;
4344
-webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
45+
46+
td {
47+
padding-inline-start: 0;
48+
}
4449
}
4550

4651
/* Max out the width of the element */
@@ -58,8 +63,8 @@
5863
content: "";
5964
display: block;
6065
position: absolute;
61-
background: lightgray;
62-
opacity: 50%;
66+
background: gray;
67+
opacity: 12.5%;
6368
}
6469
}
6570

@@ -71,7 +76,7 @@
7176
height: 0.25em;
7277
top: 50%;
7378
transform: translateY(-50%);
74-
background: linear-gradient(to left, lightgray, gainsboro 10%, transparent);
79+
background: linear-gradient(to left, gray, transparent);
7580
}
7681

7782
&:where(hr + &) {

0 commit comments

Comments
 (0)