Add new recipes & fix formatting on mobile

This commit is contained in:
Andrew Miner
2016-12-25 23:07:20 -08:00
parent 306e193021
commit 158bfc2b43
27 changed files with 564 additions and 194 deletions
+66 -52
View File
@@ -1,50 +1,47 @@
.cookbook {
display: flex;
flex-wrap: wrap;
column-count: 2;
column-gap: 0.25in;
section {
padding: 0 0.125in;
h1 {
font-family: sans-serif;
font-size: 24pt;
font-weight: bold;
}
a {
flex: 1 1 auto;
min-width: 2in;
max-width: 3.5in;
h1 {
font-family: sans-serif;
font-size: 24pt;
font-weight: bold;
border-radius: 0.0625in;
break-inside: avoid;
color: black;
font-family: serif;
font-size: 18pt;
text-decoration: none;
display: flex;
align-items: center;
padding: 0.0625in;
padding-right: 0.125in;
transition: all 0.25s;
&:visited {
color: black;
}
a {
flex: 1 1 auto;
min-width: 2in;
max-width: 3.5in;
&:hover {
background: #23B7F2;
color: white;
}
img {
border: 0.01in solid silver;
border-radius: 0.0625in;
color: black;
font-family: serif;
font-size: 18pt;
text-decoration: none;
display: flex;
align-items: center;
padding: 0.0625in;
padding-right: 0.125in;
transition: all 0.25s;
&:visited {
color: black;
}
&:hover {
background: #23B7F2;
color: white;
}
img {
border: 0.01in solid silver;
border-radius: 0.0625in;
margin-right: 0.125in;
max-height: 0.5in;
width: 0.5in;
}
margin-right: 0.125in;
max-height: 0.5in;
width: 0.5in;
}
}
}
@@ -63,6 +60,13 @@
font-family: serif;
font-size: 24pt;
}
h2 {
font-size: 12pt;
margin: 0;
margin-bottom: 0.125in;
text-transform: uppercase;
}
.ingredients {
display: flex;
@@ -79,19 +83,23 @@
.list {
margin-left: 0.25in;
tr {
vertical-align: top;
table {
margin-bottom: 0.25in;
tr {
vertical-align: top;
td:nth-child(1) {
font-family: sans-serif;
font-size: 12pt;
padding-right: 0.125in;
text-align: right;
}
td:nth-child(1) {
font-family: sans-serif;
font-size: 12pt;
padding-right: 0.125in;
text-align: right;
}
td:nth-child(2) {
font-family: sans-serif;
font-size: 12pt;
td:nth-child(2) {
font-family: sans-serif;
font-size: 12pt;
}
}
}
}
@@ -136,3 +144,9 @@
}
}
}
@media (max-width: 900px) {
.cookbook {
column-count: 1;
}
}