cupboard 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/assets/images/icook-logo-footer.svg +1 -0
  4. data/app/assets/images/vip_modal.svg +1 -0
  5. data/app/assets/stylesheets/_base.scss +3 -1
  6. data/app/assets/stylesheets/_components.scss +31 -29
  7. data/app/assets/stylesheets/_helpers.scss +4 -3
  8. data/app/assets/stylesheets/_layouts.scss +1 -2
  9. data/app/assets/stylesheets/_vendors.scss +7 -0
  10. data/app/assets/stylesheets/base/_basic.scss +35 -0
  11. data/app/assets/stylesheets/base/_forms.scss +96 -50
  12. data/app/assets/stylesheets/base/_inputs.scss +85 -0
  13. data/app/assets/stylesheets/base/_lists.scss +1 -1
  14. data/app/assets/stylesheets/base/{_table.scss → _tables.scss} +12 -12
  15. data/app/assets/stylesheets/base/_typography.scss +34 -210
  16. data/app/assets/stylesheets/components/_badges.scss +47 -10
  17. data/app/assets/stylesheets/components/_breadcrumbs.scss +25 -9
  18. data/app/assets/stylesheets/components/_buttons.scss +3 -207
  19. data/app/assets/stylesheets/components/_pagination.scss +26 -16
  20. data/app/assets/stylesheets/components/_search-form.scss +89 -28
  21. data/app/assets/stylesheets/components/_sorting-cards.scss +1 -1
  22. data/app/assets/stylesheets/components/alerts/_alert-global.scss +45 -23
  23. data/app/assets/stylesheets/components/alerts/_alert-market.scss +6 -6
  24. data/app/assets/stylesheets/components/alerts/_alert-no-result.scss +1 -0
  25. data/app/assets/stylesheets/components/alerts/_report-msg.scss +51 -0
  26. data/app/assets/stylesheets/components/buttons/_card-buttons.scss +88 -0
  27. data/app/assets/stylesheets/components/buttons/_default-buttons.scss +98 -0
  28. data/app/assets/stylesheets/components/buttons/_round-buttons.scss +125 -0
  29. data/app/assets/stylesheets/components/cards/_brand-product-card.scss +65 -36
  30. data/app/assets/stylesheets/components/cards/_dish-card.scss +8 -12
  31. data/app/assets/stylesheets/components/cards/_featured-card.scss +69 -0
  32. data/app/assets/stylesheets/components/cards/_feeds-card.scss +9 -12
  33. data/app/assets/stylesheets/components/cards/_list-card.scss +88 -96
  34. data/app/assets/stylesheets/components/cards/_photo-card.scss +57 -101
  35. data/app/assets/stylesheets/components/cards/_product-card.scss +8 -8
  36. data/app/assets/stylesheets/components/cards/_recipe-card.scss +86 -67
  37. data/app/assets/stylesheets/components/cards/_video-card.scss +28 -29
  38. data/app/assets/stylesheets/components/comments/_comment-form.scss +5 -13
  39. data/app/assets/stylesheets/components/comments/_single-comment.scss +21 -14
  40. data/app/assets/stylesheets/components/covers/_brand-cover.scss +1 -1
  41. data/app/assets/stylesheets/components/covers/_categories-cover.scss +65 -45
  42. data/app/assets/stylesheets/components/covers/_users-cover.scss +75 -0
  43. data/app/assets/stylesheets/components/features/_feature-events.scss +2 -5
  44. data/app/assets/stylesheets/components/features/_feature-slides.scss +5 -6
  45. data/app/assets/stylesheets/components/icons/_footer-social-icons.scss +11 -34
  46. data/app/assets/stylesheets/components/icons/_icon-status.scss +12 -16
  47. data/app/assets/stylesheets/components/icons/_icookfont.scss +5 -0
  48. data/app/assets/stylesheets/components/modals/_modal-reset.scss +1 -1
  49. data/app/assets/stylesheets/components/modals/_recipe-list-modal.scss +8 -5
  50. data/app/assets/stylesheets/components/modals/_vip-modal.scss +114 -0
  51. data/app/assets/stylesheets/components/navigations/_blog-navi.scss +15 -19
  52. data/app/assets/stylesheets/components/navigations/_brand-tabs-navi.scss +4 -4
  53. data/app/assets/stylesheets/components/navigations/_categories-navi.scss +54 -137
  54. data/app/assets/stylesheets/components/recipes/_ingredients.scss +17 -22
  55. data/app/assets/stylesheets/components/recipes/_notes.scss +2 -2
  56. data/app/assets/stylesheets/components/recipes/_recipe-details.scss +5 -3
  57. data/app/assets/stylesheets/components/recipes/_recipe-navi.scss +29 -32
  58. data/app/assets/stylesheets/components/recipes/_steps.scss +2 -9
  59. data/app/assets/stylesheets/components/sidebars/_brand-ingredients.scss +3 -8
  60. data/app/assets/stylesheets/components/sidebars/_brand-popular-lists.scss +10 -13
  61. data/app/assets/stylesheets/components/sidebars/_brand-recent-events.scss +1 -2
  62. data/app/assets/stylesheets/components/sidebars/_business-kitchen.scss +11 -10
  63. data/app/assets/stylesheets/components/sidebars/_business-sponsors.scss +65 -0
  64. data/app/assets/stylesheets/components/sidebars/_hot-categories.scss +20 -39
  65. data/app/assets/stylesheets/components/sidebars/_icook-video.scss +4 -8
  66. data/app/assets/stylesheets/components/sidebars/_popular-recipes.scss +88 -33
  67. data/app/assets/stylesheets/components/sidebars/_popular-search.scss +17 -25
  68. data/app/assets/stylesheets/components/sidebars/_recipes-collect.scss +5 -2
  69. data/app/assets/stylesheets/components/sidebars/_sidebar-basic.scss +5 -14
  70. data/app/assets/stylesheets/components/sidebars/_tv-more-recipes.scss +3 -4
  71. data/app/assets/stylesheets/components/sidebars/_tv-popular-tags.scss +4 -5
  72. data/app/assets/stylesheets/components/users/_fav-list.scss +6 -8
  73. data/app/assets/stylesheets/components/users/_user-stats.scss +29 -25
  74. data/app/assets/stylesheets/helpers/_mixin-badge.scss +4 -3
  75. data/app/assets/stylesheets/helpers/_mixin-ellipsis.scss +39 -0
  76. data/app/assets/stylesheets/helpers/_mixin-flex.scss +247 -0
  77. data/app/assets/stylesheets/helpers/_mixin-icons.scss +6 -18
  78. data/app/assets/stylesheets/helpers/_variables-color.scss +47 -83
  79. data/app/assets/stylesheets/layouts/_base-footer.scss +15 -18
  80. data/app/assets/stylesheets/layouts/_global-navbar.scss +12 -15
  81. data/app/assets/stylesheets/layouts/_mega-footer.scss +298 -0
  82. data/app/assets/stylesheets/vendors/SpinKit/.bower.json +30 -0
  83. data/app/assets/stylesheets/vendors/SpinKit/CHANGELOG.md +40 -0
  84. data/app/assets/stylesheets/vendors/SpinKit/CONTRIBUTING.md +22 -0
  85. data/app/assets/stylesheets/vendors/SpinKit/LICENSE +20 -0
  86. data/app/assets/stylesheets/vendors/SpinKit/README.md +72 -0
  87. data/app/assets/stylesheets/vendors/SpinKit/bower.json +19 -0
  88. data/app/assets/stylesheets/vendors/SpinKit/css/spinkit.css +770 -0
  89. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/1-rotating-plane.css +35 -0
  90. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/10-fading-circle.css +129 -0
  91. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/11-folding-cube.css +85 -0
  92. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/2-double-bounce.css +44 -0
  93. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/3-wave.css +56 -0
  94. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/4-wandering-cubes.css +68 -0
  95. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/5-pulse.css +32 -0
  96. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/6-chasing-dots.css +58 -0
  97. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/7-three-bounce.css +44 -0
  98. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/8-circle.css +133 -0
  99. data/app/assets/stylesheets/vendors/SpinKit/css/spinners/9-cube-grid.css +76 -0
  100. data/app/assets/stylesheets/vendors/SpinKit/examples/1-rotating-plane.html +49 -0
  101. data/app/assets/stylesheets/vendors/SpinKit/examples/10-fading-circle.html +156 -0
  102. data/app/assets/stylesheets/vendors/SpinKit/examples/11-folding-cube.html +104 -0
  103. data/app/assets/stylesheets/vendors/SpinKit/examples/2-double-bounce.html +61 -0
  104. data/app/assets/stylesheets/vendors/SpinKit/examples/3-wave.html +76 -0
  105. data/app/assets/stylesheets/vendors/SpinKit/examples/4-wandering-cubes.html +85 -0
  106. data/app/assets/stylesheets/vendors/SpinKit/examples/5-pulse.html +46 -0
  107. data/app/assets/stylesheets/vendors/SpinKit/examples/6-chasing-dots.html +75 -0
  108. data/app/assets/stylesheets/vendors/SpinKit/examples/7-three-bounce.html +62 -0
  109. data/app/assets/stylesheets/vendors/SpinKit/examples/8-circle.html +160 -0
  110. data/app/assets/stylesheets/vendors/SpinKit/examples/9-cube-grid.html +100 -0
  111. data/app/assets/stylesheets/vendors/SpinKit/gulpfile.js +97 -0
  112. data/app/assets/stylesheets/vendors/SpinKit/package.json +34 -0
  113. data/app/assets/stylesheets/vendors/SpinKit/scss/_variables.scss +3 -0
  114. data/app/assets/stylesheets/vendors/SpinKit/scss/spinkit.scss +12 -0
  115. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/1-rotating-plane.scss +25 -0
  116. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/10-fading-circle.scss +63 -0
  117. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/11-folding-cube.scss +70 -0
  118. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/2-double-bounce.scss +38 -0
  119. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/3-wave.scss +42 -0
  120. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/4-wandering-cubes.scss +51 -0
  121. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/5-pulse.scss +25 -0
  122. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/6-chasing-dots.scss +52 -0
  123. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/7-three-bounce.scss +40 -0
  124. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/8-circle.scss +62 -0
  125. data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/9-cube-grid.scss +55 -0
  126. data/lib/cupboard/version.rb +1 -1
  127. metadata +62 -8
  128. data/app/assets/stylesheets/components/navigations/_categories-navi-responsive.scss +0 -129
  129. data/app/assets/stylesheets/components/navigations/_tv-navi.scss +0 -252
  130. data/app/assets/stylesheets/helpers/_mixin-buttons.scss +0 -17
  131. data/app/assets/stylesheets/layouts/_footer-nav.scss +0 -151
  132. data/app/assets/stylesheets/layouts/_sub-header-market.scss +0 -138
