Template:Item recipe/styles.css: Difference between revisions
From Space Station 14 Wiki
(new iteration) |
(new iteration styles) |
||
Line 4: | Line 4: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
width: fit-content; | |||
border: 1px solid var(--border-color-light); | border: 1px solid var(--border-color-light); | ||
Line 12: | Line 14: | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
gap: .2rem; | |||
padding: var(--padding); | |||
background-color: var(--bg-color-light-x3); | |||
} | } | ||
.item-recipe-header > .item-recipe-product { | .item-recipe-header > .item-recipe-product { | ||
} | |||
.item-recipe-header > .recipe-supplementary-text { | |||
color: gray; | |||
} | } | ||
Line 23: | Line 34: | ||
.item-recipe-body { | .item-recipe-body { | ||
display: flex; | |||
flex-direction: row; | |||
align-items: center; | |||
padding: var(--padding); | |||
background-color: var(--bg-color-light); | |||
border-top: 1px solid var(--border-color); | |||
border-bottom: 1px solid var(--border-color); | |||
} | } | ||
Line 36: | Line 55: | ||
bottom: 0; | bottom: 0; | ||
right: 0; | right: 0; | ||
color: gray; | |||
font-size: small; | |||
margin: .5rem; | margin: .5rem; | ||
} | |||
.item-recipe-body > .item-recipe-complete-time::before { | |||
--image-size: .7em; | |||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAAXNSR0IArs4c6QAAAGNJREFUCJl1jlsNwCAQBOeaauhDDaLQgRU8nAQUoOCSc0B/WkJpOl97mc3mhJtSSgNwd0IIwiweVLV9xJhVtS3uzh/LeBzn2SfNjNXMuty3TZjJOb8eSik1ABkLtVYAYowCcAGDkzDCq/YM/QAAAABJRU5ErkJggg=='); | |||
width: var(--image-size); | |||
height: var(--image-size); | |||
content: ''; | |||
background-repeat: no-repeat; | |||
background-size: contain; | |||
image-rendering: pixelated; | |||
display: inline-block; | |||
margin-right: 0.2em; | |||
} | } | ||
Line 46: | Line 82: | ||
padding: var(--padding); | padding: var(--padding); | ||
background-color: var(--bg-color-light-x3); | |||
} | } | ||
Revision as of 07:57, 2 September 2024
.item-recipe {
--padding: 0.4rem;
display: flex;
flex-direction: column;
width: fit-content;
border: 1px solid var(--border-color-light);
margin: .25rem 0;
}
.item-recipe-header {
display: flex;
flex-direction: row;
gap: .2rem;
padding: var(--padding);
background-color: var(--bg-color-light-x3);
}
.item-recipe-header > .item-recipe-product {
}
.item-recipe-header > .recipe-supplementary-text {
color: gray;
}
.item-recipe-header > .item-recipe-method {
}
.item-recipe-body {
display: flex;
flex-direction: row;
align-items: center;
padding: var(--padding);
background-color: var(--bg-color-light);
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
}
.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;
color: gray;
font-size: small;
margin: .5rem;
}
.item-recipe-body > .item-recipe-complete-time::before {
--image-size: .7em;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAAXNSR0IArs4c6QAAAGNJREFUCJl1jlsNwCAQBOeaauhDDaLQgRU8nAQUoOCSc0B/WkJpOl97mc3mhJtSSgNwd0IIwiweVLV9xJhVtS3uzh/LeBzn2SfNjNXMuty3TZjJOb8eSik1ABkLtVYAYowCcAGDkzDCq/YM/QAAAABJRU5ErkJggg==');
width: var(--image-size);
height: var(--image-size);
content: '';
background-repeat: no-repeat;
background-size: contain;
image-rendering: pixelated;
display: inline-block;
margin-right: 0.2em;
}
.item-recipe-notes {
display: flex;
flex-direction: column;
gap: .4em;
box-sizing: border-box;
padding: var(--padding);
background-color: var(--bg-color-light-x3);
}
.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;
}