User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m more height match testing
Sur (talk | contribs)
mNo edit summary
 
(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 */
}
}

Latest revision as of 18:56, 6 October 2024

.icon {
  filter: invert(0%);
}

@media (prefers-color-scheme: dark) {
  .icon {
    filter: invert(100%);
  }
}