Vorlage:Box/styles.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
K (15 Versionen von wikivoyage:Vorlage:Box/styles.css importiert) |
||
(19 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 3: | Zeile 3: | ||
*/ | */ | ||
. | .skanwiki-box-wrapper { | ||
display: flow-root; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
border-radius: 5px; | border-radius: 5px; | ||
position: relative; | position: relative; | ||
Zeile 11: | Zeile 11: | ||
margin: 0.75em 0 0; | margin: 0.75em 0 0; | ||
} | } | ||
. | .skanwiki-box-first, .skanwiki-tabsWrapper + style + .skanwiki-box-wrapper, | ||
.skanwiki-tabsWrapper + link + .skanwiki-box-wrapper, .skanwiki-tabsWrapper + .skanwiki-box-wrapper { | |||
margin: 0; | margin: 0; | ||
clear: both; | clear: both; | ||
} | } | ||
.skin-minerva . | body.skin-minerva .skanwiki-box-wrapper { | ||
width: auto !important; | width: auto !important; | ||
} | } | ||
.qbDiv . | /* | ||
.qbDiv .skanwiki-box-wrapper, .qbRightDiv .skanwiki-box-wrapper { | |||
border: none; | border: none; | ||
margin: 0; | margin: 0; | ||
} | }*/ | ||
.skin-minerva . | body.skin-minerva .skanwiki-box-wrapper + ul, body.skin-minerva .skanwiki-box-wrapper + ol { | ||
margin-top: 0.75em; | margin-top: 0.75em; | ||
} | } | ||
. | .skanwiki-box-wrapper .emph { /* for main page */ | ||
font-size: 110%; | font-size: 110%; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* box position */ | /* box position */ | ||
. | .skanwiki-box-centered { | ||
clear: both; | clear: both; | ||
float: none; | float: none; | ||
margin: 1em auto; | margin: 1em auto; | ||
} | } | ||
. | .skanwiki-box-left { | ||
clear: left; | clear: left; | ||
float: left; | float: left; | ||
Zeile 55: | Zeile 45: | ||
background: #ffffff; | background: #ffffff; | ||
} | } | ||
. | .skanwiki-box-right { | ||
clear: right; | clear: right; | ||
float: right; | float: right; | ||
Zeile 62: | Zeile 52: | ||
} | } | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
. | .skanwiki-box-left, .skanwiki-box-right { | ||
clear: both; | clear: both; | ||
float: none; | float: none; | ||
Zeile 72: | Zeile 62: | ||
/* collapsible and editable boxes */ | /* collapsible and editable boxes */ | ||
. | .skanwiki-box-wrapper .skanwiki-box-edit-link, | ||
.skanwiki-box-wrapper > .mw-collapsible-toggle:first-child { | |||
display: block; | display: block; | ||
float: right; | float: right; | ||
Zeile 80: | Zeile 71: | ||
padding-top: 0.4em; | padding-top: 0.4em; | ||
} | } | ||
. | .skanwiki-box-wrapper.mw-collapsed { | ||
padding-bottom: 0; | padding-bottom: 0; | ||
} | } | ||
Zeile 86: | Zeile 77: | ||
/* box header */ | /* box header */ | ||
. | .skanwiki-box-header { | ||
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: 0px; | ||
border-top-right-radius: | border-top-right-radius: 0px; | ||
font-size: 1.25em; | font-size: 1.25em; | ||
} | } | ||
. | .skanwiki-box-wrapper .skanwiki-text-center { | ||
text-align: center; | text-align: center; | ||
} | } | ||
.skin-minerva . | body.skin-minerva .skanwiki-box-header .lazy-image-placeholder { | ||
display: inline; | display: inline; | ||
} | } | ||
.mw-collapsed . | .mw-collapsed .skanwiki-box-header { | ||
border-radius: 5px; | border-radius: 5px; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
@media print { | @media print { | ||
. | .skanwiki-box-wrapper { | ||
border: 0.25mm solid #6cc8f3; | border: 0.25mm solid #6cc8f3; | ||
} | } | ||
. | .skanwiki-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; | ||
} | } | ||
. | .skanwiki-box-edit-link, .skanwiki-box-wrapper .mw-collapsible-toggle { | ||
display: none; | display: none; | ||
} | } | ||
} | } | ||
/* box image */ | /* box image */ | ||
.skanwiki-box-image { | |||
. | |||
position: relative; /* IE quirks mode */ | position: relative; /* IE quirks mode */ | ||
background-color: #ffffff; | background-color: #ffffff; | ||
Zeile 141: | Zeile 119: | ||
/* box content */ | /* box content */ | ||
. | .skanwiki-box-wrapper > .skanwiki-box-content:first-child { | ||
margin- | margin-top: 0.3em; | ||
} | } | ||
. | .skanwiki-box-content > *:first-child { | ||
margin-top: 0; | margin-top: 0; | ||
padding-top: 0; | padding-top: 0; | ||
} | } | ||
.skanwiki-box-content > p:last-child, .skanwiki-box-content > ul:last-child, | |||
. | .skanwiki-box-content > ol:last-child, .skanwiki-box-content > div:last-child { | ||
margin-bottom: 0.3em; | |||
} | |||
.skanwiki-navigation-bar { | |||
text-align: center; | text-align: center; | ||
padding-bottom: 0; | padding-bottom: 0; | ||
} | } | ||
. | .skanwiki-navigation-bar .skanwiki-box-header { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
. | .skanwiki-navigation-bar .skanwiki-box-content { | ||
margin-top: 0.3em; | margin-top: 0.3em; | ||
padding: 0 0 0.3em; | padding: 0 0 0.3em; | ||
} | } |
Aktuelle Version vom 27. Januar 2023, 05:54 Uhr
/*
Styles for Box template
*/
.skanwiki-box-wrapper {
display: flow-root;
box-sizing: border-box;
border-radius: 5px;
position: relative;
padding: 0 0.5em 3px;
margin: 0.75em 0 0;
}
.skanwiki-box-first, .skanwiki-tabsWrapper + style + .skanwiki-box-wrapper,
.skanwiki-tabsWrapper + link + .skanwiki-box-wrapper, .skanwiki-tabsWrapper + .skanwiki-box-wrapper {
margin: 0;
clear: both;
}
body.skin-minerva .skanwiki-box-wrapper {
width: auto !important;
}
/*
.qbDiv .skanwiki-box-wrapper, .qbRightDiv .skanwiki-box-wrapper {
border: none;
margin: 0;
}*/
body.skin-minerva .skanwiki-box-wrapper + ul, body.skin-minerva .skanwiki-box-wrapper + ol {
margin-top: 0.75em;
}
.skanwiki-box-wrapper .emph { /* for main page */
font-size: 110%;
font-weight: bold;
}
/* box position */
.skanwiki-box-centered {
clear: both;
float: none;
margin: 1em auto;
}
.skanwiki-box-left {
clear: left;
float: left;
margin: 0 1em 1em 0;
background: #ffffff;
}
.skanwiki-box-right {
clear: right;
float: right;
margin: 0 0 1em 1em;
background: #ffffff;
}
@media (max-width: 720px) {
.skanwiki-box-left, .skanwiki-box-right {
clear: both;
float: none;
margin: 0 0 1em;
width: 100% !important;
}
}
/* collapsible and editable boxes */
.skanwiki-box-wrapper .skanwiki-box-edit-link,
.skanwiki-box-wrapper > .mw-collapsible-toggle:first-child {
display: block;
float: right;
font-size: 90%;
background: transparent;
margin: 0.5em 0 0.5em 0.5em;
padding-top: 0.4em;
}
.skanwiki-box-wrapper.mw-collapsed {
padding-bottom: 0;
}
/* box header */
.skanwiki-box-header {
margin: 0 -0.4em 0.4em;
padding: 0.3em 0.4em;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
font-size: 1.25em;
}
.skanwiki-box-wrapper .skanwiki-text-center {
text-align: center;
}
body.skin-minerva .skanwiki-box-header .lazy-image-placeholder {
display: inline;
}
.mw-collapsed .skanwiki-box-header {
border-radius: 5px;
margin-bottom: 0;
}
@media print {
.skanwiki-box-wrapper {
border: 0.25mm solid #6cc8f3;
}
.skanwiki-box-header {
font-size: 1em;
border-top: 0.25mm solid #c0c0c0;
border-bottom: 0.25mm solid #c0c0c0;
}
.skanwiki-box-edit-link, .skanwiki-box-wrapper .mw-collapsible-toggle {
display: none;
}
}
/* box image */
.skanwiki-box-image {
position: relative; /* IE quirks mode */
background-color: #ffffff;
margin: 0 0 0 -0.5em;
padding: 2px 2px 1px;
float: left;
border-top-left-radius: 5px;
}
/* box content */
.skanwiki-box-wrapper > .skanwiki-box-content:first-child {
margin-top: 0.3em;
}
.skanwiki-box-content > *:first-child {
margin-top: 0;
padding-top: 0;
}
.skanwiki-box-content > p:last-child, .skanwiki-box-content > ul:last-child,
.skanwiki-box-content > ol:last-child, .skanwiki-box-content > div:last-child {
margin-bottom: 0.3em;
}
.skanwiki-navigation-bar {
text-align: center;
padding-bottom: 0;
}
.skanwiki-navigation-bar .skanwiki-box-header {
margin-bottom: 0;
}
.skanwiki-navigation-bar .skanwiki-box-content {
margin-top: 0.3em;
padding: 0 0 0.3em;
}