basic styling
This commit is contained in:
parent
f29445ec4c
commit
8c1335cff9
4 changed files with 31 additions and 3 deletions
|
@ -5,6 +5,6 @@
|
|||
<{{tag}}>Ingredients</{{tag}}>
|
||||
<ul>
|
||||
{% for item in page.ingredients -%}
|
||||
<li>{{ item[0] }} {%- if item[2] -%} {{ item[2] }} of {%- endif -%} {{ item[1] }}</li>
|
||||
<li>{{ item[0] }} {% if item[2] %} {{ item[2] }} of {% endif %} {{ item[1] }}</li>
|
||||
{% endfor -%}
|
||||
</ul>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel='stylesheet' href='/style.css'>
|
||||
<title>{{ page.title }}</title>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -19,9 +19,11 @@ layout: default
|
|||
<h2> Subrecipes </h2>
|
||||
{% for subrecipe in site.subrecipes -%}
|
||||
{%- if subrecipe.parents contains id -%}
|
||||
<h3>{{ subrecipe.name }}</h3>
|
||||
<div class='subrecipe' id='sr-{{ subrecipe.name | downcase | url_encode }}'>
|
||||
{{ subrecipe.output }}
|
||||
<h3>{{ subrecipe.name }}</h3>
|
||||
<div class='subrecipe-output'>
|
||||
{{ subrecipe.output }}
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
|
25
style.css
Normal file
25
style.css
Normal file
|
@ -0,0 +1,25 @@
|
|||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.subrecipe {
|
||||
background-color: #eee;
|
||||
padding: 5px;
|
||||
}
|
||||
.subrecipe h3 {
|
||||
margin: 0;
|
||||
}
|
||||
.subrecipe-output {
|
||||
height: 0;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.subrecipe.open .subrecipe-output {
|
||||
height: min-content;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: "- ";
|
||||
}
|
||||
ul, ol {
|
||||
list-style-position: inside;
|
||||
padding-left: 10px;
|
||||
}
|
Loading…
Reference in a new issue