cupboard 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +6 -5
  3. data/README.md +1 -0
  4. data/app/assets/pages/index.md +2 -4
  5. data/app/assets/stylesheets/_base.scss +9 -4
  6. data/app/assets/stylesheets/_components.scss +77 -61
  7. data/app/assets/stylesheets/_helpers.scss +14 -0
  8. data/app/assets/stylesheets/_layouts.scss +11 -1
  9. data/app/assets/stylesheets/{widgets/_widgets.scss → base/_base.scss} +5 -4
  10. data/app/assets/stylesheets/base/_basic.scss +24 -0
  11. data/app/assets/stylesheets/{_forms.scss → base/_forms.scss} +3 -3
  12. data/app/assets/stylesheets/base/_lists.scss +70 -0
  13. data/app/assets/stylesheets/{_tables.scss → base/_table.scss} +4 -4
  14. data/app/assets/stylesheets/{_typography.scss → base/_typography.scss} +69 -74
  15. data/app/assets/stylesheets/components/_alerts.scss +12 -0
  16. data/app/assets/stylesheets/{base/_badge.scss → components/_badges.scss} +5 -4
  17. data/app/assets/stylesheets/components/_breadcrumbs.scss +6 -5
  18. data/app/assets/stylesheets/{base → components}/_buttons.scss +3 -3
  19. data/app/assets/stylesheets/components/_cards.scss +2 -2
  20. data/app/assets/stylesheets/components/_comments.scss +12 -0
  21. data/app/assets/stylesheets/components/_covers.scss +12 -0
  22. data/app/assets/stylesheets/components/_features.scss +12 -0
  23. data/app/assets/stylesheets/components/_icons.scss +15 -0
  24. data/app/assets/stylesheets/components/_modals.scss +12 -0
  25. data/app/assets/stylesheets/components/_navigations.scss +3 -3
  26. data/app/assets/stylesheets/components/_pagination.scss +7 -7
  27. data/app/assets/stylesheets/components/_recipes.scss +12 -0
  28. data/app/assets/stylesheets/components/_search-form.scss +3 -3
  29. data/app/assets/stylesheets/components/_sidebars.scss +12 -0
  30. data/app/assets/stylesheets/components/_sorting-cards.scss +3 -3
  31. data/app/assets/stylesheets/components/_user.scss +12 -0
  32. data/app/assets/stylesheets/components/alerts/_alert-global.scss +9 -10
  33. data/app/assets/stylesheets/components/alerts/_alert-market.scss +8 -47
  34. data/app/assets/stylesheets/components/alerts/_alert-no-result.scss +46 -0
  35. data/app/assets/stylesheets/components/cards/_brand-product-card.scss +72 -0
  36. data/app/assets/stylesheets/components/cards/_dish-card.scss +2 -3
  37. data/app/assets/stylesheets/components/cards/_feeds-card.scss +147 -0
  38. data/app/assets/stylesheets/components/cards/_list-card.scss +3 -2
  39. data/app/assets/stylesheets/components/cards/_photo-card.scss +2 -58
  40. data/app/assets/stylesheets/components/cards/_product-card.scss +5 -4
  41. data/app/assets/stylesheets/components/cards/_video-card.scss +6 -5
  42. data/app/assets/stylesheets/components/comments/_comment-form.scss +5 -5
  43. data/app/assets/stylesheets/components/{single_comment → comments}/_single-comment.scss +5 -5
  44. data/app/assets/stylesheets/components/{medias → covers}/_brand-cover.scss +6 -6
  45. data/app/assets/stylesheets/components/{medias → covers}/_categories-cover.scss +5 -5
  46. data/app/assets/stylesheets/{widgets → components}/features/_feature-events.scss +5 -5
  47. data/app/assets/stylesheets/{widgets → components}/features/_feature-slides.scss +5 -5
  48. data/app/assets/stylesheets/components/icons/_footer-social-icons.scss +82 -0
  49. data/app/assets/stylesheets/components/icons/_icon-status.scss +67 -0
  50. data/app/assets/stylesheets/components/icons/_icookfont.scss +93 -0
  51. data/app/assets/stylesheets/{widgets/modal → components/modals}/_modal-reset.scss +6 -6
  52. data/app/assets/stylesheets/components/modals/_recipe-list-modal.scss +169 -0
  53. data/app/assets/stylesheets/components/navigations/{_blog-nav.scss → _blog-navi.scss} +5 -5
  54. data/app/assets/stylesheets/components/navigations/{_brand-tabs-nav.scss → _brand-tabs-navi.scss} +6 -30
  55. data/app/assets/stylesheets/components/navigations/{_categories-nav-responsive.scss → _categories-navi-responsive.scss} +7 -9
  56. data/app/assets/stylesheets/components/navigations/_categories-navi.scss +203 -0
  57. data/app/assets/stylesheets/components/navigations/{_tv-nav.scss → _tv-navi.scss} +11 -42
  58. data/app/assets/stylesheets/components/recipes/_ingredients.scss +4 -70
  59. data/app/assets/stylesheets/components/recipes/_notes.scss +4 -4
  60. data/app/assets/stylesheets/components/recipes/_recipe-details.scss +48 -0
  61. data/app/assets/stylesheets/components/{navigations/_recipe-nav.scss → recipes/_recipe-navi.scss} +9 -9
  62. data/app/assets/stylesheets/components/recipes/_steps.scss +5 -5
  63. data/app/assets/stylesheets/{widgets/brands/_pr-ingredients.scss → components/sidebars/_brand-ingredients.scss} +7 -12
  64. data/app/assets/stylesheets/{widgets/sidebar-widgets/_popular-recipe-lists.scss → components/sidebars/_brand-popular-lists.scss} +31 -44
  65. data/app/assets/stylesheets/{widgets/brands/_pr-recent.scss → components/sidebars/_brand-recent-events.scss} +12 -7
  66. data/app/assets/stylesheets/{widgets/brands/_pr-video.scss → components/sidebars/_brand-video.scss} +6 -6
  67. data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_business-kitchen.scss +15 -10
  68. data/app/assets/stylesheets/components/sidebars/_hot-categories.scss +212 -0
  69. data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_icook-video.scss +5 -5
  70. data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_popular-recipes.scss +5 -5
  71. data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_popular-search.scss +72 -59
  72. data/app/assets/stylesheets/{widgets/sidebar-widgets → components/sidebars}/_recipes-collect.scss +13 -6
  73. data/app/assets/stylesheets/components/sidebars/_sidebar-basic.scss +77 -0
  74. data/app/assets/stylesheets/{widgets/tv → components/sidebars}/_tv-more-recipes.scss +20 -12
  75. data/app/assets/stylesheets/{widgets/tv → components/sidebars}/_tv-popular-tags.scss +14 -13
  76. data/app/assets/stylesheets/{widgets → components}/users/_fav-list.scss +4 -7
  77. data/app/assets/stylesheets/{widgets → components}/users/_user-stats.scss +3 -3
  78. data/app/assets/stylesheets/{mixins → helpers}/_mixin-alert.scss +1 -10
  79. data/app/assets/stylesheets/helpers/_mixin-animation.scss +11 -0
  80. data/app/assets/stylesheets/{mixins → helpers}/_mixin-badge.scss +1 -2
  81. data/app/assets/stylesheets/{mixins → helpers}/_mixin-buttons.scss +4 -8
  82. data/app/assets/stylesheets/{mixins → helpers}/_mixin-icons.scss +4 -6
  83. data/app/assets/stylesheets/{variables/_color-palette.scss → helpers/_variables-color.scss} +2 -2
  84. data/app/assets/stylesheets/layouts/{_footer.scss → _base-footer.scss} +5 -5
  85. data/app/assets/stylesheets/layouts/_footer-nav.scss +5 -5
  86. data/app/assets/stylesheets/layouts/_footers.scss +2 -2
  87. data/app/assets/stylesheets/layouts/_global-navbar.scss +6 -6
  88. data/app/assets/stylesheets/{components/_grid.scss → layouts/_grids.scss} +6 -4
  89. data/app/assets/stylesheets/layouts/_headers.scss +3 -3
  90. data/app/assets/stylesheets/layouts/_sub-header-market.scss +5 -5
  91. data/lib/cupboard/version.rb +1 -1
  92. metadata +63 -72
  93. data/app/assets/pages/atomic.md +0 -56
  94. data/app/assets/stylesheets/_basic.scss +0 -22
  95. data/app/assets/stylesheets/_global.scss +0 -40
  96. data/app/assets/stylesheets/_images.scss +0 -125
  97. data/app/assets/stylesheets/_lists.scss +0 -203
  98. data/app/assets/stylesheets/_mixins.scss +0 -6
  99. data/app/assets/stylesheets/_variables.scss +0 -1
  100. data/app/assets/stylesheets/_widgets.scss +0 -50
  101. data/app/assets/stylesheets/components/_accordion.scss +0 -69
  102. data/app/assets/stylesheets/components/_text.scss +0 -166
  103. data/app/assets/stylesheets/components/medias/_blog-feeds.scss +0 -28
  104. data/app/assets/stylesheets/components/medias/_brand-product.scss +0 -35
  105. data/app/assets/stylesheets/components/medias/_business-kitchen.scss +0 -66
  106. data/app/assets/stylesheets/components/medias/_hot-categories.scss +0 -36
  107. data/app/assets/stylesheets/components/medias/_popular-categories.scss +0 -89
  108. data/app/assets/stylesheets/components/medias/_popular-recipes.scss +0 -38
  109. data/app/assets/stylesheets/components/medias/_pr-lists.scss +0 -53
  110. data/app/assets/stylesheets/components/medias/_recipe-reference.scss +0 -45
  111. data/app/assets/stylesheets/components/medias/_user-recipes.scss +0 -46
  112. data/app/assets/stylesheets/components/navigations/_categories-nav.scss +0 -307
  113. data/app/assets/stylesheets/mixins/_mixin-animation.scss +0 -10
  114. data/app/assets/stylesheets/mixins/_mixin-type.scss +0 -7
  115. data/app/assets/stylesheets/widgets/_brand-sidebar-widgets.scss +0 -11
  116. data/app/assets/stylesheets/widgets/_recipe-mark.scss +0 -55
  117. data/app/assets/stylesheets/widgets/_sidebar-widgets.scss +0 -11
  118. data/app/assets/stylesheets/widgets/_tv-sidebar-widgets.scss +0 -11
  119. data/app/assets/stylesheets/widgets/_user-sidebar-widgets.scss +0 -11
  120. data/app/assets/stylesheets/widgets/brands/_pr-latest.scss +0 -62
  121. data/app/assets/stylesheets/widgets/brands/_pr-popular-recipe-lists.scss +0 -51
  122. data/app/assets/stylesheets/widgets/feeds/_blog-feeds.scss +0 -144
  123. data/app/assets/stylesheets/widgets/feeds/_tv-feeds.scss +0 -143
  124. data/app/assets/stylesheets/widgets/modal/_recipe-list-modal.scss +0 -111
  125. data/app/assets/stylesheets/widgets/sidebar-widgets/_sidebar-widget.scss +0 -62
