MediaWiki:Recipe.css: Difference between revisions
Jump to navigation
Jump to search
Salty Nori (talk | contribs) (Created page with "→Containers for general layout: .ci-recipe-wrapper { display: flex; width: fit-content; position: relative; gap: 8px; } .ci-recipe-wrapper-second { display: flex; flex-direction: column; align-items: center; width: fit-content; position: relative; gap: 8px; } →List of ingredients: .ci-recipe-ingredient { border: 1px solid var(--brown-300); border-radius: 3px; padding: 5px; min-height: 100%; } /* Method of...") |
(No difference)
|
Revision as of 11:06, 30 January 2024
/* Containers for general layout */
.ci-recipe-wrapper {
display: flex;
width: fit-content;
position: relative;
gap: 8px;
}
.ci-recipe-wrapper-second {
display: flex;
flex-direction: column;
align-items: center;
width: fit-content;
position: relative;
gap: 8px;
}
/* List of ingredients */
.ci-recipe-ingredient {
border: 1px solid var(--brown-300);
border-radius: 3px;
padding: 5px;
min-height: 100%;
}
/* Method of crafting or cooking */
.ci-recipe-medium {
border: 1px solid var(--brown-300);
border-radius: 5px;
position: relative;
text-align: center;
font-weight: 500;
width: 100%;
padding: 8px;
max-width: 100px;
overflow-wrap: break-word;
hyphens: auto;
}
.ci-recipe-timed {
padding-bottom: 25px;
}
.ci-recipe-medium::after {
border: 1px solid var(--brown-300);
background-color: var(--brown-300);
border-radius: 3px;
width: 5px;
height: 5px;
content: "";
position: absolute;
top: 50%;
left: -7px;
}
.ci-recipe-medium::before {
border: 1px solid var(--brown-300);
background-color: var(--brown-300);
border-radius: 3px;
width: 5px;
height: 5px;
content: "";
position: absolute;
bottom: -7px;
right: 50%;
}
/* Final product */
.ci-recipe-yield {
border: 1px solid var(--brown-200);
border-radius: 6px;
padding: 8px;
position: relative;
width: 100%;
text-align: center;
}
.ci-recipe-yield-amount {
background: var(--gray-050);
width: fit-content;
border-radius: 6px;
padding: 0 5px;
position: absolute;
bottom: 0;
right: 0;
}