|
|
(21 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| .stat-infobox { | | .icon { |
| width: 175px;
| | filter: invert(0%); |
| min-height: 150px; /* Set minimum height instead of fixed height */
| |
| background-color: #f0f0f0;
| |
| border-radius: 10px;
| |
| text-align: center;
| |
| position: relative;
| |
| display: flex;
| |
| flex-direction: column;
| |
| justify-content: center;
| |
| align-items: center;
| |
| transition: width 0.3s ease;
| |
| margin-bottom: 10px;
| |
| } | | } |
|
| |
|
| .stat-infobox-hover {
| | @media (prefers-color-scheme: dark) { |
| display: block;
| | .icon { |
| position: relative; /* Adjusted from absolute to relative to follow normal flow */
| | filter: invert(100%); |
| width: 100%; /* Ensures the table inside fills the width of the infobox */
| | } |
| background-color: #fff;
| |
| border: 1px solid #ccc;
| |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
| |
| padding: 10px;
| |
| border-radius: 15px;
| |
| opacity: 1;
| |
| }
| |
| | |
| .stat-infobox-table { | |
| width: 100%; | |
| border-collapse: separate;
| |
| margin-top: 10px;
| |
| overflow: hidden; /* Ensure the table doesn't overflow */
| |
| } | | } |
.icon {
filter: invert(0%);
}
@media (prefers-color-scheme: dark) {
.icon {
filter: invert(100%);
}
}