MediaWiki:Recipe.css

From Coral Island Wiki
Revision as of 11:06, 30 January 2024 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 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;
}