Template:Item recipe/styles.css: Difference between revisions

From Space Station 14 Wiki
(wip)
(wip)
Line 2: Line 2:
.item-recipe {
.item-recipe {
     display: flex;
     display: flex;
    flex-direction: row;
     gap: .2rem;
     gap: .2rem;
     align-items: center;
     align-items: center;
Line 9: Line 8:
     padding: .25rem;
     padding: .25rem;
     margin: .25rem 0;
     margin: .25rem 0;
}
.item-recipe.item-recipe-vertical {
flex-direction: column;
}
.item-recipe.item-recipe-horizontal {
flex-direction: row;
}
}


/* item recipe → supplementary text  */
/* item recipe → supplementary text  */
.recipe-supplementary-text {
.item-recipe .recipe-supplementary-text {
color: gray;
color: gray;
}
}


/* item recipe → materials  */
/* item recipe → materials  */
.item-recipe-materials {
.item-recipe .item-recipe-materials {
     display: flex;
     display: flex;
    flex-direction: column;
     gap: .2rem;
     gap: .2rem;
}
.item-recipe.item-recipe-vertical .item-recipe-materials {
flex-direction: row;
}
.item-recipe.item-recipe-horizontal .item-recipe-materials {
flex-direction: column;
}
}

Revision as of 07:25, 1 September 2024

/* item recipe */
.item-recipe {
    display: flex;
    gap: .2rem;
    align-items: center;
    border: 1px solid var(--border-color);
    width: fit-content;
    padding: .25rem;
    margin: .25rem 0;
}

.item-recipe.item-recipe-vertical {
	flex-direction: column;
}

.item-recipe.item-recipe-horizontal {
	flex-direction: row;
}

/* item recipe → supplementary text  */
.item-recipe .recipe-supplementary-text {
	color: gray;
}

/* item recipe → materials  */
.item-recipe .item-recipe-materials {
    display: flex;
    gap: .2rem;
}

.item-recipe.item-recipe-vertical .item-recipe-materials {
	flex-direction: row;
}

.item-recipe.item-recipe-horizontal .item-recipe-materials {
	flex-direction: column;
}