Перейти к содержанию

MediaWiki:Common.css: различия между версиями

Материал из thedimas Wiki
стилизация боксов
блоки, фикс
Строка 17: Строка 17:
}
}


/* Стилизация разделов (боксов) */
.main-block {
.main-page-box { /* Класс для разделов главной страницы */
     border: 2px solid #ccc;
    background-color: #fff; /* Фон бокса */
     padding: 20px;
     border: 1px solid #ccc; /* Рамка бокса */
     background-color: #f9f9f9;
     padding: 15px; /* Внутренний отступ бокса */
     margin: 20px auto;
     margin-bottom: 15px; /* Отступ снизу от бокса */
     max-width: 800px;
     border-radius: 5px; /* Скругление углов бокса */
    text-align: center;
     box-shadow: 2px 2px 5px #eee; /* Тень для бокса */
     box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
     border-radius: 8px;
 
.main-page-box h2 { /* Стилизация заголовков внутри боксов */
    color: #007bff; /* Цвет заголовка бокса (пример: голубой) */
     border-bottom: none; /* Убираем подчеркивание заголовка внутри бокса, если нужно */
     margin-top: 0; /* Убираем верхний отступ заголовка внутри бокса */
}
}

Версия от 09:49, 10 марта 2025

/* CSS placed here will be applied to all skins */

/* Скрываем кнопку обсуждений на главной странице */
body.page-Главная_страница #ca-talk,
body.page-Main_Page #ca-talk {
    display: none !important;
}

/* Скрываем блок помощи "n-help-mediawiki" */
#n-help-mediawiki {
    display: none !important;
}

/* Скрываем блок "footer-icons" (иконки внизу) */
#footer-icons {
    display: none !important;
}

.main-block {
    border: 2px solid #ccc;
    padding: 20px;
    background-color: #f9f9f9;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}