MediaWiki:Common.css: відмінності між версіями
Сторінка інтерфейсу MediaWiki
Більше дій
Немає опису редагування |
Немає опису редагування |
||
| Рядок 3: | Рядок 3: | ||
* §16 BLOCKQUOTES & NOTICES (Оновлений дизайн з великими лапками) | * §16 BLOCKQUOTES & NOTICES (Оновлений дизайн з великими лапками) | ||
* ========================================================================= */ | * ========================================================================= */ | ||
@import url('https://fonts.googleapis.com/css?family=EB+Garamond|Open+Sans+Condensed:300'); | |||
blockquote { | blockquote { | ||
font-family: 'EB Garamond', serif !important; | |||
font-size: 1.5rem !important; /* Збільшений розмір для ефекту книжкової цитати */ | |||
line-height: 1.4 !important; | |||
position: relative !important; | |||
letter-spacing: .03em !important; | |||
margin: 3rem auto 1.5rem !important; /* Центрування на сторінці */ | |||
max-width: 75% !important; /* Гнучка ширина для різних екранів */ | |||
border-bottom: 2px dotted var(--dystopia-border-strong) !important; /* Точкова лінія знизу */ | |||
padding: 0 1.5rem 1rem 1.5rem !important; /* Відступи для лапок */ | |||
border-left: none !important; /* Прибираємо стару синю лінію */ | |||
background: transparent !important; /* Прибираємо фонову плашку */ | |||
box-shadow: none !important; | |||
color: var(--dystopia-text-primary) !important; /* Світлий текст теми */ | |||
white-space: pre-line !important; /* ЗБЕРЕЖЕННЯ ПЕРЕНЕСЕНЬ (ЯК У ВІРШІ) */ | |||
} | } | ||
/* | /* Ліва лапка */ | ||
blockquote::before { | blockquote::before { | ||
content: "“" !important; | |||
position: absolute !important; | |||
left: -0.2em !important; | |||
top: -0.1em !important; | |||
color: var(--dystopia-text-secondary) !important; /* Приглушений колір лапки */ | |||
font-size: 1.8em !important; | |||
line-height: 1 !important; | |||
} | |||
/* Права лапка */ | |||
blockquote::after { | |||
content: "”" !important; | |||
position: absolute !important; | |||
right: -0.2em !important; | |||
bottom: 1.2em !important; /* Розташування над точковою лінією */ | |||
color: var(--dystopia-text-secondary) !important; | |||
font-size: 1.8em !important; | |||
line-height: 1 !important; | |||
} | |||
/* Автор (замість класу .quote--author використовуємо стандартний тег <cite>) */ | |||
blockquote cite { | |||
display: block !important; | |||
font-family: 'Open Sans Condensed', sans-serif !important; | |||
font-size: 1rem !important; | |||
text-align: right !important; | |||
font-weight: 300 !important; | |||
color: var(--dystopia-text-secondary) !important; | |||
margin-top: 1.5rem !important; | |||
white-space: normal !important; /* Захист: щоб ім'я автора не розірвало випадковим Enter */ | |||
} | } | ||
/* Стиль для кольорового виділення тексту всередині цитати (.quote--highlight) */ | |||
blockquote .highlight { | |||
color: var(--dystopia-accent-primary) !important; /* Темно-червоний акцентний колір з вашої теми */ | |||
font-weight: bold !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>) */ | /* Якщо всередині цитати є ім'я автора (через тег <cite> або <span>) */ | ||
blockquote cite, | /*blockquote cite,*/ | ||
blockquote span { | /*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;*/ | |||
} | /*}*/ | ||
Версія за 13:14, 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;
margin: 3rem auto 1.5rem !important; /* Центрування на сторінці */
max-width: 75% !important; /* Гнучка ширина для різних екранів */
border-bottom: 2px dotted var(--dystopia-border-strong) !important; /* Точкова лінія знизу */
padding: 0 1.5rem 1rem 1.5rem !important; /* Відступи для лапок */
border-left: none !important; /* Прибираємо стару синю лінію */
background: transparent !important; /* Прибираємо фонову плашку */
box-shadow: none !important;
color: var(--dystopia-text-primary) !important; /* Світлий текст теми */
white-space: pre-line !important; /* ЗБЕРЕЖЕННЯ ПЕРЕНЕСЕНЬ (ЯК У ВІРШІ) */
}
/* Ліва лапка */
blockquote::before {
content: "“" !important;
position: absolute !important;
left: -0.2em !important;
top: -0.1em !important;
color: var(--dystopia-text-secondary) !important; /* Приглушений колір лапки */
font-size: 1.8em !important;
line-height: 1 !important;
}
/* Права лапка */
blockquote::after {
content: "”" !important;
position: absolute !important;
right: -0.2em !important;
bottom: 1.2em !important; /* Розташування над точковою лінією */
color: var(--dystopia-text-secondary) !important;
font-size: 1.8em !important;
line-height: 1 !important;
}
/* Автор (замість класу .quote--author використовуємо стандартний тег <cite>) */
blockquote cite {
display: block !important;
font-family: 'Open Sans Condensed', sans-serif !important;
font-size: 1rem !important;
text-align: right !important;
font-weight: 300 !important;
color: var(--dystopia-text-secondary) !important;
margin-top: 1.5rem !important;
white-space: normal !important; /* Захист: щоб ім'я автора не розірвало випадковим Enter */
}
/* Стиль для кольорового виділення тексту всередині цитати (.quote--highlight) */
blockquote .highlight {
color: var(--dystopia-accent-primary) !important; /* Темно-червоний акцентний колір з вашої теми */
font-weight: bold !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;*/
/*}*/