cupboard 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -41,7 +41,7 @@ name: 01_recipe_list_modal
41
41
  </div>
42
42
  </div>
43
43
  <div class="modal-footer">
44
- <a class="list-setting" href="#">清單管理</a>
44
+ <a class="list-setting" href="#"><i class="fa fa-pencil"></i>清單管理</a>
45
45
  <button class="btn btn-link btn-cancel">取消</button>
46
46
  <button class="btn btn-submit">儲存</button>
47
47
  </div>
@@ -56,7 +56,7 @@ $list-recipe-modal-btn-submit-bg: #9fbe4c !default;
56
56
 
57
57
  .list-recipe-modal {
58
58
  .modal-header {
59
- background-color: $orange;
59
+ background-color: $orange-red;
60
60
  color: $white;
61
61
  font-size: 16px;
62
62
  padding: 9px 30px;
@@ -137,16 +137,19 @@ $list-recipe-modal-btn-submit-bg: #9fbe4c !default;
137
137
  }
138
138
 
139
139
  .list-setting {
140
- @include btn-icon("\f040", 14px, $ic-brown, transparent);
141
-
142
140
  bottom: 45px;
143
- color: $ic-brown;
141
+ color: $brown;
144
142
  left: 15px;
145
143
  position: absolute;
146
144
 
147
145
  &:hover {
148
146
  text-decoration: none;
149
147
  }
148
+
149
+ i {
150
+ margin-right: 5px;
151
+ width: 12px;
152
+ }
150
153
  }
151
154
  }
152
155
 
@@ -0,0 +1,114 @@
1
+ // ----------------------------------------
2
+ // Components - Modals - VIP modal
3
+ // ----------------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 16_modals
8
+ title: VIP modal
9
+ name: 02_vip_modal
10
+ ---
11
+
12
+ <div class="ic-vip-modal">
13
+ <div class="vip-modal-inner">
14
+ <div class="vip-modal modal-dialog modal-content clearfix">
15
+ <a class="close" href="#"></a>
16
+ <div>
17
+ <div class="modal-cover"></div>
18
+ <h4 class="modal-title text-center">VIP 專屬優惠</h4>
19
+ <p>僅限 VIP 會員的商品、贈品或抽獎等優惠,還有各式專屬活動,不定期為你的生活增添驚喜!</p>
20
+ <a href="#" class="btn btn-red btn-to-vip">立即成為 VIP 首月免費</a>
21
+ <p class="more-detail">
22
+ <a href="#" target="_blank">了解更多 VIP 服務</a>
23
+ </p>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </div>
28
+
29
+ */
30
+
31
+ $vip-modal-title: $brown !default;
32
+ $vip-modal-text: #8c8783 !default;
33
+ $vip-modal-close-icon: $white !default;
34
+ $vip-modal-btn-bg: $red !default;
35
+ $vip-modal-btn-text: $white !default;
36
+
37
+ .vip-modal-inner {
38
+ margin: 30px auto 0;
39
+ padding-left: 15px;
40
+ padding-right: 15px;
41
+ position: relative;
42
+ }
43
+
44
+ .vip-modal {
45
+ border-radius: 3px;
46
+ margin: 0 auto;
47
+ max-width: 350px;
48
+ padding: 30px 24px 15px;
49
+ position: relative;
50
+
51
+ p {
52
+ color: $vip-modal-text;
53
+ font-size: 14px;
54
+ letter-spacing: 0.6px;
55
+ line-height: 22px;
56
+ margin-bottom: 30px;
57
+ }
58
+
59
+ .modal-title {
60
+ color: $vip-modal-title;
61
+ font-size: 18px;
62
+ line-height: 22px;
63
+ margin-bottom: 15px;
64
+ }
65
+
66
+ .more-detail {
67
+ margin: 15px 0;
68
+ text-align: center;
69
+
70
+ a {
71
+ color: $brown;
72
+
73
+ &:hover {
74
+ text-decoration: underline;
75
+ }
76
+ }
77
+ }
78
+
79
+ .sub-detail {
80
+ font-size: 12px;
81
+ line-height: 1;
82
+ padding-top: 15px;
83
+ }
84
+
85
+ .modal-cover {
86
+ background-image: image-url("vip_modal.svg");
87
+ background-repeat: no-repeat;
88
+ height: 150px;
89
+ margin: 0 auto 15px;
90
+ width: 150px;
91
+ }
92
+
93
+ .close {
94
+ height: 14px;
95
+ line-height: 0;
96
+ opacity: 1;
97
+ position: absolute;
98
+ right: -29px;
99
+ top: 0;
100
+ width: 14px;
101
+
102
+ &::before {
103
+ @include icon-util("\e801", "icookfont");
104
+
105
+ color: $vip-modal-close-icon;
106
+ }
107
+ }
108
+ }
109
+
110
+ .btn-to-vip {
111
+ font-size: 16px;
112
+ width: 100%;
113
+ }
114
+
@@ -15,11 +15,6 @@ name: 03_blog_navi
15
15
  <li><a href="#">生活</a></li>
