User:Sur/vector.css

From Deadlock Wiki
Revision as of 18:25, 22 September 2024 by Sur (talk | contribs) (more height match testing)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
.stat-infobox {
    width: 175px;
    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 {
    display: block;
    position: relative; /* Adjusted from absolute to relative to follow normal flow */
    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 */
}