cupboard 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Dockerfile +19 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/app/assets/images/category-cover.png +0 -0
- data/app/assets/images/category-default.jpg +0 -0
- data/app/assets/images/default-avatar.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/icook-logo.png +0 -0
- data/app/assets/images/icook-logo.svg +26 -0
- data/app/assets/images/logo-2x.png +0 -0
- data/app/assets/images/no-result.png +0 -0
- data/app/assets/images/recipe-default.png +0 -0
- data/app/assets/images/section_bg.jpg +0 -0
- data/app/assets/images/setting-pr.jpg +0 -0
- data/app/assets/images/step-placeholder.jpg +0 -0
- data/app/assets/images/vip-icon.svg +1 -0
- data/app/assets/pages/atomic.md +56 -0
- data/app/assets/pages/index.md +101 -0
- data/app/assets/stylesheets/_base.scss +4 -0
- data/app/assets/stylesheets/_basic.scss +22 -0
- data/app/assets/stylesheets/_components.scss +95 -0
- data/app/assets/stylesheets/_forms.scss +159 -0
- data/app/assets/stylesheets/_global.scss +40 -0
- data/app/assets/stylesheets/_images.scss +125 -0
- data/app/assets/stylesheets/_layouts.scss +4 -0
- data/app/assets/stylesheets/_lists.scss +203 -0
- data/app/assets/stylesheets/_mixins.scss +6 -0
- data/app/assets/stylesheets/_tables.scss +244 -0
- data/app/assets/stylesheets/_typography.scss +292 -0
- data/app/assets/stylesheets/_variables.scss +1 -0
- data/app/assets/stylesheets/_widgets.scss +50 -0
- data/app/assets/stylesheets/base/_badge.scss +89 -0
- data/app/assets/stylesheets/base/_buttons.scss +217 -0
- data/app/assets/stylesheets/components/_accordion.scss +69 -0
- data/app/assets/stylesheets/components/_breadcrumbs.scss +46 -0
- data/app/assets/stylesheets/components/_cards.scss +12 -0
- data/app/assets/stylesheets/components/_grid.scss +45 -0
- data/app/assets/stylesheets/components/_navigations.scss +12 -0
- data/app/assets/stylesheets/components/_pagination.scss +166 -0
- data/app/assets/stylesheets/components/_search-form.scss +56 -0
- data/app/assets/stylesheets/components/_sorting-cards.scss +76 -0
- data/app/assets/stylesheets/components/_text.scss +166 -0
- data/app/assets/stylesheets/components/alerts/_alert-global.scss +137 -0
- data/app/assets/stylesheets/components/alerts/_alert-market.scss +129 -0
- data/app/assets/stylesheets/components/cards/_dish-card.scss +244 -0
- data/app/assets/stylesheets/components/cards/_list-card.scss +168 -0
- data/app/assets/stylesheets/components/cards/_photo-card.scss +244 -0
- data/app/assets/stylesheets/components/cards/_product-card.scss +104 -0
- data/app/assets/stylesheets/components/cards/_recipe-card.scss +96 -0
- data/app/assets/stylesheets/components/cards/_video-card.scss +206 -0
- data/app/assets/stylesheets/components/comments/_comment-form.scss +222 -0
- data/app/assets/stylesheets/components/medias/_blog-feeds.scss +28 -0
- data/app/assets/stylesheets/components/medias/_brand-cover.scss +127 -0
- data/app/assets/stylesheets/components/medias/_brand-product.scss +35 -0
- data/app/assets/stylesheets/components/medias/_business-kitchen.scss +66 -0
- data/app/assets/stylesheets/components/medias/_categories-cover.scss +79 -0
- data/app/assets/stylesheets/components/medias/_hot-categories.scss +36 -0
- data/app/assets/stylesheets/components/medias/_popular-categories.scss +89 -0
- data/app/assets/stylesheets/components/medias/_popular-recipes.scss +38 -0
- data/app/assets/stylesheets/components/medias/_pr-lists.scss +53 -0
- data/app/assets/stylesheets/components/medias/_recipe-reference.scss +45 -0
- data/app/assets/stylesheets/components/medias/_user-recipes.scss +46 -0
- data/app/assets/stylesheets/components/navigations/_blog-nav.scss +120 -0
- data/app/assets/stylesheets/components/navigations/_brand-tabs-nav.scss +187 -0
- data/app/assets/stylesheets/components/navigations/_categories-nav-responsive.scss +131 -0
- data/app/assets/stylesheets/components/navigations/_categories-nav.scss +307 -0
- data/app/assets/stylesheets/components/navigations/_recipe-nav.scss +112 -0
- data/app/assets/stylesheets/components/navigations/_tv-nav.scss +283 -0
- data/app/assets/stylesheets/components/recipes/_ingredients.scss +223 -0
- data/app/assets/stylesheets/components/recipes/_notes.scss +60 -0
- data/app/assets/stylesheets/components/recipes/_steps.scss +153 -0
- data/app/assets/stylesheets/components/single_comment/_single-comment.scss +251 -0
- data/app/assets/stylesheets/layouts/_footer-nav.scss +151 -0
- data/app/assets/stylesheets/layouts/_footer.scss +48 -0
- data/app/assets/stylesheets/layouts/_footers.scss +12 -0
- data/app/assets/stylesheets/layouts/_global-navbar.scss +261 -0
- data/app/assets/stylesheets/layouts/_headers.scss +11 -0
- data/app/assets/stylesheets/layouts/_sub-header-market.scss +138 -0
- data/app/assets/stylesheets/mixins/_mixin-alert.scss +27 -0
- data/app/assets/stylesheets/mixins/_mixin-animation.scss +10 -0
- data/app/assets/stylesheets/mixins/_mixin-badge.scss +21 -0
- data/app/assets/stylesheets/mixins/_mixin-buttons.scss +21 -0
- data/app/assets/stylesheets/mixins/_mixin-icons.scss +32 -0
- data/app/assets/stylesheets/mixins/_mixin-type.scss +7 -0
- data/app/assets/stylesheets/variables/_color-palette.scss +222 -0
- data/app/assets/stylesheets/widgets/_brand-sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_recipe-mark.scss +55 -0
- data/app/assets/stylesheets/widgets/_sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_tv-sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_user-sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/brands/_pr-ingredients.scss +154 -0
- data/app/assets/stylesheets/widgets/brands/_pr-latest.scss +62 -0
- data/app/assets/stylesheets/widgets/brands/_pr-popular-recipe-lists.scss +51 -0
- data/app/assets/stylesheets/widgets/brands/_pr-recent.scss +59 -0
- data/app/assets/stylesheets/widgets/brands/_pr-video.scss +34 -0
- data/app/assets/stylesheets/widgets/features/_feature-events.scss +119 -0
- data/app/assets/stylesheets/widgets/features/_feature-slides.scss +144 -0
- data/app/assets/stylesheets/widgets/feeds/_blog-feeds.scss +144 -0
- data/app/assets/stylesheets/widgets/feeds/_tv-feeds.scss +143 -0
- data/app/assets/stylesheets/widgets/modal/_modal-reset.scss +40 -0
- data/app/assets/stylesheets/widgets/modal/_recipe-list-modal.scss +111 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_business-kitchen.scss +134 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_icook-video.scss +109 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-recipe-lists.scss +232 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-recipes.scss +105 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-search.scss +317 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_recipes-collect.scss +45 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_sidebar-widget.scss +62 -0
- data/app/assets/stylesheets/widgets/tv/_tv-more-recipes.scss +93 -0
- data/app/assets/stylesheets/widgets/tv/_tv-popular-tags.scss +78 -0
- data/app/assets/stylesheets/widgets/users/_fav-list.scss +197 -0
- data/app/assets/stylesheets/widgets/users/_user-stats.scss +330 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/config/initializers/assets.rb +5 -0
- data/cupboard.gemspec +40 -0
- data/example/.gitignore +19 -0
- data/lib/cupboard.rb +12 -0
- data/lib/cupboard/engine.rb +6 -0
- data/lib/cupboard/version.rb +3 -0
- metadata +298 -0
@@ -0,0 +1,283 @@
|
|
1
|
+
// --------------------------------
|
2
|
+
// Navigation - tv
|
3
|
+
// --------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
parent: 08_navigations
|
8
|
+
title: TV navigation
|
9
|
+
name: tv_navigation
|
10
|
+
---
|
11
|
+
|
12
|
+
<div class="tv-nav">
|
13
|
+
<div class="navba tv-series">
|
14
|
+
<div class="navbar-header">
|
15
|
+
<a href="#" class="title hidden-xs"><span>愛料理 TV</span><span>35</span></a>
|
16
|
+
<button type="button" class="navbar-toggle in collapsed" data-target="#series-collapse" data-toggle="collapse" aria-expanded="false">愛料理 TV</button>
|
17
|
+
</div>
|
18
|
+
<div class="navbar-collapse collapse" id="series-collapse">
|
19
|
+
<ul class="nav navbar-nav">
|
20
|
+
<li class="visible-xs"><a href="#">全系列</a></li>
|
21
|
+
<li>
|
22
|
+
<a class="clearfix" href="#">
|
23
|
+
<span><span class="item">早午餐</span><span class="num visible-xs">5</span></span>
|
24
|
+
</a>
|
25
|
+
</li>
|
26
|
+
<li>
|
27
|
+
<a class="clearfix" href="#">
|
28
|
+
<span><span class="item">義大利麵</span><span class="num visible-xs">5</span></span>
|
29
|
+
</a>
|
30
|
+
</li>
|
31
|
+
<li>
|
32
|
+
<a class="clearfix" href="#">
|
33
|
+
<span><span class="item">歐陸家常菜</span><span class="num visible-xs">5</span></span>
|
34
|
+
</a>
|
35
|
+
</li>
|
36
|
+
<li>
|
37
|
+
<a class="clearfix" href="#">
|
38
|
+
<span><span class="item">甜蜜午茶</span><span class="num visible-xs">5</span></span>
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
<li>
|
42
|
+
<a class="clearfix" href="#">
|
43
|
+
<span><span class="item">在地台灣味</span><span class="num visible-xs">5</span></span>
|
44
|
+
</a>
|
45
|
+
</li>
|
46
|
+
</ul>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
```html_example
|
52
|
+
<div class="tv-nav">
|
53
|
+
<div class="navba tv-series">
|
54
|
+
<div class="navbar-header">
|
55
|
+
<a href="#" class="title hidden-xs"><span>愛料理 TV</span><span>35</span></a>
|
56
|
+
<button type="button" class="navbar-toggle in collapsed" data-target="#series-collapse" data-toggle="collapse" aria-expanded="false">愛料理 TV</button>
|
57
|
+
</div>
|
58
|
+
<div class="navbar-collapse collapse" id="series-collapse">
|
59
|
+
<ul class="nav navbar-nav">
|
60
|
+
<li class="visible-xs"><a href="#">全系列</a></li>
|
61
|
+
<li>
|
62
|
+
<a class="clearfix" href="#">
|
63
|
+
<span>
|
64
|
+
<span class="item">早午餐</span>
|
65
|
+
<span class="num visible-xs">5</span>
|
66
|
+
</span>
|
67
|
+
</a>
|
68
|
+
</li>
|
69
|
+
<li class="active">
|
70
|
+
<a class="clearfix" href="#">
|
71
|
+
<span>
|
72
|
+
<span class="item">義大利麵</span>
|
73
|
+
<span class="num visible-xs">5</span>
|
74
|
+
</span>
|
75
|
+
</a>
|
76
|
+
</li>
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
```
|
82
|
+
|
83
|
+
*/
|
84
|
+
|
85
|
+
$tv-series-text: #5c4545 !default;
|
86
|
+
$tv-series-bar: #acacac !default;
|
87
|
+
$tv-series-bg: #5c4545 !default;
|
88
|
+
$tv-series-link: #aaa !default;
|
89
|
+
$tv-series-link-active: $orange !default;
|
90
|
+
|
91
|
+
.tv-series {
|
92
|
+
background-color: $white;
|
93
|
+
border: 0;
|
94
|
+
border-radius: 0;
|
95
|
+
margin-bottom: 15px;
|
96
|
+
margin-top: 20px;
|
97
|
+
min-height: 100%;
|
98
|
+
overflow: hidden;
|
99
|
+
padding: 0;
|
100
|
+
|
101
|
+
a {
|
102
|
+
font-size: 16px;
|
103
|
+
|
104
|
+
&:hover {
|
105
|
+
text-decoration: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.title {
|
110
|
+
color: $tv-series-text;
|
111
|
+
float: left;
|
112
|
+
font-size: 16px;
|
113
|
+
margin: 0 20px;
|
114
|
+
|
115
|
+
&::after {
|
116
|
+
content: "|";
|
117
|
+
color: $tv-series-bar;
|
118
|
+
font-size: 14px;
|
119
|
+
position: relative;
|
120
|
+
right: -3px;
|
121
|
+
top: -1px;
|
122
|
+
}
|
123
|
+
|
124
|
+
span + span {
|
125
|
+
border-radius: 6px;
|
126
|
+
background-color: $tv-series-bg;
|
127
|
+
color: $white;
|
128
|
+
font-size: 11px;
|
129
|
+
margin-left: 10px;
|
130
|
+
margin-right: 10px;
|
131
|
+
padding: 1px 5px;
|
132
|
+
position: relative;
|
133
|
+
top: -2px;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
.navbar-collapse {
|
138
|
+
max-height: 100%; //override bootstrap's default max height
|
139
|
+
padding: 0;
|
140
|
+
}
|
141
|
+
|
142
|
+
.navbar-toggle {
|
143
|
+
@include icon-b("\f0d8");
|
144
|
+
|
145
|
+
color: $tv-series-text;
|
146
|
+
font-size: 14px;
|
147
|
+
margin: 0;
|
148
|
+
padding: 8px 20px;
|
149
|
+
text-align: left;
|
150
|
+
width: 100%;
|
151
|
+
|
152
|
+
&::after {
|
153
|
+
font-size: 20px;
|
154
|
+
height: 14px;
|
155
|
+
margin-left: 5px;
|
156
|
+
margin-right: 0;
|
157
|
+
position: absolute;
|
158
|
+
right: 14px;
|
159
|
+
top: 10px;
|
160
|
+
width: 14px;
|
161
|
+
}
|
162
|
+
|
163
|
+
&.collapsed::after {
|
164
|
+
content: "\f0d7";
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.navbar-header {
|
169
|
+
margin-top: 19px;
|
170
|
+
|
171
|
+
> a:hover span:first-child {
|
172
|
+
text-decoration: underline;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
.navbar-nav {
|
177
|
+
> li > a {
|
178
|
+
color: $tv-series-link;
|
179
|
+
margin-right: 15px;
|
180
|
+
padding: 20px 0 20px;
|
181
|
+
position: relative;
|
182
|
+
|
183
|
+
&::after {
|
184
|
+
@include ease-in-out(.5s);
|
185
|
+
|
186
|
+
border-bottom: 3px solid $tv-series-link;
|
187
|
+
bottom: -3px;
|
188
|
+
content: "";
|
189
|
+
height: 1px;
|
190
|
+
left: 0;
|
191
|
+
position: absolute;
|
192
|
+
width: 100%;
|
193
|
+
}
|
194
|
+
|
195
|
+
&:hover {
|
196
|
+
background-color: transparent;
|
197
|
+
|
198
|
+
&::after {
|
199
|
+
@include ease-in-out(.5s);
|
200
|
+
bottom: 0;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
> .active > a {
|
206
|
+
color: $tv-series-link-active;
|
207
|
+
|
208
|
+
&::after {
|
209
|
+
border-color: $tv-series-link-active;
|
210
|
+
bottom: 0;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
@media only screen and (max-width: 1024px) {
|
217
|
+
.tv-series {
|
218
|
+
margin-top: 10px;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
@media only screen and (max-width: 767px) {
|
223
|
+
.tv-series {
|
224
|
+
border-bottom: 1px solid #ebe5e1;
|
225
|
+
margin-bottom: 0;
|
226
|
+
|
227
|
+
.navbar-collapse {
|
228
|
+
background-color: #fafaf8;
|
229
|
+
}
|
230
|
+
|
231
|
+
.navbar-header {
|
232
|
+
float: none;
|
233
|
+
margin-top: 0;
|
234
|
+
}
|
235
|
+
|
236
|
+
.navbar-nav {
|
237
|
+
margin: 0;
|
238
|
+
|
239
|
+
& > li > a {
|
240
|
+
display: block;
|
241
|
+
font-size: 14px;
|
242
|
+
height: 37px;
|
243
|
+
margin-right: 0;
|
244
|
+
padding: 8px 20px;
|
245
|
+
|
246
|
+
&:after {
|
247
|
+
border-bottom: 0;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
li {
|
252
|
+
border-top: 1px solid #ebe5e1;
|
253
|
+
|
254
|
+
&.active a {
|
255
|
+
color: #aa8f83;
|
256
|
+
}
|
257
|
+
|
258
|
+
& > a:hover,
|
259
|
+
& > a:hover .item {
|
260
|
+
text-decoration: underline;
|
261
|
+
}
|
262
|
+
|
263
|
+
&.active > a .num,
|
264
|
+
& > a:hover .num {
|
265
|
+
border-radius: 6px;
|
266
|
+
background-color: #aaa;
|
267
|
+
color: #fff;
|
268
|
+
padding: 0 4px;
|
269
|
+
}
|
270
|
+
|
271
|
+
& > a .num {
|
272
|
+
display: inline-block !important;
|
273
|
+
float: right;
|
274
|
+
}
|
275
|
+
|
276
|
+
&.active > a .num {
|
277
|
+
background-color: #aa8f83;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
|
@@ -0,0 +1,223 @@
|
|
1
|
+
// --------------------------------
|
2
|
+
// Recipe components - ingredients
|
3
|
+
// --------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
name: 22_recipe_ingredients
|
8
|
+
title: Recipe ingredients
|
9
|
+
category: UI components
|
10
|
+
---
|
11
|
+
|
12
|
+
<div> </div>
|
13
|
+
<div class="recipe-detail clearfix">
|
14
|
+
<div class="col-xs-12 col-md-4">
|
15
|
+
<div class="recipe-ingredients">
|
16
|
+
<small>group-0</small>
|
17
|
+
<h3 class="clearfix">
|
18
|
+
<span class="pull-left">食材(<span>5 人份</span>)</span>
|
19
|
+
<span class="pull-right"><span class="time">20 分鐘</span></span>
|
20
|
+
</h3>
|
21
|
+
<div class="ingredients">
|
22
|
+
<div class="group group-0">
|
23
|
+
<div class="clearfix ingredient" itemprop="ingredients">
|
24
|
+
<span class="pull-left ingredient-name">白蘿蔔</span>
|
25
|
+
<span class="pull-right ingredient-unit">1條</span>
|
26
|
+
</div>
|
27
|
+
<div class="clearfix ingredient" itemprop="ingredients">
|
28
|
+
<span class="pull-left ingredient-name">鹽</span>
|
29
|
+
<span class="pull-right ingredient-unit">1大匙</span>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="group group-1">
|
33
|
+
<div class="group-name">醃料</div>
|
34
|
+
<div class="clearfix ingredient" itemprop="ingredients">
|
35
|
+
<span class="pull-left ingredient-name">糯米醋</span>
|
36
|
+
<span class="pull-right ingredient-unit">1杯</span>
|
37
|
+
</div>
|
38
|
+
<div class="clearfix ingredient" itemprop="ingredients">
|
39
|
+
<span class="pull-left ingredient-name">白砂糖</span>
|
40
|
+
<span class="pull-right ingredient-unit">1杯</span>
|
41
|
+
</div>
|
42
|
+
<div class="clearfix ingredient" itemprop="ingredients">
|
43
|
+
<span class="pull-left ingredient-name">常溫開水</span>
|
44
|
+
<span class="pull-right ingredient-unit">1杯</span>
|
45
|
+
</div>
|
46
|
+
<div class="clearfix ingredient" itemprop="ingredients">
|
47
|
+
<span class="pull-left ingredient-name">韓式辣椒粉</span>
|
48
|
+
<span class="pull-right ingredient-unit">半杯</span>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
<div class="col-xs-12 col-sm-4">
|
55
|
+
group colors<br/>
|
56
|
+
<small>group-1</small>
|
57
|
+
<div class="group group-1">
|
58
|
+
<div class="group-name">醃料</div>
|
59
|
+
</div>
|
60
|
+
<small>group-2</small>
|
61
|
+
<div class="group group-2">
|
62
|
+
<div class="group-name">醃料</div>
|
63
|
+
</div>
|
64
|
+
<small>group-3</small>
|
65
|
+
<div class="group group-3">
|
66
|
+
<div class="group-name">醃料</div>
|
67
|
+
</div>
|
68
|
+
<small>group-4</small>
|
69
|
+
<div class="group group-4">
|
70
|
+
<div class="group-name">醃料</div>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
<div class="col-xs-12 col-sm-4">
|
74
|
+
<br/>
|
75
|
+
<small>group-5</small>
|
76
|
+
<div class="group group-5">
|
77
|
+
<div class="group-name">醃料</div>
|
78
|
+
</div>
|
79
|
+
<small>group-6</small>
|
80
|
+
<div class="group group-6">
|
81
|
+
<div class="group-name">醃料</div>
|
82
|
+
</div>
|
83
|
+
<small>group-7</small>
|
84
|
+
<div class="group group-7">
|
85
|
+
<div class="group-name">醃料</div>
|
86
|
+
</div>
|
87
|
+
<small>group-8</small>
|
88
|
+
<div class="group group-8">
|
89
|
+
<div class="group-name">醃料</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
*/
|
94
|
+
|
95
|
+
// ingredient
|
96
|
+
$ingredient-group1-text: #3c4e3c !default;
|
97
|
+
$ingredient-group1-bg: #d8f0d8 !default;
|
98
|
+
$ingredient-group2-text: #0b0045 !default;
|
99
|
+
$ingredient-group2-bg: #d3d7eb !default;
|
100
|
+
$ingredient-group3-text: #000046 !default;
|
101
|
+
$ingredient-group3-bg: #daecf4 !default;
|
102
|
+
$ingredient-group4-text: #500000 !default;
|
103
|
+
$ingredient-group4-bg: #f5dcdc !default;
|
104
|
+
$ingredient-group5-text: #463200 !default;
|
105
|
+
$ingredient-group5-bg: #fdecd3 !default;
|
106
|
+
$ingredient-group6-text: #003b22 !default;
|
107
|
+
$ingredient-group6-bg: #d8f0e6 !default;
|
108
|
+
$ingredient-group7-text: #4b0050 !default;
|
109
|
+
$ingredient-group7-bg: #f6e3fb !default;
|
110
|
+
$ingredient-group8-text: #50291b !default;
|
111
|
+
$ingredient-group8-bg: #fad6c8 !default;
|
112
|
+
$recipe-detail-border: $basic-border !default;
|
113
|
+
$recipe-detail-text: #888 !default;
|
114
|
+
// recipe-detail
|
115
|
+
$recipe-detail-title: $ic-brown !default;
|
116
|
+
$recipe-detail-title-border: $basic-border !default;
|
117
|
+
$recipe-detail-time: #888 !default;
|
118
|
+
$recipe-notes-bg: #fefee5 !default;
|
119
|
+
$recipe-notes-border: #fee59a !default;
|
120
|
+
$recipe-notes-text: #666 !default;
|
121
|
+
|
122
|
+
@each $group, $color, $background in
|
123
|
+
(1, $ingredient-group1-text, $ingredient-group1-bg),
|
124
|
+
(2, $ingredient-group2-text, $ingredient-group2-bg),
|
125
|
+
(3, $ingredient-group3-text, $ingredient-group3-bg),
|
126
|
+
(4, $ingredient-group4-text, $ingredient-group4-bg),
|
127
|
+
(5, $ingredient-group5-text, $ingredient-group5-bg),
|
128
|
+
(6, $ingredient-group6-text, $ingredient-group6-bg),
|
129
|
+
(7, $ingredient-group7-text, $ingredient-group7-bg),
|
130
|
+
(8, $ingredient-group8-text, $ingredient-group8-bg) {
|
131
|
+
|
132
|
+
.group-#{$group} .group-name,
|
133
|
+
.steps .group-#{$group} {
|
134
|
+
background-color: $background;
|
135
|
+
}
|
136
|
+
|
137
|
+
.steps .group-#{$group} {
|
138
|
+
border-radius: 10px;
|
139
|
+
color: $color;
|
140
|
+
padding: 0 6px;
|
141
|
+
}
|
142
|
+
|
143
|
+
.recipe-detail {
|
144
|
+
.group-#{$group} {
|
145
|
+
border: 1px solid $background;
|
146
|
+
|
147
|
+
.group-name {
|
148
|
+
color: $color;
|
149
|
+
padding: 10px;
|
150
|
+
}
|
151
|
+
|
152
|
+
.ingredient {
|
153
|
+
margin-left: 10px;
|
154
|
+
margin-right: 10px;
|
155
|
+
|
156
|
+
&:last-child {
|
157
|
+
border-bottom: 0;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
.recipe-detail {
|
165
|
+
.ingredient {
|
166
|
+
border-bottom: 1px solid $recipe-detail-border;
|
167
|
+
color: $recipe-detail-text;
|
168
|
+
line-height: 1.2;
|
169
|
+
padding-bottom: 10px;
|
170
|
+
padding-top: 10px;
|
171
|
+
text-align: left;
|
172
|
+
}
|
173
|
+
|
174
|
+
.ingredient-name {
|
175
|
+
max-width: 75%;
|
176
|
+
}
|
177
|
+
|
178
|
+
.group {
|
179
|
+
margin-top: 10px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.group-0 .ingredient:first-child {
|
183
|
+
padding-top: 0;
|
184
|
+
}
|
185
|
+
|
186
|
+
h3 {
|
187
|
+
border-bottom: 1px solid $recipe-detail-title;
|
188
|
+
color: $recipe-detail-title;
|
189
|
+
font-size: 16px;
|
190
|
+
line-height: 20px;
|
191
|
+
margin: 0;
|
192
|
+
padding-bottom: 5px;
|
193
|
+
}
|
194
|
+
|
195
|
+
.time {
|
196
|
+
@include icon("\f017");
|
197
|
+
|
198
|
+
color: $recipe-detail-time;
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
.notes {
|
203
|
+
background-color: $recipe-notes-bg;
|
204
|
+
border-top: 4px solid $recipe-notes-border;
|
205
|
+
margin-top: 15px;
|
206
|
+
padding: 20px 30px;
|
207
|
+
|
208
|
+
h3 {
|
209
|
+
border-bottom: 0;
|
210
|
+
font-size: 20px;
|
211
|
+
line-height: 22px;
|
212
|
+
padding-bottom: 20px;
|
213
|
+
}
|
214
|
+
|
215
|
+
p {
|
216
|
+
color: $recipe-notes-text;
|
217
|
+
font-size: 16px;
|
218
|
+
margin-bottom: 0;
|
219
|
+
word-wrap: break-word;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
}
|