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,45 @@
|
|
1
|
+
// --------------------------------
|
2
|
+
// Grid
|
3
|
+
// --------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Grid
|
8
|
+
name: 03_grid
|
9
|
+
category: UI components
|
10
|
+
---
|
11
|
+
|
12
|
+
<div class="ic-grid">
|
13
|
+
<div class="row">
|
14
|
+
<div class="col-xs-12">
|
15
|
+
<p>Mainly use 4 and 8 column of bootstrap's grid system for our page layouts.</p>
|
16
|
+
</div>
|
17
|
+
<div class="clearfix">
|
18
|
+
<div class="col-xs-12 col-md-8">
|
19
|
+
<p>.col-xs-12. col-md-8</p>
|
20
|
+
</div>
|
21
|
+
<div class="col-xs-12 col-md-4">
|
22
|
+
<p>.col-xs-12 .col-md-4</p>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="col-xs-12">
|
26
|
+
<p>Nesting grids</p>
|
27
|
+
</div>
|
28
|
+
<div class="clearfix nested">
|
29
|
+
<div class="col-xs-12 col-md-8">
|
30
|
+
<p>.col-xs-12 .col-md-8</p>
|
31
|
+
<div class="row">
|
32
|
+
<div class="col-xs-12 col-md-4">
|
33
|
+
<p>.col-xs-12 .col-md-4</p>
|
34
|
+
</div>
|
35
|
+
<div class="col-xs-12 col-md-8">
|
36
|
+
<p>.col-xs.12 .col-md-8</p>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
*/
|
45
|
+
|
@@ -0,0 +1,166 @@
|
|
1
|
+
// --------------------------------
|
2
|
+
// Navigation - pagination
|
3
|
+
// --------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Pagination
|
8
|
+
name: 07_pagination
|
9
|
+
category: UI components
|
10
|
+
---
|
11
|
+
|
12
|
+
<div><p>for some reasons we're using gem <code>icookfont-sass</code> and <code>icook-kaminari-views</code> now</p></div>
|
13
|
+
|
14
|
+
```html_example
|
15
|
+
<nav>
|
16
|
+
<ul class="pagination">
|
17
|
+
<li class="page active"><a href="#">1</a></li>
|
18
|
+
<li class="page"><a rel="next" href="#">2</a></li>
|
19
|
+
<li class="page"><a href="#">3</a></li>
|
20
|
+
<li class="page gap disabled"><a href="#" onclick="return false;">...</a></li>
|
21
|
+
<li class="next_page"><a rel="next" href="#"></a></li>
|
22
|
+
</ul>
|
23
|
+
</nav>
|
24
|
+
```
|
25
|
+
```html_example
|
26
|
+
<nav>
|
27
|
+
<ul class="pagination">
|
28
|
+
<li class="prev"><a rel="prev" href="#"></a></li>
|
29
|
+
<li class="page"><a href="#">1</a></li>
|
30
|
+
<li class="page active"><a href="#">2</a></li>
|
31
|
+
<li class="page"><a href="#">3</a></li>
|
32
|
+
<li class="next_page"><a rel="next" href="#"></a></li>
|
33
|
+
</ul>
|
34
|
+
</nav>
|
35
|
+
```
|
36
|
+
|
37
|
+
<hr/>
|
38
|
+
<p>pagination on mobile</p>
|
39
|
+
```html_example
|
40
|
+
<nav>
|
41
|
+
<ul class="pagination">
|
42
|
+
<li class="prev"><a rel="prev" href="#"></a></li>
|
43
|
+
<li class="page active"><a href="#">1</a></li>
|
44
|
+
<li class="next_page"><a rel="next" href="#"></a></li>
|
45
|
+
</ul>
|
46
|
+
</nav>
|
47
|
+
```
|
48
|
+
|
49
|
+
<hr/>
|
50
|
+
<p>disabled pagination link</p>
|
51
|
+
```html_example
|
52
|
+
<nav>
|
53
|
+
<ul class="pagination">
|
54
|
+
<li class="prev disabled"><a rel="prev" href="#"></a></li>
|
55
|
+
<li class="page active"><a href="#">1</a></li>
|
56
|
+
<li class="next_page disabled"><a rel="next" href="#"></a></li>
|
57
|
+
</ul>
|
58
|
+
</nav>
|
59
|
+
```
|
60
|
+
|
61
|
+
*/
|
62
|
+
$pagi-link-bg: $white !default;
|
63
|
+
$pagi-link-text: $ic-brown !default;
|
64
|
+
$pagi-link-hover-bg: $ic-brown !default;
|
65
|
+
$pagi-link-hover-text: $white !default;
|
66
|
+
$pagi-link-active-bg: $ic-brown !default;
|
67
|
+
$pagi-link-active-text: $white !default;
|
68
|
+
$pagi-link-border: #e2e0db !default;
|
69
|
+
$pagi-link-disabled-bg: #efede8 !default;
|
70
|
+
$pagi-link-disabled-text: #bcbab5 !default;
|
71
|
+
|
72
|
+
.pagination {
|
73
|
+
clear: both;
|
74
|
+
margin: 20px auto 0;
|
75
|
+
text-align: center;
|
76
|
+
|
77
|
+
> .disabled > a {
|
78
|
+
&,
|
79
|
+
&:hover {
|
80
|
+
background-color: $pagi-link-disabled-bg;
|
81
|
+
color: $pagi-link-disabled-text;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
li {
|
86
|
+
a {
|
87
|
+
border-color: $pagi-link-border;
|
88
|
+
color: $pagi-link-text;
|
89
|
+
}
|
90
|
+
|
91
|
+
&:hover a {
|
92
|
+
background-color: $pagi-link-hover-bg;
|
93
|
+
color: $pagi-link-hover-text;
|
94
|
+
font-size: 14px;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.active a,
|
99
|
+
.active:hover a {
|
100
|
+
background-color: $pagi-link-active-bg;
|
101
|
+
border-color: $pagi-link-border;
|
102
|
+
color: $pagi-link-active-text;
|
103
|
+
}
|
104
|
+
|
105
|
+
.prev a,
|
106
|
+
.next_page a {
|
107
|
+
display: block;
|
108
|
+
padding-left: 15px;
|
109
|
+
padding-right: 15px;
|
110
|
+
}
|
111
|
+
|
112
|
+
.prev a {
|
113
|
+
@include icon("\e812");
|
114
|
+
|
115
|
+
border-bottom-left-radius: 4px;
|
116
|
+
border-top-left-radius: 4px;
|
117
|
+
|
118
|
+
&::before {
|
119
|
+
font-family: "icookfont";
|
120
|
+
margin-right: 0;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.next_page a {
|
125
|
+
@include icon("\e811");
|
126
|
+
|
127
|
+
border-bottom-right-radius: 4px;
|
128
|
+
border-top-right-radius: 4px;
|
129
|
+
|
130
|
+
&::before {
|
131
|
+
font-family: "icookfont";
|
132
|
+
margin-right: 0;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.first,
|
137
|
+
.last,
|
138
|
+
.gap {
|
139
|
+
display: none;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
@media only screen and (max-width: 768px) {
|
144
|
+
.pagination {
|
145
|
+
li.page {
|
146
|
+
display: none;
|
147
|
+
|
148
|
+
&.active {
|
149
|
+
display: inline;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
@media only screen and (max-width: 768px) {
|
156
|
+
.pagination {
|
157
|
+
li.page {
|
158
|
+
display: none;
|
159
|
+
|
160
|
+
&.active {
|
161
|
+
display: inline;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// --------------------------------
|
2
|
+
// Form components - search form
|
3
|
+
// --------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Search form
|
8
|
+
name: 14_search_form
|
9
|
+
category: UI components
|
10
|
+
---
|
11
|
+
|
12
|
+
```html_example
|
13
|
+
<div class="to-fulltext-search">
|
14
|
+
<form id="global-search">
|
15
|
+
<input class="search-input" placeholder="搜尋全站食譜、食材" type="text">
|
16
|
+
<button type="submit" class="btn btn-search"> </button>
|
17
|
+
</form>
|
18
|
+
</div>
|
19
|
+
```
|
20
|
+
|
21
|
+
*/
|
22
|
+
|
23
|
+
.to-fulltext-search {
|
24
|
+
box-sizing: border-box;
|
25
|
+
background-color: #fff;
|
26
|
+
border: 1px solid #ebe5e1;
|
27
|
+
display: block;
|
28
|
+
font-size: 13px;
|
29
|
+
height: 30px;
|
30
|
+
max-width: 220px;
|
31
|
+
position: relative;
|
32
|
+
width: 100%;
|
33
|
+
|
34
|
+
.search-input {
|
35
|
+
background-color: transparent;
|
36
|
+
border: none;
|
37
|
+
padding: 6px 6px 6px 12px;
|
38
|
+
width: 100%;
|
39
|
+
}
|
40
|
+
|
41
|
+
.btn-search {
|
42
|
+
@include icon("\f002");
|
43
|
+
|
44
|
+
background-color: transparent;
|
45
|
+
border-radius: 0;
|
46
|
+
color: #888;
|
47
|
+
display: block;
|
48
|
+
font-size: 13px;
|
49
|
+
height: 20px;
|
50
|
+
padding: 0;
|
51
|
+
position: absolute;
|
52
|
+
right: 3px;
|
53
|
+
top: 5px;
|
54
|
+
width: 20px;
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
// --------------------------------
|
2
|
+
// Navigation - sorting cards
|
3
|
+
// --------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Sorting cards
|
8
|
+
name: 13_sort_cards
|
9
|
+
category: UI components
|
10
|
+
---
|
11
|
+
|
12
|
+
```html_example
|
13
|
+
<ul class="sort-cards">
|
14
|
+
<li>排序 | </li>
|
15
|
+
<li class="active">
|
16
|
+
<a href="#"><span>最近發表</span></a>
|
17
|
+
</li>
|
18
|
+
<li>
|
19
|
+
<a href="#"><span>依收藏數</span></a>
|
20
|
+
</li>
|
21
|
+
</ul>
|
22
|
+
```
|
23
|
+
<hr/>
|
24
|
+
sorting with badge
|
25
|
+
|
26
|
+
```html_example
|
27
|
+
<ul class="sort-cards">
|
28
|
+
<li>排序 | </li>
|
29
|
+
<li class="active">
|
30
|
+
<a href="#"><span>最近發表</span></a>
|
31
|
+
</li>
|
32
|
+
<li>
|
33
|
+
<a href="#"><span>依收藏數</span></a>
|
34
|
+
</li>
|
35
|
+
<span class="badge-vip"></span>
|
36
|
+
</ul>
|
37
|
+
```
|
38
|
+
*/
|
39
|
+
|
40
|
+
$sort-cards-link: #999 !default;
|
41
|
+
$sort-cards-link-hover: #5c4545 !default;
|
42
|
+
|
43
|
+
.sort-cards {
|
44
|
+
margin-bottom: 0;
|
45
|
+
padding-bottom: 10px;
|
46
|
+
padding-top: 3px;
|
47
|
+
text-align: right;
|
48
|
+
|
49
|
+
a {
|
50
|
+
color: $sort-cards-link;
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
color: $sort-cards-link-hover;
|
54
|
+
}
|
55
|
+
|
56
|
+
&:first-child {
|
57
|
+
margin-left: 5px;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
li {
|
62
|
+
color: $sort-cards-link-hover;
|
63
|
+
display: inline-block;
|
64
|
+
|
65
|
+
&.active a {
|
66
|
+
color: $sort-cards-link-hover;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.badge-vip {
|
71
|
+
margin-left: 3px;
|
72
|
+
position: relative;
|
73
|
+
top: 1px;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
@@ -0,0 +1,166 @@
|
|
1
|
+
// ----------------------------
|
2
|
+
// Text
|
3
|
+
// ----------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Text
|
8
|
+
name: 01_text
|
9
|
+
category: UI Components
|
10
|
+
---
|
11
|
+
|
12
|
+
Heading group, byline, small text, badge
|
13
|
+
|
14
|
+
### Heading group
|
15
|
+
|
16
|
+
<div class="row">
|
17
|
+
<div class="col-xs-12 col-md-4">
|
18
|
+
<p>Heading with link</p>
|
19
|
+
<h3 class="clearfix head-link">熱門食譜<a href="#" class="more pull-right">更多</a></h3>
|
20
|
+
</div>
|
21
|
+
<div class="col-xs-12 col-md-8">
|
22
|
+
<p>Heading with text</p>
|
23
|
+
<h3 class="clearfix head-text">逛食譜<span class="pull-right">超過 60,000 道食譜等妳來逛</span></h3>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<br/>
|
27
|
+
<div class="row">
|
28
|
+
<div class="col-xs-12 col-md-4">
|
29
|
+
<p>Branding - iCook</p>
|
30
|
+
<div class="channel-name">
|
31
|
+
<small>食譜社群網</small><br>
|
32
|
+
<span>愛料理</span>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div class="col-xs-12 col-md-8">
|
36
|
+
<p>Branding - Market</p>
|
37
|
+
<h3 class="brand-name"><small>iCook 愛料理</small><br>愛料理生活購物袋</h3>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<hr/>
|
42
|
+
### Byline
|
43
|
+
|
44
|
+
<div class="row">
|
45
|
+
<div class="col-xs-12 col-md-3">
|
46
|
+
<p>recipe card - iCook</p>
|
47
|
+
<p class="username">by <a href="#">愛料理</a></p>
|
48
|
+
</div>
|
49
|
+
<div class="col-xs-12 col-md-5 tv-sub-info">
|
50
|
+
<p>TV</p>
|
51
|
+
<span class="time">
|
52
|
+
於 2015/2/17 發表
|
53
|
+
</span>
|
54
|
+
<span><a href="#">闔家團圓年菜</a></span>
|
55
|
+
<span>阿嬌</span>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<hr/>
|
60
|
+
### Small text
|
61
|
+
<div class="row">
|
62
|
+
<div class="col-xs-12 col-md-6">
|
63
|
+
<p>recipe card (list-card) - iCook</p>
|
64
|
+
<small class="material">食材:豬絞肉、青蔥(切末)、水餃皮、清水、醬油、味霖、鹽、白胡椒粉</small>
|
65
|
+
</div>
|
66
|
+
<div class="col-xs-12 col-md-6">
|
67
|
+
<p>sku - Market</p>
|
68
|
+
<small class="sku-small">不分大小款,凡購買三個愛料理生活購物袋即享免運</small>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
|
73
|
+
*/
|
74
|
+
|
75
|
+
$head-link-more: #888 !default;
|
76
|
+
$head-text: #888 !default;
|
77
|
+
$byline-text: #a5a5a5 !default;
|
78
|
+
$byline-link: #777 !default;
|
79
|
+
$tv-sub-info-text: #817a77 !default;
|
80
|
+
$tv-sub-info-link: $ic-brown !default;
|
81
|
+
$material-text: #aa8f83 !default;
|
82
|
+
$sku-small-text: #555 !default;
|
83
|
+
|
84
|
+
.head-link,
|
85
|
+
.head-text {
|
86
|
+
color: $ic-brown;
|
87
|
+
}
|
88
|
+
|
89
|
+
.head-link {
|
90
|
+
font-size: 18px;
|
91
|
+
|
92
|
+
.more {
|
93
|
+
color: $head-link-more;
|
94
|
+
line-height: 19px;
|
95
|
+
|
96
|
+
&:hover {
|
97
|
+
color: $orange;
|
98
|
+
text-decoration: none;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.head-text {
|
104
|
+
font-size: 16px;
|
105
|
+
max-width: 400px;
|
106
|
+
|
107
|
+
span {
|
108
|
+
color: $head-text;
|
109
|
+
font-weight: normal;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.channel-name {
|
114
|
+
small {
|
115
|
+
color: $orange;
|
116
|
+
font-size: 12px;
|
117
|
+
}
|
118
|
+
|
119
|
+
span {
|
120
|
+
color: $ic-brown;
|
121
|
+
display: block;
|
122
|
+
font-size: 24px;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.brand-name {
|
127
|
+
color: $ic-brown;
|
128
|
+
font-size: 20px;
|
129
|
+
margin-top: 0;
|
130
|
+
|
131
|
+
small {
|
132
|
+
color: $ic-brown;
|
133
|
+
display: inline-block;
|
134
|
+
font-size: 13px;
|
135
|
+
margin-bottom: 10px;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
p.username {
|
140
|
+
color: $byline-text;
|
141
|
+
|
142
|
+
a {
|
143
|
+
color: $byline-link;
|
144
|
+
font-size: 13px;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.tv-sub-info {
|
149
|
+
color: $tv-sub-info-text;
|
150
|
+
|
151
|
+
a {
|
152
|
+
color: $tv-sub-info-link;
|
153
|
+
margin: 0 10px;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
.material {
|
158
|
+
color: $material-text;
|
159
|
+
font-size: 13px;
|
160
|
+
max-height: 40px;
|
161
|
+
}
|
162
|
+
|
163
|
+
.sku-small {
|
164
|
+
color: $sku-small-text;
|
165
|
+
font-size: 13px;
|
166
|
+
}
|