@@ -1,12 +1,12 @@
1
1
  // --------------------------------
2
- // Navigation - breadcrumb
2
+ // Components - Breadcrumbs
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
- title: Breadcrumb
8
- name: 06_breadcrumb
9
- category: UI components
7
+ name: 04_breadcrumbs
8
+ title: Breadcrumbs
9
+ category: Components
10
10
  ---
11
11
 
12
12
  ```html_example
@@ -32,7 +32,7 @@ $breadcrumb-link-active: #999 !default;
32
32
  padding-left: 0;
33
33
  padding-top: 0;
34
34
 
35
- & > li + li {
35
+ > li + li {
36
36
  @include icon("\f105");
37
37
  }
38
38
 
@@ -44,3 +44,4 @@ $breadcrumb-link-active: #999 !default;
44
44
  color: $breadcrumb-link-active;
45
45
  }
46
46
  }
47
+
@@ -1,12 +1,12 @@
1
1
  // --------------------------------
2
- // Buttons
2
+ // Components - buttons
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
7
  title: Buttons
8
- name: 5_Buttons
9
- category: Design elements
8
+ name: 01_Buttons
9
+ category: components
10
10
  ---
11
11
 
12
12
  basic buttons, fram buttons, card Buttons
@@ -5,8 +5,8 @@
5
5
  /*doc
6
6
  ---
7
7
  title: Cards
8
- name: 17_cards
9
- category: UI components
8
+ name: 02_cards
9
+ category: Components
10
10
  ---
11
11
 
12
12
  */
@@ -0,0 +1,12 @@
1
+ // ---------------------------
2
+ // Components - Comments
3
+ // ---------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Comments
8
+ name: 12_comments
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -0,0 +1,12 @@
1
+ // ---------------------------
2
+ // Components - Covers
3
+ // ---------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Covers
8
+ name: 13_covers
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -0,0 +1,12 @@
1
+ // --------------------------------
2
+ // Components - Features
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Features
8
+ name: 15_features
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -0,0 +1,15 @@
1
+ // --------------------------------
2
+ // Components - icons
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: icons
8
+ name: icons
9
+ category: icons
10
+ ---
11
+
12
+ We mainly use both <a href="http://fontawesome.io/" target="_blank">Fontawesome</a> and <a href="https://github.com/polydice/icookfont-sass" target="_blank">icookfont-sass</a> for our iconfonts. both they were installed as gems by ruby on rails. some others use images like svg or png for UI designs.
13
+
14
+ */
15
+
@@ -0,0 +1,12 @@
1
+ // --------------------------------
2
+ // Components - Modals
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Modals
8
+ name: 16_modals
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -1,12 +1,12 @@
1
1
  // --------------------------------
2
- // Components - Navigation
2
+ // Components - Navigations
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
7
  title: Navigations
8
- name: 08_navigations
9
- category: UI components
8
+ name: 09_navigations
9
+ category: Components
10
10
  ---
11
11
 
12
12
  */
@@ -1,12 +1,12 @@
1
1
  // --------------------------------
2
- // Navigation - pagination
2
+ // Components - Pagination
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
+ name: 05_pagination
7
8
  title: Pagination
8
- name: 07_pagination
9
- category: UI components
9
+ category: Components
10
10
  ---
11
11
 
12
12
  <div><p>for some reasons we're using gem <code>icookfont-sass</code> and <code>icook-kaminari-views</code> now</p></div>
@@ -34,8 +34,8 @@ category: UI components
34
34
  </nav>
35
35
  ```
