Template:Callout/styles.css: Difference between revisions
From Space Station 14 Wiki
(updated for banner support) |
(added "stacked-notice" wrapper class) |
||
Line 55: | Line 55: | ||
height: 100%; | height: 100%; | ||
} | |||
/* callout wrapper → a special class for creating same-width notices for stacking → callout element */ | |||
.callout-wrapper.stacked-notice > .callout { | |||
/* set to fixed width */ | |||
width: 30rem; | |||
/* fit to the page on resoltuions, preventing overflow */ | |||
max-width: 100%; | |||
} | } |
Revision as of 09:21, 17 August 2024
/* wrapper around the callout that manages its alignment. */
.callout-wrapper {
display: flex;
/* set by template */
/*justify-content: XXX;*/
margin-top: .5em;
}
/* actual callout */
.callout {
box-sizing: border-box;
display: flex;
flex-direction: row;
gap: .5rem;
min-width: 20rem;
width: fit-content;
/* set by template */
/*min-width: XXX;*/
padding: .5rem;
background-color: var(--bg-color-light-x2);
border: 1px solid;
border-left: 10px solid;
/* set by template */
/*border-color: XXX;*/
}
/* added to callout when it's should be a centered, page-wide banner */
.callout-banner {
width: 80%;
}
/* wrapper for images */
.callout-images { }
/* contains header and content elements */
.callout-header-content-container {
display: flex;
flex-direction: column;
}
/* header element */
.callout-header {
font-weight: bold;
font-size: large;
}
/* wrapper around content element */
.callout-content-container {
display: flex;
align-items: center;
height: 100%;
}
/* callout wrapper → a special class for creating same-width notices for stacking → callout element */
.callout-wrapper.stacked-notice > .callout {
/* set to fixed width */
width: 30rem;
/* fit to the page on resoltuions, preventing overflow */
max-width: 100%;
}