Skip to content

Commit cda3376

Browse files
committed
Add table styles to strategy analysis page
1 parent 16a29f3 commit cda3376

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

  • src/routes/strategies/[strategy]/tech-details/analysis

src/routes/strategies/[strategy]/tech-details/analysis/+page.svelte

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,56 @@
8484
8585
.content {
8686
min-height: 500px;
87+
overflow: auto;
8788
8889
p {
8990
padding: 1rem 0.5rem;
9091
}
92+
93+
:global(table) {
94+
width: 100%;
95+
border-collapse: collapse;
96+
color: inherit;
97+
background: var(--c-box-1);
98+
font: var(--f-mono-sm-regular);
99+
line-height: 1.2;
100+
letter-spacing: var(--f-mono-sm-spacing, normal);
101+
102+
@media (--viewport-xs) {
103+
font-size: 12px;
104+
}
105+
106+
:global(:is(td, th)) {
107+
padding: 0.25em 0.5em;
108+
border-block: 1px solid var(--c-text-ultra-light);
109+
vertical-align: top;
110+
111+
&:first-child {
112+
padding-left: 0.25em;
113+
}
114+
115+
&:last-child {
116+
padding-right: 0.25em;
117+
}
118+
}
119+
120+
:global(tbody :is(td, th)) {
121+
/* Alternating column colors */
122+
&:nth-child(even) {
123+
background-color: var(--c-box-3);
124+
}
125+
126+
&:nth-child(odd) {
127+
background-color: var(--c-box-1);
128+
}
129+
}
130+
131+
:global(thead th) {
132+
background: var(--c-box-3);
133+
font-weight: 900;
134+
border-bottom: 2px solid currentColor;
135+
}
136+
}
91137
}
92138
93139
.loading {

0 commit comments

Comments
 (0)