更多操作
小无编辑摘要 |
小无编辑摘要 |
||
第240行: | 第240行: | ||
margin-top: 0; | margin-top: 0; | ||
} | } | ||
} | |||
.movecard-caption { | |||
padding: 10px; | |||
text-align: left; | |||
} | } |
2025年1月13日 (一) 17:19的版本
.attack-container {
border: none;
width: 100%;
background: var(--color-surface-1);
border-radius: var(--border-radius--medium);
box-shadow: var(--card-shadow-dlw);
overflow: hidden;
/*
* Needed to make the collapsible button stay
* inside the card in narrow width
*/
display: inline-block;
}
.attack-info-body {
padding: 0 15px;
}
.attack-container table.cargoTable thead th {
/* padding-right: 0.75em; */
background-image: none;
cursor: initial;
pointer-events: none;
}
.attack-container .attack-info table.moveTable,
.attack-container .attack-info table.cargoTable {
border: none;
overflow: auto;
width: 100%;
text-align: center;
margin: 0;
}
.attack-info>table td {
vertical-align: middle;
}
.attack-data table {
line-height: 1.1em;
text-align: center
}
@media (min-width: 990px) {
/* two col layout */
.attack-container {
display: grid;
grid-template-columns: 242px auto;
}
/* correct rounding of top-right corner for desktop cards */
.attack-info .citizen-table-wrapper table thead th:last-of-type {
border-radius: 0 var(--border-radius--medium) 0 0;
}
}
.attack-gallery div {
text-align: center;
}
.attack-gallery ul.gallery {
margin: 0;
}
.attack-gallery * .gallerytext p {
margin: 0;
text-align: center;
}
.additional-data-section {
/*display: flex;*/
flex-direction: column;
gap: var(--space-md);
}
.additional-data-section span.mw-collapsible-toggle {
padding-bottom: 3px;
align-self: flex-end;
/* align collapsible button to the right */
}
.attack-container table.cargoTable th {
text-align: center;
background-color: var(--color-surface-1);
font-size: var(--font-size-x-small);
padding: 0.75em;
}
.attack-container table.cargoTable td {
font-size: var(--font-size-x-small);
padding: 0.75em;
}
/****************** Styling for Tooltip Movecards *********************/
.moveTable {
border-collapse: collapse;
}
.moveTable tr:nth-child(odd) {
background-color: var(--color-surface-2);
}
.moveTable tr:nth-child(even) {
background-color: var(--color-surface-1);
}
.moveTable th {
background-color: var(--color-surface-0);
border: solid 0.1em var(--border-color-base--darker);
font-size: 0.8125rem;
color: var(--color-base--subtle);
}
.moveTable td,
.moveTable th {
border: solid 0.1em var(--border-color-base--darker);
font-size: 0.8125em;
padding: 0.75em;
text-align: center;
}
/*for testing new layout*/
.frameDataGrid {
width: 100%;
display: grid;
grid-template-rows: min-content 1fr;
grid-template-columns: 1fr;
text-align: center;
}
.frameDataGridHeader {
display: grid;
grid-template-rows: 1fr;
text-align: center;
background-color: var(--color-surface-1);
border-bottom: 1px solid var(--border-color-base);
font-size: 0.8125em;
padding: 0.75em;
font-weight: var(--font-weight-normal);
color: var(--color-base--subtle);
letter-spacing: 0.05em;
}
.frameDataGridRow {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
background: var(--color-surface-0);
font-size: var(--font-size-x-small);
padding: 0.75em;
}
.frameDataGridRow>div {
color: var(--color-base--emphasized);
font-weight: var(--font-weight-medium);
}
.attack-gallery-image {
padding: var(--space-md);
text-align: center;
}
.attack-gallery-image .thumbcaption {
font-size: var(--font-size-x-small);
}
.attack-info .mw-collapsible-toggle {
margin: var(--space-md);
}
.frameDataGrid {
overflow-x: auto;
}
.attack-info {
overflow-x: auto;
}
/* ------------------------- TODO: make more robust ------------------------- */
.colCount-2 { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
.colCount-3 { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
.colCount-4 { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
.colCount-5 { grid-template-columns: repeat(5, minmax(100px, 1fr)); }
.colCount-6 { grid-template-columns: repeat(6, minmax(100px, 1fr)); }
.colCount-7 { grid-template-columns: repeat(7, minmax(100px, 1fr)); }
.colCount-8 { grid-template-columns: repeat(8, minmax(100px, 1fr)); }
.colCount-9 { grid-template-columns: repeat(9, minmax(100px, 1fr)); }
.colCount-10 { grid-template-columns: repeat(10, minmax(100px, 1fr)); }
.colCount-11 { grid-template-columns: repeat(11, minmax(20px, 1fr)); }
.colCount-12 { grid-template-columns: repeat(12, minmax(20px, 1fr)); }
.colCount-13 { grid-template-columns: repeat(13, minmax(20px, 1fr)); }
.colCount-14 { grid-template-columns: repeat(14, minmax(20px, 1fr)); }
@media (max-width: 899px) {
.frameDataGrid {
overflow-x: scroll;
}
}
.frameDataGrid .frameDataGridRow:not(:last-child) {
border-bottom: 1px solid var(--border-color-base);
}
.frameDataGrid .frameDataGridRow:nth-child(odd) {
background: var(--color-surface-2);
}
.inputBadgeContainer {
display: block;
margin-bottom: 5px;
}
.attack-gallery figure {
float: none;
margin-top: 0;
margin-bottom: 0;
margin-left: var(--space-lg);
margin-right: var(--space-lg);
width: auto;
clear: both;
display: inline-block;
}
.attack-gallery figure:first-of-type {
margin-top: var(--space-lg);
}
.attack-gallery figure figcaption {
display: none;
}
@media (max-width: 990px) {
.attack-gallery figure:first-of-type {
margin-top: 0;
}
}
.movecard-caption {
padding: 10px;
text-align: left;
}