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
@@ -0,0 +1,88 @@
1
+ // -----------------------------------------
2
+ // Components - Buttons - card buttons
3
+ // -----------------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 01_buttons
8
+ title: Card buttons
9
+ name: 03_card_buttons
10
+ ---
11
+
12
+ <h3>in recipe card</h3>
13
+ <div class="ic-buttons card"></div>
14
+
15
+ ```html_example
16
+ <a class="btn btn-follow-recipe" href="#">
17
+ <span class="fa fa-heart"></span>
18
+ <span>收藏</span>
19
+ </a>
20
+ <a class="btn btn-list" href="#">
21
+ <span class="fa fa-bars"></span>
22
+ <span>清單</span>
23
+ </a>
24
+ <a class="btn btn-follow-recipe following" href="#">
25
+ <span class="fa fa-heart"></span>
26
+ <span>已收</span>
27
+ </a>
28
+ <a class="btn btn-list" href="#">
29
+ <span class="fa fa-bars"></span>
30
+ <span>清單</span>
31
+ </a>
32
+ <a class="btn btn-follow-recipe following" href="#">
33
+ <span class="fa fa-heart"></span>
34
+ <span>已收</span>
35
+ </a>
36
+ <a class="btn btn-list following" href="#">
37
+ <span class="fa fa-bars"></span>
38
+ <span>清單</span>
39
+ </a>
40
+ ```
41
+
42
+ */
43
+
44
+ $card-button-basic-bg: rgba(86, 78, 74, 0.8) !default;
45
+ $card-button-basic-bg-hover: rgba(86, 78, 74, 0.7) !default;
46
+ $card-button-basic-border: $white !default;
47
+ $card-button-basic-text: $white !default;
48
+ $card-btn-list-bg: $white !default;
49
+ $card-btn-list-text: $brown !default;
50
+ $card-btn-following-bg: $red !default;
51
+ $card-btn-following-icon: $white !default;
52
+
53
+ // recipe card buttons
54
+ %card-button-basic {
55
+ background-color: $card-button-basic-bg;
56
+ border-radius: 140px;
57
+ color: $card-button-basic-text;
58
+ float: left;
59
+ font-size: inherit;
60
+ padding: 9px 10px;
61
+ position: relative;
62
+ text-align: center;
63
+
64
+ span:first-child {
65
+ min-width: 14px;
66
+ }
67
+ }
68
+
69
+ .btn-follow-recipe,
70
+ .btn-list {
71
+ @extend %card-button-basic;
72
+
73
+ &:hover,
74
+ &:focus {
75
+ background-color: $card-button-basic-bg-hover;
76
+ color: $white;
77
+ }
78
+
79
+ &.following {
80
+ background-color: $card-btn-following-bg;
81
+ }
82
+ }
83
+
84
+ .btn-list {
85
+ margin-left: 4px;
86
+ }
87
+
88
+
@@ -0,0 +1,98 @@
1
+ // -----------------------------------------
2
+ // Components - Buttons - default buttons
3
+ // -----------------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 01_buttons
8
+ title: Default buttons
9
+ name: 01_default_buttons
10
+ ---
11
+
12
+ basic buttons and functional buttons, use these class on tags such as `<a>`, `<button>` or `<input>`, and don't forget to incude the class `.btn`.
13
+
14
+ <h3>Color</h3>
15
+ <div class="ic-buttons defaults"></div>
16
+
17
+ ```html_example
18
+ <a class="btn btn-white" href="#">Default</a>
19
+ <a class="btn btn-red" href="#">Danger</a>
20
+ <a class="btn btn-orange" href="#">Warning</a>
21
+ <a class="btn btn-green" href="#">Success</a>
22
+ <a class="btn btn-blue" href="#">Info</a>
23
+ ```
24
+
25
+ ---
26
+
27
+ <h3>Sizing</h3>
28
+ <div class="ic-buttons sizing"></div>
29
+
30
+ ```html_example
31
+ <a class="btn btn-white btn-lg" href="#">Large</a>
32
+ <a class="btn btn-white" href="#">Default</a>
33
+ <a class="btn btn-white btn-sm" href="#">small</a>
34
+ <a class="btn btn-white btn-xs" href="#">Extra small</a>
35
+ ```
36
+
37
+ */
38
+
39
+ // default buttons
40
+ // override bootstrap's base styles
41
+ .btn {
42
+ border-radius: 3px;
43
+ font-weight: 300;
44
+ padding: 9px 12px;
45
+ }
46
+
47
+ // use bootstrap button mixin to redefine our button styles
48
+ // @button-variant($color, $background, $border)
49
+ // $color: button text
50
+ // $background: button background
51
+ // $border: border color
52
+
53
+ @each $btn, $btn-color in
54
+ (red, $red),
55
+ (orange, $orange),
56
+ (green, $green),
57
+ (blue, $blue) {
58
+
59
+ .btn-#{$btn} {
60
+ @include button-variant($white, $btn-color, transparent);
61
+
62
+ &,
63
+ &:hover,
64
+ &:active,
65
+ &:focus,
66
+ &:visited {
67
+ background-color: $btn-color;
68
+ color: $white;
69
+ }
70
+ }
71
+ }
72
+
73
+ .btn-white {
74
+ &,
75
+ &:hover,
76
+ &:active,
77
+ &:focus,
78
+ &:visited {
79
+ color: $brown;
80
+ background-color: $white;
81
+ border-color: $brown;
82
+ }
83
+ }
84
+
85
+ // Sizing
86
+ .btn-lg {
87
+ padding: 14px 12px;
88
+ }
89
+
90
+ .btn-sm {
91
+ padding: 4px 12px;
92
+ }
93
+
94
+ .btn-xs {
95
+ height: 20px;
96
+ padding: 0 12px;
97
+ }
98
+
@@ -0,0 +1,125 @@
1
+ // -----------------------------------------
2
+ // Components - Buttons - round buttons
3
+ // -----------------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 01_buttons
8
+ title: Round buttons
9
+ name: 02_round_buttons
10
+ ---
11
+
12
+ <div class="ic-buttons rounds">
13
+ <ul class="clearfix">
14
+ <li>
15
+ <a class="btn btn-round btn-fav" href="#">
16
+ <span class="fa fa-heart"></span>
17
+ </a>
18
+ <a class="btn btn-round btn-fav" href="#">
19
+ <span class="fa fa-heart"></span>
20
+ <span>收藏</span>
21
+ </a>
22
+ </li>
23
+ <li>
24
+ <a class="btn btn-round btn-follow" href="#">
25
+ <span class="icon-ic-plus"></span>
26
+ </a>
27
+ <a class="btn btn-round btn-follow" href="#">
28
+ <span class="icon-ic-plus"></span>
29
+ <span>訂閱</span>
30
+ </a>
31
+ </li>
32
+ <li>
33
+ <a class="btn btn-round btn-followed" href="#">
34
+ <span class="icon-ic-check"></span>
35
+ </a>
36
+ <a class="btn btn-round btn-followed" href="#">
37
+ <span class="icon-ic-check"></span>
38
+ <span>已訂</span>
39
+ </a>
40
+ </li>
41
+ <li>
42
+ <a class="btn btn-round btn-save" href="#">
43
+ <span class="icon-ic-check"></span>
44
+ </a>
45
+ <a class="btn btn-round btn-save" href="#">
46
+ <span class="icon-ic-check"></span>
47
+ <span>儲存</span>
48
+ </a>
49
+ </li>
50
+ <li>
51
+ <a class="btn btn-round btn-download" href="#">
52
+ <span class="fa fa-download"></span>
53
+ </a>
54
+ <a class="btn btn-round btn-download" href="#">
55
+ <span class="fa fa-download"></span>
56
+ <span>下載</span>
57
+ </a>
58
+ </li>
59
+ </ul>
60
+ </div>
61
+
62
+ ```html_example
63
+ <a class="btn btn-round btn-fav" href="#">
64
+ <span class="fa fa-heart"></span>
65
+ </a>
66
+ <a class="btn btn-round btn-fav" href="#">
67
+ <span class="fa fa-heart"></span>
68
+ <span>收藏</span>
69
+ </a>
70
+ ```
71
+ */
72
+
73
+ $btn-fav-bg: $red !default;
74
+ $btn-follow-bg: #53ade5 !default;
75
+ $btn-followed-bg: #e2e0db !default;
76
+ $btn-save-bg: #50c88e !default;
77
+ $btn-download-bg: $white !default;
78
+
79
+ .btn-round {
80
+ border-radius: 50%;
81
+ min-width: 40px;
82
+ }
83
+
84
+ @each $btn, $bg in
85
+ (fav, $btn-fav-bg),
86
+ (follow, $btn-follow-bg),
87
+ (followed, $btn-followed-bg),
88
+ (save, $btn-save-bg),
89
+ (download, $btn-download-bg) {
90
+
91
+ .btn-#{$btn} {
92
+ background-color: $bg;
93
+ border-radius: 140px;
94
+ color: $white;
95
+ font-weight: 300;
96
+ padding: 9px 10px;
97
+
98
+ &,
99
+ &:hover,
100
+ &:active,
101
+ &:focus,
102
+ &:visited {
103
+ color: $white;
104
+ }
105
+
106
+ span:first-child {
107
+ min-width: 14px;
108
+ }
109
+ }
110
+ }
111
+
112
+ .btn-followed,
113
+ .btn-download {
114
+ &,
115
+ &:hover,
116
+ &:active,
117
+ &:focus,
118
+ &:visited {
119
+ color: $brown;
120
+ }
121
+ }
122
+
123
+ .btn-download {
124
+ border: 1px solid $brown;
125
+ }
@@ -1,4 +1,3 @@
1
- @import "compass/typography/text/ellipsis";
2
1
  // --------------------------------