36
36
 
37
- <hr/>
38
- <p>pagination on mobile</p>
37
+ <h2>Pagination on mobile</h2>
38
+
39
39
  ```html_example
40
40
  <nav>
41
41
  <ul class="pagination">
@@ -46,8 +46,8 @@ category: UI components
46
46
  </nav>
47
47
  ```
48
48
 
49
- <hr/>
50
- <p>disabled pagination link</p>
49
+ <h2>Disabled pagination link</h2>
50
+
51
51
  ```html_example
52
52
  <nav>
53
53
  <ul class="pagination">
@@ -0,0 +1,12 @@
1
+ // --------------------------------
2
+ // Components - Recipes
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Recipes
8
+ name: 08_recipes
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -1,12 +1,12 @@
1
1
  // --------------------------------
2
- // Form components - search form
2
+ // Components - Search form
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
7
  title: Search form
8
- name: 14_search_form
9
- category: UI components
8
+ name: 11_search_form
9
+ category: Components
10
10
  ---
11
11
 
12
12
  ```html_example
@@ -0,0 +1,12 @@
1
+ // --------------------------------
2
+ // Components - Sidebars
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Sidebars
8
+ name: 17_sidebars
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -1,12 +1,12 @@
1
1
  // --------------------------------
2
- // Navigation - sorting cards
2
+ // Components - Sorting cards
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
7
  title: Sorting cards
