Template:Item recipe/styles.css: Difference between revisions
From Space Station 14 Wiki
(wip) |
(layout changes) |
||
Line 1: | Line 1: | ||
/* item recipe */ | /* item recipe */ | ||
.item-recipe { | .item-recipe { | ||
display: | display: flex; | ||
flex-direction: column; | |||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color); | ||
padding: .25rem; | padding: .25rem; | ||
margin: .25rem 0; | margin: .25rem 0; | ||
Line 15: | Line 11: | ||
/* item recipe, vertical layout */ | /* item recipe, vertical layout */ | ||
.item-recipe.item-recipe-vertical { | .item-recipe.item-recipe-vertical { | ||
flex-direction: | flex-direction: row; | ||
} | } | ||
/* item recipe, horizontal layout */ | /* item recipe, horizontal layout */ | ||
.item-recipe.item-recipe-horizontal { | .item-recipe.item-recipe-horizontal { | ||
flex-direction: | flex-direction: column; | ||
} | } | ||
Line 28: | Line 24: | ||
} | } | ||
/* item recipe → product */ | /* item recipe → content */ | ||
.item-recipe-content { | |||
display: flex; | |||
flex-direction: row; | |||
} | |||
/* item recipe → content → product */ | |||
.item-recipe-product { | .item-recipe-product { | ||
} | } | ||
/* item recipe → method */ | /* item recipe → content → method */ | ||
.item-recipe-method { | .item-recipe-method { | ||
height: 85%; | height: 85%; | ||
display: flex; | display: flex; | ||
Line 45: | Line 44: | ||
} | } | ||
/* item recipe → method → supplementary text */ | /* item recipe → content → method → supplementary text */ | ||
.item-recipe .recipe-supplementary-text { | .item-recipe .recipe-supplementary-text { | ||
color: gray; | color: gray; | ||
} | } | ||
/* item recipe → materials */ | /* item recipe → content → materials */ | ||
.item-recipe .item-recipe-materials { | .item-recipe .item-recipe-materials { | ||
display: flex; | display: flex; | ||
gap: .15em; | gap: .15em; | ||
} | } | ||
/* item recipe, vertical layout → materials */ | /* item recipe, vertical layout → content → materials */ | ||
.item-recipe.item-recipe-vertical .item-recipe-materials { | .item-recipe.item-recipe-vertical .item-recipe-materials { | ||
flex-direction: row; | flex-direction: row; | ||
} | } | ||
/* item recipe, horizontal layout → materials */ | /* item recipe, horizontal layout → content → materials */ | ||
.item-recipe.item-recipe-horizontal .item-recipe-materials { | .item-recipe.item-recipe-horizontal .item-recipe-materials { | ||
flex-direction: column; | flex-direction: column; | ||
Line 70: | Line 67: | ||
/* item recipe → notes */ | /* item recipe → notes */ | ||
.item-recipe .item-recipe-notes { | .item-recipe .item-recipe-notes { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; |
Revision as of 02:57, 2 September 2024
/* item recipe */
.item-recipe {
display: flex;
flex-direction: column;
border: 1px solid var(--border-color);
padding: .25rem;
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;
}
/* item recipe → content → product */
.item-recipe-product {
}
/* item recipe → content → method */
.item-recipe-method {
height: 85%;
display: flex;
align-items: center;
gap: .2rem;
border-right: 2px solid hsla(240,7%,24%, .5);
padding-right: 0.3rem;
}
/* item recipe → content → method → supplementary text */
.item-recipe .recipe-supplementary-text {
color: gray;
}
/* 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;
/* negate margin */
margin: -.25rem;
padding: .4rem;
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;
}