Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(Messing up blockquotes to create a bookquote template) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
− | + | blockquote { | |
− | + | border-left: 4px solid #eaecf0; | |
− | + | padding: 8px 32px | |
− | border-left: | ||
− | |||
− | |||
− | padding: | ||
− | |||
} | } | ||
Line 19: | Line 14: | ||
.mw-body-content h6 { | .mw-body-content h6 { | ||
border-bottom: dotted 1px #ddd; | border-bottom: dotted 1px #ddd; | ||
+ | } | ||
+ | |||
+ | /* A style for a template for quotations from published works */ | ||
+ | .bookquote { | ||
+ | background: #fff0d9; | ||
+ | border-left: 5px solid #c8b191; | ||
+ | width: 60%; | ||
+ | margin: 0 auto; | ||
+ | padding: 0.5em 10px; | ||
+ | font-family: Georgia, Times New Roman, Times, serif; | ||
+ | quotes: "\201C""\201D""\2018""\2019"; | ||
+ | } | ||
+ | |||
+ | /* Prevent line breaks in silly places where desired (nowrap) | ||
+ | and links when we don't want them to (nowraplinks a) */ | ||
+ | .nowrap, | ||
+ | .nowraplinks a { | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | |||
+ | .nowrap pre { | ||
+ | white-space: pre; | ||
+ | } | ||
+ | |||
+ | /* Consistent size for <small>, <sub> and <sup> */ | ||
+ | small { | ||
+ | font-size: 85%; | ||
} | } |
Latest revision as of 02:16, 10 November 2021
/* CSS placed here will be applied to all skins */
blockquote {
border-left: 4px solid #eaecf0;
padding: 8px 32px
}
/* Décoration des titres de sous-chapitre. */
.mw-body-content h3 {
border-bottom: dotted 1px #aaa;
}
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
border-bottom: dotted 1px #ddd;
}
/* A style for a template for quotations from published works */
.bookquote {
background: #fff0d9;
border-left: 5px solid #c8b191;
width: 60%;
margin: 0 auto;
padding: 0.5em 10px;
font-family: Georgia, Times New Roman, Times, serif;
quotes: "\201C""\201D""\2018""\2019";
}
/* Prevent line breaks in silly places where desired (nowrap)
and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
white-space: nowrap;
}
.nowrap pre {
white-space: pre;
}
/* Consistent size for <small>, <sub> and <sup> */
small {
font-size: 85%;
}