MediaWiki:Instance-Page.css: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 59: | Line 59: | ||
font-size: 1.2em; | font-size: 1.2em; | ||
} | } | ||
.instance-page h4:first- | .instance-page h4:first-of-type { | ||
margin-top: 0; | margin-top: 0; | ||
} | } |
Revision as of 18:02, 28 May 2022
.instance-page .segment {
margin: 0.5rem 0;
}
.instance-page .segment-header {
font-size: 1em !important;
border: 1px solid #c1c1c1 !important;
color: white;
}
.instance-page .segment-contents {
border: 1px solid #c1c1c1;
border-top: none;
}
.instance-page .segment-contents .mw-collapsible-content,
.instance-page .segment-header {
box-sizing: border-box;
}
.instance-page .segment-contents .instance-image img {
max-width: 100%;
height: auto;
margin-bottom: 1rem;
border-radius: 4px;
}
.instance-page .section-side-column {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.instance-page .section-side-column-image {
grid-row: span 2;
margin: 0;
}
.instance-page .section-side-column .segment:first-of-type {
display: flex;
flex-direction: column;
place-content: end;
}
.instance-page .section-side-column .segment:first-of-type,
.instance-page .section-side-column .segment:last-of-type {
display: flex;
height: 100%;
flex-direction: column;
}
.instance-page .section-side-column .segment:first-of-type .segment-contents,
.instance-page .section-side-column .segment:last-of-type .segment-contents {
display: flex;
place-content: center;
place-items: center;
height: 100%;
}
.instance-page .section-side-column .segment:last-of-type .segment-contents {
height: calc(100% - 5rem);
}
.instance-page .fancy-text .segment-contents > .mw-collapsible-content {
font-family: "Heading";
font-size: 2rem;
text-align: center;
}
h1 .fancy-font {
font-size: 1.2em;
}
.instance-page h4:first-of-type {
margin-top: 0;
}