aboutsummaryrefslogtreecommitdiff
path: root/html/template.html
blob: 0ea8a8142ea599d7433a9cc9896f985849b6abfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Recipe (Web2Recipe)</title>
  <link href="https://fonts.googleapis.com/css?family=Raleway:400,400i,700,900|Playfair+Display:700i,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css'>
<style>
body {
  background: #bfb1ac;
  font-family: "Raleway", sans-serif;
}

aside.context {
  text-align: left;
  text-transform: none;
  padding-right: 20px;
  color: #333;
}
aside.context a {
  text-decoration: none;
  color: #333;
  padding: 3px 0;
  border-bottom: 1px dashed;
}
aside.context a:hover {
  border-bottom: 1px solid;
}

footer {
  text-align: center;
  width: 100%;
}
footer a {
  text-decoration: none;
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed #333;
  color: #333;
  margin: 0 3px;
}
footer a:hover {
  background: rgba(0, 0, 0, 0.05);
}
footer a .icons {
  margin-top: 8px;
  display: inline-block;
  font-size: 14px;
}

.main-content {
  display: grid;
  grid-template-areas: "navigation recipe-recipe recipe-image" "context context recipe-image";
  grid-template-columns: min-content auto 35%;
  grid-template-rows: auto min-content;
  margin: auto;
  min-height: 100vh;
  max-height: calc(100vh - 4em);
  background: #fff;
  box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.context__wrapper {
  grid-area: context;
  background: #f7f7f7;
  color: #333;
  padding: 15px 20px;
  font: 400 12px/1.2 "Raleway", sans-serif;
  display: grid;
  align-items: center;
  grid-template-columns: auto max-content;
}

.navigation {
  grid-area: navigation;
  border-right: 1px solid #eee;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #dbc7b1;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px;
  font: 16px "Playfair Display", serif;
  text-align: center;
}

.recipe-image {
  grid-area: recipe-image;
  background: url("REPLACE-IMG") no-repeat left center/cover;
}

.recipe-name {
  font: 900 45px Raleway;
  text-transform: uppercase;
  margin: 20px 0 5px;
  letter-spacing: 2px;
  color: #916953;
  position: relative;
}

.recipe-serving {
  font: 400 16px Raleway;
  color: #916953;
  margin: 20px 0;
  max-width: 300px;
}
.recipe-serving svg {
  width: 40px;
}
.recipe-serving svg path {
  fill: #916953;
}
.recipe-serving p {
  display: inline-block;
  vertical-align: top;
  margin: 12px 6px 6px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #dbc7b1;
}

::-webkit-scrollbar-thumb:hover {
  background: #d69762;
}

.recipe-recipe {
  grid-area: recipe-recipe;
  color: #999;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 5px;
  max-height: 100%;
  padding: 50px 60px;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 30px auto;
  grid-template-rows: repeat(4, max-content);
  line-height: 1.6;
}
.recipe-recipe__title {
  grid-column: span 2;
}
.recipe-recipe__ingredients {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
}
.recipe-recipe__ingredients__item {
  flex: 1;
  padding: 0 40px 0 0;
}
.recipe-recipe__ingredients__item h4 {
  font: italic 20px/1.1 "Playfair Display", serif;
  color: #d69762;
  margin: 0 0 10px;
  margin-top: 30px;
}
.recipe-recipe__ingredients__item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.recipe-recipe__ingredients__item ul li {
  padding: 5px 0;
}
.recipe-recipe__number {
  font: italic 30px/1 "Playfair Display", serif;
  color: #d69762;
  place-self: center;
  margin-top: -15px;
}
.recipe-recipe__steps {
  padding-right: 35px;
}
.recipe-recipe__subtitle {
  font: italic 30px/1 "Playfair Display", serif;
  color: #916953;
  margin: 45px 0 10px;
  grid-column: span 2;
}
.recipe-recipe__tips {
  grid-column: span 2;
  margin-top: 65px;
  position: relative;
  border: 2px solid #916953;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #916953;
  text-align: center;
  padding: 35px;
}
.recipe-recipe__tips svg {
  display: inline-block;
  padding: 10px;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: -40px;
  width: auto;
  background: #fff;
  width: 60px;
  fill: #916953;
}
.recipe-recipe__tips h4 {
  font: 900 24px Raleway;
  text-transform: uppercase;
  margin: 10px 0 15px;
  color: #543b2e;
}
@media screen and (max-width: 768px) {
	.main-content {
		margin: 0;
		max-height: none;
		grid-template-areas:
			"recipe-image"
			"recipe-recipe"
			"context";
		grid-template-columns: auto;
		grid-template-rows: 300px auto max-content;
	}
	.navigation {
		display: none;
	}
	.recipe-image {
		height: 300px;
		width: 100%;
	}
	
}
/*
@media screen and (max-width: 768px) {
	.main-content {
		margin: 0;
		max-height: none;
		grid-template-areas:
			"recipe-image"
			"recipe-recipe"
			"context";
		grid-template-columns: auto;
		grid-template-rows: 300px auto max-content;
	}
	.navigation {
		display: none;
	}
	.recipe-image {
		height: 300px;
		width: 100%;
	}
	.recipe-recipe {
		padding: 25px;
		&__title {
			margin: 0;
			text-align: center;
		}
		.recipe-serving {
			margin: 20px auto;
		}
	}
}
*/
</style>
</head>
<body>
<!-- partial:index.partial.html -->
<div class="main-content">
  <div class="navigation">Generated by Web2Recipe</div>
  <div class="recipe-image"></div>
  <div class="recipe-recipe">
    <div class="recipe-recipe__title">
      <div class="recipe-name">REPLACE-RECIPE-TITLE</div>
    <div class="recipe-recipe__ingredients">
      <div class="recipe-recipe__ingredients__item">
        <h4>Ingredients</h4>
        REPLACE-INGREDIENTS
      </div>
    </div>
    <div class="recipe-recipe__subtitle">Instructions</div>
    REPLACE-INSTRUCTIONS
  </div>
</div>
<!-- partial -->
  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
</body>
</html>