Jump to content

Template:Neighbor Stories/styles.css: Difference between revisions

From The Petit Planet Wiki
Adjusted margin on images and text
Adjusted width of hr
Line 25: Line 25:
.neighbor-story .poem p {
.neighbor-story .poem p {
     margin: -0.5em 0;
     margin: -0.5em 0;
}
.neighbor-story hr {
    width: 80%;
    margin: 0.2em auto;
}
}

Revision as of 18:23, 4 May 2026

.neighbor-story-image {
    border-radius: 20px;
    background: #131836; /* fallback */
    background: linear-gradient(to bottom, #131836 0%, #14364d 100%);
}

.neighbor-story-image img {
    background-color: transparent !important;
    color: inherit;
    filter: none;
}

figure[typeof~='mw:File'].mw-halign-left.neighbor-story-image {
    margin: 0 1em 1em 0;
}

figure[typeof~='mw:File'].mw-halign-right.neighbor-story-image {
    margin: 0 0 1em 1em;
}

figure[typeof~='mw:File'].mw-halign-center.neighbor-story-image {
    margin: 1.75em auto 0;
}

.neighbor-story .poem p {
    margin: -0.5em 0;
}

.neighbor-story hr {
    width: 80%;
    margin: 0.2em auto;
}