8
- name: 13_sort_cards
9
- category: UI components
8
+ name: 10_sort_cards
9
+ category: Components
10
10
  ---
11
11
 
12
12
  ```html_example
@@ -0,0 +1,12 @@
1
+ // --------------------------------
2
+ // Components - Users
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Users
8
+ name: 14_users
9
+ category: Components
10
+ ---
11
+
12
+ */
@@ -1,16 +1,15 @@
1
1
  // --------------------------------
2
- // Alert
2
+ // Components - Alerts
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
- title: Alert
8
- name: 04_Alert
9
- category: UI components
7
+ parent: 06_alerts
8
+ name: 01_basic_alerts
9
+ title: Basic alerts
10
10
  ---
11
11
 
12
- ## Basic Alert
13
- <p>basic alert</p>
12
+ don't forget the `.alert` class as the base
14
13
 
15
14
  ```html_example
16
15
  <div class="alert alert-error">Error</div>
@@ -21,7 +20,7 @@ category: UI components
21
20
  ```
22
21
 
23
22
  ## Alert with icon
24
- <p><small>simply add `.alert-icon` class</small></p>
23
+ simply add `.alert-icon` class
25
24
 
26
25
  ```html_example
27
26
  <div class="alert alert-error alert-icon">Error</div>
@@ -32,7 +31,7 @@ category: UI components
32
31
  ```
33
32
 
34
33
  ## Dismissible alert
35
- <p><small>alert can be closed by add `.alert-icon` class and `<a>` tag with `.close` class</small></p>
34
+ alert can be closed by add `.alert-icon` class and `<a>` tag with `.close` class
36
35
 
37
36
  ```html_example
