Шаблон:Цитата/styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
Dzmuh (обсуждение | вклад) (Новая страница: «.ts-Цитата-container { margin: auto; border-collapse: collapse; /* Хак для исправления https://ru.wikipedia.org/w/index.php?title=Тес...») |
Dzmuh (обсуждение | вклад) Нет описания правки |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 1: | Строка 1: | ||
.ts-Цитата | .ts-Цитата { | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
margin: 0.5em 0; | |||
} | } | ||
.ts-Цитата | .ts-Цитата blockquote { | ||
font-style: italic; | position: relative; | ||
margin: 0; | |||
padding: 0 42px; | |||
border: none; | |||
background: transparent; | |||
line-height: 1.6em; | |||
font-style: italic; | |||
} | } | ||
.ts-Цитата- | .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; | display: block; | ||
text-align: right; | |||
font-style: normal; | font-style: normal; | ||
} | } | ||
.ts-Цитата- | .ts-Цитата p:first-child { | ||
margin-top: 0; | |||
} | } | ||
.ts-Цитата- | .ts-Цитата p:last-child { | ||
margin-bottom: 0; | |||
} | } | ||
.ts-Цитата- | .ts-Цитата p + .ts-oq { | ||
margin-top: -0.25em; | |||
} | } | ||
.ts-Цитата- | .ts-Цитата .ts-oq .ts-oq-header.ts-oq-header { | ||
padding: 0 | padding-left: 0; | ||
background: transparent; | |||
} | } | ||
/* [[Категория:Шаблоны:Подстраницы CSS]] */ | |||
.ts-Цитата .ts-oq .ts-oq-content { | |||
padding: 0; | |||
} | |||
/* | |||
[[Категория:Шаблоны:Подстраницы CSS]] | |||
[[Категория:Стили импортированные из Русской Википедии]] */ | |||
Текущая версия от 20:04, 3 мая 2023
.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-Цитата .ts-oq .ts-oq-header.ts-oq-header {
padding-left: 0;
background: transparent;
}
.ts-Цитата .ts-oq .ts-oq-content {
padding: 0;
}
/*
[[Категория:Шаблоны:Подстраницы CSS]]
[[Категория:Стили импортированные из Русской Википедии]] */