MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1,012: Line 1,012:
/* Parent container styling */
/* Parent container styling */
.filtered .filtered-filters {
.filtered .filtered-filters {
     display: grid; /* Switch to grid layout */
     display: flex;
     grid-template-columns: repeat(4, 1fr); /* Create four columns */
     flex-wrap: wrap;
     gap: 10px; /* Space between grid items */
    justify-content: space-between;
     align-items: center;
     margin-top: -8%;
     margin-top: -8%;
     width: calc(40% - 2px);
     width: calc(40% - 2px);
     box-sizing: border-box;
     box-sizing: border-box;
    height: fit-content;
     font-size: 12pt;
     font-size: 12pt;
     line-height: 22px;
     line-height: 22px;
     letter-spacing: 0.4px;
     letter-spacing: 0.4px;
    float: right;
     display: none !important;
     display: none !important;
}
}
Line 1,066: Line 1,065:
@media (max-width: 600px) {
@media (max-width: 600px) {
     .filtered .filtered-filters {
     .filtered .filtered-filters {
         grid-template-columns: repeat(2, 1fr); /* Adjust to two columns on smaller screens */
         width: 100%;
         width: 100%; /* Adjust width as needed */
         justify-content: space-around; /* Adjust as needed for smaller screens */
        float: none;
     }
     }
}
}

Navigation menu