38
37
  <div class="alert alert-error alert-icon alert-dismissible">
@@ -52,8 +51,8 @@ category: UI components
52
51
  </div>
53
52
  ```
54
53
 
55
- ## link in alert
56
- <p><small>simply add `.alert-link` class to `<a>` tag in alert </small></p>
54
+ ## Link in alert
55
+ simply add `.alert-link` class to `<a>` tag in alert
57
56
 
58
57
  ```html_example
59
58
  <div class="alert alert-error alert-icon alert-dismissible">
@@ -1,16 +1,16 @@
1
1
  // --------------------------------
2
- // Status messaging
2
+ // Components - Alerts (Market)
3
3
  // --------------------------------
4
4
 
5
5
  /*doc
6
6
  ---
7
- title: Status
8
- name: 05_status
9
- category: UI components
7
+ parent: 06_alerts
8
+ name: 02_alert_market
9
+ title: Market notices
10
10
  ---
11
11
 
12
- ### Market status notice
13
- <p>link in notice</p>
12
+ ### Link in notice
13
+ don't forget the `.notice` class as the base
14
14
 
15
15
  ```html_example
16
16
  <div class="notice notice-unfinished">
@@ -31,8 +31,8 @@ category: UI components
31
31
  </div>
32
32
  ```
33
33
 
34
- <hr/>
35
- <p>list in notice</p>
34
+ ---
35
+ ### List in notice
36
36
 
37
37
  ```html_example
38
38
  <div class="notice notice-unfinished">
@@ -44,17 +44,6 @@ category: UI components
44
44
  </ul>
45
45
  </div>
46
46
  ```
47
-
48
- <hr/>
49
- ### No result status
50
- <div class="ic-no-result"><p>no recipes/dishes</p></div>
51
-
52
- ```html_example
53
- <div class="no-result">
54
- <p>目前沒有任何新的食譜或料理喔,趕快去 <a href="#">發表新食譜</a> 吧!</p>
55
- <img src="/images/no-result.png" alt="No result">
56
- </div>
57
- ```
58
47
  */
59
48
 
60
49
  // notice
@@ -67,9 +56,6 @@ $notice-preparing-bg: $white !default;
67
56
  $notice-expired-text: $black !default;
68
57
  $notice-expired-bg: #e6e6e6 !default;
69
58
  $notice-list-item-text: #888 !default;
70
- // no-result
71
- $no-result-bg: #f9f8f6 !default;
72
- $no-result-text: #999 !default;
73
59
 
74
60
  @each $type, $text-color, $bg-color in
75
61
  (unfinished, $notice-unfinished-text, $notice-unfinished-bg),
@@ -102,28 +88,3 @@ $no-result-text: #999 !default;
102
88
  }
103
89
  }
104
90
 
