itty-bitty/docs/render/recipe.css
Nicholas Jitkoff 82ad60c7bb Add extractor
2022-01-29 11:40:35 -08:00

189 lines
No EOL
2.6 KiB
CSS

* {
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
body {
margin: 0;
}
.thumbnail {
width: 100%;
padding-top: 56.25%;
background-color: gray;
background-size: cover;
background-position: center;
margin-bottom:2em;
}
img.publisher {
max-width: 5em;
/* margin-top: -0.5em; */
/* transform:scale(0.7); */
float:right;
}
.recipe {
max-width: 40em;
margin: auto;
line-height: 133%;
}
.columns {
display: flex;
gap: 2em;
margin-bottom: 4em;
align-content: center;
justify-content: center;
}
header {
gap: 2em;
margin-bottom: 2em;
/*
padding-left:15em; */
}
h1 {
margin-top: 0.3em;
margin-bottom:0.3em;
line-height:125%;
font-weight:500;
}
.metadata {
align: right;
display: flex;
flex-wrap: wrap;
gap: 0 1em;
margin-bottom: 1em;
line-height: 2em;
}
.metadata div:after {
content: "-";
margin-left: 1em;
}
.ingredients {
font-weight: 600;
font-size: 100%;
padding-top: 1em;
flex: 0 1 35%;
}
.instructions {
white-space: pre-wrap;
line-height: 125%;
font-size: 100%;
flex: 0 1 65%;
}
.ingredient {
padding: 0.625em 1em;
margin: 0 -1em;
line-height: 1.25em;
opacity: 0.75;
cursor: pointer;
padding-left:3em;
}
.ingredients .yield {
margin-bottom:2em;
font-weight:bold;
text-transform: uppercase;
margin-left:2em;
}
.ingredients .quantity {
float:left;
margin-left:-2.5em;
width:2em;
text-align:center;
}
.ingredient.complete,
.step.complete {
text-decoration: line-through;
opacity: 0.33;
}
.ingredient:hover {
opacity: 1.0;
background-color: rgba(128, 128, 128, 0.1)
}
.step {
padding-top: 2em;
max-width: 40em;
cursor: pointer;
}
.step:before {
content: "";
width: 100px;
float: left;
margin-top: -1em;
height: 0.5px;
background-color: currentColor;
opacity: 0.54;
}
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.4;
cursor: pointer;
}
a.action:hover {
opacity:1.0;
text-decoration: underline;
}
@media screen and (max-width: 480px) {
/* some CSS here */
.columns {
flex-direction: column;
}
.ingredient,
.instructions,
header {
padding: 0 1em;
}
.ingredient {
margin: 0;
margin-left:2em;
margin-bottom:0.67em;
}
.ingredients .yield {
margin-left:3em;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #222;
color: white;
}
}
@media print {
body {
font-size: 14px;
}
.noprint {
display: none;
}
}