mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
323 lines
No EOL
5.9 KiB
CSS
323 lines
No EOL
5.9 KiB
CSS
* {
|
||
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
|
||
body {
|
||
margin: 0 8vw;
|
||
background-color: var(--background-color);
|
||
color: var(--text-color);
|
||
|
||
--text-color:black;
|
||
--background-color:white;
|
||
|
||
}
|
||
|
||
.thumbnail {
|
||
width: 100%;
|
||
/* padding-top: 56.25%; */
|
||
padding-top:28.125%;
|
||
max-height:1vh;
|
||
background-color: gray;
|
||
background-size: cover;
|
||
background-position: center;
|
||
margin-bottom:2em;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.ingredients:hover .noun {
|
||
/* text-decoration:underline; */
|
||
}
|
||
|
||
img.publisher {
|
||
max-width: 5em;
|
||
/* margin-top: -0.5em; */
|
||
/* transform:scale(0.7); */
|
||
|
||
float:right;
|
||
}
|
||
|
||
.recipe {
|
||
max-width: 50em;
|
||
margin: auto;
|
||
line-height: 125%;
|
||
|
||
}
|
||
|
||
.columns {
|
||
display: flex;
|
||
gap: 2em;
|
||
margin-bottom: 4em;
|
||
align-content: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
header {
|
||
gap: 2em;
|
||
margin-bottom: 2em;
|
||
/* padding-left: 18em; */
|
||
}
|
||
|
||
h1 {
|
||
margin-top: 0.3em;
|
||
margin-bottom:0.3em;
|
||
line-height:125%;
|
||
font-weight:500;
|
||
}
|
||
.noun.hovered {
|
||
background-color:rgba(255, 221, 0, 0.608);
|
||
}
|
||
.step.hovered,
|
||
.substep.hovered ~ *,
|
||
.ingredient.hovered {
|
||
background-color:#f1f1f1;
|
||
}
|
||
|
||
.ingredient.hovered {
|
||
background-color: rgba(255, 221, 0, 0.608);
|
||
}
|
||
.metadata {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.5em 1em;
|
||
margin-bottom: 1em;
|
||
line-height:24px;
|
||
}
|
||
|
||
ul.step {
|
||
padding-inline-start: 0;
|
||
list-style-type:none;
|
||
padding: 0;margin: 0em;
|
||
}
|
||
|
||
.instructions:not(.numbered) .number {
|
||
display: none;
|
||
}
|
||
|
||
span.number {
|
||
margin-left: -27px;
|
||
float:left;
|
||
border: 2px solid currentColor;
|
||
font-weight: 800;
|
||
border-radius:10em;
|
||
width: 16px;
|
||
height: 16px;
|
||
text-align: center;
|
||
font-size: 10px;
|
||
line-height: 16px;
|
||
opacity:0.7;
|
||
/* background: black; */}
|
||
|
||
.number.big {
|
||
font-size:8px;
|
||
}
|
||
|
||
|
||
li {
|
||
padding: 0.33em 0.5em;
|
||
margin-left: -0.5em;}
|
||
li:hover {
|
||
background-color:rgba(0,0,0,0.1);
|
||
border-radius: 2px;}
|
||
|
||
.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");
|
||
} */
|
||
|
||
.time {
|
||
background-size:18px;
|
||
background-repeat:no-repeat;
|
||
/* text-transform: uppercase; */
|
||
/* margin-bottom: 1em; */
|
||
}
|
||
|
||
.ingredients {
|
||
font-weight: 700;
|
||
font-size: 90%;
|
||
/* position:sticky; */
|
||
/* top: 0px; */
|
||
/* padding-top: 1em; */
|
||
flex: 0 1 35%;
|
||
/* color: rgba(0,0,0,0.8); */}
|
||
.noun {
|
||
font-weight: 700;
|
||
/* color: rgba(0,0,0,1.0); */}
|
||
|
||
.instructions {
|
||
white-space: pre-wrap;
|
||
/* line-height: 125%; */
|
||
/* font-size: 100%; */
|
||
flex: 0 1 65%;
|
||
margin-top: -0.7em;
|
||
}
|
||
|
||
.instructions.numbered li {
|
||
padding-left: 2em;
|
||
}
|
||
|
||
.substep {
|
||
margin-bottom: 1em;
|
||
/* display: inline; */
|
||
}
|
||
.ingredient {
|
||
padding: .33em 0em;
|
||
margin: 0 0em 0 -3em;
|
||
line-height: 1.25em;
|
||
opacity: 0.75;
|
||
cursor: pointer;
|
||
padding-left: 3em;
|
||
}
|
||
|
||
.ingredients .yield {
|
||
margin-bottom: 1.5em;
|
||
font-weight:bold;
|
||
text-transform: uppercase;
|
||
margin-left:2em;
|
||
}
|
||
.ingredients .quantity {
|
||
float:left;
|
||
margin-left:-2.5em;
|
||
width:2em;
|
||
text-align:right;
|
||
}
|
||
|
||
.ingredient.complete,
|
||
li.complete {
|
||
text-decoration: line-through;
|
||
opacity: 0.33;
|
||
}
|
||
|
||
.ingredient:hover {
|
||
opacity: 1.0;
|
||
background-color: rgba(128, 128, 128, 0.1)
|
||
}
|
||
|
||
.step {
|
||
max-width: 80em;
|
||
cursor: pointer;
|
||
/* border:1px solid red; */
|
||
margin-bottom: 1em;
|
||
}
|
||
|
||
.instructions hr {
|
||
width: 100px;
|
||
height: 0.5px;
|
||
background-color: currentColor;
|
||
opacity: .3;
|
||
border:none;
|
||
margin: 0.25em 0;
|
||
}
|
||
hr {
|
||
/* width: 100px;
|
||
float: left;
|
||
height: 0.5px;
|
||
background-color: currentColor;
|
||
opacity: 0.54; */
|
||
}
|
||
|
||
a.action {
|
||
/* border: none;
|
||
background: none;
|
||
text-transform: uppercase;
|
||
text-decoration: none;
|
||
color: currentColor;
|
||
opacity: 0.;
|
||
cursor: pointer;
|
||
border: 1px solid currentColor;
|
||
padding: 0 0.6em;
|
||
border-radius: 1em;
|
||
/* line-height: 16px;
|
||
font-size: 14px;
|
||
box-sizing: border-box;
|
||
line-height: 17px; */
|
||
border-radius:1em;
|
||
cursor:pointer;
|
||
}
|
||
|
||
a.action:hover:not(:active) .icon {
|
||
opacity:1.0;
|
||
/* text-decoration: none;
|
||
box-shadow: 0 1px 1px currentColor;
|
||
margin-top: -1px; */
|
||
}
|
||
|
||
@media screen and (max-width: 480px) {
|
||
/* some CSS here */
|
||
.columns {
|
||
flex-direction: column;
|
||
}
|
||
.ingredient,
|
||
.instructions,
|
||
header {
|
||
padding: 0 0em;
|
||
}
|
||
.ingredient {
|
||
margin: 0;
|
||
margin-left:2em;
|
||
margin-bottom:0.67em;
|
||
}
|
||
.ingredients .yield {
|
||
margin-left:3em;
|
||
}
|
||
}
|
||
|
||
.metadata .icon {
|
||
font-size: 15px;
|
||
vertical-align: middle;
|
||
margin-top: -4px;
|
||
margin-right: 4px;
|
||
opacity:0.6;
|
||
color:var(--text-color);
|
||
}
|
||
|
||
|
||
@media (prefers-color-scheme: dark) {
|
||
body {
|
||
--text-color:white;
|
||
--background-color:#222;
|
||
}
|
||
}
|
||
|
||
@media print {
|
||
body {
|
||
font-size: 14px;
|
||
}
|
||
.noprint {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.instructions.numbered hr {margin: 0.7em 0;height: 2px;opacity: 10;}
|
||
|
||
.instructions.numbered {margin-top: -1.6em;} |