Skip to content

Commit

Permalink
style: tables: Add shadow, fine-tune border
Browse files Browse the repository at this point in the history
The shadow hides a CSS limitation for merged cells and rows.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
  • Loading branch information
gastmaier committed Nov 22, 2024
1 parent a4f8789 commit 39b3297
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion adi_doctools/theme/cosmic/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ body {
}

p {
margin: .25em 0 .75em 0;
margin: .25em 0 .5em 0;
}

div.line{
Expand Down
15 changes: 11 additions & 4 deletions adi_doctools/theme/cosmic/style/table.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
.table-wrapper {
margin-bottom: .5em;
@media screen {
table.docutils {
box-shadow: var(--subtle-box-shadow);
}
}

table.docutils {
margin-top: .25em;
margin-bottom: .5em;
border-spacing: 0;
overflow: hidden;
border-radius: $border-radius;
border: $border-td;
border-bottom: none;

thead {
background-color: var(--bg-color2);
Expand All @@ -28,7 +34,7 @@ table.docutils {
padding: .5em;
}

tr:last-child td {
tr:last-child {
border-bottom: none;
}

Expand All @@ -37,7 +43,8 @@ table.docutils {
}

&.grid {
td:not(:first-child), th:not(:first-child) {
border-left: none;
td, th {
border-left: $border-td;
}
}
Expand Down

0 comments on commit 39b3297

Please sign in to comment.