105
- // no result
106
- .no-result {
107
- background-color: $no-result-bg;
108
- border-radius: 4px;
109
- color: $no-result-text;
110
- margin: 50px auto;
111
- padding: 20px;
112
- position: relative;
113
-
114
- a {
115
- color: $no-result-text;
116
- text-decoration: underline;
117
- }
118
-
119
- p {
120
- margin-bottom: 0;
121
- }
122
-
123
- img {
124
- bottom: 20px;
125
- position: absolute;
126
- right: 20px;
127
- width: 90px;
128
- }
129
- }
@@ -0,0 +1,46 @@
1
+ // --------------------------------
2
+ // Components - Alerts (No result)
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 06_alerts
8
+ name: 03_alert_no_result
9
+ title: No result
10
+ ---
11
+
12
+ ```html_example
13
+ <div class="no-result">
14
+ <p>目前沒有任何新的食譜或料理喔,趕快去 <a href="#">發表新食譜</a> 吧!</p>
15
+ <img src="/images/no-result.png" alt="No result">
16
+ </div>
17
+ ```
18
+ */
19
+
20
+ $no-result-bg: #f9f8f6 !default;
21
+ $no-result-text: #999 !default;
22
+
23
+ .no-result {
24
+ background-color: $no-result-bg;
25
+ border-radius: 4px;
26
+ color: $no-result-text;
27
+ margin: 50px auto;
28
+ padding: 20px;
29
+ position: relative;
30
+
31
+ a {
32
+ color: $no-result-text;
33
+ text-decoration: underline;
34
+ }
35
+
36
+ p {
37
+ margin-bottom: 0;
38
+ }
39
+
40
+ img {
41
+ bottom: 20px;
42
+ position: absolute;
43
+ right: 20px;
44
+ width: 90px;
45
+ }
46
+ }
@@ -0,0 +1,72 @@
1
+ @import "compass/typography/text/ellipsis";
2
+ // --------------------------------
3
+ // Cards - brand product card
4
+ // --------------------------------
5
+
6
+ /*doc
7
+ ---
8
+ parent: 02_cards
9
+ name: 4_brand_product_card
10
+ title: Brand product card
11
+ ---
12
+
13
+ <div class="brand-product">
14
+ <div class="media list-card product-card" data-recipe-id="1771330">
15
+ <a class="visible-xs" style="display:block;height:100%;width:100%;position:absolute;z-index:2;left:0;top:0;" href="#"></a>
16
+ <a title="愛料理購物袋" class="pull-left" href="#">
17
+ <img alt="愛料理購物袋" class="img-responsive" src="images/recipe-default.png">
18
+ </a>
19
+ <div class="media-body card-info">
20
+ <a title="愛料理購物袋" datatitle="愛料理購物袋" itemprop="name" href="#">愛料理購物袋</a>
21
+ <span class="sub-title hidden-xs">自有品牌商品 大小款獨家發售中</span>
22
+ <p itemprop="description">愛料理購物袋,陪妳買菜的好夥伴!共同裝載著對料理的熱情,與日常生活的美好。</p>
23
+ <div>
24
+ <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>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
31
+
32
+ */
33
+
34
+ // # brands/product
35
+ $brand-product-sub-title: #ac8b80 !default;
36
+ $brand-product-price: #aa8f83 !default;
37
+
38
+ .brand-product {
39
+ .product-card {
40
+
41
+ img {
42
+ height: 100%;
43
+ }
44
+
45
+ .card-info {
46
+ p {
47
+ margin-bottom: 10px;
48
+ height: 3em;
49
+ }
50
+ }
51
+
52
+ .sub-title {
53
+ color: $brand-product-sub-title;
54
+ font-size: 12px;
55
+ margin-bottom: 5px;
56
+ }
57
+
58
+ p.price {
59
+ color: $brand-product-price;
60
+ font-size: 14px;
61
+ float: left;
62
+ height: 1.3em;
63
+ }
64
+
65
+ .btn-frame {
66
+ font-size: 13px;
67
+ height: 30px;
68
+ text-decoration: none;
69
+ width: 110px;
70
+ }
71
+ }
72
+ }
@@ -4,8 +4,8 @@
4
4
 
5
5
  /*doc
6
6
  ---
7
- parent: 17_cards
8
- name: dish_card
7
+ parent: 02_cards
8
+ name: 3_dish_card
9
9
  title: Dish card
10
10
  ---
11
11
 
@@ -66,7 +66,6 @@ title: Dish card
66
66
  </div>
67
67
  </div>
68
68
 
69
-
70
69
  */
71
70
 
72
71
  @import "compass/typography/text/ellipsis";
