m (A o komentarzu to Pani nie słyszała? :P) |
mNie podano opisu zmian |
||
Linia 64: | Linia 64: | ||
.portable-infobox .pi-data-value:first-child { text-align: center } |
.portable-infobox .pi-data-value:first-child { text-align: center } |
||
+ | /* Klasy smoków */ |
||
+ | .portable-infobox .pi-klasy-smokow img { |
||
+ | filter: grayscale(100%); |
||
+ | background: #aaa; |
||
+ | border-radius: 50%; |
||
+ | transition: background .3s; |
||
+ | padding: 1px; |
||
+ | margin: 1px |
||
+ | } |
||
+ | .portable-infobox .pi-klasy-smokow img:hover { |
||
+ | background: #777; |
||
+ | cursor: pointer; |
||
+ | } |
||
+ | .portable-infobox .pi-klasy-smokow .selected img { |
||
+ | filter: none; |
||
+ | padding: 0px; |
||
+ | border: solid 1px #880000 |
||
+ | } |
||
/** Motyw fullwidth dla pseudoinfoboksów RoB **/ |
/** Motyw fullwidth dla pseudoinfoboksów RoB **/ |
||
.pi-theme-fullwidth { |
.pi-theme-fullwidth { |
Wersja z 18:43, 28 lut 2018
/*** Kod odpowiadający za style przenośnych infoboksów na Jak Wytersować Smoka Wiki ***/
/* Infoboks */
.portable-infobox {
width: 280px;
margin: 0 0 1em 1em;
background: rgba(255, 255, 255, .5);
border: 1px solid #fff;
box-shadow: inset 0 0 15px #fff;
font-size: 85%
}
/* Kod na przyszłość
.portable-infobox > .pi-item:first-child { border-radius: 10px 10px 0 0 }
.portable-infobox > .pi-item:last-child { border-radius: 0 0 10px 10px }
*/
.portable-infobox .pi-border-color { border-color: #ccc }
.portable-infobox .pi-item-spacing { padding: 3px }
/* Tytuł */
.portable-infobox .pi-title {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
background: #800;
color: #fff;
font-size: 16px;
font-weight: bold;
line-height: normal
}
.portable-infobox .pi-title br { content: "\A"; flex: 100% }
.portable-infobox .pi-title img { margin-right: 5px }
/* Grupy */
.portable-infobox .pi-group { border: 0 }
/* Nagłówek grupy */
.portable-infobox .pi-header {
background: #800;
color: #fff;
font-weight: bold;
line-height: initial;
text-align: center
}
/* Obrazy */
.portable-infobox .pi-image-thumbnail {
width: 100%;
height: auto
}
/* Podpis obrazu */
.portable-infobox .pi-caption { line-height: normal; text-align: center }
/* Galerie obrazów */
.portable-infobox .pi-image-collection-tabs { display: flex; flex-flow: row wrap }
.portable-infobox .pi-image-collection-tabs li { background: #900; border: 0; color: #fff; flex: 1; line-height: 1.5 }
.portable-infobox .pi-image-collection-tabs li.current { background: #800 }
.portable-infobox .pi-image-collection-tab-content { background: transparent }
/* Wartości */
.portable-infobox .pi-data { align-items: center }
.portable-infobox .pi-data-label { flex: 0 85px }
.portable-infobox .pi-data-value { flex: 1 }
.portable-infobox .pi-data-value:first-child { text-align: center }
/* Klasy smoków */
.portable-infobox .pi-klasy-smokow img {
filter: grayscale(100%);
background: #aaa;
border-radius: 50%;
transition: background .3s;
padding: 1px;
margin: 1px
}
.portable-infobox .pi-klasy-smokow img:hover {
background: #777;
cursor: pointer;
}
.portable-infobox .pi-klasy-smokow .selected img {
filter: none;
padding: 0px;
border: solid 1px #880000
}
/** Motyw fullwidth dla pseudoinfoboksów RoB **/
.pi-theme-fullwidth {
display: grid;
grid-template: repeat(4, auto)/1fr 1fr;
width: 100%;
clear: both;
float: none;
margin: 0
}
.pi-theme-fullwidth .pi-title,
.pi-theme-fullwidth .pi-group:nth-child(2),
.pi-theme-fullwidth .pi-group:nth-child(2) + :nth-child(3),
.pi-theme-fullwidth :nth-child(n+4) { grid-column: 1/-1 }
.pi-theme-fullwidth .pi-group:nth-child(3) { margin: auto 0; }
.pi-theme-fullwidth .pi-group:nth-child(3) .pi-data { padding: 0 }
.pi-theme-fullwidth .pi-image-collection { display: flex; flex-flow: column nowrap }
.pi-theme-fullwidth .pi-image-collection-tab-content { flex: 1 }
.pi-theme-fullwidth .pi-image {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%
}
.pi-theme-fullwidth .pi-data-label { background: #900; color: #fff; padding: 2px 5px; flex: 0 40% }