itty-bitty/docs/render/recipe.css

906 lines
16 KiB
CSS
Raw Permalink Normal View History

* {
2022-01-29 19:40:35 +00:00
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
body {
2022-04-29 02:49:14 +00:00
margin: 0 8vw;
2022-05-12 04:05:02 +00:00
background-color: var(--background-color);
color: var(--text-color);
2022-06-15 14:50:03 +00:00
--text-color:
rgba(0,0,0,0.87);
2022-08-07 17:40:33 +00:00
--strong-text-color:black;
2022-06-15 14:50:03 +00:00
--disabled-text-color:
rgba(16, 12, 12, 0.54);
--hover-background-color:
rgba(16, 12, 12, 0.07);
2022-07-31 20:05:20 +00:00
--image-placeholder-color:
var(--hover-background-color);
2022-05-12 04:05:02 +00:00
--background-color:white;
2022-08-07 17:40:33 +00:00
--accent-color:#D42A20;
2022-12-23 07:35:03 +00:00
--highlight-color:#FAC22B;
}
.thumbnail {
width: 100%;
2022-06-17 01:50:12 +00:00
padding-top: 61.8%;
2022-02-15 23:28:50 +00:00
max-height:1vh;
background-size: cover;
background-position: center;
2022-07-30 15:07:27 +00:00
margin-bottom: 1.3em;
2022-02-15 23:28:50 +00:00
box-sizing: border-box;
2022-08-07 18:02:52 +00:00
/* transition: opacity 200ms ease-out; */
/* opacity:0; */
2022-06-15 14:50:03 +00:00
/* margin: 0 -2em; */
}
2022-07-29 03:00:18 +00:00
.description {
white-space:pre-wrap;
}
2022-04-29 02:49:14 +00:00
.ingredients:hover .noun {
/* text-decoration:underline; */
}
2022-07-31 20:05:20 +00:00
@media screen {
.timer {
/* background-color:cyan; */
white-space: nowrap;
border-radius: 2px;
padding: 0 0.1em;
margin: 0 -0.1em;
/* text-decoration:underline; */
text-decoration-style: dotted;
box-sizing: border-box;
/* color: var(--background-color); */
2022-08-17 04:47:10 +00:00
/* border-bottom:1px solid transparent; */
2022-07-31 20:05:20 +00:00
border-bottom-color: currentColor;
/* background-color: var(--text-color); */
2022-08-17 04:47:10 +00:00
font-weight: bold;
2022-07-31 20:05:20 +00:00
}
.timer:hover,
.timer.active {
2022-08-07 17:50:16 +00:00
color: white;
background-color:#0E638E;
2022-07-31 20:05:20 +00:00
z-index:100;
/* border:1px solid currentColor; */
position:relative;
border-bottom-color: transparent;
}
.timer.active .label{
opacity:0.0;
}
.timer .countdown{
position:
absolute;
display:
none;
width: 100%;
text-align: center;
left: 0;
}
.timer.active .countdown {
display:inline-block;
}
2022-08-17 04:47:10 +00:00
.timer svg {
width: 1em;
vertical-align: sub;
margin-bottom: 1px;
}
2022-07-31 20:05:20 +00:00
}
@media print {
.timer {
font-weight:800;
}
2022-08-17 04:47:10 +00:00
.timer svg {
display:none;
}
2022-07-29 13:04:13 +00:00
}
img.publisher {
2022-09-05 19:03:15 +00:00
max-width: 8em;
max-height: 3em;
2022-07-30 15:07:27 +00:00
/* margin-top: -0.1em; */
2022-08-07 18:02:52 +00:00
transform:
scale(0.7);
2022-07-30 15:07:27 +00:00
/* float:
right; */
2022-08-07 18:02:52 +00:00
transform-origin: left;
}
.recipe {
2022-02-15 23:28:50 +00:00
max-width: 50em;
margin: auto;
2022-01-30 05:55:46 +00:00
line-height: 125%;
}
.columns {
display: flex;
2022-07-31 20:05:20 +00:00
gap: 3em;
margin-bottom: 4em;
align-content: center;
justify-content: center;
2022-08-07 18:02:52 +00:00
/* flex-direction: row-reverse; */
2022-09-19 04:23:37 +00:00
/* margin-top: 1em; */
2022-09-08 06:03:11 +00:00
/* height: auto; */
}
.headercolumns {
display: flex;
flex-direction: row-reverse;
2022-07-29 13:04:13 +00:00
}
header {
2022-11-13 23:56:30 +00:00
flex: 1 1 auto;
2022-09-19 04:23:37 +00:00
/* gap: 2em; */
/* margin-bottom: 1rem; */
2022-02-17 18:12:06 +00:00
/* padding-left: 18em; */
}
h1 {
2022-07-29 13:04:13 +00:00
margin-top: 0;
margin-bottom: 0;
2022-01-29 19:40:35 +00:00
line-height:125%;
font-weight:500;
2022-09-19 04:23:37 +00:00
font-size: 2em;
}
2022-02-15 23:28:50 +00:00
.noun.hovered {
2022-12-23 07:35:03 +00:00
background-color:var(--highlight-color);
2022-08-07 17:50:16 +00:00
padding:0px 2px 2px 2px;
margin:-0px -2px -2px -2px;
border-radius:2px;
2022-02-15 23:28:50 +00:00
}
.step.hovered,
.substep.hovered ~ *,
.ingredient.hovered {
background-color:#f1f1f1;
}
2022-04-29 02:49:14 +00:00
.ingredient.hovered {
2022-12-23 07:35:03 +00:00
background-color: var(--highlight-color);
2022-04-29 02:49:14 +00:00
}
.metadata {
display: flex;
flex-wrap: wrap;
2022-02-15 23:28:50 +00:00
gap: 0.5em 1em;
2022-07-29 13:04:13 +00:00
/* margin-bottom: 1em; */
2022-07-30 15:07:27 +00:00
text-transform: uppercase;
2022-09-19 04:23:37 +00:00
font-size: 0.88rem;
2022-07-30 15:07:27 +00:00
font-weight: 500;
line-height: 0.8em;
margin-top: 0.7em;
}
2022-02-15 23:28:50 +00:00
ul.step {
padding-inline-start: 0;
list-style-type:none;
2022-05-17 15:37:07 +00:00
padding: 0;margin: 0em;
}
2022-02-15 23:28:50 +00:00
2022-08-11 15:10:36 +00:00
ul.step:after {
content: "";
2022-09-05 18:41:33 +00:00
display: none;
2022-08-11 15:10:36 +00:00
width: 5em;
height: 0.5px;
background-color: currentColor;
opacity: 1;
2022-08-17 04:47:10 +00:00
border:
none;
margin: 1em 0 0.2em 0;
print-color-adjust: exact;
-webkit-print-color-adjust: exact;
/* margin-left: -19em; */
2022-08-11 15:10:36 +00:00
}
ul.step.header:after,
ul.step:last-child:after {
display:none;
}
2022-02-15 23:28:50 +00:00
.instructions:not(.numbered) .number {
display: none;
}
2022-05-17 15:37:07 +00:00
2022-09-05 18:41:33 +00:00
.instructions.numbered .step {
margin-bottom:1em;
}
span.bullet {
margin-left: -1.5rem;
2022-06-15 14:50:03 +00:00
float:
left;
2022-07-30 15:07:27 +00:00
/* border: 1.5px solid var(--text-color); */
font-weight: 600;
2022-02-15 23:28:50 +00:00
border-radius:10em;
width: 16px;
height: 16px;
text-align: center;
2022-07-30 15:07:27 +00:00
/* font-size: 10px; */
/* line-height: 16px; */
opacity: 1;
2022-06-09 05:53:45 +00:00
user-select: none;
2022-08-17 04:47:10 +00:00
color:
var(--accent-color)
/* background: black; */;
2022-09-05 18:41:33 +00:00
/* display: none; */
/* display: block; */
2022-06-09 05:53:45 +00:00
}
2022-09-05 18:41:33 +00:00
.instructions .step:not(:hover) span.bullet.substep {
opacity: 0.3;
color: var(--text-color);
}
2022-07-31 20:05:20 +00:00
@media screen {
2022-09-05 18:41:33 +00:00
.complete span.bullet, li:hover span.bullet {
2022-07-31 20:05:20 +00:00
color:transparent;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M18.9 36.9 6.5 24.5 9.9 21.1 18.9 30.1 38.05 10.95 41.45 14.35Z'/%3E%3C/svg%3E"); background-size:cover;
}
2022-12-23 07:35:03 +00:00
.complete span.number {
2022-07-31 20:05:20 +00:00
border-color:transparent;
2022-06-09 05:53:45 +00:00
2022-07-31 20:05:20 +00:00
}
.complete .noun {
color:var(--disabled-text-color);
}
.ingredient.complete,
li.complete {
text-decoration: line-through;
color:var(--disabled-text-color);
text-decoration: line-through;
/*noinspection CssOverwrittenProperties*/
text-decoration: rgba(0,0,0,0.75) solid 0.5px line-through; /* Ignored in CSS1/CSS2 UAs */
}
2022-06-09 05:53:45 +00:00
}
2022-05-17 15:37:07 +00:00
2022-02-15 23:28:50 +00:00
.number.big {
2022-07-30 15:07:27 +00:00
/* font-size:8px; */
2022-02-15 23:28:50 +00:00
}
li {
padding: 0.33em 0.5em;
2022-06-09 05:53:45 +00:00
margin-left: -0.5em;
}
.ingredient,
li {
border-radius: 2px;
}
.ingredient:hover,
2022-02-15 23:28:50 +00:00
li:hover {
2022-12-23 07:35:03 +00:00
background-color:var(--hover-background-color)
2022-06-09 05:53:45 +00:00
}
2022-02-15 23:28:50 +00:00
.spacer {
flex-grow: 1000;
}
.metadata img {
width:16px;
vertical-align: middle;
margin-top: -4px;
margin-right: 4px;
opacity:0.6;
}
/* .metadata div:after {
content: "•";
margin-left: 1em;
margin-right: 1em;
} */
/* .yield:before {
background-image: url("recipe/restaurant_black_24dp.svg");
}
.time:before,
.yield:before {
content:" ";
width: 16px;
/* height:16px; */
/* background-size: contain;
float:left;
margin-right:4px;
background-repeat: no-repeat;
background-position: center;
} */
.time:before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' fill='none' viewBox='0 0 18 22'%3E%3Cpath fill='%23000' d='M4.031 17.953C5.406 19.328 7.063 20.016 9 20.016c1.938 0 3.578-.688 4.922-2.063 1.375-1.375 2.062-3.031 2.062-4.969 0-1.937-.687-3.578-2.062-4.921C12.578 6.687 10.937 6 9 6c-1.938 0-3.594.688-4.969 2.063-1.343 1.343-2.015 2.984-2.015 4.921 0 1.938.671 3.594 2.015 4.97zm12-10.547c.532.688.985 1.578 1.36 2.672.406 1.063.609 2.031.609 2.906 0 2.47-.875 4.594-2.625 6.375-1.75 1.75-3.875 2.625-6.375 2.625s-4.625-.875-6.375-2.625C.875 17.58 0 15.453 0 12.984c0-2.468.875-4.578 2.625-6.328C4.375 4.875 6.5 3.984 9 3.984c.844 0 1.813.204 2.906.61C13.031 5 13.937 5.469 14.625 6l1.406-1.453c.5.406.969.875 1.407 1.406L16.03 7.406zm-8.015 6.61v-6h1.968v6H8.016zM12 .984V3H6V.984h6z'/%3E%3C/svg%3E%0A");
2022-08-17 04:47:10 +00:00
}
2022-01-30 05:55:46 +00:00
.time {
2022-02-15 23:28:50 +00:00
background-size:18px;
background-repeat:no-repeat;
/* text-transform: uppercase; */
2022-01-30 05:55:46 +00:00
/* margin-bottom: 1em; */
}
.ingredients {
2022-09-19 04:23:37 +00:00
/* font-weight: 600; */
font-size: 100%;
2022-07-31 20:05:20 +00:00
position: sticky;
2022-05-17 15:37:07 +00:00
/* top: 0px; */
2022-07-30 15:07:27 +00:00
/* padding-top: 1.5em; */
flex: 0 1 35%;
2022-07-29 13:04:13 +00:00
/* color: rgba(0,0,0,0.8); */
2022-07-31 20:05:20 +00:00
/* color:
rgb(0, 118, 173); */
2022-08-17 04:47:10 +00:00
max-width: 16em;
2022-06-15 14:50:03 +00:00
}
2022-07-29 14:43:49 +00:00
2022-02-15 23:28:50 +00:00
.noun {
2022-07-29 15:29:52 +00:00
font-weight: 700;
2022-08-07 17:40:33 +00:00
color: var(--strong-text-color);
2022-06-15 14:50:03 +00:00
}
2022-07-31 20:05:20 +00:00
2022-06-15 14:50:03 +00:00
li:hover .noun {
text-decoration: 1px dotted underline;
/* background-color: var(--hover-background-color); */
2022-06-09 05:53:45 +00:00
}
.instructions {
white-space: pre-wrap;
2022-01-30 05:55:46 +00:00
/* line-height: 125%; */
/* font-size: 100%; */
2022-08-17 04:47:10 +00:00
flex: 1 1 65%;
2022-06-09 05:53:45 +00:00
/* margin-top: -0.7em; */
2022-05-17 15:37:07 +00:00
}
2022-08-11 15:41:45 +00:00
.instructions h3 {
font-weight: 500;
margin-top: 1em;
margin-bottom: 0.5em;
}
2022-05-17 15:37:07 +00:00
.instructions.numbered li {
2022-09-05 18:41:33 +00:00
padding-left: 2rem;
2022-09-19 04:23:37 +00:00
margin-left: -0.5rem;
}
2022-01-30 05:55:46 +00:00
.substep {
margin-bottom: 1em;
/* display: inline; */
}
.ingredient {
2022-09-05 18:41:33 +00:00
/* padding: .4em 0.4em; */
/* margin: 0 -.4em 1em -.4em; */
line-height: 120%;
2022-06-09 05:53:45 +00:00
/* opacity: 0.75; */
cursor: pointer;
2022-09-05 18:41:33 +00:00
margin-bottom: 0.2em;
2022-08-07 17:40:33 +00:00
}
.hanging .ingredient {
2022-09-05 18:41:33 +00:00
/* margin-left: -3rem; */
/* padding-left: 3rem; */
2022-09-19 04:23:37 +00:00
/* padding: 0.2em; */
/* padding-left: 2rem; */
display: table-row;
2022-01-29 19:40:35 +00:00
}
.ingredients .yield {
2022-01-30 05:55:46 +00:00
margin-bottom: 1.5em;
2022-01-29 19:40:35 +00:00
font-weight:bold;
text-transform: uppercase;
margin-left:2em;
}
2022-08-07 17:40:33 +00:00
.ingredients.hanging .quantity {
2022-09-19 04:23:37 +00:00
/* height: 2em; */
2022-09-05 18:41:33 +00:00
/* float:
left; */
2022-09-19 04:23:37 +00:00
/* margin-left: -2.1rem; */
/* max-width: 3rem; */
text-align: right;
2022-08-17 04:47:10 +00:00
color: var(--accent-color);
2022-09-19 04:23:37 +00:00
/* min-width: 2rem; */
2022-09-05 18:41:33 +00:00
white-space: nowrap;
2022-09-19 04:23:37 +00:00
width: 1em;
}
.ingredient:hover {
opacity: 1.0;
background-color: rgba(128, 128, 128, 0.1)
}
.step {
2022-02-15 23:28:50 +00:00
max-width: 80em;
2022-07-31 20:05:20 +00:00
cursor: default;
2022-01-30 05:55:46 +00:00
/* border:1px solid red; */
margin-bottom: 1em;
}
2022-01-30 05:55:46 +00:00
.instructions hr {
2022-06-15 14:50:03 +00:00
width: 5em;
height: 0.5px;
background-color: currentColor;
2022-06-15 14:50:03 +00:00
opacity: 1;
border:
none;
2022-07-29 14:47:11 +00:00
margin: 1em 0 0.2em 0 ;
}
2022-06-09 05:53:45 +00:00
2022-01-29 19:40:35 +00:00
hr {
/* width: 100px;
float: left;
height: 0.5px;
background-color: currentColor;
opacity: 0.54; */
}
2022-06-15 14:50:03 +00:00
.actions {
display: flex;
gap: 0.5em 1em;
line-height:24px;
2022-07-29 13:04:13 +00:00
/* margin-left: -4px; */
2022-07-30 15:07:27 +00:00
/* margin: 10px 0; */
order: -1;
/* margin-bottom: 1em; */
justify-content: flex-end;
margin-left: auto;
2022-06-15 14:50:03 +00:00
}
2022-08-07 17:40:33 +00:00
.action {
justify-content: center;
border-radius:50%;
2022-06-15 14:50:03 +00:00
cursor: pointer;
2022-07-29 13:04:13 +00:00
width: 44px;
height: 44px;
2022-08-07 17:40:33 +00:00
color: var(--accent-color);
2022-06-15 14:50:03 +00:00
/* display: flex;
align-items: center;
justify-content: center; */
2022-07-29 13:04:13 +00:00
/* text-align: center; */
/* line-height: 1.5em; */
2022-07-30 15:07:27 +00:00
/* background-color:
var(--hover-background-color); */
2022-07-29 13:04:13 +00:00
display: flex;
align-items: center;
}
2022-08-07 17:40:33 +00:00
.action:hover {
2022-06-15 14:50:03 +00:00
background-color:var(--hover-background-color);
2022-08-07 17:40:33 +00:00
color:var(--strong-text-color)
2022-06-15 14:50:03 +00:00
}
2022-08-07 17:40:33 +00:00
.action:hover:not(:active) .icon {
2022-01-29 19:40:35 +00:00
opacity:1.0;
2022-06-15 14:50:03 +00:00
}
2022-08-07 17:40:33 +00:00
.action .icon {
2022-06-15 14:50:03 +00:00
margin-right: 0;
2022-08-07 17:40:33 +00:00
/* opacity: 0.5; */
width: 24px;
height: 24px;
}
2022-08-07 18:02:52 +00:00
.instructions hr:nth-child(2) {
display:none;
}
2022-06-09 05:53:45 +00:00
2022-08-07 18:02:52 +00:00
@media screen and (max-width: 520px) {
2022-06-09 05:53:45 +00:00
#thumbnail-container {
margin: 0 -8vw;
2022-06-29 15:33:49 +00:00
background-color: var(--image-placeholder-color);
2022-06-09 05:53:45 +00:00
}
#thumbnail {
padding-top: 56.25%;
}
/* some CSS here */
.columns {
flex-direction: column;
2022-06-09 05:53:45 +00:00
gap:0;
}
.ingredient,
.instructions,
header {
2022-08-07 17:40:33 +00:00
/* padding: 0 .4em; */
2022-09-19 04:23:37 +00:00
padding-top: 0.5em;
}
2022-07-29 14:43:49 +00:00
2022-09-19 04:23:37 +00:00
caption {
padding-bottom:0.5em;
border-bottom:1px solid currentColor;
}
2022-07-29 14:43:49 +00:00
.ingredients {
2022-09-19 04:23:37 +00:00
/* border-top:0.5px solid currentColor; */
/* padding-top:1em; */
2022-07-29 14:43:49 +00:00
padding-bottom:1em;
margin-bottom:1em;
2022-09-19 04:23:37 +00:00
max-width: unset;
2022-07-29 14:43:49 +00:00
}
.instructions hr:first-child {
display:none;
}
2022-08-07 17:40:33 +00:00
.hanging .ingredient {
margin: 0;
2022-08-07 17:40:33 +00:00
/* margin-left: 3rem; */
/* margin-bottom:0.67em; */
2022-01-29 19:40:35 +00:00
}
2022-08-07 17:40:33 +00:00
2022-01-29 19:40:35 +00:00
.ingredients .yield {
margin-left:3em;
}
2022-07-30 15:07:27 +00:00
2022-08-07 17:40:33 +00:00
2022-07-29 14:47:11 +00:00
.instructions hr:first-child {
display:none;
}
2022-07-30 15:07:27 +00:00
.headerflex {
flex-direction:column;
}
}
2022-05-12 04:05:02 +00:00
.metadata .icon {
2022-08-07 17:40:33 +00:00
/* font-size: 15px; */
2022-07-29 13:04:13 +00:00
vertical-align: middle;
margin-top: -3px;
margin-right: 4px;
opacity: .6;
2022-08-07 17:40:33 +00:00
/* color:
transparent; */
2022-07-29 13:04:13 +00:00
user-select: none;
/* float: left; */
display: inline-block;
2022-08-07 17:40:33 +00:00
/* -webkit-print-color-adjust: exact; */
}
2022-06-15 14:50:03 +00:00
2022-07-30 15:07:27 +00:00
.instructions.numbered hr {/* margin: 0.7em -1px; *//* height: 1.5px; *//* opacity: 0.2; *//* width: auto; */}
2022-06-15 14:50:03 +00:00
.instructions.numbered {/* margin-top: -1.6em; */}
img.qr {
2022-08-17 04:47:10 +00:00
/* margin-top:2em; */
2022-09-08 06:03:11 +00:00
/* position: absolute; */
2022-09-05 19:03:15 +00:00
/* bottom:0; */
/* left: 0; */
2022-09-08 06:03:11 +00:00
/* max-width: 100%; */
/* height: auto; */
2022-09-05 19:03:15 +00:00
/* background-color: var(--background-color); */
/* display: table-caption; */
2022-09-08 06:03:11 +00:00
width: 5cm;
height: 5cm;
margin-left: 1em;
page-break-before: always;
2022-06-15 14:50:03 +00:00
}
2022-06-17 01:50:12 +00:00
@media screen and (max-width: 1199px) {
#thumbnail {
filter:none !important;
transform: none !important;
}
}
2022-08-07 17:40:33 +00:00
.recipe-content {
max-width:50em;
padding: 1em 0;
2022-08-17 04:47:10 +00:00
/* padding-left: 2em; */
2022-08-07 17:40:33 +00:00
}
2022-06-17 01:50:12 +00:00
@media screen and (min-width: 1200px) {
2022-06-15 14:50:03 +00:00
body {
width:auto;
margin:0;
}
.recipe {
flex-direction: row;
display: flex;
max-width: unset;
2022-07-30 15:07:27 +00:00
justify-content: center;
2022-06-15 14:50:03 +00:00
}
2022-06-17 01:50:12 +00:00
#thumbnail-container {
2022-12-31 17:23:42 +00:00
width: calc(100% + 20px);
height: calc(100vh + 20px);
top:-10px;
left:-10px;
2022-07-30 15:07:27 +00:00
position: fixed;
top: 0;
overflow:
hidden;
z-index: -1;
2022-06-17 01:50:12 +00:00
}
2022-05-17 15:37:07 +00:00
2022-12-31 17:23:42 +00:00
.noblur #thumbnail {
filter:none !important;
}
2022-06-15 14:50:03 +00:00
.thumbnail {
2022-12-31 17:23:42 +00:00
max-height: calc(100vh + 20px);
height: calc(100vh + 20px);
2022-06-15 14:50:03 +00:00
}
2022-06-21 14:40:32 +00:00
.recipe-content {
2022-06-15 14:50:03 +00:00
max-width:50em;
2022-07-30 15:07:27 +00:00
padding: 2em 4em;
background-color: var(--background-color);
2022-12-31 17:23:42 +00:00
margin-top: 15vh;
margin-bottom: 95vh;
2022-06-15 14:50:03 +00:00
}
2022-07-29 13:04:13 +00:00
}
.icon.print {
background-position: 0 0;
width: 24px;
height: 24px;
}
.icon.share {
2022-08-07 17:40:33 +00:00
/* background-position: 0 -24px; */
2022-07-29 13:04:13 +00:00
width: 24px;
height: 24px;
}
.icon.iosshare {
background-position: -24px 0;
width: 24px;
height: 24px;
}
.icon.checklist {
background-position: -24px -24px;
width: 24px;
height: 24px;
}
.icon.more {
background-position: -48px 0;
width: 24px;
height: 24px;
}
.icon.public {
2022-08-07 17:40:33 +00:00
/* background-position: -48px -24px; */
/* width: 24px; */
/* height: 24px; */
/* border: 1px solid black; */
2022-07-29 13:04:13 +00:00
}
.icon.servings {
background-position: -72px 0;
width: 16px;
height: 16px;
}
2022-07-31 20:05:20 +00:00
.icon.time {
2022-07-29 13:04:13 +00:00
background-position: -72px -16px;
width: 16px;
height: 16px;
}
.icon.info {
background-position: -72px -32px;
width: 16px;
height: 16px;
}
.icon.rating {
background-position: -88px 0;
width: 16px;
height: 16px;
}
@media (prefers-color-scheme: dark) {
body {
--text-color:white;
2022-08-07 17:40:33 +00:00
--strong-text-color:white;
2022-07-29 13:04:13 +00:00
--hover-background-color:rgba(255,255,255, 0.14);
--background-color:#222;
--disabled-text-color:
rgba(255,255,255, 0.54);
2022-12-23 07:35:03 +00:00
--accent-color:rgb(255, 159, 159);
--highlight-color:#eaa000b6;
}
.complete span.bullet, li:hover span.bullet {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' height='48' width='48'%3E%3Cpath d='M18.9 36.9 6.5 24.5 9.9 21.1 18.9 30.1 38.05 10.95 41.45 14.35Z'/%3E%3C/svg%3E"); background-size:cover;
2022-07-29 13:04:13 +00:00
}
}
.headerflex {
display: flex;
clear: both;
flex-wrap: wrap;
2022-07-30 15:07:27 +00:00
flex-direction: row-reverse;
2022-07-29 13:04:13 +00:00
justify-content: space-between;
margin-bottom: 1em;
2022-07-30 15:07:27 +00:00
}
hr:first-child {
/* margin-top: -11em; */
/* float: left; */
}
span.number:after {
2022-08-07 17:40:33 +00:00
/* content: "."; */
2022-07-30 15:07:27 +00:00
}
.ingredient .noun {
font-weight: 800;
}
.headerleft {
/* flex: 0 1 100%; */
margin-right: auto;
}
section.ingredients caption {
content: "Ingredients";
2022-09-05 18:41:33 +00:00
margin-bottom: calc(1.3rem - 1em);
2022-07-30 15:07:27 +00:00
}
2022-09-19 04:23:37 +00:00
section.ingredients.hanging caption {
display: table-caption;
}
2022-07-30 15:07:27 +00:00
2022-08-07 17:40:33 +00:00
.hanging .ingredient .quantity:after {
2022-07-30 15:07:27 +00:00
content: "\00a0\00a0";
}
.instructions caption {
content: "Steps";
/* padding-right: 24px; */
2022-08-07 18:02:52 +00:00
margin-bottom: 1.3rem;
2022-07-30 15:07:27 +00:00
}
2022-09-05 18:41:33 +00:00
a.publisherlink,
.ingredients caption,
.instructions caption {
2022-07-30 15:07:27 +00:00
font-weight: 600;
2022-09-19 04:23:37 +00:00
font-size: 0.88rem;
2022-07-30 15:07:27 +00:00
text-transform: uppercase;
2022-09-19 04:23:37 +00:00
/* letter-spacing: 0.01rem; */
2022-07-30 15:07:27 +00:00
user-select: none;
2022-08-07 18:02:52 +00:00
color: var(--accent-color);
2022-07-30 15:07:27 +00:00
}
2022-09-05 18:41:33 +00:00
.ingredients caption,
.instructions caption {
text-align: left;
display: block;
margin-bottom: 1em;
}
2022-07-30 15:07:27 +00:00
.listtoggle {
/* float: right; */
display: inline-block;
/* vertical-align: bottom; */
/* margin-top: -7px; */
height: 16px;
vertical-align: middle;
margin-left: 0.5rem;
}
path {
fill: currentColor;
}
a.publisherlink {
/* order: -2; */
/* width: 100%; */
float: left;
2022-09-05 18:41:33 +00:00
text-decoration: none;
color: var(--disabled-text-color);
2022-07-31 20:05:20 +00:00
}
.headerleft h1 {
max-width: 16em;
}
span.timer.active.expired {
background-color: rgb(221, 40, 0);
2022-08-17 04:47:10 +00:00
}
2022-09-19 04:23:37 +00:00
/* Watches */
@media screen and (max-width: 220px) {
.watch-hide {
display: none !important;
}
body {
margin: 0 0vw 0 6vw;
}
html {
font-size:18px;
}
/* .quantity, span.bullet {
font-size:150%;
} */
}
html.watch .watch-hide {
display: none !important;
}
2022-08-17 04:47:10 +00:00
@media print {
body {
font-size: 14px;
min-height:100vh;
margin: 0;
padding: 0;
2022-09-08 06:03:11 +00:00
height: 100%;
2022-08-17 04:47:10 +00:00
}
.print-hide {
display: none !important;
}
.recipe {
margin:0;
2022-09-08 06:03:11 +00:00
max-width:
unset;
min-height: 100vh;
2022-08-17 04:47:10 +00:00
}
.recipe-content {
max-width:
unset;
2022-09-08 06:03:11 +00:00
/* padding-left: 2em; */
/* min-height: 100vh; */
height: 100%;
2022-08-17 04:47:10 +00:00
}
@page {
size: auto; /* auto is the initial value */
/* margin: 1cm; */
}
a[href]:after { content: none !important; }
img[src]:after { content: none !important; }
}
@media not print {
body {
color:var(--text-color);
}
.print-show {
display:none;
}
}
2022-09-05 18:41:33 +00:00
.ingredients {
}
.ingredients {
width: auto;
/* background-color: #eee; */
/* border: 1px solid #666666; */
border-spacing: 5px; /* cellspacing:poor IE support for this */
/* border-collapse: separate; */
border-spacing: 0 1em;
height: auto;
margin-bottom: auto;
}
2022-09-19 04:23:37 +00:00
.ingredients.hanging {
display: table;
}
2022-09-05 18:41:33 +00:00
.ingredient {
width: auto;
clear: both;
}
2022-09-19 04:23:37 +00:00
.hanging .ingredient {
}
.hanging .ingredient > * {
display: table-cell;
width: 99%;
}
2022-09-05 18:41:33 +00:00
.ingredient > * {
/* float: left; */ /* fix for buggy browsers */
/* background-color: red; */
/* padding: 0; */
/* margin: 0; */
/* margin-bottom: 1em; */
2022-09-19 04:23:37 +00:00
/* display: block; */
2022-09-05 18:41:33 +00:00
}
a.publisherlink:hover {
color: var(--accent-color);
}