3
2
  // Cards - brand product card
4
3
  // --------------------------------
@@ -10,20 +9,22 @@ name: 4_brand_product_card
10
9
  title: Brand product card
11
10
  ---
12
11
 
13
- <div class="brand-product">
14
- <div class="media list-card product-card" data-recipe-id="1771330">
12
+ <div class="ic-brand-product">
13
+ <div class="media pr-list-card" data-recipe-id="1771330">
15
14
  <a class="visible-xs" style="display:block;height:100%;width:100%;position:absolute;z-index:2;left:0;top:0;" href="#"></a>
16
15
  <a title="愛料理購物袋" class="pull-left" href="#">
17
- <img alt="愛料理購物袋" class="img-responsive" src="images/recipe-default.png">
16
+ <div class="img">
17
+ <img alt="愛料理購物袋" class="img-responsive" src="images/recipe-default.png">
18
+ </div>
18
19
  </a>
19
20
  <div class="media-body card-info">
20
- <a title="愛料理購物袋" datatitle="愛料理購物袋" itemprop="name" href="#">愛料理購物袋</a>
21
+ <a title="愛料理購物袋" class="title" itemprop="name" href="#">愛料理購物袋</a>
21
22
  <span class="sub-title hidden-xs">自有品牌商品 大小款獨家發售中</span>