@@ -0,0 +1,147 @@
1
+ @import "compass/typography/text/ellipsis";
2
+
3
+ // --------------------------------
4
+ // Components - Cards - blog feed
5
+ // --------------------------------
6
+
7
+ /*doc
8
+ ---
9
+ parent: 02_cards
10
+ title: Feeds card
11
+ name: 7_feeds_card
12
+ ---
13
+
14
+ <div class="channel-feeds">
15
+ <ul class="clearfix">
16
+ <li>
17
+ <small>blog feed</small>
18
+ <a href="#" title="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹">
19
+ <span class="img">
20
+ <img alt="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹" src="/images/recipe-default.png">
21
+ </span>
22
+ <span>【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹</span>
23
+ </a>
24
+ </li>
25
+ <li>
26
+ <small>tv feed</small>
27
+ <a title="懶人電鍋紅豆湯" class="video" target="_blank" href="#">
28
+ <div>
29
+ <div class="length">0:46</div>
30
+ <span class="img"><img src="/images/recipe-default.png" alt="懶人電鍋紅豆湯"></span>
31
+ <div class="mask"></div>
32
+ </div>
33
+ <span>熱紅豆湯 x 懶人煮法</span>
34
+ </a>
35
+ </li>
36
+ </ul>
37
+ </div>
38
+
39
+ */
40
+
41
+ $recipe-channel-feeds-tv-mask-bg: rgba(86, 78, 73, 0.4) !default;
42
+ $recipe-channel-feeds-tv-mask-icon: $white !default;
43
+ $recipe-channel-feeds-tv-length-bg: rgba(86, 78, 73, 0.8) !default;
44
+ $recipe-channel-feeds-tv-length-text: $white !default;
45
+
46
+ .channel-feeds {
47
+ ul {
48
+ padding-left: 0;
49
+ }
50
+
51
+ li {
52
+ float: left;
53
+ list-style-type: none;
54
+ max-width: 172px;
55
+
56
+ + li {
57
+ margin-left: 10px;
58
+ }
59
+ }
60
+
61
+ a,
62
+ span {
63
+ color: $ic-brown;
64
+ display: block;
65
+ }
66
+
67
+ span:not(.img) {
68
+ display: block;
69
+ height: 2.8em;
70
+ overflow: hidden;
71
+ }
72
+
73
+ img {
74
+ width: 100%;
75
+ }
76
+
77
+ .img {
78
+ margin-bottom: 10px;
79
+ height: 110px;
80
+ overflow: hidden;
81
+ }
82
+
83
+ // tv feeds
84
+ .mask {
85
+ @include icon("\f04b");
86
+ background-color: $recipe-channel-feeds-tv-mask-bg;
87
+ display: none;
88
+ height: 100%;
89
+ left: 0;
90
+ position: absolute;
91
+ text-align: center;
92
+ top: 0;
93
+ width: 100%;
94
+ z-index: 2;
95
+
96
+ &::before {
97
+ border: 2px solid $recipe-channel-feeds-tv-mask-icon;
98
+ border-radius: 50%;
99
+ color: $recipe-channel-feeds-tv-mask-icon;
100
+ font-size: 20px;
101
+ font-weight: lighter;
102
+ height: 40px;
103
+ line-height: 36px;
104
+ margin-right: 0;
105
+ padding-left: 3px;
106
+ position: relative;
107
+ top: 34%;
108
+ width: 40px;
109
+ }
110
+ }
111
+
112
+ .length {
113
+ background-color: $recipe-channel-feeds-tv-length-bg;
114
+ bottom: 10px;
115
+ color: $recipe-channel-feeds-tv-length-text;
116
+ font-size: 12px;
117
+ left: 10px;
118
+ padding: 3px 11px 2px;
119
+ position: absolute;
120
+ text-align: center;
121
+ z-index: 3;
122
+ }
123
+
124
+ .video {
125
+ > div {
126
+ overflow: visible;
127
+ position: relative;
128
+ }
129
+
130
+ &:hover {
131
+ text-decoration: none;
132
+
133
+ .mask {
134
+ display: block;
135
+ }
136
+ }
137
+
138
+ span:not(.img) {
139
+ @include ellipsis;
140
+
141
+ height: 2.8em;
142
+ white-space: normal;
143
+ width: 100%;
144
+ }
145
+ }
146
+ }
147
+