MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus Pyrathor
Faern (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Faern (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 5: | Zeile 5: | ||
} | } | ||
/* CSS für Vorlage:Card */ | /* ================ Portable Infobox CSS =============== */ | ||
.portable-infobox { | |||
border-radius:3px; | |||
border-style:solid; | |||
border-width:1px; | |||
clear:right; | |||
float:right; | |||
margin:0 0 18px 18px; | |||
width:270px | |||
} | |||
.portable-infobox ol, | |||
.portable-infobox ul { | |||
list-style-position:outside; | |||
margin:0 0 0 15px; | |||
text-align:initial | |||
} | |||
.portable-infobox ol ol, | |||
.portable-infobox ol ul, | |||
.portable-infobox ul ol, | |||
.portable-infobox ul ul { | |||
margin-left:3px; | |||
margin-top:6px; | |||
padding-left:9px | |||
} | |||
.portable-infobox p, | |||
.portable-infobox section { | |||
margin-bottom:0 | |||
} | |||
.portable-infobox h2, | |||
.portable-infobox h3 { | |||
border-bottom:0; | |||
font-family:inherit; | |||
font-weight:700; | |||
margin:0 | |||
} | |||
.portable-infobox .pi-title { | |||
font-size:1.4em !important; | |||
line-height:1.25 !important; | |||
padding:6px 6px; | |||
} | |||
.portable-infobox .pi-header { | |||
font-size:1.2em; | |||
line-height:1.25; | |||
padding:9px | |||
} | |||
.portable-infobox .pi-data-label { | |||
font-size:1em; | |||
line-height:1.5 | |||
} | |||
.pi-item-spacing { | |||
padding-bottom:16px; | |||
padding-top:16px | |||
} | |||
.pi-border-color { | |||
border-color:var(--pi-border-color) | |||
} | |||
.pi-background { | |||
background-color:var(--pi-background) | |||
} | |||
.pi-secondary-background, .pi-title { | |||
background:var(--pi-secondary-background); | |||
color:var(--pi-secondary-background--label) | |||
} | |||
.pi-secondary-background+.pi-secondary-background { | |||
border-top:1px solid var(--pi-background) | |||
} | |||
.pi-secondary-background+*>.pi-data:first-child, | |||
.pi-secondary-background+.pi-data { | |||
border-top:0 | |||
} | |||
.portable-infobox .pi-secondary-background a { | |||
color:inherit | |||
} | |||
.pi-font { | |||
font-size:1em | |||
} | |||
.pi-secondary-font { | |||
font-size:14px; | |||
font-weight:700; | |||
line-height:1.25; | |||
margin-top:0 | |||
} | |||
.pi-caption, | |||
.pi-data, | |||
.pi-header, | |||
.pi-navigation { | |||
padding-left:9px; | |||
padding-right:9px | |||
} | |||
.pi-header, | |||
.pi-title { | |||
text-align:center | |||
} | |||
.pi-data { | |||
border-top-style:solid; | |||
border-top-width:1px; | |||
border-bottom-width:0; | |||
box-sizing:border-box; | |||
column-gap:9px; | |||
display:flex; | |||
flex-direction:row; | |||
overflow:hidden | |||
} | |||
.pi-image+.pi-data, | |||
.pi-image-collection+.pi-data, | |||
.pi-secondary-background+.pi-data, | |||
.portable-infobox>.pi-data:first-child { | |||
border-top:0 | |||
} | |||
.pi-layout-stacked .pi-data { | |||
display:block | |||
} | |||
.pi-data-label { | |||
flex-basis:90px; | |||
hyphens:auto; | |||
margin:0; | |||
overflow:hidden | |||
} | |||
.pi-data-value { | |||
hyphens:auto; | |||
line-height:1.5; | |||
overflow-wrap:break-word | |||
} | |||
.pi-data-value>* { | |||
margin:0 | |||
} | |||
.pi-data-value:not(:first-child) { | |||
flex-basis:180px | |||
} | |||
.pi-image { | |||
text-align:center | |||
} | |||
.pi-image img { | |||
height:auto; | |||
max-width:100%; | |||
vertical-align:middle | |||
} | |||
.pi-caption { | |||
color:var(--pi-caption-color); | |||
font-size:14px; | |||
font-style:italic; | |||
hyphens:auto; | |||
overflow-wrap:break-word; | |||
text-align:center | |||
} | |||
.pi-horizontal-group { | |||
border-collapse:collapse; | |||
table-layout:fixed; | |||
text-align:center; | |||
width:100% | |||
} | |||
.pi-horizontal-group .pi-header { | |||
display:table-caption; | |||
text-align:left | |||
} | |||
.pi-horizontal-group .pi-secondary-background+* .pi-horizontal-group-item { | |||
border-top:0 | |||
} | |||
.pi-horizontal-group-item.pi-data-label { | |||
border-top-style:solid; | |||
border-top-width:1px; | |||
padding:9px 9px 0 | |||
} | |||
.pi-horizontal-group-item.pi-data-value { | |||
padding:0 9px 9px | |||
} | |||
.pi-horizontal-group-item:not(:first-child) { | |||
border-left-style:solid; | |||
border-left-width:1px | |||
} | |||
.pi-smart-group { | |||
border-top-style:solid; | |||
border-top-width:1px; | |||
display:flex; | |||
flex-direction:column; | |||
text-align:center | |||
} | |||
.pi-smart-group .pi-smart-data-label { | |||
margin-bottom:0; | |||
padding-bottom:0 | |||
} | |||
.pi-smart-group .pi-smart-data-value, | |||
.pi-smart-group h3.pi-smart-data-label { | |||
box-sizing:border-box; | |||
flex-basis:auto; | |||
margin:3px 0; | |||
padding:6px 9px | |||
} | |||
.pi-smart-group .pi-smart-data-value:not(:first-child), | |||
.pi-smart-group h3.pi-smart-data-label:not(:first-child) { | |||
border-left-style:solid; | |||
border-left-width:1px | |||
} | |||
.pi-smart-group .pi-smart-data-value:first-child, | |||
.pi-smart-group h3.pi-smart-data-label:first-child { | |||
padding-left:9px | |||
} | |||
.pi-smart-group .pi-smart-data-value:last-child, | |||
.pi-smart-group h3.pi-smart-data-label:last-child { | |||
padding-right:9px | |||
} | |||
.pi-smart-group-body, | |||
.pi-smart-group-head { | |||
display:flex | |||
} | |||
.pi-smart-group-head+.pi-smart-group-body { | |||
border-top-style:solid; | |||
border-top-width:1px | |||
} | |||
.pi-secondary-background+.pi-smart-group { | |||
border-top:0 | |||
} | |||
.pi-collapse.pi-collapse-closed { | |||
border-bottom:none | |||
} | |||
.pi-collapse.pi-collapse-closed .pi-header:first-child:after { | |||
transform:rotate(135deg) | |||
} | |||
.pi-collapse.pi-collapse-closed .pi-horizontal-group tbody, | |||
.pi-collapse.pi-collapse-closed .pi-horizontal-group thead, | |||
.pi-collapse.pi-collapse-closed>:nth-child(n+2) { | |||
display:none | |||
} | |||
.pi-collapse .pi-header:first-child { | |||
cursor:pointer; | |||
padding-right:40px; | |||
position:relative; | |||
text-align:center | |||
} | |||
.pi-collapse .pi-header:first-child:after { | |||
border-color:currentcolor; | |||
border-style:solid; | |||
border-width:2px 2px 0 0; | |||
content:""; | |||
display:inline-block; | |||
display:block; | |||
height:8px; | |||
margin-top:-6px; | |||
position:relative; | |||
position:absolute; | |||
right:0; | |||
right:16px; | |||
top:-1px; | |||
top:50%; | |||
transform:rotate(-45deg); | |||
transition:transform .3s; | |||
vertical-align:middle; | |||
width:8px | |||
} | |||
.portable-infobox .pi-data-value ul { | |||
list-style-position:outside; | |||
margin-left:0px; | |||
padding:0 | |||
} | |||
.portable-infobox .pi-data-value > ul ul { | |||
margin-top:0; | |||
padding-left:5px | |||
} | |||
.portable-infobox .pi-data-value ul li { | |||
list-style:none; | |||
position:relative | |||
} | |||
.portable-infobox .pi-data-value ul li::before { | |||
content:'•'; | |||
position:absolute; | |||
left:-8px | |||
} | |||
/* =============== CSS für Vorlage:Card ================ */ | |||
.py-card { | .py-card { | ||
--py-card-image-color_r: 0; | --py-card-image-color_r: 0; | ||
Aktuelle Version vom 28. September 2026, 22:37 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
#footer-places {
display: none;
}
/* ================ Portable Infobox CSS =============== */
.portable-infobox {
border-radius:3px;
border-style:solid;
border-width:1px;
clear:right;
float:right;
margin:0 0 18px 18px;
width:270px
}
.portable-infobox ol,
.portable-infobox ul {
list-style-position:outside;
margin:0 0 0 15px;
text-align:initial
}
.portable-infobox ol ol,
.portable-infobox ol ul,
.portable-infobox ul ol,
.portable-infobox ul ul {
margin-left:3px;
margin-top:6px;
padding-left:9px
}
.portable-infobox p,
.portable-infobox section {
margin-bottom:0
}
.portable-infobox h2,
.portable-infobox h3 {
border-bottom:0;
font-family:inherit;
font-weight:700;
margin:0
}
.portable-infobox .pi-title {
font-size:1.4em !important;
line-height:1.25 !important;
padding:6px 6px;
}
.portable-infobox .pi-header {
font-size:1.2em;
line-height:1.25;
padding:9px
}
.portable-infobox .pi-data-label {
font-size:1em;
line-height:1.5
}
.pi-item-spacing {
padding-bottom:16px;
padding-top:16px
}
.pi-border-color {
border-color:var(--pi-border-color)
}
.pi-background {
background-color:var(--pi-background)
}
.pi-secondary-background, .pi-title {
background:var(--pi-secondary-background);
color:var(--pi-secondary-background--label)
}
.pi-secondary-background+.pi-secondary-background {
border-top:1px solid var(--pi-background)
}
.pi-secondary-background+*>.pi-data:first-child,
.pi-secondary-background+.pi-data {
border-top:0
}
.portable-infobox .pi-secondary-background a {
color:inherit
}
.pi-font {
font-size:1em
}
.pi-secondary-font {
font-size:14px;
font-weight:700;
line-height:1.25;
margin-top:0
}
.pi-caption,
.pi-data,
.pi-header,
.pi-navigation {
padding-left:9px;
padding-right:9px
}
.pi-header,
.pi-title {
text-align:center
}
.pi-data {
border-top-style:solid;
border-top-width:1px;
border-bottom-width:0;
box-sizing:border-box;
column-gap:9px;
display:flex;
flex-direction:row;
overflow:hidden
}
.pi-image+.pi-data,
.pi-image-collection+.pi-data,
.pi-secondary-background+.pi-data,
.portable-infobox>.pi-data:first-child {
border-top:0
}
.pi-layout-stacked .pi-data {
display:block
}
.pi-data-label {
flex-basis:90px;
hyphens:auto;
margin:0;
overflow:hidden
}
.pi-data-value {
hyphens:auto;
line-height:1.5;
overflow-wrap:break-word
}
.pi-data-value>* {
margin:0
}
.pi-data-value:not(:first-child) {
flex-basis:180px
}
.pi-image {
text-align:center
}
.pi-image img {
height:auto;
max-width:100%;
vertical-align:middle
}
.pi-caption {
color:var(--pi-caption-color);
font-size:14px;
font-style:italic;
hyphens:auto;
overflow-wrap:break-word;
text-align:center
}
.pi-horizontal-group {
border-collapse:collapse;
table-layout:fixed;
text-align:center;
width:100%
}
.pi-horizontal-group .pi-header {
display:table-caption;
text-align:left
}
.pi-horizontal-group .pi-secondary-background+* .pi-horizontal-group-item {
border-top:0
}
.pi-horizontal-group-item.pi-data-label {
border-top-style:solid;
border-top-width:1px;
padding:9px 9px 0
}
.pi-horizontal-group-item.pi-data-value {
padding:0 9px 9px
}
.pi-horizontal-group-item:not(:first-child) {
border-left-style:solid;
border-left-width:1px
}
.pi-smart-group {
border-top-style:solid;
border-top-width:1px;
display:flex;
flex-direction:column;
text-align:center
}
.pi-smart-group .pi-smart-data-label {
margin-bottom:0;
padding-bottom:0
}
.pi-smart-group .pi-smart-data-value,
.pi-smart-group h3.pi-smart-data-label {
box-sizing:border-box;
flex-basis:auto;
margin:3px 0;
padding:6px 9px
}
.pi-smart-group .pi-smart-data-value:not(:first-child),
.pi-smart-group h3.pi-smart-data-label:not(:first-child) {
border-left-style:solid;
border-left-width:1px
}
.pi-smart-group .pi-smart-data-value:first-child,
.pi-smart-group h3.pi-smart-data-label:first-child {
padding-left:9px
}
.pi-smart-group .pi-smart-data-value:last-child,
.pi-smart-group h3.pi-smart-data-label:last-child {
padding-right:9px
}
.pi-smart-group-body,
.pi-smart-group-head {
display:flex
}
.pi-smart-group-head+.pi-smart-group-body {
border-top-style:solid;
border-top-width:1px
}
.pi-secondary-background+.pi-smart-group {
border-top:0
}
.pi-collapse.pi-collapse-closed {
border-bottom:none
}
.pi-collapse.pi-collapse-closed .pi-header:first-child:after {
transform:rotate(135deg)
}
.pi-collapse.pi-collapse-closed .pi-horizontal-group tbody,
.pi-collapse.pi-collapse-closed .pi-horizontal-group thead,
.pi-collapse.pi-collapse-closed>:nth-child(n+2) {
display:none
}
.pi-collapse .pi-header:first-child {
cursor:pointer;
padding-right:40px;
position:relative;
text-align:center
}
.pi-collapse .pi-header:first-child:after {
border-color:currentcolor;
border-style:solid;
border-width:2px 2px 0 0;
content:"";
display:inline-block;
display:block;
height:8px;
margin-top:-6px;
position:relative;
position:absolute;
right:0;
right:16px;
top:-1px;
top:50%;
transform:rotate(-45deg);
transition:transform .3s;
vertical-align:middle;
width:8px
}
.portable-infobox .pi-data-value ul {
list-style-position:outside;
margin-left:0px;
padding:0
}
.portable-infobox .pi-data-value > ul ul {
margin-top:0;
padding-left:5px
}
.portable-infobox .pi-data-value ul li {
list-style:none;
position:relative
}
.portable-infobox .pi-data-value ul li::before {
content:'•';
position:absolute;
left:-8px
}
/* =============== CSS für Vorlage:Card ================ */
.py-card {
--py-card-image-color_r: 0;
--py-card-image-color_g: 0;
--py-card-image-color_b: 0;
--py-card-label-text-color: var(--dnd-header-text);
--py-card-title-text-color: var(--dnd-header-text);
--py-card-caption-text-color: var(--dnd-header-text);
position: relative;
background-color: var(--dnd-red-dark);
border: var(--dnd-gold);
border-radius: 5px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.py-card-header,
.py-card-footer {
padding: 0.5rem 1rem;
background: var(--dnd-paper-deep);
}
.py-card-footer {
font-size: small;
}
.template-flexbox-item .py-card {
height: 100%;
}
.py-card blockquote {
margin-left: 0;
margin-right: 0;
}
.py-card-image {
position: relative;
display: flex;
flex-grow: 1;
}
.py-card-afterImage {
position: relative;
margin-top: -0.5rem;
padding: 0 1rem 1rem 1rem;
background-color: rgb(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b)
);
}
.py-card-afterImage a {
color: #fff;
}
.py-card-afterImage,
.py-card-label,
.py-card-caption {
font-size: 0.8rem;
}
.py-card-label {
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
.py-card-label > a,
.py-card-label > span {
display: flex;
align-items: center;
height: 32px;
padding: 0 12px;
border-bottom-right-radius: 5px;
background: rgb(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b)
);
color: var(--py-card-label-text-color);
line-height: 1;
}
/*.py-card-label > a:hover {
background: var(--dnd-red-dark);
}
.py-card-label > a:active {
background: var(--dnd-red-dark);
}*/
.py-card-content {
padding: 1rem;
}
.py-card-label + .py-card-content {
margin-top: 1.5rem;
}
.py-card-title {
color: var(--py-card-title-text-color);
/*font-family: '';*/
font-size: 1.25rem;
font-weight: 600;
line-height: 1.25;
}
.py-card-caption {
margin-top: 0.25rem;
color: var(--py-card-caption-text-color);
line-height: 1.375;
}
.py-card-title + .py-card-body,
.py-card-caption + .py-card-body {
margin-top: 1rem;
}
.py-card-background,
.py-card-link {
position: absolute;
inset: 0;
}
.py-card-background {
pointer-events: none;
}
.py-card-background::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 50%;
background: linear-gradient(
to top,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
1
)
0%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.987
)
8.1%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.951
)
15.5%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.896
)
22.5%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.825
)
29%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.741
)
35.3%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.648
)
41.2%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.55
)
47.1%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.45
)
52.9%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.352
)
58.8%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.259
)
64.7%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.175
)
71%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.104
)
77.5%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.049
)
84.5%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0.013
)
91.9%,
rgba(
var(--py-card-image-color_r),
var(--py-card-image-color_g),
var(--py-card-image-color_b),
0
)
100%
);
}
.py-card-background--top img {
object-position: top;
}
.py-card-background--bottom img {
object-position: bottom;
}
.py-card-background img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 100ms ease;
transition-property: transform;
}
.py-card:hover .py-card-background img {
transform: scale(1.1);
}
.py-card-link {
opacity: 0;
}
.py-card-link > a {
display: block;
height: 100%;
}
.py-card-image .py-card-content {
position: relative;
}
.py-card-image .py-card-content {
margin-top: auto;
line-height: 1.375;
flex-grow: 1;
}
.py-card-afterImage {
color: var(--py-card-caption-text-color);
}