16
16
  <li><a href="#">健康</a></li>
17
17
  <li><a href="#">美麗</a></li>
18
- <li><a href="#">食材</a></li>
19
- <li><a href="#">料理</a></li>
20
- <li><a href="#">專訪</a></li>
21
- <li><a href="#">活動</a></li>
22
- <li><a href="#">公告</a></li>
23
18
  </ul>
24
19
  </div>
25
20
  ```
@@ -27,7 +22,7 @@ name: 03_blog_navi
27
22
  */
28
23
 
29
24
  $blog-nav-border: #ccc !default;
30
- $blog-nav-link: $ic-brown !default;
25
+ $blog-nav-link: $brown !default;
31
26
  $blog-nav-link-hover: #ac8c85 !default;
32
27
 
33
28
  .blog-nav {
@@ -44,23 +39,23 @@ $blog-nav-link-hover: #ac8c85 !default;
44
39
  &:last-child {
45
40
  margin-right: 0;
46
41
  }
42
+ }
47
43
 
48
- a {
49
- @include icon("\f0da");
44
+ a {
45
+ color: $blog-nav-link;
46
+ font-size: 16px;
47
+ text-decoration: none;
50
48
 
51
- color: $blog-nav-link;
52
- font-size: 16px;
53
- text-decoration: none;
49
+ &::before,
50
+ &:hover {
51
+ color: $blog-nav-link-hover;
52
+ }
54
53
 
55
- &::before,
56
- &:hover {
57
- color: $blog-nav-link-hover;
58
- }
54
+ &::before {
55
+ @include icon-util("\f0da", "FontAwesome");
59
56
 
60
- &::before {
61
- margin-right: 0;
62
- width: 8px;
63
- }
57
+ margin-right: 0;
58
+ width: 8px;
64
59
  }
65
60
  }
66
61
  }
@@ -118,3 +113,4 @@ $blog-nav-link-hover: #ac8c85 !default;
118
113
  }
119
114
  }
120
115
  }
116
+
@@ -30,8 +30,8 @@ name: 02_brand_tabs_navi
30
30
  */
31
31
 
32
32
  $brand-tab-border: #ebe5e1 !default;
33
- $brand-tab-hover-border: $ic-brown !default;
34
- $brand-tab-link: $ic-brown !default;
33
+ $brand-tab-hover-border: $brown !default;
34
+ $brand-tab-link: $brown !default;
35
35
  $brand-tab-link-active: #aa0000 !default;
36
36
  $brand-tab-link-bg: $white !default;
37
37
 
@@ -94,7 +94,7 @@ $brand-tab-link-bg: $white !default;
94
94
  text-align: center;
95
95
 
96
96
  &:hover {
97
- border-bottom: 3px solid #564e4a;
97
+ border-bottom: 3px solid $brown;
98
98
  }
99
99
 
100
100
  &:hover a {
@@ -110,7 +110,7 @@ $brand-tab-link-bg: $white !default;
110
110
  }
111
111
 
112
112
  &.active {
113
- border-bottom: 3px solid #aa0000;
113
+ border-bottom: 3px solid $brand-tab-link-active;
114
114
 
115
115
  a {
116
116
  border-bottom: 0;
@@ -16,13 +16,10 @@ in categories/index
16
16
  <ul class="main-menu clearfix">
17
17
  <li class="list-group-item">
18
18
  <div class="panel-group">
19
- <div class="img hidden-xs hidden-sm">
20
- <a href="#"><img alt="" src="http://placehold.it/80x60" width="80"></a>
21
- </div>
22
- <a class="list-title" href="#">五穀雜糧</a>
19
+ <a class="list-title" href="/categories/18">派塔、泡芙</a>
23
20
  <ul class="list-group hidden-xs">
24
- <li class="list-group-item"><a href="#">玉米</a></li>
25
- <li class="list-group-item"><a href="#">藜麥</a></li>
21
+ <li class="list-group-item"><a href="/categories/464">鹹派</a></li>
22
+ <li class="list-group-item"><a href="/categories/465">泡芙</a></li>
26
23
  </ul>
27
24
  </div>
28
25
  </li>
@@ -33,171 +30,91 @@ in categories/index
33
30
  */
34
31
 
35
32
  // categories/index
36
- $mega-menu-icon: #aa8f83 !default;
33
+ $categories-title: $brown !default;
34
+ $categories-icon: $red !default;
35
+ $categories-text: $brown-light20 !default;
36
+ $categories-bg: $light-gray-light4 !default;
37
37
 
38
38
  .mega-menu {
39
- background-color: $white;
40
- border-width: 0 0 1px;
41
- margin-bottom: 0;
39
+ padding-bottom: 0;
42
40
 
43
41
  .list-title {
44
- @include icon("\f0da");
45
-
42
+ color: $categories-title;
46
43
  display: block;
47
- color: $ic-brown;
48
44
  font-size: 16px;
49
45
  padding-left: 10px;
50
46
  position: relative;
51
47
 
52
48
  &::before {
53
- color: $mega-menu-icon;
54
- font-size: 18px;
49
+ @include icon-util("\f0da", "FontAwesome");
50
+
51
+ color: $categories-icon;
52
+ font-size: 13px;
55
53
  left: 0;
56
- margin-right: 0;
57
54
  position: absolute;
58
55
  top: 4px;
59
- width: 12px;
56
+ width: 5px;
60
57
  }
61
58
  }
62
59
 
63
60
  .list-group-item {
64
- border-radius: 0;
61
+ background-color: transparent;
65
62
  border: 0;
66
- margin-bottom: 0;
63
+ margin-left: 10px;
67
64
  padding: 0;
68
65
 
69
- &:hover > .accordion-heading > .list-title {
70
- color: $ic-brown;
71
- }
72
-
73
- &.active a {
74
- color: $ic-brown;
75
- text-decoration: underline;
76
- }
77
- }
78
-
79
- .main-menu {
80
- margin-bottom: 0;
81
- padding-left: 0;
82
- padding-top: 20px;
83
-
84
- > .list-group-item {
85
- border-right: 1px solid $basic-border;
86
- float: left;
87
- margin-bottom: 20px;
88
- padding-left: 15px;
89
- padding-right: 5px;
90
- width: 16.6%;
91
-
92
- &:nth-child(6n) {
93
- border-right: 0;
94
- }
95
-
96
- > .list-title {
97
- border-bottom: 1px solid $basic-border;
98
- color: $ic-brown;
99
- font-size: 16px;
100
- margin-bottom: 5px;
101
- padding-bottom: 5px;
102
- padding-left: 10px;
103
- }
104
- }
105
- }
106
-
107
- .panel-group {
108
- margin-bottom: 0;
109
-
110
- .list-group-item {
111
- padding: 3px 0 0 10px;
66
+ > .list-title {
67
+ margin-bottom: 5px;
68
+ padding-bottom: 5px;
112
69
  }
113
- }
70
+ }
114
71
 
115
72
  .list-group {
116
73
  margin-bottom: 0;
117
74
 
118
- .list-group-item {
119
- margin-left: 10px;
120
- padding-left: 0;
121
- }
122
-
123
75
  a {
124
- color: #888;
125
- display: block;
126
- line-height: 26px;
127
- padding: 0;
128
- }
129
-
130
- &:hover {
131
- color: #999;
132
- }
133
- }
76
+ color: $categories-text;
134
77
 
135
- .main-menu > .list-group-item,
136
- .panel-group > .list-group-item {
137
- > .list-title {
138
- color: #5c4545;
78
+ &:hover {
79
+ color: $brown;
80
+ }
139
81
  }
140
- }
141
82
 
142
- .img {
143
- background-color: #eeede8;
144
- height: 60px;
145
- margin-bottom: 15px;
146
- overflow: hidden;
147
- width: 80px;
83
+ .list-group-item {
84
+ line-height: 1;
85
+ margin-top: 10px;
86
+ }
148
87
  }
149
- }
150
88
 
151
- // categories/show
152
- .cate-menu {
153
- padding: 0;
154
-
155
- .navbar-collapse {
156
- padding-left: 0;
157
- padding-right: 0;
158
- }
89
+ .entry:last-child {
90
+ .main-menu {
91
+ margin-bottom: 0;
92
+ padding-bottom: 0;
93
+ }
94
+ }
159
95
 
160
96
  .panel-group {
161
- margin-left: 5px;
162
- }
163
-
164
- .main-menu {
165
- padding-top: 0;
166
-
167
- & > .list-group-item {
168
- border-right: 0;
169
- float: none;
170
- padding-left: 25px;
171
- padding-right: 0;
172
- width: 100%;
173
-
174
- a {
175
- line-height: 26px;
176
- }
177
-
178
- .list-title {
179
- font-size: 14px;
180
- margin-left: 15px;
181
- padding-left: 0;
182
-
183
- &:before {
184
- left: -12px;
185
- }
186
- }
187
- }
188
- }
189
-
190
- .list-group .list-group-item {
191
- margin-left: 15px;
97
+ margin-bottom: 0;
192
98
  }
99
+ }
193
100
 
194
- .title {
195
- background-color: #f7f6f3;
196
- padding: 5px 10px;
197
- margin-bottom: 10px;
198
-
199
- a {
200
- color: #564e4a;
201
- }
101
+ .main-menu {
102
+ background-color: $categories-bg;
103
+ display: flex;
104
+ display: box; //for only support old ver. browsers...
105
+ display: -ms-flexbox; // IE10
106
+ -ms-flex-wrap: wrap;
107
+ -webkit-flex-wrap: wrap;
108
+ flex-wrap: wrap;
109
+ margin-bottom: 15px;
110
+ padding: 15px 15px 0;
111
+ padding-top: 15px;
112
+
113
+ > .list-group-item {
114
+ background-color: transparent;
115
+ margin-bottom: 15px;
116
+ margin-left: 0;
117
+ width: 16.6%;
202
118
  }
203
119
  }
120
+
@@ -109,9 +109,6 @@ $ingredient-group7-text: #4b0050 !default;
109
109
  $ingredient-group7-bg: #f6e3fb !default;
110
110
  $ingredient-group8-text: #50291b !default;
111
111
  $ingredient-group8-bg: #fad6c8 !default;
112
- $recipe-notes-bg: #fefee5 !default;
113
- $recipe-notes-border: #fee59a !default;
114
- $recipe-notes-text: #666 !default;
115
112
 
116
113
  @each $group, $color, $background in
117
114
  (1, $ingredient-group1-text, $ingredient-group1-bg),
@@ -128,30 +125,28 @@ $recipe-notes-text: #666 !default;
128
125
  background-color: $background;
129
126
  }
130
127
 
131
- .steps .group-#{$group} {
132
- border-radius: 10px;
133
- color: $color;
134
- padding: 0 6px;
135
- }
136
-
137
- .recipe-detail {
138
- .group-#{$group} {
139
- border: 1px solid $background;
128
+ .group-#{$group} {
129
+ border: 1px solid $background;
140
130
 
141
- .group-name {
142
- color: $color;
143
- padding: 10px;
144
- }
131
+ .group-name {
132
+ color: $color;
133
+ padding: 10px;
134
+ }
145
135
 
146
- .ingredient {
147
- margin-left: 10px;
148
- margin-right: 10px;
136
+ .ingredient {
137
+ margin-left: 10px;
138
+ margin-right: 10px;
149
139
 
150
- &:last-child {
151
- border-bottom: 0;
152
- }
140
+ &:last-child {
141
+ border-bottom: 0;
153
142
  }
154
143
  }
155
144
  }
145
+
146
+ .steps .group-#{$group} {
147
+ border-radius: 10px;
148
+ color: $color;
149
+ padding: 0 6px;
150
+ }
156
151
  }
157
152
 
@@ -32,7 +32,7 @@ $recipe-notes-text: #666 !default;
32
32
 
33
33
  .title {
34
34
  border-bottom: 0;
35
- color: $ic-brown;
35
+ color: $brown;
36
36
  font-size: 20px;
37
37
  line-height: 22px;
38
38
  padding-bottom: 20px;
@@ -46,7 +46,7 @@ $recipe-notes-text: #666 !default;
46
46
  }
47
47
 
48
48
  a {
49
- color: $orange;
49
+ color: $orange-red;
50
50
  text-decoration: underline;
51
51
  }
52
52
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  $recipe-detail-border: $basic-border !default;
6
6
  $recipe-detail-text: #888 !default;
7
- $recipe-detail-title: $ic-brown !default;
7
+ $recipe-detail-title: $brown !default;
8
8
  $recipe-detail-title-border: $basic-border !default;
9
9
  $recipe-detail-time: #888 !default;
10
10
 
@@ -40,9 +40,11 @@ $recipe-detail-time: #888 !default;
40
40
  }
41
41
 
42
42
  .time {
43
- @include icon("\f017");
44
-
45
43
  color: $recipe-detail-time;
44
+
45
+ &::before {
46
+ @include icon-util("\f017", "FontAwesome");
47
+ }
46
48
  }
47
49
  }
48
50
 
@@ -10,23 +10,25 @@ title: Navi
10
10
  ---
11
11
 
12
12
  <div><p>in recipes/show</p></div>
13
- <div class="category-tags">
14
- <h3 class="title">更多食譜相關分類</h3>
15
- <ul class="clearfix">
16
- <li><a href="#">主題料理</a></li>
17
- <li><a href="#">省錢懶人</a></li>
18
- <li class="active"><a href="#">快速料理</a> (1231)</li>
19
- </ul>
20
- <ul class="clearfix">
21
- <li><a href="#">主題料理</a></li>
22
- <li><a href="#">美味時刻</a></li>
23
- <li class="active"><a href="#">深夜食堂</a> (669)</li>
24
- </ul>
25
- <ul class="clearfix">
26
- <li><a href="#">主題料理</a></li>
27
- <li><a href="#">海鮮料理</a></li>
28
- <li class="active"><a href="#">貝類</a> (1267)</li>
29
- </ul>
13
+ <div class="recipe-detail">
14
+ <div class="category-tags">
15
+ <h3>更多食譜相關分類</h3>
16
+ <ul class="clearfix">
17
+ <li><a href="#">主題料理</a></li>
18
+ <li><a href="#">省錢懶人</a></li>
19
+ <li class="active"><a href="#">快速料理</a> (1231)</li>
20
+ </ul>
21
+ <ul class="clearfix">
22
+ <li><a href="#">主題料理</a></li>
23
+ <li><a href="#">美味時刻</a></li>
24
+ <li class="active"><a href="#">深夜食堂</a> (669)</li>
25
+ </ul>
26
+ <ul class="clearfix">
27
+ <li><a href="#">主題料理</a></li>
28
+ <li><a href="#">海鮮料理</a></li>
29
+ <li class="active"><a href="#">貝類</a> (1267)</li>
30
+ </ul>
31
+ </div>
30
32
  </div>
31
33
 
32
34
  ```html_example
