cupboard 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Dockerfile +19 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/app/assets/images/category-cover.png +0 -0
- data/app/assets/images/category-default.jpg +0 -0
- data/app/assets/images/default-avatar.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/icook-logo.png +0 -0
- data/app/assets/images/icook-logo.svg +26 -0
- data/app/assets/images/logo-2x.png +0 -0
- data/app/assets/images/no-result.png +0 -0
- data/app/assets/images/recipe-default.png +0 -0
- data/app/assets/images/section_bg.jpg +0 -0
- data/app/assets/images/setting-pr.jpg +0 -0
- data/app/assets/images/step-placeholder.jpg +0 -0
- data/app/assets/images/vip-icon.svg +1 -0
- data/app/assets/pages/atomic.md +56 -0
- data/app/assets/pages/index.md +101 -0
- data/app/assets/stylesheets/_base.scss +4 -0
- data/app/assets/stylesheets/_basic.scss +22 -0
- data/app/assets/stylesheets/_components.scss +95 -0
- data/app/assets/stylesheets/_forms.scss +159 -0
- data/app/assets/stylesheets/_global.scss +40 -0
- data/app/assets/stylesheets/_images.scss +125 -0
- data/app/assets/stylesheets/_layouts.scss +4 -0
- data/app/assets/stylesheets/_lists.scss +203 -0
- data/app/assets/stylesheets/_mixins.scss +6 -0
- data/app/assets/stylesheets/_tables.scss +244 -0
- data/app/assets/stylesheets/_typography.scss +292 -0
- data/app/assets/stylesheets/_variables.scss +1 -0
- data/app/assets/stylesheets/_widgets.scss +50 -0
- data/app/assets/stylesheets/base/_badge.scss +89 -0
- data/app/assets/stylesheets/base/_buttons.scss +217 -0
- data/app/assets/stylesheets/components/_accordion.scss +69 -0
- data/app/assets/stylesheets/components/_breadcrumbs.scss +46 -0
- data/app/assets/stylesheets/components/_cards.scss +12 -0
- data/app/assets/stylesheets/components/_grid.scss +45 -0
- data/app/assets/stylesheets/components/_navigations.scss +12 -0
- data/app/assets/stylesheets/components/_pagination.scss +166 -0
- data/app/assets/stylesheets/components/_search-form.scss +56 -0
- data/app/assets/stylesheets/components/_sorting-cards.scss +76 -0
- data/app/assets/stylesheets/components/_text.scss +166 -0
- data/app/assets/stylesheets/components/alerts/_alert-global.scss +137 -0
- data/app/assets/stylesheets/components/alerts/_alert-market.scss +129 -0
- data/app/assets/stylesheets/components/cards/_dish-card.scss +244 -0
- data/app/assets/stylesheets/components/cards/_list-card.scss +168 -0
- data/app/assets/stylesheets/components/cards/_photo-card.scss +244 -0
- data/app/assets/stylesheets/components/cards/_product-card.scss +104 -0
- data/app/assets/stylesheets/components/cards/_recipe-card.scss +96 -0
- data/app/assets/stylesheets/components/cards/_video-card.scss +206 -0
- data/app/assets/stylesheets/components/comments/_comment-form.scss +222 -0
- data/app/assets/stylesheets/components/medias/_blog-feeds.scss +28 -0
- data/app/assets/stylesheets/components/medias/_brand-cover.scss +127 -0
- data/app/assets/stylesheets/components/medias/_brand-product.scss +35 -0
- data/app/assets/stylesheets/components/medias/_business-kitchen.scss +66 -0
- data/app/assets/stylesheets/components/medias/_categories-cover.scss +79 -0
- data/app/assets/stylesheets/components/medias/_hot-categories.scss +36 -0
- data/app/assets/stylesheets/components/medias/_popular-categories.scss +89 -0
- data/app/assets/stylesheets/components/medias/_popular-recipes.scss +38 -0
- data/app/assets/stylesheets/components/medias/_pr-lists.scss +53 -0
- data/app/assets/stylesheets/components/medias/_recipe-reference.scss +45 -0
- data/app/assets/stylesheets/components/medias/_user-recipes.scss +46 -0
- data/app/assets/stylesheets/components/navigations/_blog-nav.scss +120 -0
- data/app/assets/stylesheets/components/navigations/_brand-tabs-nav.scss +187 -0
- data/app/assets/stylesheets/components/navigations/_categories-nav-responsive.scss +131 -0
- data/app/assets/stylesheets/components/navigations/_categories-nav.scss +307 -0
- data/app/assets/stylesheets/components/navigations/_recipe-nav.scss +112 -0
- data/app/assets/stylesheets/components/navigations/_tv-nav.scss +283 -0
- data/app/assets/stylesheets/components/recipes/_ingredients.scss +223 -0
- data/app/assets/stylesheets/components/recipes/_notes.scss +60 -0
- data/app/assets/stylesheets/components/recipes/_steps.scss +153 -0
- data/app/assets/stylesheets/components/single_comment/_single-comment.scss +251 -0
- data/app/assets/stylesheets/layouts/_footer-nav.scss +151 -0
- data/app/assets/stylesheets/layouts/_footer.scss +48 -0
- data/app/assets/stylesheets/layouts/_footers.scss +12 -0
- data/app/assets/stylesheets/layouts/_global-navbar.scss +261 -0
- data/app/assets/stylesheets/layouts/_headers.scss +11 -0
- data/app/assets/stylesheets/layouts/_sub-header-market.scss +138 -0
- data/app/assets/stylesheets/mixins/_mixin-alert.scss +27 -0
- data/app/assets/stylesheets/mixins/_mixin-animation.scss +10 -0
- data/app/assets/stylesheets/mixins/_mixin-badge.scss +21 -0
- data/app/assets/stylesheets/mixins/_mixin-buttons.scss +21 -0
- data/app/assets/stylesheets/mixins/_mixin-icons.scss +32 -0
- data/app/assets/stylesheets/mixins/_mixin-type.scss +7 -0
- data/app/assets/stylesheets/variables/_color-palette.scss +222 -0
- data/app/assets/stylesheets/widgets/_brand-sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_recipe-mark.scss +55 -0
- data/app/assets/stylesheets/widgets/_sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_tv-sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_user-sidebar-widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/_widgets.scss +11 -0
- data/app/assets/stylesheets/widgets/brands/_pr-ingredients.scss +154 -0
- data/app/assets/stylesheets/widgets/brands/_pr-latest.scss +62 -0
- data/app/assets/stylesheets/widgets/brands/_pr-popular-recipe-lists.scss +51 -0
- data/app/assets/stylesheets/widgets/brands/_pr-recent.scss +59 -0
- data/app/assets/stylesheets/widgets/brands/_pr-video.scss +34 -0
- data/app/assets/stylesheets/widgets/features/_feature-events.scss +119 -0
- data/app/assets/stylesheets/widgets/features/_feature-slides.scss +144 -0
- data/app/assets/stylesheets/widgets/feeds/_blog-feeds.scss +144 -0
- data/app/assets/stylesheets/widgets/feeds/_tv-feeds.scss +143 -0
- data/app/assets/stylesheets/widgets/modal/_modal-reset.scss +40 -0
- data/app/assets/stylesheets/widgets/modal/_recipe-list-modal.scss +111 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_business-kitchen.scss +134 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_icook-video.scss +109 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-recipe-lists.scss +232 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-recipes.scss +105 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-search.scss +317 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_recipes-collect.scss +45 -0
- data/app/assets/stylesheets/widgets/sidebar-widgets/_sidebar-widget.scss +62 -0
- data/app/assets/stylesheets/widgets/tv/_tv-more-recipes.scss +93 -0
- data/app/assets/stylesheets/widgets/tv/_tv-popular-tags.scss +78 -0
- data/app/assets/stylesheets/widgets/users/_fav-list.scss +197 -0
- data/app/assets/stylesheets/widgets/users/_user-stats.scss +330 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/config/initializers/assets.rb +5 -0
- data/cupboard.gemspec +40 -0
- data/example/.gitignore +19 -0
- data/lib/cupboard.rb +12 -0
- data/lib/cupboard/engine.rb +6 -0
- data/lib/cupboard/version.rb +3 -0
- metadata +298 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
@import "compass/typography/text/ellipsis";
|
2
|
+
|
3
|
+
// --------------------------------
|
4
|
+
// Cards - list card
|
5
|
+
// --------------------------------
|
6
|
+
|
7
|
+
/*doc
|
8
|
+
---
|
9
|
+
parent: 17_cards
|
10
|
+
name: list_card
|
11
|
+
title: List card
|
12
|
+
---
|
13
|
+
|
14
|
+
<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>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<a title="酥烤香甜吐司-快速抹醬" class="pull-left" href="/recipes/157559">
|
23
|
+
<img alt="酥烤香甜吐司-快速抹醬" class="img-responsive" src="/images/recipe-default.png">
|
24
|
+
</a>
|
25
|
+
<div class="media-body card-info">
|
26
|
+
<a title="酥烤香甜吐司-快速抹醬" data-title="酥烤香甜吐司-快速抹醬" itemprop="name" href="/recipes/157559">酥烤香甜吐司-快速抹醬</a>
|
27
|
+
<ul class="meta clearfix">
|
28
|
+
<li class="fav-count recipe-favorites" data-isround="true"><span class="" data-reactid=".f">2,029</span></li>
|
29
|
+
<li class="comments-count" data-title="1 則留言">1</li>
|
30
|
+
<li class="dishes-count" data-title="1 人做過">1</li>
|
31
|
+
</ul>
|
32
|
+
<p itemprop="description" class="hidden-xs description">簡單、快速、香甜烤吐司吃膩了一般果醬試試這微酥口感的快速抹醬吧~小孩會很喜歡喔!</p>
|
33
|
+
<p class="material">食材:吐司、低筋麵粉、無鹽奶油、自製煉乳或市售</p>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
*/
|
37
|
+
|
38
|
+
@import "compass/typography/text/ellipsis";
|
39
|
+
|
40
|
+
$list-card-bg: $white !default;
|
41
|
+
$list-card-border: #ebe5e1 !default;
|
42
|
+
$list-card-stats: #888 !default;
|
43
|
+
$list-card-title: #5c4545 !default;
|
44
|
+
$list-card-text: #888 !default;
|
45
|
+
$list-card-ingredient: #aa8f83 !default;
|
46
|
+
$author-list-card-border: #ede5e1 !default;
|
47
|
+
|
48
|
+
.list-card {
|
49
|
+
background-color: $list-card-bg;
|
50
|
+
border-bottom: 1px solid $list-card-border;
|
51
|
+
margin-top: 0;
|
52
|
+
padding-bottom: 20px;
|
53
|
+
padding-top: 20px;
|
54
|
+
position: relative;
|
55
|
+
width: 100%;
|
56
|
+
|
57
|
+
.actions {
|
58
|
+
bottom: 30px;
|
59
|
+
left: 11px;
|
60
|
+
position: absolute;
|
61
|
+
z-index: 2;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.pinned .pr {
|
65
|
+
display: block;
|
66
|
+
}
|
67
|
+
|
68
|
+
&:last-child {
|
69
|
+
margin-bottom: 15px;
|
70
|
+
}
|
71
|
+
|
72
|
+
> .pull-left {
|
73
|
+
position: relative;
|
74
|
+
}
|
75
|
+
|
76
|
+
> a,
|
77
|
+
img {
|
78
|
+
height: 120px;
|
79
|
+
width: 160px;
|
80
|
+
}
|
81
|
+
|
82
|
+
.meta {
|
83
|
+
margin-bottom: 5px;
|
84
|
+
}
|
85
|
+
|
86
|
+
ul {
|
87
|
+
padding-left: 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
li {
|
91
|
+
color: $list-card-stats;
|
92
|
+
float: left;
|
93
|
+
font-size: 12px;
|
94
|
+
list-style-type: none;
|
95
|
+
|
96
|
+
&.fav-count::before {
|
97
|
+
margin-right: 0;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.card-info {
|
102
|
+
height: 100%;
|
103
|
+
|
104
|
+
> a {
|
105
|
+
@include ellipsis;
|
106
|
+
|
107
|
+
color: $list-card-title;
|
108
|
+
display: block;
|
109
|
+
font-size: 18px;
|
110
|
+
margin-bottom: 5px;
|
111
|
+
width: 100%;
|
112
|
+
|
113
|
+
&:hover {
|
114
|
+
text-decoration: underline;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
p {
|
119
|
+
line-height: 20px;
|
120
|
+
margin-bottom: 0;
|
121
|
+
max-height: 3em;
|
122
|
+
overflow: hidden;
|
123
|
+
word-break: break-word;
|
124
|
+
}
|
125
|
+
|
126
|
+
.sponsor {
|
127
|
+
color: $list-card-stats;
|
128
|
+
font-size: 12px;
|
129
|
+
margin-bottom: 5px;
|
130
|
+
|
131
|
+
a {
|
132
|
+
color: $brown;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
.description {
|
138
|
+
color: $list-card-text;
|
139
|
+
font-size: 14px;
|
140
|
+
}
|
141
|
+
|
142
|
+
&.author + .text-center {
|
143
|
+
border-top: 1px solid $author-list-card-border;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
@media only screen and (max-width: 767px) {
|
148
|
+
.list-card {
|
149
|
+
> a,
|
150
|
+
img {
|
151
|
+
height: 90px;
|
152
|
+
width: 120px;
|
153
|
+
}
|
154
|
+
|
155
|
+
.breadcrumb + & {
|
156
|
+
padding-top: 0;
|
157
|
+
}
|
158
|
+
|
159
|
+
.dishes-count {
|
160
|
+
margin-right: 0;
|
161
|
+
}
|
162
|
+
|
163
|
+
.views-count {
|
164
|
+
display: none;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
@@ -0,0 +1,244 @@
|
|
1
|
+
@import "compass/typography/text/ellipsis";
|
2
|
+
|
3
|
+
// --------------------------------
|
4
|
+
// Cards - photo card
|
5
|
+
// --------------------------------
|
6
|
+
|
7
|
+
/*doc
|
8
|
+
---
|
9
|
+
parent: 17_cards
|
10
|
+
name: photo_card
|
11
|
+
title: Photo card
|
12
|
+
---
|
13
|
+
|
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>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<a href="#">
|
23
|
+
<div class="img">
|
24
|
+
<img class="img-responsive" src="/images/recipe-default.png" alt="400x300">
|
25
|
+
</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
|
+
</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
|
43
|
+
*/
|
44
|
+
|
45
|
+
@import "compass/typography/text/ellipsis";
|
46
|
+
|
47
|
+
$photo-card-title: $ic-brown !default;
|
48
|
+
$photo-card-text: #a5a5a5 !default;
|
49
|
+
$photo-card-user-name: #777 !default;
|
50
|
+
$photo-card-border: #ebe5e1 !default;
|
51
|
+
$photo-card-ingredient: #aa8f83 !default;
|
52
|
+
|
53
|
+
.photo-card {
|
54
|
+
display: inline-block;
|
55
|
+
// float: left;
|
56
|
+
margin-top: 0;
|
57
|
+
max-width: 172px;
|
58
|
+
position: relative;
|
59
|
+
width: 32%;
|
60
|
+
|
61
|
+
.actions {
|
62
|
+
left: 22px;
|
63
|
+
position: absolute;
|
64
|
+
top: 90px;
|
65
|
+
z-index: 2;
|
66
|
+
}
|
67
|
+
|
68
|
+
.media-body > a {
|
69
|
+
color: $photo-card-title;
|
70
|
+
display: block;
|
71
|
+
}
|
72
|
+
|
73
|
+
.img {
|
74
|
+
height: 129px;
|
75
|
+
max-width: 172px;
|
76
|
+
overflow: hidden;
|
77
|
+
|
78
|
+
+ p {
|
79
|
+
display: none;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
img {
|
84
|
+
width: 100%;
|
85
|
+
}
|
86
|
+
|
87
|
+
.recipe-name {
|
88
|
+
display: block;
|
89
|
+
font-size: 16px;
|
90
|
+
line-height: 1;
|
91
|
+
margin-bottom: 10px;
|
92
|
+
margin-top: 15px;
|
93
|
+
width: 100%;
|
94
|
+
}
|
95
|
+
|
96
|
+
p {
|
97
|
+
color: $photo-card-text;
|
98
|
+
overflow: hidden;
|
99
|
+
word-break: break-word;
|
100
|
+
}
|
101
|
+
|
102
|
+
.user-name {
|
103
|
+
margin-bottom: 0;
|
104
|
+
|
105
|
+
a {
|
106
|
+
color: $photo-card-user-name;
|
107
|
+
display: inline-block;
|
108
|
+
font-size: 13px;
|
109
|
+
line-height: 14px;
|
110
|
+
max-width: 85%;
|
111
|
+
vertical-align: text-bottom;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.recipe-name,
|
116
|
+
.user-name a {
|
117
|
+
@include ellipsis;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
123
|
+
.photo-card {
|
124
|
+
.actions {
|
125
|
+
left: 8px;
|
126
|
+
top: 70px;
|
127
|
+
}
|
128
|
+
|
129
|
+
.img {
|
130
|
+
height: 110px;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.feature-spot {
|
135
|
+
height: 864px;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
@media only screen and (max-width: 991px) {
|
140
|
+
.photo-card {
|
141
|
+
max-width: 100%;
|
142
|
+
padding-bottom: 20px;
|
143
|
+
width: 100%;
|
144
|
+
|
145
|
+
> a {
|
146
|
+
margin-right: 10px;
|
147
|
+
width: 172px;
|
148
|
+
}
|
149
|
+
|
150
|
+
.fav-count,
|
151
|
+
.views-count,
|
152
|
+
.dishes-count {
|
153
|
+
margin-right: 1px;
|
154
|
+
}
|
155
|
+
|
156
|
+
+ .photo-card {
|
157
|
+
border-top: 1px solid $photo-card-border;
|
158
|
+
margin-left: 0;
|
159
|
+
padding-top: 20px;
|
160
|
+
}
|
161
|
+
|
162
|
+
.recipe-name {
|
163
|
+
margin-top: 0;
|
164
|
+
}
|
165
|
+
|
166
|
+
.material {
|
167
|
+
margin-bottom: 0;
|
168
|
+
max-height: 2.7em;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
@media only screen and (max-width: 767px) {
|
174
|
+
.photo-card {
|
175
|
+
> a,
|
176
|
+
.img {
|
177
|
+
height: 90px;
|
178
|
+
width: 120px;
|
179
|
+
}
|
180
|
+
|
181
|
+
.fav-count,
|
182
|
+
.dishes-count {
|
183
|
+
&::before {
|
184
|
+
margin-right: 4px;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
.views-count {
|
189
|
+
display: none;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
// stat icons
|
195
|
+
$stat-icon: #999 !default;
|
196
|
+
$stat-icon-following: $ic-red !default;
|
197
|
+
|
198
|
+
.fav-count {
|
199
|
+
@include icon("\f004");
|
200
|
+
|
201
|
+
&.active::before {
|
202
|
+
color: $stat-icon-following;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
.views-count {
|
207
|
+
@include icon("\f06e");
|
208
|
+
|
209
|
+
&::before {
|
210
|
+
margin-right: -2px;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.dishes-count {
|
215
|
+
@include icon("\f030");
|
216
|
+
}
|
217
|
+
|
218
|
+
.search-score {
|
219
|
+
@include icon("\f080");
|
220
|
+
}
|
221
|
+
|
222
|
+
.comments-count {
|
223
|
+
@include icon("\e805");
|
224
|
+
|
225
|
+
&::before {
|
226
|
+
font-family: "icookfont";
|
227
|
+
font-weight: bold;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
.fav-count span,
|
232
|
+
.dishes-count,
|
233
|
+
.comments-count,
|
234
|
+
.search-score {
|
235
|
+
margin-left: 5px;
|
236
|
+
|
237
|
+
&::before {
|
238
|
+
color: $stat-icon;
|
239
|
+
font-size: 12px;
|
240
|
+
margin-right: 3px;
|
241
|
+
width: 12px;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
@@ -0,0 +1,104 @@
|
|
1
|
+
@import "compass/typography/text/ellipsis";
|
2
|
+
|
3
|
+
// --------------------------------
|
4
|
+
// Cards - product card
|
5
|
+
// --------------------------------
|
6
|
+
|
7
|
+
/*doc
|
8
|
+
---
|
9
|
+
parent: 17_cards
|
10
|
+
name: product_card
|
11
|
+
title: Product card
|
12
|
+
---
|
13
|
+
|
14
|
+
<div class="ic-promoted-cards clearfix">
|
15
|
+
<div class="ic-promoted-card">
|
16
|
+
<div>product-card in Market</div>
|
17
|
+
<a class="product-card" href="/products/antipodes">
|
18
|
+
<div>
|
19
|
+
<img alt="愛料理購物袋" class="img-responsive" src="/images/recipe-default.png">
|
20
|
+
</div>
|
21
|
+
<div class="info">
|
22
|
+
<div class="title" itemprop="name">愛料理購物袋</div>
|
23
|
+
<div class="subtitle" itemprop="description"><span>自有品牌商品 大小款獨家發售中</span>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</a>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="ic-promoted-card">
|
30
|
+
<div>card with label</div>
|
31
|
+
<a class="product-card" href="/products/antipodes">
|
32
|
+
<div>
|
33
|
+
<span class="label-limit">限時</span>
|
34
|
+
<img alt="愛料理購物袋" class="img-responsive" src="/images/recipe-default.png">
|
35
|
+
</div>
|
36
|
+
<div class="info">
|
37
|
+
<div class="title" itemprop="name">愛料理購物袋</div>
|
38
|
+
<div class="subtitle" itemprop="description"><span>自有品牌商品 大小款獨家發售中</span>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</a>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
*/
|
45
|
+
|
46
|
+
$product-card-subtitle: #777 !default;
|
47
|
+
|
48
|
+
.product-card {
|
49
|
+
background-color: $white;
|
50
|
+
display: block;
|
51
|
+
margin: 15px 0;
|
52
|
+
position: relative;
|
53
|
+
|
54
|
+
&:hover {
|
55
|
+
text-decoration: none;
|
56
|
+
}
|
57
|
+
|
58
|
+
img {
|
59
|
+
height: 19.3em;
|
60
|
+
width: 100%;
|
61
|
+
}
|
62
|
+
|
63
|
+
.info {
|
64
|
+
padding: 12px 10px;
|
65
|
+
}
|
66
|
+
|
67
|
+
.title,
|
68
|
+
.subtitle {
|
69
|
+
@include ellipsis;
|
70
|
+
}
|
71
|
+
|
72
|
+
.title {
|
73
|
+
color: $ic-brown;
|
74
|
+
font-size: 16px;
|
75
|
+
margin-bottom: 5px;
|
76
|
+
width: 100%;
|
77
|
+
}
|
78
|
+
|
79
|
+
.subtitle {
|
80
|
+
color: $product-card-subtitle;
|
81
|
+
height: 20px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.label-limit {
|
86
|
+
@include icon-b("\f07a");
|
87
|
+
|
88
|
+
background-color: $black;
|
89
|
+
border-right: 10px solid $orange;
|
90
|
+
color: $white;
|
91
|
+
line-height: 1;
|
92
|
+
padding: 10px 25px;
|
93
|
+
position: absolute;
|
94
|
+
right: 15px;
|
95
|
+
top: 15px;
|
96
|
+
width: 110px;
|
97
|
+
}
|
98
|
+
|
99
|
+
@media only screen and (max-width: 767px) {
|
100
|
+
.product-card img {
|
101
|
+
height: auto;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|