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
@@ -1,5 +1,3 @@
1
- @import "compass/typography/text/ellipsis";
2
-
3
1
  // --------------------------------
4
2
  // Cards - list card
5
3
  // --------------------------------
@@ -12,134 +10,101 @@ title: List card
12
10
  ---
13
11
 
14
12
  <div class="media recipe-card list-card">
15
- <a class="visible-xs" style="display:block;height:100%;width:100%;position:absolute;z-index:2" href="/recipes/157559"></a>
16
- <div class="actions hidden-xs hidden-sm recipe-funcs">
17
- <div>
18
- <a class="btn btn-follow-recipe" href="#">收藏</a>
19
- <a class="btn btn-list" href="#">清單</a>
13
+ <a class="visible-xs" style="display:block;height:100%;width:100%;position:absolute;z-index:2;left:0;top:0;" href="/recipes/157559"></a>
14
+ <div class="pull-left">
15
+ <div class="actions hidden-xs hidden-sm recipe-funcs">
16
+ <div>
17
+ <a class="btn btn-follow-recipe" href="#">
18
+ <span class="fa"></span>
19
+ </a>
20
+ <a class="btn btn-list" href="#">
21
+ <span class="fa fa-bars"></span>
22
+ <span>清單</span>
23
+ </a>
24
+ </div>
20
25
  </div>
26
+ <a title="酥烤香甜吐司-快速抹醬" class="pull-left" href="/recipes/157559">
27
+ <img alt="酥烤香甜吐司-快速抹醬" class="img-responsive" src="/images/recipe-default.png">
28
+ </a>
21
29
  </div>
22
- <a title="酥烤香甜吐司-快速抹醬" class="pull-left" href="/recipes/157559">
23
- <img alt="酥烤香甜吐司-快速抹醬" class="img-responsive" src="/images/recipe-default.png">
24
- </a>
25
30
  <div class="media-body card-info">
26
- <a title="酥烤香甜吐司-快速抹醬" data-title="酥烤香甜吐司-快速抹醬" itemprop="name" href="/recipes/157559">酥烤香甜吐司-快速抹醬</a>
31
+ <a title="酥烤香甜吐司-快速抹醬" data-title="酥烤香甜吐司-快速抹醬" itemprop="name" href="/recipes/157559" class="recipe-title">酥烤香甜吐司-快速抹醬</a>
32
+ <p class="user-name">by <a href="#">iCook 愛料理</a></p>
33
+ <p itemprop="description" class="hidden-xs description">簡單、快速、香甜烤吐司吃膩了一般果醬試試這微酥口感的快速抹醬吧~小孩會很喜歡喔!</p>
34
+ <p class="material">食材:吐司、低筋麵粉、無鹽奶油、自製煉乳或市售</p>
27
35
  <ul class="meta clearfix">
28
36
  <li class="fav-count recipe-favorites" data-isround="true"><span class="" data-reactid=".f">2,029</span></li>
29
37
  <li class="comments-count" data-title="1 則留言">1</li>
30
38
  <li class="dishes-count" data-title="1 人做過">1</li>
31
39
  </ul>
32
- <p itemprop="description" class="hidden-xs description">簡單、快速、香甜烤吐司吃膩了一般果醬試試這微酥口感的快速抹醬吧~小孩會很喜歡喔!</p>
33
- <p class="material">食材:吐司、低筋麵粉、無鹽奶油、自製煉乳或市售</p>
34
40
  </div>
35
41
  </div>
36
42
 
37
43
  */
38
44
 
39
- @import "compass/typography/text/ellipsis";
40
-
41
- $list-card-bg: $white !default;
42
- $list-card-border: #ebe5e1 !default;
43
- $list-card-stats: #888 !default;
44
- $list-card-title: #5c4545 !default;
45
- $list-card-text: #888 !default;
46
- $list-card-ingredient: #aa8f83 !default;
47
- $author-list-card-border: #ede5e1 !default;
45
+ $list-card-description: $brown-light10 !default;
46
+ $author-list-card-border: $basic-border !default;
48
47
 
