Template:Item recipe/styles.css: Difference between revisions
From Space Station 14 Wiki
(recipes list styles) |
(new iteration) |
||
Line 1: | Line 1: | ||
.item-recipe { | .item-recipe { | ||
--padding: 0.4rem; | --padding: 0.4rem; | ||
display: flex; | |||
flex-direction: column; | flex-direction: column; | ||
border: 1px solid var(--border-color-light); | border: 1px solid var(--border-color-light); | ||
margin: .25rem 0; | margin: .25rem 0; | ||
} | } | ||
.item-recipe-header { | |||
.item-recipe- | |||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
} | } | ||
.item-recipe-header > .item-recipe-product { | |||
.item-recipe- | |||
} | } | ||
.item-recipe-header > .item-recipe-method { | |||
} | } | ||
.item-recipe-body { | |||
} | } | ||
.item-recipe-body > .item-recipe-materials { | |||
.item-recipe-materials { | |||
display: flex; | display: flex; | ||
flex-direction: column; | |||
gap: .15em; | gap: .15em; | ||
} | } | ||
.item-recipe-body > .item-recipe-complete-time { | |||
.item-recipe.item-recipe- | position: absolute; | ||
bottom: 0; | |||
right: 0; | |||
margin: .5rem; | |||
} | } | ||
.item-recipe-notes { | .item-recipe-notes { | ||
display: flex; | display: flex; |
Revision as of 07:37, 2 September 2024
.item-recipe {
--padding: 0.4rem;
display: flex;
flex-direction: column;
border: 1px solid var(--border-color-light);
margin: .25rem 0;
}
.item-recipe-header {
display: flex;
flex-direction: row;
}
.item-recipe-header > .item-recipe-product {
}
.item-recipe-header > .item-recipe-method {
}
.item-recipe-body {
}
.item-recipe-body > .item-recipe-materials {
display: flex;
flex-direction: column;
gap: .15em;
}
.item-recipe-body > .item-recipe-complete-time {
position: absolute;
bottom: 0;
right: 0;
margin: .5rem;
}
.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-notes .item-recipe-note {
font-size: smaller;
}
/* list of recipes */
.item-recipes-list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
gap: 1rem;
justify-content: center;
}