|
|
(2 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| /* Used for {{Infobox_stat}} and [[Module:HeroData]]'s write_stat_infoboxes for hero pages */
| | .stat-infoboxes-container { |
| | | max-width: calc(100% - 300px); |
| .stat-infobox-table { | |
| width: 100%;
| |
| border-collapse: separate;
| |
| margin-top: 10px; /* Add space above to prevent overlap with content above */
| |
| margin-bottom: 10px; /* Add space below the table */
| |
| }
| |
| | |
| .stat-infobox-table th,
| |
| .stat-infobox-table td {
| |
| padding: 5px;
| |
| text-align: center;
| |
| background-color: rgba(0, 0, 0, 0.08);
| |
| border: 1px solid black;
| |
| position: relative;
| |
| font-family: 'Retail Demo', sans-serif;
| |
| }
| |
| | |
| .stat-infobox-table th:hover,
| |
| .stat-infobox-table td:hover {
| |
| background-color: rgba(0, 0, 0, .4);
| |
| }
| |
| | |
| .stat-infobox-table td::before,
| |
| .stat-infobox-table th::before {
| |
| content: '';
| |
| top: 0;
| |
| left: 0;
| |
| width: 100%;
| |
| height: 100%;
| |
| background-color: rgba(0, 0, 0, 0.08);
| |
| mix-blend-mode: multiply;
| |
| } | | } |
|
| |
|
| .stat-infobox-table .darker { | | @media (max-width: 768px) { |
| background-color: rgba(0, 0, 0, 0.25); | | .stat-infoboxes-container { |
| | max-width: 100%; |
| | } |
| } | | } |
.stat-infoboxes-container {
max-width: calc(100% - 300px);
}
@media (max-width: 768px) {
.stat-infoboxes-container {
max-width: 100%;
}
}