sboulema_mtg-deck/styles.css
2026-05-08 01:04:28 +02:00

114 lines
1.4 KiB
CSS

/* Deck List */
.decklist {
padding: 8px;
}
.decklist__section-container table {
width: 100%;
border: 1px solid var(--background-modifier-border);
}
.decklist__section-container:where(th, td):not(.max) {
width: 0;
white-space: nowrap !important;
}
.decklist th,
.decklist td {
border: none;
}
.type-separator td,
.decklist tfoot {
border-top: 1px solid var(--background-modifier-border);
}
.decklist__section-totals .card-name {
flex: 4;
}
/* Card */
.card-cost {
display: flex;
flex-wrap: nowrap;
align-items: center;
}
.card-image {
height: 400px;
}
span.card-name {
flex: 2;
}
span.comment {
color: #999;
font-style: italic;
}
.card-image-container {
text-align: right;
position: absolute;
z-index: 1;
}
.count {
flex: 1;
}
.insufficient-count {
color: #666;
font-style: italic;
}
.error {
color: #a33;
font-style: italic;
}
/* Buylist */
.buylist-container {
z-index: 0;
}
.buylist-line {
display: flex;
}
.buylist-line span {
flex: 1;
}
.buylist-line .decklist__section-totals__count {
flex: 1;
}
.buylist-line .card-name {
flex: 4;
}
.buylist-line .decklist__section-totals {
flex: 1;
}
.buy-button {
flex: 1;
margin: 5px;
}
.buy-buttons-container {
flex: 2 2;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.markdown-source-view.mod-cm6
.cm-preview-code-block:has(> .block-language-mtg-deck) {
overflow: visible;
contain: initial !important;
}