Template:Blockquote/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* Make the attribution a block with uniform indent under the dash */ |
|||
/* Hanging indent for multi-line attribution */ |
|||
.templatequotecite .templatequote-cite { |
.templatequotecite .templatequote-cite { |
||
display: block; |
display: block; |
||
margin: 0; |
margin: 0; |
||
/* @noflip */ |
|||
padding-left: 2.3em; /* base indent for every line */ |
|||
padding-left: 2.3em; /* every line (including wraps) starts here */ |
|||
} |
} |
||
/* Keep |
/* Keep total visual indent ~2.3em once the container adds its own padding */ |
||
@media (min-width: 500px) { |
@media (min-width: 500px) { |
||
.templatequotecite { |
.templatequotecite { |
||
/* you already have this; shown |
/* you already have this; shown for clarity */ |
||
/* @noflip */ |
|||
padding-left: 1.6em; |
padding-left: 1.6em; |
||
} |
} |
||
.templatequotecite .templatequote-cite { |
.templatequotecite .templatequote-cite { |
||
/* 1.6em (container) + 0.7em (child) = 2.3em total |
/* 1.6em (container) + 0.7em (child) = 2.3em total */ |
||
/* @noflip */ |
|||
padding-left: .7em; |
padding-left: .7em; |
||
text-indent: -.7em; |
|||
} |
} |
||
} |
} |
||
Latest revision as of 00:02, 20 October 2025
/* Make the attribution a block with uniform indent under the dash */
.templatequotecite .templatequote-cite {
display: block;
margin: 0;
/* @noflip */
padding-left: 2.3em; /* every line (including wraps) starts here */
}
/* Keep total visual indent ~2.3em once the container adds its own padding */
@media (min-width: 500px) {
.templatequotecite {
/* you already have this; shown for clarity */
/* @noflip */
padding-left: 1.6em;
}
.templatequotecite .templatequote-cite {
/* 1.6em (container) + 0.7em (child) = 2.3em total */
/* @noflip */
padding-left: .7em;
}
}