Vorlage:Box/styles.css: Unterschied zwischen den Versionen
Erscheinungsbild
K 15 Versionen von wikivoyage:Vorlage:Box/styles.css importiert |
simplified |
||
| Zeile 1: | Zeile 1: | ||
/* | /* | ||
Styles for Box template | Styles for Box template | ||
Version: 2026-01-09 | |||
*/ | */ | ||
. | .voy-box-wrapper { | ||
display: flow-root; | display: flow-root; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border: 1px solid var(--voy-border-base,#6cc8f3); | |||
border-radius: 5px; | border-radius: 5px; | ||
position: relative; | position: relative; | ||
padding: 0 0.5em 3px; | padding: 0 0.5em 3px; | ||
margin: 0.75em 0 0; | margin: 0.75em 0 0; | ||
color: var(--color-base,#202122); | |||
background-color: var(--background-color-base,#fff); | |||
} | } | ||
. | .voy-box-first, .voy-tabsWrapper + style + .voy-box-wrapper, | ||
. | .voy-tabsWrapper + link + .voy-box-wrapper, .voy-tabsWrapper + .voy-box-wrapper { | ||
margin: 0; | margin: 0; | ||
clear: both; | clear: both; | ||
} | } | ||
body.skin-minerva . | body.skin-minerva .voy-box-wrapper { | ||
width: auto !important; | width: auto !important; | ||
} | } | ||
.qbDiv .voy-box-wrapper, .qbRightDiv .voy-box-wrapper { | |||
.qbDiv . | |||
border: none; | border: none; | ||
margin: 0; | margin: 0; | ||
} | } | ||
body.skin-minerva . | body.skin-minerva .voy-box-wrapper + ul, body.skin-minerva .voy-box-wrapper + ol { | ||
margin-top: 0.75em; | margin-top: 0.75em; | ||
} | } | ||
. | .voy-box-wrapper .emph { /* for main page */ | ||
font-size: 110%; | font-size: 110%; | ||
font-weight: bold; | font-weight: bold; | ||
| Zeile 34: | Zeile 38: | ||
/* box position */ | /* box position */ | ||
. | .voy-box-centered { | ||
clear: both; | clear: both; | ||
float: none; | float: none; | ||
margin: 1em auto; | margin: 1em auto; | ||
} | } | ||
. | .voy-box-left { | ||
clear: left; | clear: left; | ||
float: left; | float: left; | ||
margin: 0 1em 1em 0; | margin: 0 1em 1em 0; | ||
} | } | ||
. | .voy-box-right { | ||
clear: right; | clear: right; | ||
float: right; | float: right; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
} | } | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
. | .voy-box-left, .voy-box-right { | ||
clear: both; | clear: both; | ||
float: none; | float: none; | ||
| Zeile 62: | Zeile 65: | ||
/* collapsible and editable boxes */ | /* collapsible and editable boxes */ | ||
. | .voy-box-wrapper .voy-box-edit-link, | ||
. | .voy-box-wrapper > .mw-collapsible-toggle:first-child { | ||
display: block; | display: block; | ||
float: right; | float: right; | ||
font-size: 90%; | font-size: 90%; | ||
margin: 0.5em 0 0.5em 0.5em; | margin: 0.5em 0 0.5em 0.5em; | ||
padding-top: 0.4em; | padding-top: 0.4em; | ||
} | } | ||
. | .voy-box-wrapper.mw-collapsed { | ||
padding-bottom: 0; | padding-bottom: 0; | ||
} | |||
/* border color */ | |||
.voy-box-var-1 { /* blau */ | |||
border: 1px solid var(--voy-border-base,#6cc8f3); | |||
} | |||
.voy-box-var-2 { /* grün */ | |||
border: 1px solid var(--voy-border-var2,#80f000); | |||
} | |||
.voy-box-var-3 { /* rot */ | |||
border: 1px solid var(--voy-border-var3,#f3706c); | |||
} | } | ||
/* box header */ | /* box header */ | ||
. | .voy-box-header { | ||
background-color: var(--voy-header-background-base,#f0f0f0); | |||
color: var(--voy-header-color-base,#004f80); | |||
margin: 0 -0.4em 0.4em; | margin: 0 -0.4em 0.4em; | ||
padding: 0.3em 0.4em; | padding: 0.3em 0.4em; | ||
border-top-left-radius: | border-top-left-radius: 5px; | ||
border-top-right-radius: | border-top-right-radius: 5px; | ||
font-size: 1.25em; | font-size: 1.25em; | ||
} | } | ||
. | .voy-box-wrapper .voy-text-center { | ||
text-align: center; | text-align: center; | ||
} | } | ||
body.skin-minerva . | body.skin-minerva .voy-box-header .lazy-image-placeholder { | ||
display: inline; | display: inline; | ||
} | } | ||
.mw-collapsed . | .mw-collapsed .voy-box-header { | ||
border-radius: 5px; | border-radius: 5px; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
.voy-box-var-1 .voy-box-header, .voy-box-var-1 .voy-box-header a { | |||
color: var(--voy-header-color-base,#004f80); | |||
} | |||
.voy-box-var-2 .voy-box-header, .voy-box-var-2 .voy-box-header a { | |||
color: var(--voy-header-color-var2,#00804f); | |||
} | |||
.voy-box-var-3 .voy-box-header, .voy-box-var-3 .voy-box-header a { | |||
color: var(--voy-header-color-var3,#800200); | |||
} | } | ||
@media print { | @media print { | ||
. | .voy-box-wrapper { | ||
border: 0.25mm solid #6cc8f3; | border: 0.25mm solid var(--voy-border-base,#6cc8f3); | ||
} | } | ||
. | .voy-box-header { | ||
font-size: 1em; | font-size: 1em; | ||
border-top: 0.25mm solid #c0c0c0; | border-top: 0.25mm solid #c0c0c0; | ||
border-bottom: 0.25mm solid #c0c0c0; | border-bottom: 0.25mm solid #c0c0c0; | ||
} | } | ||
. | .voy-box-edit-link, .voy-box-wrapper .mw-collapsible-toggle { | ||
display: none; | display: none; | ||
} | } | ||
} | } | ||
/* box image */ | /* box image */ | ||
. | |||
.voy-box-image { | |||
position: relative; /* IE quirks mode */ | position: relative; /* IE quirks mode */ | ||
margin: 0 0 0 -0.5em; | margin: 0 0 0 -0.5em; | ||
padding: 2px 2px 1px; | padding: 2px 2px 1px; | ||
| Zeile 119: | Zeile 145: | ||
/* box content */ | /* box content */ | ||
. | .voy-box-wrapper > .voy-box-content:first-child { | ||
margin-top: 0.3em; | margin-top: 0.3em; | ||
} | } | ||
. | .voy-box-content > *:first-child { | ||
margin-top: 0; | margin-top: 0; | ||
padding-top: 0; | padding-top: 0; | ||
} | } | ||
. | .voy-box-content > p:last-child, .voy-box-content > ul:last-child, | ||
. | .voy-box-content > ol:last-child, .voy-box-content > div:last-child { | ||
margin-bottom: 0.3em; | margin-bottom: 0.3em; | ||
} | } | ||
. | |||
.voy-navigation-bar { | |||
text-align: center; | text-align: center; | ||
padding-bottom: 0; | padding-bottom: 0; | ||
} | } | ||
. | .voy-navigation-bar .voy-box-header { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
. | .voy-navigation-bar .voy-box-content { | ||
margin-top: 0.3em; | margin-top: 0.3em; | ||
padding: 0 0 0.3em; | padding: 0 0 0.3em; | ||
} | |||
.voy-navigation-bar .voy-box-image img { | |||
background: #fff !important; /* for transparent images */ | |||
color: var(--color-base,#202122); | |||
} | } | ||
Version vom 9. Januar 2026, 17:28 Uhr
/*
Styles for Box template
Version: 2026-01-09
*/
.voy-box-wrapper {
display: flow-root;
box-sizing: border-box;
border: 1px solid var(--voy-border-base,#6cc8f3);
border-radius: 5px;
position: relative;
padding: 0 0.5em 3px;
margin: 0.75em 0 0;
color: var(--color-base,#202122);
background-color: var(--background-color-base,#fff);
}
.voy-box-first, .voy-tabsWrapper + style + .voy-box-wrapper,
.voy-tabsWrapper + link + .voy-box-wrapper, .voy-tabsWrapper + .voy-box-wrapper {
margin: 0;
clear: both;
}
body.skin-minerva .voy-box-wrapper {
width: auto !important;
}
.qbDiv .voy-box-wrapper, .qbRightDiv .voy-box-wrapper {
border: none;
margin: 0;
}
body.skin-minerva .voy-box-wrapper + ul, body.skin-minerva .voy-box-wrapper + ol {
margin-top: 0.75em;
}
.voy-box-wrapper .emph { /* for main page */
font-size: 110%;
font-weight: bold;
}
/* box position */
.voy-box-centered {
clear: both;
float: none;
margin: 1em auto;
}
.voy-box-left {
clear: left;
float: left;
margin: 0 1em 1em 0;
}
.voy-box-right {
clear: right;
float: right;
margin: 0 0 1em 1em;
}
@media (max-width: 720px) {
.voy-box-left, .voy-box-right {
clear: both;
float: none;
margin: 0 0 1em;
width: 100% !important;
}
}
/* collapsible and editable boxes */
.voy-box-wrapper .voy-box-edit-link,
.voy-box-wrapper > .mw-collapsible-toggle:first-child {
display: block;
float: right;
font-size: 90%;
margin: 0.5em 0 0.5em 0.5em;
padding-top: 0.4em;
}
.voy-box-wrapper.mw-collapsed {
padding-bottom: 0;
}
/* border color */
.voy-box-var-1 { /* blau */
border: 1px solid var(--voy-border-base,#6cc8f3);
}
.voy-box-var-2 { /* grün */
border: 1px solid var(--voy-border-var2,#80f000);
}
.voy-box-var-3 { /* rot */
border: 1px solid var(--voy-border-var3,#f3706c);
}
/* box header */
.voy-box-header {
background-color: var(--voy-header-background-base,#f0f0f0);
color: var(--voy-header-color-base,#004f80);
margin: 0 -0.4em 0.4em;
padding: 0.3em 0.4em;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
font-size: 1.25em;
}
.voy-box-wrapper .voy-text-center {
text-align: center;
}
body.skin-minerva .voy-box-header .lazy-image-placeholder {
display: inline;
}
.mw-collapsed .voy-box-header {
border-radius: 5px;
margin-bottom: 0;
}
.voy-box-var-1 .voy-box-header, .voy-box-var-1 .voy-box-header a {
color: var(--voy-header-color-base,#004f80);
}
.voy-box-var-2 .voy-box-header, .voy-box-var-2 .voy-box-header a {
color: var(--voy-header-color-var2,#00804f);
}
.voy-box-var-3 .voy-box-header, .voy-box-var-3 .voy-box-header a {
color: var(--voy-header-color-var3,#800200);
}
@media print {
.voy-box-wrapper {
border: 0.25mm solid var(--voy-border-base,#6cc8f3);
}
.voy-box-header {
font-size: 1em;
border-top: 0.25mm solid #c0c0c0;
border-bottom: 0.25mm solid #c0c0c0;
}
.voy-box-edit-link, .voy-box-wrapper .mw-collapsible-toggle {
display: none;
}
}
/* box image */
.voy-box-image {
position: relative; /* IE quirks mode */
margin: 0 0 0 -0.5em;
padding: 2px 2px 1px;
float: left;
border-top-left-radius: 5px;
}
/* box content */
.voy-box-wrapper > .voy-box-content:first-child {
margin-top: 0.3em;
}
.voy-box-content > *:first-child {
margin-top: 0;
padding-top: 0;
}
.voy-box-content > p:last-child, .voy-box-content > ul:last-child,
.voy-box-content > ol:last-child, .voy-box-content > div:last-child {
margin-bottom: 0.3em;
}
.voy-navigation-bar {
text-align: center;
padding-bottom: 0;
}
.voy-navigation-bar .voy-box-header {
margin-bottom: 0;
}
.voy-navigation-bar .voy-box-content {
margin-top: 0.3em;
padding: 0 0 0.3em;
}
.voy-navigation-bar .voy-box-image img {
background: #fff !important; /* for transparent images */
color: var(--color-base,#202122);
}