Jak Wytresować Smoka Wiki
Advertisement
Jak Wytresować Smoka Wiki

Uwaga: aby zobaczyć zmiany po opublikowaniu, może zajść potrzeba wyczyszczenia pamięci podręcznej przeglądarki.

  • Firefox / Safari: Przytrzymaj Shift podczas klikania Odśwież bieżącą stronę, lub naciśnij klawisze Ctrl+F5, lub Ctrl+R (⌘-R na komputerze Mac)
  • Google Chrome: Naciśnij Ctrl-Shift-R (⌘-Shift-R na komputerze Mac)
  • Internet Explorer / Edge: Przytrzymaj Ctrl, jednocześnie klikając Odśwież, lub naciśnij klawisze Ctrl+F5
  • Opera: Naciśnij klawisze Ctrl+F5.
/*** 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;
    border-radius: 10px;
    box-shadow: inset 0 0 15px #fff;
    font-size: 85%
}
.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 {
    max-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 }

/** Motyw fullwidth dla pseudoinfoboksów RoB **/
.pi-theme-fullwidth {
    display: grid;
    grid-template: repeat(4, auto)/1fr 1fr;
    width: 100%
}

.pi-theme-fullwidth .pi-title,
.pi-theme-fullwidth :not(:first-child):not(:nth-child(2)):not(:nth-child(3)) { grid-column: 1/-1 }

.pi-theme-fullwidth .pi-group:nth-child(3) { margin-bottom: 3px }
.pi-theme-fullwidth .pi-group:nth-child(3) .pi-data { padding: 0 }

.pi-theme-fullwidth .pi-image-thumbnail[data-image-name="Rob.png"] { width: 120px }
.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-collection .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% }
Advertisement