MediaWiki:Common.css: различия между версиями
Luciana (обсуждение | вклад) Нет описания правки Метки: ручная отмена отменено |
Luciana (обсуждение | вклад) Нет описания правки Метка: отменено |
||
Строка 1: | Строка 1: | ||
#reverinDateWidget { | #reverinDateWidget { | ||
font-size: 13px; | font-size: 13px; | ||
font-weight: normal; | font-weight: normal; | ||
color: #333; | color: #333; | ||
background: #f8f9fa; | background: #f8f9fa; | ||
padding: 5px 8px; | padding: 5px 8px; | ||
border-radius: 4px; | border-radius: 4px; | ||
border-top: 1px solid #ccc; | border-top: 1px solid #ccc; | ||
text-align: center; | text-align: center; | ||
line-height: 1.2; | line-height: 1.2; | ||
white-space: nowrap; /* Запрещаем перенос строк */ | white-space: nowrap; /* Запрещаем перенос строк */ | ||
display: flex; /* Делаем элементы в ряд */ | |||
flex-direction: column; /* Элементы идут по вертикали */ | |||
align-items: center; /* Выравниваем текст по центру */ | |||
} | |||
#reverinDateWidget span { | |||
display: inline-block; /* Делаем все части текста "в одной строке" */ | |||
white-space: nowrap; /* Принудительно не переносить строки */ | |||
} | } | ||
#reverinDateWidget b { | #reverinDateWidget b { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 13px; | font-size: 13px; | ||
} | } |
Версия от 23:11, 25 февраля 2025
#reverinDateWidget { font-size: 13px; font-weight: normal; color: #333; background: #f8f9fa; padding: 5px 8px; border-radius: 4px; border-top: 1px solid #ccc; text-align: center; line-height: 1.2; white-space: nowrap; /* Запрещаем перенос строк */ display: flex; /* Делаем элементы в ряд */ flex-direction: column; /* Элементы идут по вертикали */ align-items: center; /* Выравниваем текст по центру */ } #reverinDateWidget span { display: inline-block; /* Делаем все части текста "в одной строке" */ white-space: nowrap; /* Принудительно не переносить строки */ } #reverinDateWidget b { font-weight: bold; font-size: 13px; } .year-link { font-weight: bold; font-size: 13px; color: #0056b3; text-decoration: none; } .year-link:hover { text-decoration: underline; }