Further move towards clean HTML5+CSS
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
// --------------------------------------------------------------------------------
|
||||
// Block: Figure
|
||||
// --------------------------------------------------------------------------------
|
||||
figure.block {
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
figure.block > figcaption {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: .25em .5em;
|
||||
text-align: center;
|
||||
font-size: 0.9em;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
// Block: Figure > Media
|
||||
// --------------------------------------------------------------------------------
|
||||
figure.block > picture,
|
||||
figure.block > picture > img,
|
||||
figure.block > video,
|
||||
figure.block > audio {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
width: auto;
|
||||
max-height: 1005;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
@import "_block-figure-player.scss"
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
// Block: Figure > Table
|
||||
// --------------------------------------------------------------------------------
|
||||
figure.block > table {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: auto;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
figure.block > table > thead > tr,
|
||||
figure.block > table > tbody > tr {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
figure.block > table > thead > tr {
|
||||
background: $theme-article-table-head-background;
|
||||
}
|
||||
|
||||
figure.block > table > tbody > tr {
|
||||
background: $theme-article-table-body-background;
|
||||
}
|
||||
|
||||
figure.block > table > tbody > tr:nth-child(2n) {
|
||||
background: $theme-article-table-body-background-alt;
|
||||
}
|
||||
|
||||
figure.block > table > thead > tr > th,
|
||||
figure.block > table > tbody > tr > th {
|
||||
margin: 0;
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-weight: bold;
|
||||
font-variant: small-caps;
|
||||
text-align: start;
|
||||
vertical-align: top;
|
||||
border: 1px solid rgba(0, 0, 0, 0.5);
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
figure.block > table > thead > tr > td,
|
||||
figure.block > table > tbody > tr > td {
|
||||
margin: 0;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid rgba(0, 0, 0, 0.5);
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
Reference in New Issue
Block a user