Шаблон:Цитата/styles.css

Версия от 00:39, 6 апреля 2025; Pok (обсуждение | вклад) (Новая страница: «-- source: https://ru.wikipedia.org/wiki/Модуль:Transclude -- license: CC BY-SA 4.0: .ts-Цитата { display: flex; justify-content: center; margin: 0.5em 0; } .ts-Цитата blockquote { position: relative; margin: 0; padding: 0 42px; border: none; background: transparent; line-height: 1.6em; font-style: italic; } .ts-Цитата blockquote::before, .ts-Цитата blockquote::after { content: ""; position: abso...»)

(разн.) ← Предыдущая версия | Подтверждённая версия (разн.) | Текущая версия (разн.) | Следующая версия → (разн.)
/*
-- source: https://ru.wikipedia.org/wiki/Модуль:Transclude
-- license: CC BY-SA 4.0 
*/

.ts-Цитата {
	display: flex;
	justify-content: center;
	margin: 0.5em 0;
}

.ts-Цитата blockquote {
	position: relative;
	margin: 0;
	padding: 0 42px;
    border: none;
    background: transparent;
    line-height: 1.6em;
    font-style: italic;
}

.ts-Цитата blockquote::before,
.ts-Цитата blockquote::after {
	content: "";
	position: absolute;
	background-size: 1.6em calc(1.6em / 1.1);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	width: calc(1.6em / 0.75);
	height: 1.6em;
}

.ts-Цитата blockquote::before {
	background-image: url('//upload.wikimedia.org/wikipedia/commons/4/4d/Left_pointing_double_angle_quotation_mark_sh1.svg');
	top: 0;
	left: 0;
}
.ts-Цитата blockquote::after {
	background-image: url('//upload.wikimedia.org/wikipedia/commons/d/de/Right_pointing_double_angle_quotation_mark_sh1.svg');
	bottom: 0;
	right: 0;
}

.ts-Цитата blockquote i {
	font-style: normal;
}

.ts-Цитата cite {
	display: block;
	text-align: right;
	font-style: normal;
}

.ts-Цитата p:first-child {
	margin-top: 0;
}

.ts-Цитата p:last-child {
	margin-bottom: 0;
}

.ts-Цитата p + .ts-oq {
	margin-top: -0.25em;
}

.ts-Цитата p ~ .ts-oq {
	margin-bottom: 0;
}

.ts-Цитата .ts-oq .ts-oq-header.ts-oq-header {
	padding-left: 0;
	background: transparent;
}

.ts-Цитата .ts-oq .ts-oq-content {
	padding: 0;
}

/* [[Категория:Шаблоны:Подстраницы CSS]] */