Шаблон:Цитата/styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
bukvica>Grain of sand - фон и левые отступы для оригинального текста |
Karaby (обсуждение | вклад) м 1 версия импортирована |
||
| (не показаны 2 промежуточные версии 2 участников) | |||
| Строка 19: | Строка 19: | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
background-size: calc(1.6em / | background-size: 1.6em calc(1.6em / 1.1); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: 50% 50%; | |||
width: calc(1.6em / 0.75); | width: calc(1.6em / 0.75); | ||
height: 1.6em; | height: 1.6em; | ||
| Строка 26: | Строка 27: | ||
.ts-Цитата blockquote::before { | .ts-Цитата blockquote::before { | ||
background-image: url('//upload.wikimedia.org/wikipedia/commons/4/ | background-image: url('//upload.wikimedia.org/wikipedia/commons/4/4d/Left_pointing_double_angle_quotation_mark_sh1.svg'); | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
} | } | ||
.ts-Цитата blockquote::after { | .ts-Цитата blockquote::after { | ||
background-image: url('//upload.wikimedia.org/wikipedia/commons/ | background-image: url('//upload.wikimedia.org/wikipedia/commons/d/de/Right_pointing_double_angle_quotation_mark_sh1.svg'); | ||
bottom: 0; | bottom: 0; | ||
right: 0; | right: 0; | ||
| Строка 56: | Строка 57: | ||
.ts-Цитата p + .ts-oq { | .ts-Цитата p + .ts-oq { | ||
margin-top: -0.25em; | margin-top: -0.25em; | ||
} | |||
.ts-Цитата p ~ .ts-oq { | |||
margin-bottom: 0; | |||
} | } | ||
Текущая версия от 15:37, 27 июля 2025
.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]] */