@@ -70,7 +70,7 @@ title: Steps
70
70
  */
71
71
 
72
72
  $recipe-steps-border: #969696 !default;
73
- $recipe-steps-order: $ic-brown !default;
73
+ $recipe-steps-order: $brown !default;
74
74
  $recipe-step-border: $basic-border !default;
75
75
  $recipe-step-text: #666 !default;
76
76
 
@@ -94,14 +94,6 @@ $recipe-step-text: #666 !default;
94
94
  ul {
95
95
  padding-left: 0;
96
96
  }
97
-
98
- .group_1,
99
- .group_2,
100
- .group_3,
101
- .group_4,
102
- .group_5 {
103
- padding: 0 4px;
104
- }
105
97
  }
106
98
 
107
99
  .step {
@@ -151,3 +143,4 @@ $recipe-step-text: #666 !default;
151
143
  width: 100%;
152
144
  }
153
145
  }
146
+
@@ -1,6 +1,3 @@
1
- @import "compass/typography/text/ellipsis";
2
- @import "compass/css3/images";
3
-
4
1
  // --------------------------------------------
5
2
  // Components - Sidebars - brand ingredients
6
3
  // --------------------------------------------
@@ -75,11 +72,7 @@ $pr-ingredients-tag-text: #5c4545 !default;
75
72
  $pr-ingredients-tag-border: #ccc !default;
