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

Нет описания правки
Метка: отменено
Нет описания правки
Метка: отменено
Строка 129: Строка 129:


/* 5.1. «Свежие правки»: метка времени не ломается на части */
/* 5.1. «Свежие правки»: метка времени не ломается на части */
/* Группированные правки (стрелочка) — это работало */
body.font-large.page-Special_RecentChanges .mw-enhanced-rc-time,
body.font-large.page-Special_RecentChanges .mw-enhanced-rc-time,
body.font-large.page-Special_RecentChanges .mw-enhanced-rc-time a,
body.font-large.page-Special_RecentChanges .mw-enhanced-rc-time a {
body.font-large.page-Special_RecentChanges .mw-changeslist-line:not(.mw-enhanced-rc) .mw-changeslist-date,
body.font-large.page-Special_RecentChanges .mw-changeslist-line:not(.mw-enhanced-rc) .mw-changeslist-time {
     font-size: 0.85em !important;
     font-size: 0.85em !important;
     white-space: nowrap !important;
     white-space: nowrap !important;
Строка 138: Строка 137:
}
}


/* Одиночные правки: убираем float, из-за которого время падает вниз */
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner > * {
    float: none !important;
    display: inline !important;
}
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner {
    display: block !important;
    white-space: normal !important;
}
/* Время в одиночных правках не разрывается */
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .mw-changeslist-date,
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .mw-changeslist-date,
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .mw-changeslist-time {
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .mw-changeslist-time {
    font-size: 0.85em !important;
     white-space: nowrap !important;
     white-space: nowrap !important;
     display: inline-block !important;
     display: inline-block !important;
}
}


/* Разрешаем перенос для длинных частей строки, чтобы не было горизонтальной прокрутки */
/* Длинные названия статей и комментарии могут переноситься */
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .mw-title,
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .mw-title,
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .comment {
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner .comment {
     white-space: normal !important;
     white-space: normal !important;
}
     display: inline !important;
 
/* Запрещаем flex-контейнеру строки переносить элементы */
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline;
}
 
body.font-large.page-Special_RecentChanges .mw-changeslist-line-inner > * {
    flex-shrink: 0;
}
 
/* Самый широкий фикс для времени в «Свежих правках» */
body.font-large.page-Special_RecentChanges span[class*="time"],
body.font-large.page-Special_RecentChanges span[class*="date"],
body.font-large.page-Special_RecentChanges a[class*="time"],
body.font-large.page-Special_RecentChanges a[class*="date"] {
    font-size: 0.85em !important;
    white-space: nowrap !important;
     display: inline-block !important;
}
}