Template:Item recipe/styles.css: Difference between revisions
From Space Station 14 Wiki
(wip) |
(wip) |
||
Line 1: | Line 1: | ||
/* item recipe */ | /* item recipe */ | ||
.item-recipe { | .item-recipe { | ||
--padding: 0.4rem; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
Line 34: | Line 35: | ||
flex-direction: row; | flex-direction: row; | ||
align-items: center; | align-items: center; | ||
width: 100%; | width: 100%; | ||
padding: | padding: var(--padding); | ||
} | } | ||
Line 83: | Line 83: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
padding: var(--padding); | |||
padding: | |||
background-color: var(--bg-color-light-x3); | background-color: var(--bg-color-light-x3); |
Revision as of 03:42, 2 September 2024
/* item recipe */
.item-recipe {
--padding: 0.4rem;
display: flex;
flex-direction: column;
box-sizing: border-box;
/* set in module */
/* min-width: */
width: fit-content;
border: 1px solid var(--border-color);
margin: .25rem 0;
}
/* item recipe, vertical layout */
.item-recipe.item-recipe-vertical {
flex-direction: row;
}
/* item recipe, horizontal layout */
.item-recipe.item-recipe-horizontal {
flex-direction: column;
}
/* item recipe, materials only mode */
.item-recipe.materials-only {
border: none;
}
/* item recipe → content */
.item-recipe-content {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
padding: var(--padding);
}
/* item recipe → content → text content */
.item-recipe-text-content {
}
/* item recipe → content → text content → product */
.item-recipe-product {
}
/* item recipe → content → text content → method */
.item-recipe-method {
white-space: nowrap;
}
/* item recipe → content → text content → method → supplementary text */
.item-recipe .recipe-supplementary-text {
color: gray;
white-space: nowrap;
}
/* item recipe → content → materials */
.item-recipe .item-recipe-materials {
display: flex;
gap: .15em;
}
/* item recipe, vertical layout → content → materials */
.item-recipe.item-recipe-vertical .item-recipe-materials {
flex-direction: row;
}
/* item recipe, horizontal layout → content → materials */
.item-recipe.item-recipe-horizontal .item-recipe-materials {
flex-direction: column;
}
/* item recipe → notes */
.item-recipe .item-recipe-notes {
display: flex;
flex-direction: column;
gap: .4em;
box-sizing: border-box;
padding: var(--padding);
background-color: var(--bg-color-light-x3);
border-top: 1px solid var(--border-color);
}
.item-recipe .item-recipe-notes .item-recipe-note {
font-size: smaller;
}