Improve table layout

master
Maik de Kruif 2 weeks ago
parent 6fa9f7b09f
commit 868c11507c
No known key found for this signature in database
GPG Key ID: DB1A8C782DD43CB3
  1. 26
      themes/maik-blog/assets/scss/_collapsible-block.scss
  2. 7
      themes/maik-blog/assets/scss/_main.scss

@ -32,7 +32,7 @@
margin: 1em; margin: 1em;
> .highlight { > .highlight {
margin: 0 -1em; margin: 1em -1em;
border-radius: 0; border-radius: 0;
&:first-child { &:first-child {
@ -45,6 +45,30 @@
margin-bottom: -1em; margin-bottom: -1em;
} }
} }
> table {
margin: 1em -1em;
border-radius: 0;
&:only-child {
background: inherit;
padding: 0 10px;
}
&:first-child {
margin-top: -1em;
}
&:last-child {
margin-bottom: -1em;
}
td {
word-break: normal;
overflow-wrap: normal;
white-space: pre;
}
}
} }
} }

@ -484,21 +484,20 @@ svg {
table { table {
width: 100%; width: 100%;
padding: 10px 10px 10px 20px; padding: 10px;
border-radius: 8px; border-radius: 8px;
font-size: 0.95rem; font-size: 0.95rem;
overflow: auto;
background: $light-background-secondary; background: $light-background-secondary;
th { th {
padding: 8px 4px; padding: 8px 8px;
word-break: normal; word-break: normal;
overflow-wrap: normal; overflow-wrap: normal;
} }
td { td {
padding: 6px 4px; padding: 6px 8px;
border-top: 1px solid $light-color-secondary; border-top: 1px solid $light-color-secondary;
} }

Loading…
Cancel
Save