@@ -43,18 +45,14 @@ title: Navi
43
45
  $category-tag-title: #999 !default;
44
46
  $category-tag-title-border: #efede8 !default;
45
47
  $category-tag-link: #999 !default;
46
- $category-tag-link-active: $ic-brown !default;
48
+ $category-tag-link-active: $brown !default;
47
49
  $category-tag-icon: #ac8c85 !default;
48
50
 
49
51
  .category-tags {
50
52
  margin-top: 20px;
51
53
 
52
- .title {
53
- border-bottom: 1px solid $category-tag-title-border;
54
- color: $category-tag-title;
55
- font-size: 16px;
56
- line-height: 20px;
57
- margin-top: 0;
54
+ h3 {
55
+ border-color: $light-gray;
58
56
  margin-bottom: 10px;
59
57
  padding-bottom: 15px;
60
58
  }
@@ -62,7 +60,7 @@ $category-tag-icon: #ac8c85 !default;
62
60
  ul {
63
61
  padding-left: 0;
64
62
 
65
- & + ul {
63
+ + ul {
66
64
  margin-top: 12px;
67
65
  }
68
66
  }
@@ -84,11 +82,11 @@ $category-tag-icon: #ac8c85 !default;
84
82
  }
85
83
 
86
84
  &:first-child {
87
- @include icon("\f0da");
85
+ &::before {
86
+ @include icon-util("\f0da", "FontAwesome");
88
87
 
89
- &:before {
90
88
  color: $category-tag-icon;
91
- margin-right: 4px;
89
+ margin-right: 5px;
92
90
  padding-left: 5px;
93
91
  }
94
92
  }
@@ -98,15 +96,14 @@ $category-tag-icon: #ac8c85 !default;
98
96
  }
99
97
 
100
98
  + li {
101
- @include icon("\f054");
99
+ &::before {
100
+ @include icon-util("\e80d", "icookfont");
102
101
 
103
- &:before {
104
102
  font-size: 11px;
105
103
  margin-left: 4px;
106
- margin-right: 0;
107
104
  vertical-align: middle;
108
- width: 12px;
109
105
  }
110
106
  }
111
107
  }
112
108
  }
109
+