mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Improve table layout
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user