MediaWiki:Common.css: відмінності між версіями
Сторінка інтерфейсу MediaWiki
Більше дій
Немає опису редагування |
Немає опису редагування |
||
| Рядок 7: | Рядок 7: | ||
blockquote { | blockquote { | ||
font-family: 'EB Garamond', serif !important; | font-family: 'EB Garamond', serif !important; | ||
font-size: 1.5rem !important; | font-size: 1.5rem !important; | ||
line-height: 1.4 !important; | line-height: 1.4 !important; | ||
position: relative !important; | position: relative !important; | ||
letter-spacing: .03em !important; | letter-spacing: .03em !important; | ||
/* Головні виправлення адаптивності */ | |||
width: fit-content !important; /* Блок обтягує найдовший рядок тексту */ | |||
max-width: 90% !important; /* Захист для екранів телефонів */ | |||
margin: 3rem auto 1.5rem auto !important; /* Центруємо весь блок по центру екрана */ | |||
text-align: center !important; /* Центруємо сам текст вірша всередині блоку */ | |||
border-bottom: 2px dotted var(--dystopia-border-strong) !important; | |||
padding: 0 1.5em 0.8em 1.5em !important; /* Трохи зменшили нижній відступ */ | |||
border-left: none !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | box-shadow: none !important; | ||
color: var(--dystopia-text-primary) !important; | color: var(--dystopia-text-primary) !important; | ||
white-space: pre-line !important; /* Зберігаємо можливість перенесення через Enter */ | |||
white-space: pre-line !important; /* | |||
} | } | ||
| Рядок 28: | Рядок 32: | ||
content: "“" !important; | content: "“" !important; | ||
position: absolute !important; | position: absolute !important; | ||
left: | left: 0 !important; /* Тепер лапка завжди стоїть рівно біля початку тексту */ | ||
top: -0. | top: -0.2em !important; | ||
color: var(--dystopia-text-secondary) !important; | color: var(--dystopia-text-secondary) !important; | ||
font-size: | font-size: 2em !important; | ||
line-height: 1 !important; | line-height: 1 !important; | ||
} | } | ||
| Рядок 39: | Рядок 43: | ||
content: "”" !important; | content: "”" !important; | ||
position: absolute !important; | position: absolute !important; | ||
right: | right: 0 !important; /* Прив'язано до правого краю найдовшого рядка тексту */ | ||
bottom: | bottom: 2em !important; /* Підняли вище, щоб вона закривала вірш, а не автора */ | ||
color: var(--dystopia-text-secondary) !important; | color: var(--dystopia-text-secondary) !important; | ||
font-size: | font-size: 2em !important; | ||
line-height: 1 !important; | line-height: 1 !important; | ||
} | } | ||
/* Автор ( | /* Автор (тег <cite>) */ | ||
blockquote cite { | blockquote cite { | ||
display: block !important; | display: block !important; | ||
font-family: 'Open Sans Condensed', sans-serif !important; | font-family: 'Open Sans Condensed', sans-serif !important; | ||
font-size: 1rem !important; | font-size: 1rem !important; | ||
text-align: right !important; | |||
/* Автора вирівнюємо по правому краю нашого компактного блоку */ | |||
text-align: right !important; | |||
padding-right: 1em !important; /* Відступ, щоб ім'я не зливалося з правою лапкою */ | |||
font-weight: 300 !important; | font-weight: 300 !important; | ||
color: var(--dystopia-text-secondary) !important; | color: var(--dystopia-text-secondary) !important; | ||
margin-top: | margin-top: 0.5rem !important; /* Значно скоротили відрив автора від тексту */ | ||
white-space: normal !important; | |||
} | } | ||
Версія за 13:17, 4 червня 2026
/** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */
/* ============================================================================
* §16 BLOCKQUOTES & NOTICES (Оновлений дизайн з великими лапками)
* ========================================================================= */
@import url('https://fonts.googleapis.com/css?family=EB+Garamond|Open+Sans+Condensed:300');
blockquote {
font-family: 'EB Garamond', serif !important;
font-size: 1.5rem !important;
line-height: 1.4 !important;
position: relative !important;
letter-spacing: .03em !important;
/* Головні виправлення адаптивності */
width: fit-content !important; /* Блок обтягує найдовший рядок тексту */
max-width: 90% !important; /* Захист для екранів телефонів */
margin: 3rem auto 1.5rem auto !important; /* Центруємо весь блок по центру екрана */
text-align: center !important; /* Центруємо сам текст вірша всередині блоку */
border-bottom: 2px dotted var(--dystopia-border-strong) !important;
padding: 0 1.5em 0.8em 1.5em !important; /* Трохи зменшили нижній відступ */
border-left: none !important;
background: transparent !important;
box-shadow: none !important;
color: var(--dystopia-text-primary) !important;
white-space: pre-line !important; /* Зберігаємо можливість перенесення через Enter */
}
/* Ліва лапка */
blockquote::before {
content: "“" !important;
position: absolute !important;
left: 0 !important; /* Тепер лапка завжди стоїть рівно біля початку тексту */
top: -0.2em !important;
color: var(--dystopia-text-secondary) !important;
font-size: 2em !important;
line-height: 1 !important;
}
/* Права лапка */
blockquote::after {
content: "”" !important;
position: absolute !important;
right: 0 !important; /* Прив'язано до правого краю найдовшого рядка тексту */
bottom: 2em !important; /* Підняли вище, щоб вона закривала вірш, а не автора */
color: var(--dystopia-text-secondary) !important;
font-size: 2em !important;
line-height: 1 !important;
}
/* Автор (тег <cite>) */
blockquote cite {
display: block !important;
font-family: 'Open Sans Condensed', sans-serif !important;
font-size: 1rem !important;
/* Автора вирівнюємо по правому краю нашого компактного блоку */
text-align: right !important;
padding-right: 1em !important; /* Відступ, щоб ім'я не зливалося з правою лапкою */
font-weight: 300 !important;
color: var(--dystopia-text-secondary) !important;
margin-top: 0.5rem !important; /* Значно скоротили відрив автора від тексту */
white-space: normal !important;
}
/*blockquote {*/
/* position: relative !important;*/
/* font-style: italic !important;*/
/* color: var(--dystopia-text-primary) !important; */
/* background-color: var(--dystopia-bg-paper) !important; */
/* padding: 1.2em 30px 1.2em 75px !important; */
/* border-left: 4px solid var(--dystopia-accent-secondary) !important; */
/* margin: 1.5em 0 !important;*/
/* line-height: 1.6 !important;*/
/* border-radius: var(--dystopia-radius) !important;*/
/* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;*/
/* white-space: pre-line !important;*/
/*}*/
/* Додавання великих декоративних лапок */
/*blockquote::before {*/
/* content: "\201C" !important;*/
/* font-family: Arial, sans-serif !important;*/
/* color: var(--dystopia-accent-secondary) !important;*/
/* font-size: 4.5em !important;*/
/* position: absolute !important;*/
/* left: 12px !important;*/
/* top: -15px !important;*/
/* font-style: normal !important;*/
/* opacity: 0.8 !important;*/
/*}*/
/* Якщо всередині цитати є ім'я автора (через тег <cite> або <span>) */
/*blockquote cite,*/
/*blockquote span {*/
/* display: block !important;*/
/* color: var(--dystopia-text-secondary) !important;*/
/* font-style: normal !important;*/
/* font-weight: bold !important;*/
/* margin-top: 1em !important;*/
/* font-size: 0.9em !important;*/
/*}*/