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 { | ||
display: flex; | display: grid; | ||
gap: .2rem; | grid-template-columns: repeat(3, 1fr); | ||
align-items: center; | grid-template-rows: repeat(2, 1fr); | ||
/*display: flex;*/ | |||
/*gap: .2rem;*/ | |||
/*align-items: center;*/ | |||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color); | ||
width: fit-content; | width: fit-content; | ||
Line 10: | Line 14: | ||
} | } | ||
/* item recipe, vertical layout */ | |||
.item-recipe.item-recipe-vertical { | .item-recipe.item-recipe-vertical { | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
/* item recipe, horizontal layout */ | |||
.item-recipe.item-recipe-horizontal { | .item-recipe.item-recipe-horizontal { | ||
flex-direction: row; | flex-direction: row; | ||
} | } | ||
/* item recipe, materials only mode */ | |||
.item-recipe.materials-only { | .item-recipe.materials-only { | ||
border: none; | border: none; | ||
} | } | ||
/* item recipe → supplementary text */ | /* item recipe → product */ | ||
.item-recipe-product { | |||
grid-area: 1 / 1 / 2 / 2; | |||
} | |||
/* item recipe → method */ | |||
.item-recipe-method { | |||
grid-area: 1 / 2 / 2 / 3; | |||
} | |||
/* item recipe → method → supplementary text */ | |||
.item-recipe .recipe-supplementary-text { | .item-recipe .recipe-supplementary-text { | ||
color: gray; | color: gray; | ||
Line 29: | Line 46: | ||
/* item recipe → materials */ | /* item recipe → materials */ | ||
.item-recipe .item-recipe-materials { | .item-recipe .item-recipe-materials { | ||
grid-area: 1 / 3 / 2 / 4; | |||
display: flex; | display: flex; | ||
gap: .15em; | gap: .15em; | ||
} | } | ||
/* item recipe, vertical layout → 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.item-recipe-horizontal .item-recipe-materials { | .item-recipe.item-recipe-horizontal .item-recipe-materials { | ||
flex-direction: column; | flex-direction: column; | ||
} | |||
/* item recipe → notes */ | |||
.item-recipe .item-recipe-notes { | |||
grid-area: 2 / 1 / 3 / 4; | |||
} | } |
Revision as of 10:41, 1 September 2024
/* item recipe */
.item-recipe {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
/*display: flex;*/
/*gap: .2rem;*/
/*align-items: center;*/
border: 1px solid var(--border-color);
width: fit-content;
padding: .25rem;
margin: .25rem 0;
}
/* item recipe, vertical layout */
.item-recipe.item-recipe-vertical {
flex-direction: column;
}
/* item recipe, horizontal layout */
.item-recipe.item-recipe-horizontal {
flex-direction: row;
}
/* item recipe, materials only mode */
.item-recipe.materials-only {
border: none;
}
/* item recipe → product */
.item-recipe-product {
grid-area: 1 / 1 / 2 / 2;
}
/* item recipe → method */
.item-recipe-method {
grid-area: 1 / 2 / 2 / 3;
}
/* item recipe → method → supplementary text */
.item-recipe .recipe-supplementary-text {
color: gray;
}
/* item recipe → materials */
.item-recipe .item-recipe-materials {
grid-area: 1 / 3 / 2 / 4;
display: flex;
gap: .15em;
}
/* item recipe, vertical layout → materials */
.item-recipe.item-recipe-vertical .item-recipe-materials {
flex-direction: row;
}
/* item recipe, horizontal layout → materials */
.item-recipe.item-recipe-horizontal .item-recipe-materials {
flex-direction: column;
}
/* item recipe → notes */
.item-recipe .item-recipe-notes {
grid-area: 2 / 1 / 3 / 4;
}