You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

236 lines
2.8 KiB
CSS

@import url("./font/font.css");
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.25rem;
line-height: 1.4;
box-sizing: border-box;
}
.intro {
margin: 32px;
max-width: 1000px;
}
.intro .recipe {
border: 1px solid currentColor;
}
h1,
h2,
h3 {
margin: 0;
}
ul,
ol {
margin: 0;
padding: 0;
list-style-position: inside;
}
ul {
list-style: none;
}
h3 {
display: block;
margin-top: 1em;
margin-bottom: 0.4em;
font-weight: bold;
font-size: 1.25rem;
}
.questions {
list-style: none;
}
.questions li::before {
content: "❓";
}
.questions li {
margin-bottom: 1em;
padding-left: 8px;
border-left: 2px dotted tomato;
}
.how-to {
padding-left: 1em;
border-left: 2px dotted currentColor;
}
/* COOCKBOOK */
.cookbook {
margin: 32px;
padding: 24px;
background-color: #cec;
border-radius: 16px;
}
.cookbook-info {
margin: 16px 0;
font-style: italic;
}
.tag,
button.tag {
background-color: transparent;
font-size: 20px;
display: inline-block;
border: 1px solid currentColor;
padding: 0 0.5em;
border-radius: 1em;
margin: 4px;
text-transform: capitalize;
user-select: none;
cursor: pointer;
}
.tag.active {
background-color: white;
}
.recipes {
display: flex;
justify-content: flex-start;
flex-direction: row;
flex-wrap: wrap;
/* display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-flow: row dense; */
row-gap: 24px;
column-gap: 24px;
}
.recipe,
.recipe-info,
.diary {
display: none;
background-color: #ffffff;
flex-grow: 1;
flex-basis: 600px;
border-radius: 16px;
padding: 0 16px;
}
.recipe.active {
display: inline-block;
}
.recipe-info {
display: block;
max-width: 55ch;
border: 1px solid currentColor;
margin: 16px 0;
}
.recipe .title {
margin-bottom: 0;
}
.recipe .description {
font-style: italic;
}
.chef::before {
content: "👩‍🍳 ";
}
.info {
margin: 16px 0;
}
.ingredients,
.instructions {
margin: 16px 0;
}
.ingredients li {
list-style: none;
display: inline;
}
.ingredients li::after {
content: ", ";
}
.ingredients li:last-of-type::after {
content: "";
}
.intro .recipe {
margin: 16px 0;
}
.done {
text-decoration: line-through;
opacity: 0.6;
}
#ingredients-container {
margin: 24px 0;
}
/* DIARY */
.diary {
font-family: "Ortica";
display: inline-block;
align-self: flex-start;
background-color: transparent;
border-radius: 0;
border-left: 2px dotted currentColor;
margin: 16px 0;
}
.diary .title {
margin-bottom: 0;
}
.diary .date {
opacity: 0.6;
}
.diary .text {
margin-top: 16px;
}
.diary .text p {
margin: 0;
margin-right: 1ch;
display: inline;
}
.diary .chef::before {
content: "💬 ";
}
@media (max-width: 991.98px) {
.intro {
margin: 16px;
}
.cookbook {
margin: 0;
border-radius: 0;
padding: 16px;
}
li {
margin-bottom: 0.4em;
}
.diary .chef {
margin-top: 8px;
display: block;
text-align: right;
}
}