MediaWiki:Common.css: відмінності між версіями

нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 314: Рядок 314:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     justify-content: center;
     justify-content: center; /* Centers content vertically in the box */
     align-items: center;
     align-items: center; /* Centers content horizontally in the box */
     width: calc(33.333% - 20px);  /* Subtracting total horizontal padding/margin */
     width: calc(33.333% - 20px);  /* Accounts for margin on the right */
     margin-right: 15px;
     margin-right: 15px;
     box-sizing: border-box;
     box-sizing: border-box;
     height: 160px;
     height: 160px;
    text-align: center;
     background-color: #f8f9fa;  /* Light grey background, change if needed */
     background-color: #f8f9fa;  /* Light grey background, change as needed */
     border: 1px solid #ccc;  /* Light grey border, change if needed */
     border: 1px solid #ccc;  /* Light grey border, change as needed */
     padding: 10px;  /* Padding inside the boxes */
     padding: 10px;  /* Padding inside the boxes */
}
}


.main-page-column:last-child {
.main-page-column:last-child {
     margin-right: 0;  /* Remove margin for the last column to fit perfectly */
     margin-right: 0;  /* No margin on the right for the last column */
}
}


Рядок 335: Рядок 334:
         width: 100%;  /* Full width on smaller screens */
         width: 100%;  /* Full width on smaller screens */
         margin-right: 0;
         margin-right: 0;
         margin-bottom: 15px;  /* Add space between stacked columns on mobile */
         margin-bottom: 15px;  /* Space between stacked columns on mobile */
     }
     }
}
}