File tree Expand file tree Collapse file tree 2 files changed +280
-127
lines changed
Expand file tree Collapse file tree 2 files changed +280
-127
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const { mode = 'responsive' } = Astro.props
1919 container: table / inline-size;
2020 margin-block: var(--sp);
2121
22- table {
22+ :global( table) {
2323 background-color: transparent;
2424 box-shadow: none;
2525 margin-block: 0;
@@ -34,84 +34,46 @@ const { mode = 'responsive' } = Astro.props
3434 /* mask-image: linear-gradient(90deg, #000 60%, transparent); */
3535 }
3636
37- table {
37+ :global( table) {
3838 position: relative;
3939 inline-size: max-content;
4040 min-inline-size: 100%;
4141 }
42-
43- /* mask-image: linear-gradient(90deg, blue 60%, red);
44- mask-mode: alpha; */
45-
46- /*&::before {
47- content: '';
48- position: absolute;
49- inset: 0;
50- z-index: 2;
51- mask-image: linear-gradient(90deg, #000 60%, transparent);
52- border: 2px solid red;
53- } */
54-
55- /* &::before {
56- content: '';
57- position: fixed;
58- inset: 0;
59- z-index: 2;
60-
61- background-image: linear-gradient(
62- 90deg,
63- transparent calc(100% - var(--shadow)),
64- transparent calc(100% - var(--shadow)),
65- rgb(0 0 0 / 0.15) 100%
66- );
67- border-inline-end: 1px solid rgb(0 0 0 / 0.3);
68- filter: contrast(175%) brightness(3%);
69- pointer-events: none;
70- } */
7142 }
7243
73- /* @container content and (width < 200px) {
74- table {
75- display: none;
76- }
77- } */
78-
79- /* &.responsive {
80- display: none;
81- } */
82-
83- /* @container (width < 700px) {
84-
85- } */
86-
8744 &.responsive {
88- table {
45+ :global( table) {
8946 table-layout: auto;
47+ margin-block: 0;
48+ }
49+
50+ .inner {
51+ margin-block-end: 0;
9052 }
9153
9254 @container article (width < 35em) {
93- table {
55+ :global( table) {
9456 table-layout: fixed;
9557 }
9658
97- thead th {
59+ :global( thead th) {
9860 display: none;
9961 }
10062
101- th ,
102- td {
63+ :global(th) ,
64+ :global(td) {
10365 display: block;
10466 padding-block: var(--sp-xs);
10567 padding-inline: var(--sp);
10668 border-block-end: 1px solid var(--clr-table-line);
10769 }
10870
109- tbody {
110- tr + tr {
71+ :global( tbody) {
72+ :global( tr + tr) {
11173 border-block-start: 5px solid rgb(0 0 0 / 0.1);
11274 }
11375
114- td {
76+ :global(td) {
11577 display: block;
11678
11779 &::before {
You can’t perform that action at this time.
0 commit comments