2020-03-01 07:36:48 +00:00
|
|
|
html {
|
|
|
|
overflow-y: scroll; /* force scrollbar to appear to stop elements jumping around when the scrollbar appears naturally */
|
|
|
|
}
|
|
|
|
|
2020-02-29 19:01:50 +00:00
|
|
|
body {
|
2020-02-29 20:26:37 +00:00
|
|
|
font-family: "DejaVu Sans", "Bitstream Vera Sans", "Helvetica", "Roboto", sans-serif;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 100vh;
|
|
|
|
background: #fafafa;
|
2020-03-01 07:36:48 +00:00
|
|
|
margin: 0;
|
2020-02-29 19:01:50 +00:00
|
|
|
}
|
2020-03-01 07:36:48 +00:00
|
|
|
#main {
|
2020-02-29 20:26:37 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2020-03-01 07:36:48 +00:00
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px 0;
|
|
|
|
text-align: center;
|
|
|
|
background: linear-gradient(to right, turquoise, transparent 80%);
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
padding-left: 10px;
|
|
|
|
background: linear-gradient(to right, turquoise 5px, transparent 5px 100%);
|
|
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: 1.2em;
|
|
|
|
margin: 0.75em 0;
|
|
|
|
}
|
|
|
|
|
2020-03-01 08:38:27 +00:00
|
|
|
.ingredients li.optional::before {
|
|
|
|
content: "(Optional) ";
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2020-02-29 19:01:50 +00:00
|
|
|
.subrecipe {
|
2020-02-29 20:26:37 +00:00
|
|
|
background: #eee;
|
2020-03-01 07:36:48 +00:00
|
|
|
padding: 10px;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
.subrecipe, p {
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
2020-02-29 19:01:50 +00:00
|
|
|
}
|
|
|
|
.subrecipe h3 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.subrecipe-output {
|
|
|
|
height: 0;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
.subrecipe.open .subrecipe-output {
|
|
|
|
height: min-content;
|
|
|
|
}
|
|
|
|
|
2020-03-01 06:47:33 +00:00
|
|
|
.subrecipe-heading h3 {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.subrecipe-toggle {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
.subrecipe-toggle::after {
|
|
|
|
font-style: italic;
|
2020-03-01 07:36:48 +00:00
|
|
|
font-size: 0.75em;
|
|
|
|
vertical-align: text-top;
|
2020-03-01 06:47:33 +00:00
|
|
|
}
|
|
|
|
.subrecipe .subrecipe-toggle::after {
|
|
|
|
content: "Show";
|
|
|
|
}
|
|
|
|
.subrecipe.open .subrecipe-toggle::after {
|
|
|
|
content: "Hide";
|
|
|
|
}
|
|
|
|
|
2020-03-01 07:36:48 +00:00
|
|
|
a {
|
|
|
|
color: turquoise;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-03-01 08:25:15 +00:00
|
|
|
a:not(.recipe-listing):hover {
|
2020-03-01 07:36:48 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2020-02-29 19:01:50 +00:00
|
|
|
ul {
|
|
|
|
list-style-type: "- ";
|
|
|
|
}
|
|
|
|
ul, ol {
|
|
|
|
list-style-position: inside;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
2020-02-29 20:26:37 +00:00
|
|
|
|
2020-03-01 08:25:15 +00:00
|
|
|
#recipes {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.recipe-listing {
|
|
|
|
display: block;
|
|
|
|
margin: 10px;
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 10px;
|
|
|
|
background: linear-gradient(to right, turquoise 5px, #eee 5px 100%);
|
|
|
|
max-width: 600px;
|
|
|
|
flex: 1 0 300px;
|
|
|
|
}
|
|
|
|
a.recipe-listing {
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
.recipe-listing h2 {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.excerpt {
|
|
|
|
color: grey;
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.excerpt::after {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
font-size: 1em;
|
|
|
|
background: linear-gradient(to top, #eee 1em, transparent);
|
|
|
|
}
|
|
|
|
|
2020-02-29 20:26:37 +00:00
|
|
|
footer {
|
|
|
|
text-align: center;
|
2020-03-01 07:36:48 +00:00
|
|
|
background: #333;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 20px 0;
|
|
|
|
margin: 0;
|
2020-02-29 20:26:37 +00:00
|
|
|
}
|
|
|
|
footer, .subtle {
|
|
|
|
color: grey;
|
|
|
|
font-style: italic;
|
|
|
|
}
|