22
- <p itemprop="description">愛料理購物袋,陪妳買菜的好夥伴!共同裝載著對料理的熱情,與日常生活的美好。</p>
23
+ <p itemprop="description" class="desc">愛料理購物袋,陪妳買菜的好夥伴!共同裝載著對料理的熱情,與日常生活的美好。</p>
23
24
  <div>
24
25
  <p class="price">
25
- 售價:$<span>449/個"</span>
26
- </p> <a class="btn btn-details btn-frame col-sm-4 col-md-3 pull-right hidden-xs" href="#">看詳細介紹</a>
26
+ 售價:$<span>449/個</span>
27
+ </p> <a class="btn btn-details btn-white col-sm-4 col-md-3 pull-right hidden-xs" href="#">看詳細介紹</a>
27
28
  </div>
28
29
  </div>
29
30
  </div>
@@ -31,42 +32,70 @@ title: Brand product card
31
32
 
32
33
  */
33
34
 
34
- // # brands/product
35
+ // brands/product
36
+ $brand-product-title: $brown !default;
35
37
  $brand-product-sub-title: #ac8b80 !default;
38
+ $brand-product-desc: $brown-light10 !default;
36
39
  $brand-product-price: #aa8f83 !default;
40
+ $brand-product-btn: #aaa !default;
37
41
 