49
48
  .list-card {
50
- background-color: $list-card-bg;
51
- border-bottom: 1px solid $list-card-border;
52
- margin-top: 0;
53
- padding-bottom: 20px;
54
- padding-top: 20px;
55
- position: relative;
56
- width: 100%;
49
+ border-radius: 3px;
50
+ border: 1px solid $basic-border;
51
+ margin-bottom: 15px;
52
+ padding: 15px;
57
53
 
58
- .actions {
59
- bottom: 30px;
60
- left: 11px;
61
- position: absolute;
62
- z-index: 2;
63
- }
64
-
65
- &.pinned .pr {
66
- display: block;
54
+ img {
55
+ border-radius: 3px;
56
+ height: 158px;
57
+ width: 200px;
67
58
  }
68
59
 
69
- &:last-child {
70
- margin-bottom: 15px;
60
+ .actions {
61
+ margin-left: -72px;
71
62
  }
72
63
 
73
- > .pull-left {
74
- position: relative;
64
+ .card-info {
65
+ line-height: 1;
75
66
  }
76
67
 
77
- > a,
78
- img {
79
- height: 120px;
80
- width: 160px;
68
+ .recipe-title {
69
+ font-size: 20px;
81
70
  }
82
71
 
83
- .meta {
84
- margin-bottom: 5px;
72
+ .user-name {
73
+ line-height: 1.2;
85
74
  }
86
75
 
87
- ul {
88
- padding-left: 0;
76
+ .description {
77
+ color: $list-card-description;
78
+ height: 3em;
79
+ line-height: 20px;
80
+ overflow: hidden;
81
+ word-break: break-word;
89
82
  }
90
83
 
91
- li {
92
- color: $list-card-stats;
93
- float: left;
84
+ .meta li {
94
85
  font-size: 12px;
95
- list-style-type: none;
96
-
97
- &.fav-count::before {
98
- margin-right: 0;
99
- }
100
86
  }
101
87
 
102
- .card-info {
103
- height: 100%;
104
-
105
- > a {
106
- @include ellipsis;
107
-
108
- color: $list-card-title;
109
- display: block;
110
- font-size: 18px;
111
- margin-bottom: 5px;
112
- width: 100%;
88
+ .material {
89
+ max-height: 2.5em;
90
+ overflow: hidden;
91
+ }
113
92
 
114
- &:hover {
115
- text-decoration: underline;
116
- }
117
- }
93
+ .badge-vip {
94
+ float: left;
95
+ margin-right: 4px;
118
96
 
119
- p {
120
- line-height: 20px;
121
- margin-bottom: 0;
122
- max-height: 3em;
123
- overflow: hidden;
124
- word-break: break-word;
97
+ &::after {
98
+ position: relative;
99
+ top: 3px;
125
100
  }
126
101
 
127
- .sponsor {
128
- color: $list-card-stats;
129
- font-size: 12px;
130
- margin-bottom: 5px;
131
-
132
- a {
133
- color: $brown;
134
- }
102
+ + .recipe-name {
103
+ display: inline-block;
104
+ max-width: 90%;
135
105
  }
136
106
  }
137
107
 
138
- .description {
139
- color: $list-card-text;
140
- font-size: 14px;
141
- }
142
-
143
108
  &.author + .text-center {
144
109
  border-top: 1px solid $author-list-card-border;
145
110
  }
@@ -153,10 +118,6 @@ $author-list-card-border: #ede5e1 !default;
153
118
  width: 120px;
154
119
  }
155
120
 
156
- .breadcrumb + & {
157
- padding-top: 0;
158
- }
159
-
160
121
  .dishes-count {
161
122
  margin-right: 0;
162
123
  }
@@ -167,3 +128,34 @@ $author-list-card-border: #ede5e1 !default;
167
128
  }
168
129
  }
169
130
 
131
+ @media only screen and (min-width: 641px) {
132
+ .list-card .badge-vip + .recipe-name {
133
+ max-width: 83%;
134
+ }
135
+ }
136
+
137
+ @media only screen and (max-width: 640px) {
138
+ .list-card {
139
+ img {
140
+ height: 100%;
141
+ width: 160px;
142
+ }
143
+
144
+ .badge-vip + .recipe-name {
145
+ max-width: 75%;
146
+ }
147
+ }
148
+ }
149
+
150
+ @media only screen and (max-width: 480px) {
151
+ .list-card {
152
+ img {
153
+ width: 120px;
154
+ }
155
+
156
+ .badge-vip + .recipe-name {
157
+ max-width: 70%;
158
+ }
159
+ }
160
+ }
161
+
@@ -1,8 +1,6 @@
1
- @import "compass/typography/text/ellipsis";
2
-
3
- // --------------------------------
4
- // Cards - photo card
5
- // --------------------------------
1
+ // ----------------------------------
2
+ // Components - Cards - photo card
3
+ // ----------------------------------
6
4
 
7
5
  /*doc
8
6
  ---
@@ -11,122 +9,80 @@ name: 1_photo_card
11
9
  title: Photo card
12
10
  ---
13
11
 
14
- <div class="media recipe-card photo-card">
15
- <a class="visible-xs visible-sm" style="display:block;height:100%;width:100%;position:absolute;z-index:2" href="#"></a>
16
- <div class="actions hidden-xs hidden-sm recipe-funcs">
17
- <div>
18
- <a class="btn btn-follow-recipe" href="#">收藏</a>
19
- <a class="btn btn-list" href="#">清單</a>
12
+ <div class="ic-photo-card clearfix">
13
+ <div class="media recipe-card photo-card">
14
+ <a class="visible-xs visible-sm" style="display:block;height:100%;width:100%;position:absolute;z-index:2;left:0;top:0;" href="#"></a>
15
+ <div class="pull-left">
16
+ <div class="actions hidden-xs hidden-sm recipe-funcs">
17
+ <div>
18
+ <a class="btn btn-follow-recipe" href="#">
19
+ <span class="fa"></span>
20
+ </a>
21
+ <a class="btn btn-list" href="#">
22
+ <span class="fa fa-bars"></span>
23
+ <span>清單</span>
24
+ </a>
25
+ </div>
26
+ </div>
27
+ <a href="#">
28
+ <div class="img">
29
+ <img class="img-responsive" src="/images/recipe-default.png" alt="400x300">
30
+ </div>
31
+ </a>
20
32
  </div>
21
- </div>
22
- <a href="#">
23
- <div class="img">
24
- <img class="img-responsive" src="/images/recipe-default.png" alt="400x300">
33
+ <div class="media-body card-info">
34
+ <a href="#" class="recipe-title">5分鐘酒蒸蛤蜊</a>
35
+ <ul class="clearfix meta">
36
+ <li class="fav-count">6615</span>
37
+ <li class="comments-count">87</span>
38
+ <li class="dishes-count">25</span>
39
+ </ul>
40
+ <p class="material visible-xs visible-sm">食材:食材:蛤蜊、蒜末、蔥花、無鹽奶油、米酒、醬油、辣椒</p>
41
+ <p class="user-name visible-md visible-lg">by <a href="#">iCook 愛料理</a></p>
25
42
  </div>
26
- <p><span class="recipe-name">5分鐘酒蒸蛤蜊</span></p>
27
- </a>
28
- <div class="media-body">
29
- <a href="#">
30
- <span class="recipe-name">5分鐘酒蒸蛤蜊</span>
31
- </a>
32
- <p>
33
- <span class="fav-count">6615</span>
34
- <span class="comments-count">87</span>
35
- <span class="dishes-count">25</span>
36
- </p>
37
- <p class="material visible-xs visible-sm">食材:食材:蛤蜊、蒜末、蔥花、無鹽奶油、米酒、醬油、辣椒</p>
38
- <p class="user-name visible-md visible-lg">by <a href="#">iCook 愛料理</a></p>
39
43
  </div>
40
44
  </div>
41
45
 
42
46
  */
43
47
 
44
- @import "compass/typography/text/ellipsis";
45
-
46
- $photo-card-title: $ic-brown !default;
47
- $photo-card-text: #a5a5a5 !default;
48
- $photo-card-user-name: #777 !default;
49
- $photo-card-border: #ebe5e1 !default;
50
- $photo-card-ingredient: #aa8f83 !default;
48
+ $photo-card-border: $basic-border !default;
51
49
 
52
50
  .photo-card {
53
51
  display: inline-block;
54
- // float: left;
52
+ float: left;
55
53
  margin-top: 0;
56
54
  max-width: 172px;
57
55
  position: relative;
58
- width: 32%;
59
-
60
- .actions {
61
- left: 22px;
62
- position: absolute;
63
- top: 90px;
64
- z-index: 2;
65
- }
66
56
 
67
- .media-body > a {
68
- color: $photo-card-title;
69
- display: block;
70
- }
71
-
72
- .img {
57
+ img {
73
58
  height: 129px;
74
59
  max-width: 172px;
75
- overflow: hidden;
60
+ }
76
61
 
77
- + p {
78
- display: none;
79
- }
62
+ .pull-left {
63
+ padding-right: 0;
80
64
  }
81
65
 
82
- img {
83
- width: 100%;
66
+ .actions {
67
+ margin-left: -67px;
84
68
  }
85
69
 
86
- .recipe-name {
70
+ .card-info {
87
71
  display: block;
88
- font-size: 16px;
89
- line-height: 1;
90
- margin-bottom: 10px;
91
- margin-top: 15px;
92
72
  width: 100%;
93
73
  }
94
74
 
95
- p {
96
- color: $photo-card-text;
97
- overflow: hidden;
98
- word-break: break-word;
75
+ .recipe-title {
76
+ font-size: 16px;
77
+ margin-top: 15px;
99
78
  }
100
79
 
101
80
  .user-name {
102
81
  margin-bottom: 0;
103
82
 
104
83
  a {
105
- color: $photo-card-user-name;
106
- display: inline-block;
107
84
  font-size: 13px;
108
- line-height: 14px;
109
85
  max-width: 85%;
110
- vertical-align: text-bottom;
111
- }
112
- }
113
-
114
- .recipe-name,
115
- .user-name a {
116
- @include ellipsis;
117
- }
118
- }
119
-
120
-
121
- @media only screen and (min-width: 992px) and (max-width: 1199px) {
122
- .photo-card {
123
- .actions {
124
- left: 8px;
125
- top: 70px;
126
- }
127
-
128
- .img {
129
- height: 110px;
130
86
  }
131
87
  }
132
88
  }
@@ -137,24 +93,25 @@ $photo-card-ingredient: #aa8f83 !default;
137
93
  padding-bottom: 20px;
138
94
  width: 100%;
139
95
 
140
- > a {
96
+ + .photo-card {
97
+ border-top: 1px solid $photo-card-border;
98
+ margin-left: 0;
99
+ padding-top: 20px;
100
+ }
101
+
102
+ .pull-left {
141
103
  margin-right: 10px;
142
- width: 172px;
143
104
  }
144
105
 
145
- .fav-count,
146
- .views-count,
147
- .dishes-count {
148
- margin-right: 1px;
106
+ .card-info {
107
+ width: auto;
149
108
  }
150
109
 
151
- + .photo-card {
152
- border-top: 1px solid $photo-card-border;
153
- margin-left: 0;
154
- padding-top: 20px;
110
+ .meta li {
111
+ margin-right: 1px;
155
112
  }
156
113
 
157
- .recipe-name {
114
+ .recipe-title {
158
115
  margin-top: 0;
159
116
  }
160
117
 
@@ -167,8 +124,7 @@ $photo-card-ingredient: #aa8f83 !default;
167
124
 
168
125
  @media only screen and (max-width: 767px) {
169
126
  .photo-card {
170
- > a,
171
- .img {
127
+ img {
172
128
  height: 90px;
173
129
  width: 120px;
174
130
  }
@@ -1,5 +1,3 @@
1
- @import "compass/typography/text/ellipsis";
2
-
3
1
  // --------------------------------
4
2
  // Cards - product card
5
3
  // --------------------------------
@@ -30,7 +28,7 @@ title: Market product card
30
28
  <div>card with label</div>
31
29
  <a class="product-card" href="/products/antipodes">
32
30
  <div>
33
- <span class="label-limit">限時</span>
31
+ <span class="label-limit">限時<i class="fa fa-shopping-cart"></i></span>
34
32
  <img alt="愛料理購物袋" class="img-responsive" src="/images/recipe-default.png">
35
33
  </div>
36
34
  <div class="info">
@@ -57,7 +55,7 @@ $product-card-subtitle: #777 !default;
57
55
  }
58
56
 
59
57
  img {
60
- height: 19.3em;
58
+ min-height: 19.3em;
61
59
  width: 100%;
62
60
  }
63
61
 
@@ -71,7 +69,7 @@ $product-card-subtitle: #777 !default;
71
69
  }
72
70
 
73
71
  .title {
74
- color: $ic-brown;
72
+ color: $brown;
75
73
  font-size: 16px;
76
74
  margin-bottom: 5px;
77
75
  width: 100%;
@@ -84,10 +82,8 @@ $product-card-subtitle: #777 !default;
84
82
  }
85
83
 
86
84
  .label-limit {
87
- @include icon-b("\f07a");
88
-
89
85
  background-color: $black;
90
- border-right: 10px solid $orange;
86
+ border-right: 10px solid $orange-red;
91
87
  color: $white;
92
88
  line-height: 1;
93
89
  padding: 10px 25px;
@@ -95,6 +91,10 @@ $product-card-subtitle: #777 !default;
95
91
  right: 15px;
96
92
  top: 15px;
97
93
  width: 110px;
94
+
95
+ i {
96
+ margin-left: 5px;
97
+ }
98
98
  }
99
99
 
100
100
  @media only screen and (max-width: 767px) {
@@ -1,94 +1,113 @@
1
1
  // base styles for photo-card, list-card and dish-card
2
- $card-button-basic-bg: rgba(86, 78, 74, 0.8) !default;
3
- $card-button-basic-bg-hover: rgba(86, 78, 74, 0.7) !default;
4
- $card-button-basic-border: $white !default;
5
- $card-button-basic-text: $white !default;
6
- $card-basic-ingredient: #aa8f83 !default;
7
- $card-btn-list-bg: $white !default;
8
- $card-btn-list-text: $ic-brown !default;
9
- $card-btn-following-bg: $orange !default;
10
- $card-btn-following-icon: $white !default;
11
-
12
- %card-button-basic {
13
- background-color: $card-button-basic-bg;
14
- border: 2px solid $card-button-basic-border;
15
- border-radius: 13px;
16
- color: $card-button-basic-text;
17
- float: left;
18
- font-size: inherit;
19
- padding: 4px 6px;
20
- position: relative;
21
- text-align: center;
22
- width: 62px;
23
- }
2
+ $recipe-card-title: $brown !default;
3
+ $recipe-card-following-bg: $orange-red !default;
4
+ $recipe-card-ingredient: $brown-light30 !default;
5
+ $recipe-card-meta: $brown-light20 !default;
6
+ $recipe-card-byline: $brown-light20 !default;
7
+ $recipe-card-user-name: $brown !default;
24
8
 
25
9
  .recipe-card {
26
- .btn {
27
- font-size: 13px;
28
- display: none;
29
- }
30
-
31
- .material {
32
- color: $card-basic-ingredient;
33
- font-size: 13px;
34
- }
10
+ background-color: $white;
11
+ position: relative;
35
12
 
36
13
  &:hover {
37
14
  .btn {
38
15
  display: block;
39
16
  }
40
17
  }
41
- }
42
18
 
43
- // used in photo-card / list-card / recipes/show
44
- .btn-list {
45
- @extend %card-button-basic;
46
- @include icon("\f0c9");
19
+ img {
20
+ width: 100%;
21
+ }
47
22
 
48
- background-color: $card-btn-list-bg;
49
- color: $card-btn-list-text;
50
- margin-left: 4px;
23
+ .pull-left {
24
+ position: relative;
25
+ }
51
26
 
52
- &::after {
53
- border: 1px solid $card-btn-list-text;
54
- border-radius: 12px;
55
- bottom: 0;
56
- content: "";
57
- display: block;
58
- left: 0;
27
+ .actions {
28
+ bottom: 10px;
29
+ left: 50%;
59
30
  position: absolute;
60
- right: 0;
61
- top: 0;
31
+ z-index: 2;
62
32
  }
63
- }
64
33
 
65
- .btn-follow-recipe {
66
- @extend %card-button-basic;
67
- @include icon("\f08a");
34
+ .btn {
35
+ border: 2px solid $white;
36
+ display: none;
37
+ font-size: 13px;
38
+ padding: 4px 6px;
39
+ width: 62px;
68
40
 
69
- &:hover,
70
- &:focus {
71
- background-color: $card-button-basic-bg-hover;
72
- color: $white;
41
+ + .btn {
42
+ margin-left: 10px;
43
+ }
73
44
  }
74
45
 
75
- &.following {
76
- background-color: $card-btn-following-bg;
46
+ .recipe-title {
47
+ @include ellipsis;
77
48
 
78
- &::before {
79
- color: $card-btn-following-icon;
80
- content: "\f004 已收";
49
+ display: block;
50
+ color: $recipe-card-title;
51
+ margin-bottom: 10px;
52
+ width: 100%;
53
+
54
+ &:hover {
55
+ text-decoration: underline;
56
+ }
57
+ }
58
+
59
+ .user-name {
60
+ color: $recipe-card-byline;
61
+
62
+ a {
63
+ @include ellipsis;
64
+
65
+ color: $recipe-card-user-name;
66
+ display: inline-block;
67
+ line-height: 14px;
68
+ vertical-align: text-bottom;
69
+ }
70
+ }
71
+
72
+ .meta {
73
+ list-style: none;
74
+ padding-left: 0;
75
+
76
+ li {
77
+ color: $recipe-card-meta;
78
+ display: inline-block;
79
+ float: left;
80
+ list-style: none;
81
+
82
+ + li {
83
+ margin-left: 5px;
84
+ }
81
85
  }
86
+ }
87
+
88
+ .material {
89
+ color: $recipe-card-ingredient;
90
+ font-size: 13px;
91
+ }
82
92
 
83
- &:hover::before {
84
- content: "\f004 取消";
93
+ .btn-follow-recipe {
94
+ .fa::before {
95
+ content: "\f08a 收藏";
96
+ font-family: Fontawesome;
85
97
  }
86
98
 
87
- + .btn-list {
88
- color: $card-btn-following-bg;
99
+ &.following {
100
+ .fa::before {
101
+ content: "\f004 已收";
102
+ }
103
+
104
+ &:hover .fa::before {
105
+ content: "\f004 取消";
106
+ }
89
107
 
90
- &::after {
91
- border-color: $card-btn-following-bg;
108
+ + .btn-list {
109
+ background-color: $card-btn-following-bg;
110
+ color: $white;
92
111
  }
93
112
  }
94
113
  }