cupboard 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +6 -5
- data/README.md +1 -0
- data/app/assets/pages/index.md +2 -4
- data/app/assets/stylesheets/_base.scss +9 -4
- data/app/assets/stylesheets/_components.scss +77 -61
- data/app/assets/stylesheets/_helpers.scss +14 -0
- data/app/assets/stylesheets/_layouts.scss +11 -1
- data/app/assets/stylesheets/{widgets/_widgets.scss → base/_base.scss} +5 -4
- data/app/assets/stylesheets/base/_basic.scss +24 -0
- data/app/assets/stylesheets/{_forms.scss → base/_forms.scss} +3 -3
- data/app/assets/stylesheets/base/_lists.scss +70 -0
- data/app/assets/stylesheets/{_tables.scss → base/_table.scss} +4 -4
- data/app/assets/stylesheets/{_typography.scss → base/_typography.scss} +69 -74
- data/app/assets/stylesheets/components/_alerts.scss +12 -0
- data/app/assets/stylesheets/{base/_badge.scss → components/_badges.scss} +5 -4
- data/app/assets/stylesheets/components/_breadcrumbs.scss +6 -5
- data/app/assets/stylesheets/{base → components}/_buttons.scss +3 -3
- data/app/assets/stylesheets/components/_cards.scss +2 -2
- data/app/assets/stylesheets/components/_comments.scss +12 -0
- data/app/assets/stylesheets/components/_covers.scss +12 -0
- data/app/assets/stylesheets/components/_features.scss +12 -0
- data/app/assets/stylesheets/components/_icons.scss +15 -0
- data/app/assets/stylesheets/components/_modals.scss +12 -0
- data/app/assets/stylesheets/components/_navigations.scss +3 -3
- data/app/assets/stylesheets/components/_pagination.scss +7 -7
- data/app/assets/stylesheets/components/_recipes.scss +12 -0
- data/app/assets/stylesheets/components/_search-form.scss +3 -3
- data/app/assets/stylesheets/components/_sidebars.scss +12 -0
- data/app/assets/stylesheets/components/_sorting-cards.scss +3 -3
- data/app/assets/stylesheets/components/_user.scss +12 -0
- data/app/assets/stylesheets/components/alerts/_alert-global.scss +9 -10
- data/app/assets/stylesheets/components/alerts/_alert-market.scss +8 -47
- data/app/assets/stylesheets/components/alerts/_alert-no-result.scss +46 -0
- data/app/assets/stylesheets/components/cards/_brand-product-card.scss +72 -0
- data/app/assets/stylesheets/components/cards/_dish-card.scss +2 -3
- data/app/assets/stylesheets/components/cards/_feeds-card.scss +147 -0
- data/app/assets/stylesheets/components/cards/_list-card.scss +3 -2
- data/app/assets/stylesheets/components/cards/_photo-card.scss +2 -58
- data/app/assets/stylesheets/components/cards/_product-card.scss +5 -4
- data/app/assets/stylesheets/components/cards/_video-card.scss +6 -5
- data/app/assets/stylesheets/components/comments/_comment-form.scss +5 -5
- data/app/assets/stylesheets/components/{single_comment → comments}/_single-comment.scss +5 -5
- data/app/assets/stylesheets/components/{medias → covers}/_brand-cover.scss +6 -6
- data/app/assets/stylesheets/components/{medias → covers}/_categories-cover.scss +5 -5
- data/app/assets/stylesheets/{widgets → components}/features/_feature-events.scss +5 -5
- data/app/assets/stylesheets/{widgets → components}/features/_feature-slides.scss +5 -5
- data/app/assets/stylesheets/components/icons/_footer-social-icons.scss +82 -0
- data/app/assets/stylesheets/components/icons/_icon-status.scss +67 -0
- data/app/assets/stylesheets/components/icons/_icookfont.scss +93 -0
- data/app/assets/stylesheets/{widgets/modal → components/modals}/_modal-reset.scss +6 -6
- data/app/assets/stylesheets/components/modals/_recipe-list-modal.scss +169 -0
- data/app/assets/stylesheets/components/navigations/{_blog-nav.scss → _blog-navi.scss} +5 -5
- data/app/assets/stylesheets/components/navigations/{_brand-tabs-nav.scss → _brand-tabs-navi.scss} +6 -30
- data/app/assets/stylesheets/components/navigations/{_categories-nav-responsive.scss → _categories-navi-responsive.scss} +7 -9
- data/app/assets/stylesheets/components/navigations/_categories-navi.scss +203 -0
- data/app/assets/stylesheets/components/navigations/{_tv-nav.scss → _tv-navi.scss} +11 -42
- data/app/assets/stylesheets/components/recipes/_ingredients.scss +4 -70
- data/app/assets/stylesheets/components/recipes/_notes.scss +4 -4
- data/app/assets/stylesheets/components/recipes/_recipe-details.scss +48 -0
- data/app/assets/stylesheets/components/{navigations/_recipe-nav.scss → recipes/_recipe-navi.scss} +9 -9
- data/app/assets/stylesheets/components/recipes/_steps.scss +5 -5
- data/app/assets/stylesheets/{widgets/brands/_pr-ingredients.scss → components/sidebars/_brand-ingredients.scss} +7 -12
- data/app/assets/stylesheets/{widgets/sidebar-widgets/_popular-recipe-lists.scss → components/sidebars/_brand-popular-lists.scss} +31 -44
- data/app/assets/stylesheets/{widgets/brands/_pr-recent.scss → components/sidebars/_brand-recent-events.scss} +12 -7
- data/app/assets/stylesheets/{widgets/brands/_pr-video.scss → components/sidebars/_brand-video.scss} +6 -6
- data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_business-kitchen.scss +15 -10
- data/app/assets/stylesheets/components/sidebars/_hot-categories.scss +212 -0
- data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_icook-video.scss +5 -5
- data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_popular-recipes.scss +5 -5
- data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_popular-search.scss +72 -59
- data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_recipes-collect.scss +13 -6
- data/app/assets/stylesheets/components/sidebars/_sidebar-basic.scss +77 -0
- data/app/assets/stylesheets/{widgets/tv → components/sidebars}/_tv-more-recipes.scss +20 -12
- data/app/assets/stylesheets/{widgets/tv → components/sidebars}/_tv-popular-tags.scss +14 -13
- data/app/assets/stylesheets/{widgets → components}/users/_fav-list.scss +4 -7
- data/app/assets/stylesheets/{widgets → components}/users/_user-stats.scss +3 -3
- data/app/assets/stylesheets/{mixins → helpers}/_mixin-alert.scss +1 -10
- data/app/assets/stylesheets/helpers/_mixin-animation.scss +11 -0
- data/app/assets/stylesheets/{mixins → helpers}/_mixin-badge.scss +1 -2
- data/app/assets/stylesheets/{mixins → helpers}/_mixin-buttons.scss +4 -8
- data/app/assets/stylesheets/{mixins → helpers}/_mixin-icons.scss +4 -6
- data/app/assets/stylesheets/{variables/_color-palette.scss → helpers/_variables-color.scss} +2 -2
- data/app/assets/stylesheets/layouts/{_footer.scss → _base-footer.scss} +5 -5
- data/app/assets/stylesheets/layouts/_footer-nav.scss +5 -5
- data/app/assets/stylesheets/layouts/_footers.scss +2 -2
- data/app/assets/stylesheets/layouts/_global-navbar.scss +6 -6
- data/app/assets/stylesheets/{components/_grid.scss → layouts/_grids.scss} +6 -4
- data/app/assets/stylesheets/layouts/_headers.scss +3 -3
- data/app/assets/stylesheets/layouts/_sub-header-market.scss +5 -5
- data/lib/cupboard/version.rb +1 -1
- metadata +63 -72
- data/app/assets/pages/atomic.md +0 -56
- data/app/assets/stylesheets/_basic.scss +0 -22
- data/app/assets/stylesheets/_global.scss +0 -40
- data/app/assets/stylesheets/_images.scss +0 -125
- data/app/assets/stylesheets/_lists.scss +0 -203
- data/app/assets/stylesheets/_mixins.scss +0 -6
- data/app/assets/stylesheets/_variables.scss +0 -1
- data/app/assets/stylesheets/_widgets.scss +0 -50
- data/app/assets/stylesheets/components/_accordion.scss +0 -69
- data/app/assets/stylesheets/components/_text.scss +0 -166
- data/app/assets/stylesheets/components/medias/_blog-feeds.scss +0 -28
- data/app/assets/stylesheets/components/medias/_brand-product.scss +0 -35
- data/app/assets/stylesheets/components/medias/_business-kitchen.scss +0 -66
- data/app/assets/stylesheets/components/medias/_hot-categories.scss +0 -36
- data/app/assets/stylesheets/components/medias/_popular-categories.scss +0 -89
- data/app/assets/stylesheets/components/medias/_popular-recipes.scss +0 -38
- data/app/assets/stylesheets/components/medias/_pr-lists.scss +0 -53
- data/app/assets/stylesheets/components/medias/_recipe-reference.scss +0 -45
- data/app/assets/stylesheets/components/medias/_user-recipes.scss +0 -46
- data/app/assets/stylesheets/components/navigations/_categories-nav.scss +0 -307
- data/app/assets/stylesheets/mixins/_mixin-animation.scss +0 -10
- data/app/assets/stylesheets/mixins/_mixin-type.scss +0 -7
- data/app/assets/stylesheets/widgets/_brand-sidebar-widgets.scss +0 -11
- data/app/assets/stylesheets/widgets/_recipe-mark.scss +0 -55
- data/app/assets/stylesheets/widgets/_sidebar-widgets.scss +0 -11
- data/app/assets/stylesheets/widgets/_tv-sidebar-widgets.scss +0 -11
- data/app/assets/stylesheets/widgets/_user-sidebar-widgets.scss +0 -11
- data/app/assets/stylesheets/widgets/brands/_pr-latest.scss +0 -62
- data/app/assets/stylesheets/widgets/brands/_pr-popular-recipe-lists.scss +0 -51
- data/app/assets/stylesheets/widgets/feeds/_blog-feeds.scss +0 -144
- data/app/assets/stylesheets/widgets/feeds/_tv-feeds.scss +0 -143
- data/app/assets/stylesheets/widgets/modal/_recipe-list-modal.scss +0 -111
- data/app/assets/stylesheets/widgets/sidebar-widgets/_sidebar-widget.scss +0 -62
data/app/assets/stylesheets/components/{navigations/_recipe-nav.scss → recipes/_recipe-navi.scss}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
// --------------------------------
|
2
|
-
//
|
2
|
+
// Components - Recipe navi
|
3
3
|
// --------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
parent:
|
8
|
-
|
9
|
-
|
7
|
+
parent: 08_recipes
|
8
|
+
name: 04_recipe-navi
|
9
|
+
title: Navi
|
10
10
|
---
|
11
11
|
|
12
12
|
<div><p>in recipes/show</p></div>
|
@@ -93,7 +93,11 @@ $category-tag-icon: #ac8c85 !default;
|
|
93
93
|
}
|
94
94
|
}
|
95
95
|
|
96
|
-
|
96
|
+
&:last-child {
|
97
|
+
margin-right: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
+ li {
|
97
101
|
@include icon("\f054");
|
98
102
|
|
99
103
|
&:before {
|
@@ -104,9 +108,5 @@ $category-tag-icon: #ac8c85 !default;
|
|
104
108
|
width: 12px;
|
105
109
|
}
|
106
110
|
}
|
107
|
-
|
108
|
-
&:last-child {
|
109
|
-
margin-right: 0;
|
110
|
-
}
|
111
111
|
}
|
112
112
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
// --------------------------------
|
2
|
-
//
|
2
|
+
// Components - Recipe steps
|
3
3
|
// --------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
parent: 08_recipes
|
8
|
+
name: 02_steps
|
9
|
+
title: Steps
|
10
10
|
---
|
11
11
|
|
12
12
|
<div class="recipe-detail">
|
@@ -55,7 +55,7 @@ category: UI components
|
|
55
55
|
</li>
|
56
56
|
</ul>
|
57
57
|
<div>
|
58
|
-
<
|
58
|
+
<h4>group name in step</h4>
|
59
59
|
<span class="group-1">醃料</span>
|
60
60
|
<span class="group-2">醃料</span>
|
61
61
|
<span class="group-3">醃料</span>
|
@@ -1,15 +1,15 @@
|
|
1
1
|
@import "compass/typography/text/ellipsis";
|
2
2
|
@import "compass/css3/images";
|
3
3
|
|
4
|
-
//
|
5
|
-
//
|
6
|
-
//
|
4
|
+
// --------------------------------------------
|
5
|
+
// Components - Sidebars - brand ingredients
|
6
|
+
// --------------------------------------------
|
7
7
|
|
8
8
|
/*doc
|
9
9
|
---
|
10
|
-
parent:
|
11
|
-
title:
|
12
|
-
name:
|
10
|
+
parent: 17_sidebars
|
11
|
+
title: Brand ingredients
|
12
|
+
name: 09_brand_ingredients
|
13
13
|
---
|
14
14
|
|
15
15
|
<div class="row">
|
@@ -61,7 +61,6 @@ name: pr_ingredients
|
|
61
61
|
</a>
|
62
62
|
</li>
|
63
63
|
</ul>
|
64
|
-
</ul>
|
65
64
|
</div>
|
66
65
|
</div>
|
67
66
|
</div>
|
@@ -76,11 +75,7 @@ $pr-ingredients-tag-text: #5c4545 !default;
|
|
76
75
|
$pr-ingredients-tag-border: #ccc !default;
|
77
76
|
|
78
77
|
.pr-ingredients {
|
79
|
-
@include background-image(image-url("/images/section_bg.jpg"));
|
80
|
-
|
81
78
|
background-repeat: repeat;
|
82
|
-
border: 1px solid $pr-ingredients-border;
|
83
|
-
padding: 10px;
|
84
79
|
|
85
80
|
span {
|
86
81
|
@include icon("\f111");
|
@@ -111,7 +106,7 @@ $pr-ingredients-tag-border: #ccc !default;
|
|
111
106
|
ul {
|
112
107
|
background-color: $pr-ingredients-bg;
|
113
108
|
margin-bottom: 0;
|
114
|
-
padding:
|
109
|
+
padding: 0 5px;
|
115
110
|
}
|
116
111
|
|
117
112
|
li {
|
@@ -1,66 +1,48 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
1
|
+
// ----------------------------------------------
|
2
|
+
// Components - Sidebars - brand popular lists
|
3
|
+
// ----------------------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
parent:
|
8
|
-
title:
|
9
|
-
name:
|
7
|
+
parent: 17_sidebars
|
8
|
+
title: Brand popular lists
|
9
|
+
name: 07_brand_popular_lists
|
10
10
|
---
|
11
11
|
|
12
12
|
<div class="row">
|
13
13
|
<div class="col-xs-12 col-sm-6">
|
14
14
|
<div class="inner-block widget">
|
15
15
|
<div class="popular-recipe-lists">
|
16
|
-
<h4 class="title"
|
17
|
-
<
|
18
|
-
<li
|
19
|
-
<a class="media clearfix" href="
|
16
|
+
<h4 class="title">精選清單</h4>
|
17
|
+
<ul>
|
18
|
+
<li>
|
19
|
+
<a class="media clearfix" href="/brands/wumu/lists/1772072?ref=sidebar">
|
20
20
|
<span class="media-body">
|
21
|
-
|
22
|
-
<span
|
21
|
+
<img src="/images/recipe-default.png" alt="愛料理食驗室" class="pull-left img-responsive">
|
22
|
+
<span>愛料理食驗室</span>
|
23
23
|
</span>
|
24
|
-
<span class="text-right pull-right">
|
24
|
+
<span class="text-right pull-right">34 道食譜</span>
|
25
25
|
</a>
|
26
26
|
</li>
|
27
|
-
<li
|
28
|
-
<a class="media clearfix" href="
|
27
|
+
<li>
|
28
|
+
<a class="media clearfix" href="/brands/wumu/lists/946095?ref=sidebar">
|
29
29
|
<span class="media-body">
|
30
|
-
|
31
|
-
<span
|
30
|
+
<img src="/images/recipe-default.png" alt="愛料理廚房" class="pull-left img-responsive">
|
31
|
+
<span>愛料理廚房</span>
|
32
32
|
</span>
|
33
|
-
<span class="text-right pull-right">
|
33
|
+
<span class="text-right pull-right">8 道食譜</span>
|
34
34
|
</a>
|
35
35
|
</li>
|
36
|
-
<li
|
37
|
-
<a class="media clearfix" href="
|
36
|
+
<li>
|
37
|
+
<a class="media clearfix" href="/brands/wumu/lists/946095?ref=sidebar">
|
38
38
|
<span class="media-body">
|
39
|
-
|
40
|
-
<span
|
39
|
+
<img src="/images/recipe-default.png" alt="電鍋好味道" class="pull-left img-responsive">
|
40
|
+
<span>電鍋好味道</span>
|
41
41
|
</span>
|
42
|
-
<span class="text-right pull-right">
|
42
|
+
<span class="text-right pull-right">186 道食譜</span>
|
43
43
|
</a>
|
44
44
|
</li>
|
45
|
-
|
46
|
-
<a class="media clearfix" href="#">
|
47
|
-
<span class="media-body">
|
48
|
-
<img class="pull-left img-responsive" src="/images/recipe-default.png" alt="">
|
49
|
-
<span>奶酪</span>
|
50
|
-
</span>
|
51
|
-
<span class="text-right pull-right">166 道食譜</span>
|
52
|
-
</a>
|
53
|
-
</li>
|
54
|
-
<li class="clearfix">
|
55
|
-
<a class="media clearfix" href="#">
|
56
|
-
<span class="media-body">
|
57
|
-
<img class="pull-left img-responsive" src="/images/recipe-default.png" alt="">
|
58
|
-
<span>寶寶副食品</span>
|
59
|
-
</span>
|
60
|
-
<span class="text-right pull-right">426 道食譜</span>
|
61
|
-
</a>
|
62
|
-
</li>
|
63
|
-
</ol>
|
45
|
+
</ul>
|
64
46
|
</div>
|
65
47
|
</div>
|
66
48
|
</div>
|
@@ -74,11 +56,16 @@ $popular-recipe-lists-text: #aa8f83 !default;
|
|
74
56
|
$popular-recipe-lists-icon-bg: $white !default;
|
75
57
|
$popular-recipe-lists-icon-text: $orange !default;
|
76
58
|
|
77
|
-
// brands 精選清單
|
78
|
-
// popular-recipe-lists
|
59
|
+
// brands 精選清單
|
79
60
|
.popular-recipe-lists {
|
80
61
|
li {
|
62
|
+
padding-bottom: 10px;
|
81
63
|
position: relative;
|
64
|
+
|
65
|
+
+ li {
|
66
|
+
border-top: 1px solid $basic-border;
|
67
|
+
padding-top: 10px;
|
68
|
+
}
|
82
69
|
}
|
83
70
|
|
84
71
|
a {
|
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
//
|
1
|
+
//-----------------------------------------------
|
2
|
+
// Components - Sidebars - brand recent events
|
3
|
+
// ----------------------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
parent:
|
8
|
-
title:
|
9
|
-
name:
|
7
|
+
parent: 17_sidebars
|
8
|
+
title: Brand recent events
|
9
|
+
name: 08_brand_recent_events
|
10
10
|
---
|
11
11
|
|
12
12
|
<div class="row">
|
@@ -33,7 +33,12 @@ $pr-recent-title: #888 !default;
|
|
33
33
|
|
34
34
|
.pr-recent {
|
35
35
|
li {
|
36
|
-
padding-
|
36
|
+
padding-bottom: 10px;
|
37
|
+
|
38
|
+
+ li {
|
39
|
+
border-top: 1px solid $basic-border;
|
40
|
+
padding-top: 10px;
|
41
|
+
}
|
37
42
|
}
|
38
43
|
|
39
44
|
a {
|
data/app/assets/stylesheets/{widgets/brands/_pr-video.scss → components/sidebars/_brand-video.scss}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
1
|
+
// ----------------------------------------------
|
2
|
+
// Components - Sidebars - brand video
|
3
|
+
// ----------------------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
parent:
|
8
|
-
title:
|
9
|
-
name:
|
7
|
+
parent: 17_sidebars
|
8
|
+
title: Brand video
|
9
|
+
name: 10_brand_video
|
10
10
|
---
|
11
11
|
|
12
12
|
<div class="row">
|
data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_business-kitchen.scss
RENAMED
@@ -1,15 +1,15 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
1
|
+
// -------------------------------------------
|
2
|
+
// Components - Sidebars - business kitchen
|
3
|
+
// -------------------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
parent:
|
7
|
+
parent: 17_sidebars
|
8
8
|
title: Business kitchen
|
9
|
-
name:
|
9
|
+
name: 01_business_kitchen
|
10
10
|
---
|
11
11
|
<div class="row">
|
12
|
-
<div class="col-xs-12 col-sm-
|
12
|
+
<div class="col-xs-12 col-sm-6">
|
13
13
|
<div class="inner-block widget business-accounts">
|
14
14
|
<h3 class="title">品牌廚房<a rel="nofollow" class="link-to-more pull-right" href="#">更多</a></h3>
|
15
15
|
<ul>
|
@@ -85,6 +85,7 @@ $recipes-business-accounts-brand-name: #777 !default;
|
|
85
85
|
|
86
86
|
.business-accounts {
|
87
87
|
li {
|
88
|
+
margin-top: 0;
|
88
89
|
padding: 10px 0;
|
89
90
|
|
90
91
|
> .media-left a {
|
@@ -93,16 +94,20 @@ $recipes-business-accounts-brand-name: #777 !default;
|
|
93
94
|
width: 88px;
|
94
95
|
}
|
95
96
|
|
97
|
+
+ li {
|
98
|
+
border-top: 1px solid $basic-border;
|
99
|
+
}
|
100
|
+
|
101
|
+
&:first-child {
|
102
|
+
padding-top: 0;
|
103
|
+
}
|
104
|
+
|
96
105
|
img {
|
97
106
|
background-color: $recipes-business-accounts-bg;
|
98
107
|
width: 100%;
|
99
108
|
}
|
100
109
|
}
|
101
110
|
|
102
|
-
.title {
|
103
|
-
margin-bottom: 10px;
|
104
|
-
}
|
105
|
-
|
106
111
|
.recipe-title,
|
107
112
|
.brand-name {
|
108
113
|
@include ellipsis;
|
@@ -0,0 +1,212 @@
|
|
1
|
+
// -----------------------------------------
|
2
|
+
// Components - Sidebars - hot categories
|
3
|
+
// -----------------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
parent: 17_sidebars
|
8
|
+
title: Hot categories
|
9
|
+
name: 03_hot_categories
|
10
|
+
---
|
11
|
+
|
12
|
+
<div class="row">
|
13
|
+
<div class="col-xs-12 col-sm-6">
|
14
|
+
<div class="hot-categories">
|
15
|
+
<div class="title">精選主題分類</div>
|
16
|
+
<ul class="clearfix">
|
17
|
+
<li>
|
18
|
+
<a title="羊肉" href="#">
|
19
|
+
<div class="img">
|
20
|
+
<img alt="羊肉" src="/images/recipe-default.png">
|
21
|
+
</div>
|
22
|
+
<span>羊肉</span>
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
<li>
|
26
|
+
<a title="芒果" href="#">
|
27
|
+
<div class="img">
|
28
|
+
<img alt="芒果" src="/images/recipe-default.png">
|
29
|
+
</div>
|
30
|
+
<span>芒果</span>
|
31
|
+
</a>
|
32
|
+
</li>
|
33
|
+
<li>
|
34
|
+
<a title="餃子鍋貼" href="#">
|
35
|
+
<div class="img">
|
36
|
+
<img alt="餃子鍋貼" src="/images/recipe-default.png">
|
37
|
+
</div>
|
38
|
+
<span>餃子鍋貼</span>
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
<li>
|
42
|
+
<a title="餛飩抄手" href="#">
|
43
|
+
<div class="img">
|
44
|
+
<img alt="餛飩抄手" src="/images/recipe-default.png">
|
45
|
+
</div>
|
46
|
+
<span>餛飩抄手</span>
|
47
|
+
</a>
|
48
|
+
</li>
|
49
|
+
<li>
|
50
|
+
<a title="苦瓜" href="#">
|
51
|
+
<div class="img">
|
52
|
+
<img alt="苦瓜" src="/images/recipe-default.png">
|
53
|
+
</div>
|
54
|
+
<span>苦瓜</span>
|
55
|
+
</a>
|
56
|
+
</li>
|
57
|
+
<li>
|
58
|
+
<a title="草莓" href="#">
|
59
|
+
<div class="img">
|
60
|
+
<img alt="草莓" src="/images/recipe-default.png">
|
61
|
+
</div>
|
62
|
+
<span>草莓</span>
|
63
|
+
</a>
|
64
|
+
</li>
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
*/
|
71
|
+
|
72
|
+
$hot-categories-title-bg: #f9f7f2 !default;
|
73
|
+
$hot-categories-link: #888 !default;
|
74
|
+
$hot-categories-link-hover: $ic-brown !default;
|
75
|
+
|
76
|
+
.hot-categories {
|
77
|
+
background-color: $white;
|
78
|
+
border: 1px solid $basic-border;
|
79
|
+
margin-bottom: 20px;
|
80
|
+
|
81
|
+
.title {
|
82
|
+
background-color: $hot-categories-title-bg;
|
83
|
+
border-bottom: 1px solid $basic-border;
|
84
|
+
color: $ic-brown;
|
85
|
+
line-height: 1;
|
86
|
+
margin-bottom: 0;
|
87
|
+
padding: 14px 15px;
|
88
|
+
text-align: left;
|
89
|
+
}
|
90
|
+
|
91
|
+
ul {
|
92
|
+
background-color: $white;
|
93
|
+
display: -ms-flexbox; // IE10
|
94
|
+
display: -webkit-flex; //safari
|
95
|
+
display: box; //for only support old ver. browsers...
|
96
|
+
display: flex;
|
97
|
+
-ms-flex-pack: center;
|
98
|
+
-ms-flex-wrap: wrap;
|
99
|
+
-webkit-flex-wrap: wrap;
|
100
|
+
flex-wrap: wrap;
|
101
|
+
-webkit-justify-content: space-between;
|
102
|
+
justify-content: space-between;
|
103
|
+
margin-bottom: 0;
|
104
|
+
padding: 15px 15px 0;
|
105
|
+
}
|
106
|
+
|
107
|
+
li {
|
108
|
+
-ms-flex: none;
|
109
|
+
-webkit-flex: none;
|
110
|
+
border-bottom: 0;
|
111
|
+
flex: none;
|
112
|
+
list-style: none;
|
113
|
+
margin-bottom: 0;
|
114
|
+
padding-bottom: 0;
|
115
|
+
padding-top: 0;
|
116
|
+
width: 48%;
|
117
|
+
|
118
|
+
a {
|
119
|
+
color: $hot-categories-link;
|
120
|
+
display: block;
|
121
|
+
|
122
|
+
&:hover {
|
123
|
+
color: $hot-categories-link-hover;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
.img {
|
129
|
+
border-radius: 3px;
|
130
|
+
overflow: hidden;
|
131
|
+
}
|
132
|
+
|
133
|
+
img {
|
134
|
+
width: 100%;
|
135
|
+
}
|
136
|
+
|
137
|
+
span {
|
138
|
+
@include ellipsis;
|
139
|
+
|
140
|
+
color: $ic-brown;
|
141
|
+
display: block;
|
142
|
+
font-size: 16px;
|
143
|
+
padding-bottom: 10px;
|
144
|
+
padding-top: 10px;
|
145
|
+
text-align: left;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
@media only screen and (min-width: 992px) {
|
150
|
+
.hot-categories {
|
151
|
+
li {
|
152
|
+
&:first-child {
|
153
|
+
margin-left: -1em;
|
154
|
+
}
|
155
|
+
|
156
|
+
&:last-child {
|
157
|
+
margin-right: -1em;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
@media only screen and (max-width: 991px) {
|
164
|
+
.hot-categories {
|
165
|
+
ul {
|
166
|
+
-ms-flex-wrap: nowrap;
|
167
|
+
-webkit-flex-wrap: nowrap;
|
168
|
+
flex-wrap: nowrap;
|
169
|
+
}
|
170
|
+
|
171
|
+
li {
|
172
|
+
width: 19%;
|
173
|
+
|
174
|
+
+ li {
|
175
|
+
margin-left: 0.6em;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
.img {
|
180
|
+
height: 100%;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
186
|
+
.hot-categories {
|
187
|
+
li:last-child {
|
188
|
+
display: none;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
@media only screen and (max-width: 767px) {
|
194
|
+
.hot-categories {
|
195
|
+
ul {
|
196
|
+
display: block;
|
197
|
+
}
|
198
|
+
|
199
|
+
li {
|
200
|
+
float: left;
|
201
|
+
width: 48%;
|
202
|
+
|
203
|
+
+ li {
|
204
|
+
margin-left: 0;
|
205
|
+
}
|
206
|
+
|
207
|
+
&:nth-child(even) {
|
208
|
+
float: right;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_icook-video.scss
RENAMED
@@ -1,14 +1,14 @@
|
|
1
1
|
@import "compass/typography/text/ellipsis";
|
2
2
|
|
3
|
-
//
|
4
|
-
//
|
5
|
-
//
|
3
|
+
// --------------------------------------
|
4
|
+
// Components - Sidebars - icook video
|
5
|
+
// --------------------------------------
|
6
6
|
|
7
7
|
/*doc
|
8
8
|
---
|
9
|
-
parent:
|
9
|
+
parent: 17_sidebars
|
10
10
|
title: iCook video
|
11
|
-
name:
|
11
|
+
name: 06_icook_video
|
12
12
|
---
|
13
13
|
|
14
14
|
<div class="row">
|
data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_popular-recipes.scss
RENAMED
@@ -1,12 +1,12 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
1
|
+
// ------------------------------------------
|
2
|
+
// Components - Sidebars - popular recipes
|
3
|
+
// ------------------------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
|
-
parent:
|
7
|
+
parent: 17_sidebars
|
8
8
|
title: Popular recipes
|
9
|
-
name:
|
9
|
+
name: 04_popular_recipes
|
10
10
|
---
|
11
11
|
|
12
12
|
<div class="row">
|