Add new Features:

- Block Alignments
- Tables
- Media with Links
- Block Sizes
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2021-12-28 19:43:39 +01:00
parent 83febcfc79
commit 6adf42d457
20 changed files with 263 additions and 27 deletions
+55
View File
@@ -0,0 +1,55 @@
// --------------------------------------------------------------------------------
// Block: Table
// --------------------------------------------------------------------------------
.block-table > table {
margin: 0;
padding: 0;
display: table;
width: 100%;
table-layout: auto;
border-collapse: collapse;
}
.block-table > table > thead > tr,
.block-table > table > tbody > tr {
margin: 0;
padding: 0;
vertical-align: top;
}
.block-table > table > thead > tr {
background: $theme-article-table-head-background;
}
.block-table > table > tbody > tr {
background: $theme-article-table-body-background;
}
.block-table > table > tbody > tr:nth-child(2n) {
background: $theme-article-table-body-background-alt;
}
.block-table > table > thead > tr > th,
.block-table > table > tbody > tr > th {
margin: 0;
padding: 0.75rem 1.5rem;
font-weight: bold;
font-variant: small-caps;
text-align: start;
vertical-align: top;
}
.block-table > table > thead > tr > td,
.block-table > table > tbody > tr > td {
margin: 0;
padding: 0.75rem 1.5rem;
}
.block-table > figcaption {
display: block;
margin: 0;
padding: .25em .5em;
text-align: center;
font-size: 0.9em;
background: rgba(0, 0, 0, 0.5);
}