76
73
 
77
74
  .pr-ingredients {
78
- background-repeat: repeat;
79
-
80
75
  span {
81
- @include icon("\f111");
82
-
83
76
  background-color: $pr-ingredients-round;
84
77
  display: block;
85
78
  height: 22px;
@@ -90,6 +83,8 @@ $pr-ingredients-tag-border: #ccc !default;
90
83
  z-index: 2;
91
84
 
92
85
  &::before {
86
+ @include icon-util("\f111", "FontAwesome");
87
+
93
88
  color: $pr-ingredients-round;
94
89
  float: left;
95
90
  font-size: 12px;
@@ -105,7 +100,7 @@ $pr-ingredients-tag-border: #ccc !default;
105
100
 
106
101
  ul {
107
102
  background-color: $pr-ingredients-bg;
108
- margin-bottom: 0;
103
+ margin-bottom: -10px;
109
104
  padding: 0 5px;
110
105
  }
111
106
 
@@ -16,7 +16,7 @@ name: 07_brand_popular_lists
16
16
  <h4 class="title">精選清單</h4>
17
17
  <ul>
18
18
  <li>
19
- <a class="media clearfix" href="/brands/wumu/lists/1772072?ref=sidebar">
19
+ <a class="media clearfix" href="#">
20
20
  <span class="media-body">
21
21
  <img src="/images/recipe-default.png" alt="愛料理食驗室" class="pull-left img-responsive">
22
22
  <span>愛料理食驗室</span>
@@ -25,7 +25,7 @@ name: 07_brand_popular_lists
25
25
  </a>
26
26
  </li>
27
27
  <li>
28
- <a class="media clearfix" href="/brands/wumu/lists/946095?ref=sidebar">
28
+ <a class="media clearfix" href="#">
29
29
  <span class="media-body">
30
30
  <img src="/images/recipe-default.png" alt="愛料理廚房" class="pull-left img-responsive">
31
31
  <span>愛料理廚房</span>
@@ -34,7 +34,7 @@ name: 07_brand_popular_lists
34
34
  </a>
35
35
  </li>
36
36
  <li>
37
- <a class="media clearfix" href="/brands/wumu/lists/946095?ref=sidebar">
37
+ <a class="media clearfix" href="#">
38
38
  <span class="media-body">
39
39
  <img src="/images/recipe-default.png" alt="電鍋好味道" class="pull-left img-responsive">
40
40
  <span>電鍋好味道</span>
@@ -50,25 +50,24 @@ name: 07_brand_popular_lists
50
50
 
51
51
  */
52
52
 
53
- @import "compass/typography/text/ellipsis";
54
-
55
53
  $popular-recipe-lists-text: #aa8f83 !default;
56
54
  $popular-recipe-lists-icon-bg: $white !default;
57
- $popular-recipe-lists-icon-text: $orange !default;
55
+ $popular-recipe-lists-icon-text: $orange-red !default;
58
56
 
59
57
  // brands 精選清單
60
58
  .popular-recipe-lists {
61
59
  li {
62
- padding-bottom: 10px;
60
+ padding-bottom: 10px;
63
61
  position: relative;
64
62
 
65
63
  + li {
66
64
  border-top: 1px solid $basic-border;
67
- padding-top: 10px;
65
+ padding-top: 10px;
68
66
  }
69
67
  }
70
68
 
71
69
  a {
70
+ color: $brown;
72
71
  position: static;
73
72
 
74
73
  &:hover {
@@ -88,7 +87,6 @@ $popular-recipe-lists-icon-text: $orange !default;
88
87
  > span {
89
88
  @include ellipsis;
90
89
 
91
- display: inline;
92
90
  float: left;
93
91
  font-size: 16px;
94
92
  width: 65%;
@@ -96,8 +94,6 @@ $popular-recipe-lists-icon-text: $orange !default;
96
94
  }
97
95
 
98
96
  .pull-right {
99
- @include icon-b("\f0a9");
100
-
101
97
  color: $popular-recipe-lists-text;
102
98
  font-size: 12px;
103
99
  letter-spacing: 0.01em;
@@ -109,6 +105,8 @@ $popular-recipe-lists-icon-text: $orange !default;
109
105
  width: 8.5em;
110
106
 
111
107
  &::after {
108
+ @include icon-util("\f0a9", "FontAwesome");
109
+
112
110
  background-color: $popular-recipe-lists-icon-bg;
113
111
  color: $popular-recipe-lists-icon-text;
114
112
  font-size: 14px;
@@ -121,8 +119,7 @@ $popular-recipe-lists-icon-text: $orange !default;
121
119
  }
122
120
 
123
121
  img {
124
- @include background(image-url("default/category_default.jpg"), no-repeat);
125
-
122
+ background: image-url("default/category_default.jpg"), no-repeat;
126
123
  height: 51px;
127
124
  margin-right: 10px;
128
125
  width: 68px;
@@ -28,7 +28,7 @@ name: 08_brand_recent_events
28
28
  </div>
29
29
  */
30
30
 
31
- $pr-recent-link: #5c4545 !default;
31
+ $pr-recent-link: $brown !default;
32
32
  $pr-recent-title: #888 !default;
33
33
 
34
34
  .pr-recent {
@@ -45,7 +45,6 @@ $pr-recent-title: #888 !default;
45
45
  @include ellipsis;
46
46
 
47
47
  color: $pr-recent-link;
48
- display: inline-block;
49
48
  float: left;
50
49
  letter-spacing: 0.05em;
51
50
  max-width: 74%;
@@ -80,7 +80,7 @@ name: 01_business_kitchen
80
80
  */
81
81
 
82
82
  $recipes-business-accounts-bg: $basic-bg !default;
83
- $recipes-business-accounts-title: $ic-brown !default;
83
+ $recipes-business-accounts-title: $brown !default;
84
84
  $recipes-business-accounts-brand-name: #777 !default;
85
85
 
86
86
  .business-accounts {
@@ -88,12 +88,6 @@ $recipes-business-accounts-brand-name: #777 !default;
88
88
  margin-top: 0;
89
89
  padding: 10px 0;
90
90
 
91
- > .media-left a {
92
- height: 66px;
93
- overflow: hidden;
94
- width: 88px;
95
- }
96
-
97
91
  + li {
98
92
  border-top: 1px solid $basic-border;
99
93
  }
@@ -102,12 +96,19 @@ $recipes-business-accounts-brand-name: #777 !default;
102
96
  padding-top: 0;
103
97
  }
104
98
 
105
- img {
106
- background-color: $recipes-business-accounts-bg;
107
- width: 100%;
99
+ > .media-left a {
100
+ display: block;
101
+ height: 66px;
102
+ overflow: hidden;
103
+ width: 88px;
108
104
  }
109
105
  }
110
106
 
107
+ img {
108
+ background-color: $recipes-business-accounts-bg;
109
+ width: 100%;
110
+ }
111
+
111
112
  .recipe-title,
112
113
  .brand-name {
113
114
  @include ellipsis;
@@ -0,0 +1,65 @@
1
+ // -------------------------------------------
2
+ // Components - Sidebars - business sponsors
3
+ // -------------------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 17_sidebars
8
+ title: Business kitchen
9
+ name: 13_business_kitchen
10
+ ---
11
+ <div class="row">
12
+ <div class="col-xs-12 col-sm-6">
13
+ <div class="inner-block widget business-sponsors">
14
+ <h3 class="title">🍳 特選推薦<span class="badge-sponsor pull-right">贊助</span></h3>
15
+ <ul>
16
+ <li><a target="_blank" href="#">🎉🎉@cooking第四期出刊啦 搶先看</a></li>
17
+ <li><a target="_blank" href="#">天氣終於涼了!煮火鍋囉!!</a></li>
18
+ <li><a target="_blank" href="#">快速搜尋零失敗食譜!立即免費試用</a></li>
19
+ <li><a target="_blank" href="#">愛料理週年慶 ❤️ 現省2000元超划算!</a></li>
20
+ <li><a target="_blank" href="#">美味的健康料理,從一只好鍋開始。</a></li>
21
+ <li><a target="_blank" href="#">洋芋片也能是料理的好夥伴~</a></li>
22
+ <li><a target="_blank" href="#">享受健康自在,體驗新鮮生活!</a></li>
23
+ </ul>
24
+ </div>
25
+ </div>
26
+ </div>
27
+
28
+ */
29
+
30
+ $business-sponsors-link: $brown !default;
31
+ $business-sponsors-link-hover: #ac8c85 !default;
32
+
33
+ .business-sponsors {
34
+ li {
35
+ padding: 10px 0;
36
+
37
+ + li {
38
+ border-top: 1px solid $basic-border;
39
+ }
40
+
41
+ &:first-child {
42
+ padding-top: 0;
43
+ }
44
+
45
+ &:last-child {
46
+ padding-bottom: 0;
47
+ }
48
+ }
49
+
50
+ a {
51
+ @include ellipsis;
52
+
53
+ color: $business-sponsors-link;
54
+
55
+ &:hover {
56
+ color: $business-sponsors-link-hover;
57
+ }
58
+ }
59
+
60
+ .title {
61
+ line-height: 26px;
62
+ padding-bottom: 8px;
63
+ }
64
+ }
65
+
@@ -10,8 +10,8 @@ name: 03_hot_categories
10
10
  ---
11
11
 
12
12
  <div class="row">
13
- <div class="col-xs-12 col-sm-6">
14
- <div class="hot-categories">
13
+ <div class="col-xs-12 col-md-6">
14
+ <div class="hot-categories ic-hot-categories">
15
15
  <div class="title">精選主題分類</div>
16
16
  <ul class="clearfix">
17
17
  <li>
@@ -69,9 +69,9 @@ name: 03_hot_categories
69
69
 
70
70
  */
71
71
 
72
- $hot-categories-title-bg: #f9f7f2 !default;
72
+ $hot-categories-title-bg: $light-gray-light4 !default;
73
73
  $hot-categories-link: #888 !default;
74
- $hot-categories-link-hover: $ic-brown !default;
74
+ $hot-categories-link-hover: $brown !default;
75
75
 
76
76
  .hot-categories {
77
77
  background-color: $white;
@@ -81,7 +81,7 @@ $hot-categories-link-hover: $ic-brown !default;
81
81
  .title {
82
82
  background-color: $hot-categories-title-bg;
83
83
  border-bottom: 1px solid $basic-border;
84
- color: $ic-brown;
84
+ color: $brown;
85
85
  line-height: 1;
86
86
  margin-bottom: 0;
87
87
  padding: 14px 15px;
@@ -89,26 +89,17 @@ $hot-categories-link-hover: $ic-brown !default;
89
89
  }
90
90
 
91
91
  ul {
92
+ @include flexbox;
93
+ @include flex-wrap(wrap);
94
+ @include flex-just(space-between);
95
+
92
96
  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
97
  margin-bottom: 0;
104
98
  padding: 15px 15px 0;
105
99
  }
106
100
 
107
101
  li {
108
- -ms-flex: none;
109
- -webkit-flex: none;
110
102
  border-bottom: 0;
111
- flex: none;
112
103
  list-style: none;
113
104
  margin-bottom: 0;
114
105
  padding-bottom: 0;
@@ -137,7 +128,7 @@ $hot-categories-link-hover: $ic-brown !default;
137
128
  span {
138
129
  @include ellipsis;
139
130
 
140
- color: $ic-brown;
131
+ color: $brown;
141
132
  display: block;
142
133
  font-size: 16px;
143
134
  padding-bottom: 10px;
@@ -162,30 +153,20 @@ $hot-categories-link-hover: $ic-brown !default;
162
153
 
163
154
  @media only screen and (max-width: 991px) {
164
155
  .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
- }
156
+ li + li {
157
+ margin-left: 0.6em;
158
+ }
182
159
  }
183
160
  }
184
161
 
185
162
  @media only screen and (min-width: 768px) and (max-width: 991px) {
186
163
  .hot-categories {
187
- li:last-child {
188
- display: none;
164
+ li {
165
+ width: 19%;
166
+
167
+ &:last-child {
168
+ display: none;
169
+ }
189
170
  }
190
171
  }
191
172
  }
@@ -198,7 +179,6 @@ $hot-categories-link-hover: $ic-brown !default;
198
179
 
199
180
  li {
200
181
  float: left;
201
- width: 48%;
202
182
 
203
183
  + li {
204
184
  margin-left: 0;
@@ -210,3 +190,4 @@ $hot-categories-link-hover: $ic-brown !default;
210
190
  }
211
191
  }
212
192
  }
193
+
@@ -1,5 +1,3 @@
1
- @import "compass/typography/text/ellipsis";
2
-
3
1
  // --------------------------------------
4
2
  // Components - Sidebars - icook video
5
3
  // --------------------------------------
@@ -34,11 +32,9 @@ name: 06_icook_video
34
32
  </div>
35
33
  */
36
34
 
37
- @import "compass/typography/text/ellipsis";
38
-
39
- $icook-videos-border: #efede8 !default;
40
- $icook-videos-title: #5c4545 !default;
41
- $icook-videos-play-bg: $ic-brown !default;
35
+ $icook-videos-border: $basic-border !default;
36
+ $icook-videos-title: $brown !default;
37
+ $icook-videos-play-bg: $brown !default;
42
38
  $icook-videos-play-icon: $white !default;
43
39
 
44
40
  .icook-videos {
@@ -63,7 +59,6 @@ $icook-videos-play-icon: $white !default;
63
59
  @include ellipsis;
64
60
 
65
61
  color: $icook-videos-title;
66
- display: block;
67
62
  width: 100%;
68
63
  }
69
64
 
@@ -107,3 +102,4 @@ $icook-videos-play-icon: $white !default;
107
102
  }
108
103
  }
109
104
  }
105
+
@@ -10,35 +10,40 @@ name: 04_popular_recipes
10
10
  ---
11
11
 
12
12
  <div class="row">
13
- <div class="col-xs-12 col-sm-6">
14
- <div class="inner-block widget">
15
- <div class="popular-recipes">
16
- <h4 class="title">本日熱門食譜<span class="pull-right"><a href="#">更多</a></span>
17
- </h4>
13
+ <div class="col-xs-12 col-md-6">
14
+ <div class="popular-recipes">
15
+ <h4 class="title">本日熱門食譜</h4>
16
+ <div class="inner-block">
18
17
  <ul class="clearfix">
19
18
  <li>
20
19
  <a href="#">
21
- <img src="/images/recipe-default.png" alt="">
20
+ <div class="img">
21
+ <img src="/images/recipe-default.png" alt="鮮奶酪">
22
+ </div>
22
23
  <span>鮮奶酪</span>
23
24
  </a>
24
25
  </li>
25
26
  <li>
26
27
  <a href="#">
27
- <img src="/images/recipe-default.png" alt="">
28
+ <div class="img">
29
+ <img src="/images/recipe-default.png" alt="芒果奶酪">
30
+ </div>
28
31
  <span>芒果奶酪</span>
29
32
  </a>
30
33
  </li>
31
- </ul>
32
- <ul class="clearfix">
33
34
  <li>
34
35
  <a href="#">
35
- <img src="/images/recipe-default.png" alt="">
36
+ <div class="img">
37
+ <img src="/images/recipe-default.png" alt="義式鮮奶酪">
38
+ </div>
36
39
  <span>義式鮮奶酪</span>
37
40
  </a>
38
41
  </li>
39
42
  <li>
40
43
  <a href="#">
41
- <img src="/images/recipe-default.png" alt="">
44
+ <div class="img">
45
+ <img src="/images/recipe-default.png" alt="鮮奶酪">
46
+ </div>
42
47
  <span>鮮奶酪</span>
43
48
  </a>
44
49
  </li>
@@ -50,56 +55,106 @@ name: 04_popular_recipes
50
55
 
51
56
  */
52
57
 
53
- @import "compass/typography/text/ellipsis";
54
-
55
58
  $popular-recipes-link: #ac8c85 !default;
56
59
  $popular-recipes-bg: #eeede8 !default;
57
60
 
58
61
  .popular-recipes {
59
- .title a {
60
- @include icon-b("\f101");
62
+ ul {
63
+ @include flexbox;
64
+ @include flex-wrap(wrap);
65
+ @include flex-just(space-between);
61
66
 
62
- color: $popular-recipes-link;
63
- font-size: 13px;
67
+ margin-bottom: -15px;
68
+ padding-left: 0;
64
69
 
65
- &::after {
66
- margin-left: 2px;
70
+ span {
71
+ @include ellipsis;
67
72
  }
68
73
  }
69
74
 
70
- ul:last-child li {
71
- margin-bottom: 0;
72
- }
73
-
74
75
  li {
75
76
  border-bottom: 0;
76
- float: left;
77
+ height: 100%;
78
+ list-style: none;
77
79
  margin-bottom: 15px;
78
- margin-right: 3.58%;
79
80
  padding-bottom: 0;
80
81
  padding-top: 0;
81
82
  width: 48.1%;
82
83
 
83
- &:last-child {
84
- margin-right: 0;
84
+ &:nth-child(even) {
85
+ margin-left: auto;
85
86
  }
86
87
  }
87
88
 
88
- a,
89
- ul span {
89
+ span {
90
90
  display: block;
91
+ line-height: 1;
91
92
  width: 100%;
92
93
  }
93
94
 
94
- ul span {
95
- @include ellipsis;
95
+ a {
96
+ color: $brown;
96
97
  }
97
98
 
98
- img {
99
+ .img {
99
100
  background-color: $popular-recipes-bg;
100
- height: 122px;
101
+ border-radius: 3px;
101
102
  margin-bottom: 10px;
103
+ overflow: hidden;
104
+ }
105
+
106
+ img {
102
107
  width: 100%;
103
108
  }
109
+
110
+ .title {
111
+ background-color: $white;
112
+ border: 1px solid $basic-border;
113
+ border-bottom: 0;
114
+ color: $brown;
115
+ font-size: 16px;
116
+ line-height: 1;
117
+ margin-bottom: 0;
118
+ margin-top: 0;
119
+ padding: 15px;
120
+ }
121
+
122
+ .inner-block {
123
+ margin-bottom: 15px;
124
+ padding: 15px;
125
+ }
126
+ }
127
+
128
+
129
+ @media only screen and (max-width: 991px) {
130
+ .popular-recipes {
131
+ margin-bottom: 30px;
132
+
133
+ li {
134
+ width: 23%;
135
+
136
+ &:nth-child(3) {
137
+ margin-left: auto;
138
+ }
139
+ }
140
+ }
141
+ }
142
+
143
+ @media only screen and (max-width: 767px) {
144
+ .popular-recipes {
145
+ li {
146
+ width: 48%;
147
+
148
+ &:nth-child(3) {
149
+ margin-left: 0;
150
+ }
151
+ }
152
+
153
+ li,
154
+ img,
155
+ .img {
156
+ height: 100%;
157
+ }
158
+ }
104
159
  }
105
160