38
- .brand-product {
39
- .product-card {
42
+ .pr-list-card {
43
+ position: relative;
40
44
 
41
- img {
42
- height: 100%;
43
- }
45
+ img {
46
+ width: 100%;
47
+ }
44
48
 
45
- .card-info {
46
- p {
47
- margin-bottom: 10px;
48
- height: 3em;
49
- }
50
- }
49
+ .img {
50
+ overflow: hidden;
51
+ width: 160px;
52
+ }
51
53
 
52
- .sub-title {
53
- color: $brand-product-sub-title;
54
- font-size: 12px;
55
- margin-bottom: 5px;
56
- }
54
+ .card-info {
55
+ height: 100%;
56
+ line-height: 1;
57
+ }
57
58
 
58
- p.price {
59
- color: $brand-product-price;
60
- font-size: 14px;
61
- float: left;
62
- height: 1.3em;
63
- }
59
+ .desc {
60
+ color: $brand-product-desc;
61
+ height: 3em;
62
+ margin-bottom: 10px;
63
+ }
64
64
 
65
- .btn-frame {
66
- font-size: 13px;
67
- height: 30px;
68
- text-decoration: none;
69
- width: 110px;
65
+ .title {
66
+ @include ellipsis;
67
+
68
+ color: $brand-product-title;
69
+ display: block;
70
+ font-size: 20px;
71
+ margin-bottom: 10px;
72
+ }
73
+
74
+ .sub-title {
75
+ color: $brand-product-sub-title;
76
+ font-size: 12px;
77
+ margin-bottom: 5px;
78
+ }
79
+
80
+ .price {
81
+ color: $brand-product-price;
82
+ float: left;
83
+ font-size: 14px;
84
+ height: 1.3em;
85
+ }
86
+
87
+ .btn-details {
88
+ font-size: 13px;
89
+ height: 30px;
90
+ text-decoration: none;
91
+ padding: 6px 12px;
92
+ color: $brand-product-btn;
93
+ border-color: $brand-product-btn;
94
+ width: 110px;
95
+
96
+ &:hover {
97
+ color: $brown;
70
98
  }
71
99
  }
72
100
  }
101
+
@@ -68,17 +68,15 @@ title: Dish card
68
68
 
69
69
  */
70
70
 
71
- @import "compass/typography/text/ellipsis";
72
-
73
71
  $dish-card-border: #f0f0f0 !default;
74
72
  $dish-card-info: #777 !default;
75
- $dish-card-name: $ic-brown !default;
73
+ $dish-card-name: $brown !default;
76
74
  $dish-card-time: #aaa !default;
77
75
  $dish-card-refer-bg: rgba(#efede8, 0.6) !default;
78
76
  $dish-card-refer-text: #878c83 !default;
79
77
  $dish-card-refer-bg-hover: #efede8 !default;
80
78
  $dish-card-refer-bg-text: #777 !default;
81
- $dish-card-has-reply: $orange !default;
79
+ $dish-card-has-reply: $orange-red !default;
82
80
  $dish-card-upload: #eeede8 !default;
83
81
  $dish-card-upload-icon: #777 !default;
84
82
  $dish-card-upload-info: #aaa !default;
@@ -87,7 +85,6 @@ $dish-card-upload-info: #aaa !default;
87
85
  border: 1px solid $dish-card-border;
88
86
  border-radius: 2px;
89
87
  display: inline-block;
90
- // float: left;
91
88
  max-width: 172px;
92
89
  position: relative;
93
90
 
@@ -140,7 +137,6 @@ $dish-card-upload-info: #aaa !default;
140
137
 
141
138
  a {
142
139
  @include ellipsis;
143
- @include icon("\f064");
144
140
 
145
141
  background-color: $dish-card-refer-bg;
146
142
  color: $dish-card-refer-text;
@@ -148,6 +144,10 @@ $dish-card-upload-info: #aaa !default;
148
144
  line-height: 16px;
149
145
  padding: 12px 10px;
150
146
 
147
+ &::before {
148
+ @include icon-util("\f064", 'FontAwesome');
149
+ }
150
+
151
151
  &:hover,
152
152
  &:active {
153
153
  background-color: $dish-card-refer-bg-hover;
@@ -186,15 +186,11 @@ $dish-card-upload-info: #aaa !default;
186
186
  &.has-reply {
187
187
  .name,
188
188
  .time {
189
- @include icon-b("\e809");
190
-
191
189
  &::after {
190
+ @include icon-util("\e809", "icookfont");
191
+
192
192
  color: $dish-card-has-reply;
193
- display: inline-block;
194
193
  float: right;
195
- font-family: "icookfont";
196
- height: 14px;
197
- margin-left: 0;
198
194
  position: relative;
199
195
  right: 0;
200
196
  top: 1px;
@@ -0,0 +1,69 @@
1
+ // --------------------------------
2
+ // Components - Cards - blog feed
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 02_cards
8
+ title: Featured card
9
+ name: 8_featured_card
10
+ ---
11
+
12
+ <div class="featured-card">
13
+ <a href="#">
14
+ <div class="img">
15
+ <img alt="名菜自己做" src="/images/recipe-default.png">
16
+ </div>
17
+ <div class="name">名菜自己做</div>
18
+ </a>
19
+ </div>
20
+
21
+ */
22
+
23
+ $featured-card-bg: $light-gray-light4 !default;
24
+ $featured-card-icon: $red !default;
25
+
26
+ .featured-card {
27
+ background-color: $featured-card-bg;
28
+ min-height: 138px;
29
+ width: 31.5%;
30
+
31
+ .img {
32
+ overflow: hidden;
33
+ }
34
+
35
+ img {
36
+ width: 100%;
37
+ }
38
+
39
+ &:hover {
40
+ text-decoration: underline;
41
+ }
42
+
43
+ + .featured-card {
44
+ margin-left: auto;
45
+ }
46
+
47
+ .name {
48
+ color: $brown;
49
+ font-size: 16px;
50
+ line-height: 1;
51
+ padding: 15px 15px 15px 25px;
52
+ position: relative;
53
+
54
+ &::before {
55
+ @include icon-util("\f0da", "FontAwesome");
56
+
57
+ color: $featured-card-icon;
58
+ font-size: 13px;
59
+ position: absolute;
60
+ width: 5px;
61
+ }
62
+
63
+ &::before {
64
+ left: 15px;
65
+ top: 16px;
66
+ }
67
+ }
68
+ }
69
+
@@ -1,8 +1,6 @@
1
- @import "compass/typography/text/ellipsis";
2
-
3
- // --------------------------------
4
- // Components - Cards - blog feed
5
- // --------------------------------
1
+ // -----------------------------------------------
2
+ // Components - Cards - blog feeds and TV feeds
3
+ // -----------------------------------------------
6
4
 
7
5
  /*doc
8
6
  ---
@@ -28,7 +26,7 @@ name: 7_feeds_card
28
26
  <div>
29
27
  <div class="length">0:46</div>
30
28
  <span class="img"><img src="/images/recipe-default.png" alt="懶人電鍋紅豆湯"></span>
31
- <div class="mask"></div>
29
+ <div class="mask"><i class="fa fa-play"></i></div>
32
30
  </div>
33
31
  <span>熱紅豆湯 x 懶人煮法</span>
34
32
  </a>
@@ -60,7 +58,7 @@ $recipe-channel-feeds-tv-length-text: $white !default;
60
58
 
61
59
  a,
62
60
  span {
63
- color: $ic-brown;
61
+ color: $brown;
64
62
  display: block;
65
63
  }
66
64
 
@@ -75,14 +73,13 @@ $recipe-channel-feeds-tv-length-text: $white !default;
75
73
  }
76
74
 
77
75
  .img {
78
- margin-bottom: 10px;
79
76
  height: 110px;
77
+ margin-bottom: 10px;
80
78
  overflow: hidden;
81
79
  }
82
80
 
83
81
  // tv feeds
84
82
  .mask {
85
- @include icon("\f04b");
86
83
  background-color: $recipe-channel-feeds-tv-mask-bg;
87
84
  display: none;
88
85
  height: 100%;
@@ -93,7 +90,7 @@ $recipe-channel-feeds-tv-length-text: $white !default;
93
90
  width: 100%;
94
91
  z-index: 2;
95
92
 
96
- &::before {
93
+ i {
97
94
  border: 2px solid $recipe-channel-feeds-tv-mask-icon;
98
95
  border-radius: 50%;
99
96
  color: $recipe-channel-feeds-tv-mask-icon;
@@ -101,10 +98,10 @@ $recipe-channel-feeds-tv-length-text: $white !default;
101
98
  font-weight: lighter;
102
99
  height: 40px;
103
100
  line-height: 36px;
104
- margin-right: 0;
101
+ margin-top: -20px;
105
102
  padding-left: 3px;
106
103
  position: relative;
107
- top: 34%;
104
+ top: 50%;
108
105
  width: 40px;
109
106
  }
110
107
  }