Template:Colored box/style.css: Difference between revisions
From The Royal Court
m (1 revision imported) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin: 0.5em 0.5em 1em 0.5em; | margin: 0.5em 0.5em 1em 0.5em; | ||
background: #fff; | background: #fff; | ||
border: 1px solid #a2a9b1; | |||
} | } | ||
.mw-tpl-colorbox-title { | .mw-tpl-colorbox-title { | ||
color: #000000; | color: #000000; | ||
display: flex; | display: flex; | ||
gap: 0.5rem; | gap: 0.5rem; |
Latest revision as of 21:35, 4 March 2024
.mw-tpl-colorbox {
box-sizing: border-box;
margin: 0.5em 0.5em 1em 0.5em;
background: #fff;
border: 1px solid #a2a9b1;
}
.mw-tpl-colorbox-title {
color: #000000;
display: flex;
gap: 0.5rem;
line-height: 2.4rem;
}
.mw-tpl-colorbox-title--linked:hover {
background: #eaf3ff;
}
.mw-tpl-colorbox-title > *:first-child {
padding-left: 1rem;
}
.mw-tpl-colorbox-title > *:last-child {
padding-right: 1rem;
}
/* Let title-link take up whole heading area for easy target.
* Direct strong or link child is the title, as icon and view-link have their own element.
* we can't add class names to links in wikitext.
*/
.mw-tpl-colorbox-title > strong,
.mw-tpl-colorbox-title > a {
flex-grow: 1;
}
.mw-tpl-colorbox-title-icon {
opacity: 0.8;
}
.mw-tpl-colorbox-title-corner {
float: right;
font-size: 0.7em;
}
.mw-tpl-colorbox-content {
padding: 0.5rem 1rem;
}
.mw-tpl-colorbox-content::after {
content: "";
display: block;
clear: both;
}