cupboard 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/assets/images/icook-logo-footer.svg +1 -0
- data/app/assets/images/vip_modal.svg +1 -0
- data/app/assets/stylesheets/_base.scss +3 -1
- data/app/assets/stylesheets/_components.scss +31 -29
- data/app/assets/stylesheets/_helpers.scss +4 -3
- data/app/assets/stylesheets/_layouts.scss +1 -2
- data/app/assets/stylesheets/_vendors.scss +7 -0
- data/app/assets/stylesheets/base/_basic.scss +35 -0
- data/app/assets/stylesheets/base/_forms.scss +96 -50
- data/app/assets/stylesheets/base/_inputs.scss +85 -0
- data/app/assets/stylesheets/base/_lists.scss +1 -1
- data/app/assets/stylesheets/base/{_table.scss → _tables.scss} +12 -12
- data/app/assets/stylesheets/base/_typography.scss +34 -210
- data/app/assets/stylesheets/components/_badges.scss +47 -10
- data/app/assets/stylesheets/components/_breadcrumbs.scss +25 -9
- data/app/assets/stylesheets/components/_buttons.scss +3 -207
- data/app/assets/stylesheets/components/_pagination.scss +26 -16
- data/app/assets/stylesheets/components/_search-form.scss +89 -28
- data/app/assets/stylesheets/components/_sorting-cards.scss +1 -1
- data/app/assets/stylesheets/components/alerts/_alert-global.scss +45 -23
- data/app/assets/stylesheets/components/alerts/_alert-market.scss +6 -6
- data/app/assets/stylesheets/components/alerts/_alert-no-result.scss +1 -0
- data/app/assets/stylesheets/components/alerts/_report-msg.scss +51 -0
- data/app/assets/stylesheets/components/buttons/_card-buttons.scss +88 -0
- data/app/assets/stylesheets/components/buttons/_default-buttons.scss +98 -0
- data/app/assets/stylesheets/components/buttons/_round-buttons.scss +125 -0
- data/app/assets/stylesheets/components/cards/_brand-product-card.scss +65 -36
- data/app/assets/stylesheets/components/cards/_dish-card.scss +8 -12
- data/app/assets/stylesheets/components/cards/_featured-card.scss +69 -0
- data/app/assets/stylesheets/components/cards/_feeds-card.scss +9 -12
- data/app/assets/stylesheets/components/cards/_list-card.scss +88 -96
- data/app/assets/stylesheets/components/cards/_photo-card.scss +57 -101
- data/app/assets/stylesheets/components/cards/_product-card.scss +8 -8
- data/app/assets/stylesheets/components/cards/_recipe-card.scss +86 -67
- data/app/assets/stylesheets/components/cards/_video-card.scss +28 -29
- data/app/assets/stylesheets/components/comments/_comment-form.scss +5 -13
- data/app/assets/stylesheets/components/comments/_single-comment.scss +21 -14
- data/app/assets/stylesheets/components/covers/_brand-cover.scss +1 -1
- data/app/assets/stylesheets/components/covers/_categories-cover.scss +65 -45
- data/app/assets/stylesheets/components/covers/_users-cover.scss +75 -0
- data/app/assets/stylesheets/components/features/_feature-events.scss +2 -5
- data/app/assets/stylesheets/components/features/_feature-slides.scss +5 -6
- data/app/assets/stylesheets/components/icons/_footer-social-icons.scss +11 -34
- data/app/assets/stylesheets/components/icons/_icon-status.scss +12 -16
- data/app/assets/stylesheets/components/icons/_icookfont.scss +5 -0
- data/app/assets/stylesheets/components/modals/_modal-reset.scss +1 -1
- data/app/assets/stylesheets/components/modals/_recipe-list-modal.scss +8 -5
- data/app/assets/stylesheets/components/modals/_vip-modal.scss +114 -0
- data/app/assets/stylesheets/components/navigations/_blog-navi.scss +15 -19
- data/app/assets/stylesheets/components/navigations/_brand-tabs-navi.scss +4 -4
- data/app/assets/stylesheets/components/navigations/_categories-navi.scss +54 -137
- data/app/assets/stylesheets/components/recipes/_ingredients.scss +17 -22
- data/app/assets/stylesheets/components/recipes/_notes.scss +2 -2
- data/app/assets/stylesheets/components/recipes/_recipe-details.scss +5 -3
- data/app/assets/stylesheets/components/recipes/_recipe-navi.scss +29 -32
- data/app/assets/stylesheets/components/recipes/_steps.scss +2 -9
- data/app/assets/stylesheets/components/sidebars/_brand-ingredients.scss +3 -8
- data/app/assets/stylesheets/components/sidebars/_brand-popular-lists.scss +10 -13
- data/app/assets/stylesheets/components/sidebars/_brand-recent-events.scss +1 -2
- data/app/assets/stylesheets/components/sidebars/_business-kitchen.scss +11 -10
- data/app/assets/stylesheets/components/sidebars/_business-sponsors.scss +65 -0
- data/app/assets/stylesheets/components/sidebars/_hot-categories.scss +20 -39
- data/app/assets/stylesheets/components/sidebars/_icook-video.scss +4 -8
- data/app/assets/stylesheets/components/sidebars/_popular-recipes.scss +88 -33
- data/app/assets/stylesheets/components/sidebars/_popular-search.scss +17 -25
- data/app/assets/stylesheets/components/sidebars/_recipes-collect.scss +5 -2
- data/app/assets/stylesheets/components/sidebars/_sidebar-basic.scss +5 -14
- data/app/assets/stylesheets/components/sidebars/_tv-more-recipes.scss +3 -4
- data/app/assets/stylesheets/components/sidebars/_tv-popular-tags.scss +4 -5
- data/app/assets/stylesheets/components/users/_fav-list.scss +6 -8
- data/app/assets/stylesheets/components/users/_user-stats.scss +29 -25
- data/app/assets/stylesheets/helpers/_mixin-badge.scss +4 -3
- data/app/assets/stylesheets/helpers/_mixin-ellipsis.scss +39 -0
- data/app/assets/stylesheets/helpers/_mixin-flex.scss +247 -0
- data/app/assets/stylesheets/helpers/_mixin-icons.scss +6 -18
- data/app/assets/stylesheets/helpers/_variables-color.scss +47 -83
- data/app/assets/stylesheets/layouts/_base-footer.scss +15 -18
- data/app/assets/stylesheets/layouts/_global-navbar.scss +12 -15
- data/app/assets/stylesheets/layouts/_mega-footer.scss +298 -0
- data/app/assets/stylesheets/vendors/SpinKit/.bower.json +30 -0
- data/app/assets/stylesheets/vendors/SpinKit/CHANGELOG.md +40 -0
- data/app/assets/stylesheets/vendors/SpinKit/CONTRIBUTING.md +22 -0
- data/app/assets/stylesheets/vendors/SpinKit/LICENSE +20 -0
- data/app/assets/stylesheets/vendors/SpinKit/README.md +72 -0
- data/app/assets/stylesheets/vendors/SpinKit/bower.json +19 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinkit.css +770 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/1-rotating-plane.css +35 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/10-fading-circle.css +129 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/11-folding-cube.css +85 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/2-double-bounce.css +44 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/3-wave.css +56 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/4-wandering-cubes.css +68 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/5-pulse.css +32 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/6-chasing-dots.css +58 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/7-three-bounce.css +44 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/8-circle.css +133 -0
- data/app/assets/stylesheets/vendors/SpinKit/css/spinners/9-cube-grid.css +76 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/1-rotating-plane.html +49 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/10-fading-circle.html +156 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/11-folding-cube.html +104 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/2-double-bounce.html +61 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/3-wave.html +76 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/4-wandering-cubes.html +85 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/5-pulse.html +46 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/6-chasing-dots.html +75 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/7-three-bounce.html +62 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/8-circle.html +160 -0
- data/app/assets/stylesheets/vendors/SpinKit/examples/9-cube-grid.html +100 -0
- data/app/assets/stylesheets/vendors/SpinKit/gulpfile.js +97 -0
- data/app/assets/stylesheets/vendors/SpinKit/package.json +34 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/_variables.scss +3 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinkit.scss +12 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/1-rotating-plane.scss +25 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/10-fading-circle.scss +63 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/11-folding-cube.scss +70 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/2-double-bounce.scss +38 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/3-wave.scss +42 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/4-wandering-cubes.scss +51 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/5-pulse.scss +25 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/6-chasing-dots.scss +52 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/7-three-bounce.scss +40 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/8-circle.scss +62 -0
- data/app/assets/stylesheets/vendors/SpinKit/scss/spinners/9-cube-grid.scss +55 -0
- data/lib/cupboard/version.rb +1 -1
- metadata +62 -8
- data/app/assets/stylesheets/components/navigations/_categories-navi-responsive.scss +0 -129
- data/app/assets/stylesheets/components/navigations/_tv-navi.scss +0 -252
- data/app/assets/stylesheets/helpers/_mixin-buttons.scss +0 -17
- data/app/assets/stylesheets/layouts/_footer-nav.scss +0 -151
- data/app/assets/stylesheets/layouts/_sub-header-market.scss +0 -138
@@ -1,12 +1,12 @@
|
|
1
1
|
// ----------------------------
|
2
|
-
// Base -
|
2
|
+
// Base - tables
|
3
3
|
// ----------------------------
|
4
4
|
|
5
5
|
/*doc
|
6
6
|
---
|
7
7
|
parent: 01_base
|
8
8
|
title: Tables
|
9
|
-
name:
|
9
|
+
name: 05_tables
|
10
10
|
---
|
11
11
|
|
12
12
|
Table view examples (in Market)
|
@@ -127,7 +127,7 @@ Table view examples (in Market)
|
|
127
127
|
</table>
|
128
128
|
*/
|
129
129
|
|
130
|
-
$table-th-bg:
|
130
|
+
$table-th-bg: $light-gray !default;
|
131
131
|
$table-th-text: #555 !default;
|
132
132
|
$table-td-text: #888 !default;
|
133
133
|
$table-td-border: #ddd !default;
|
@@ -185,21 +185,21 @@ $table-td-border: #ddd !default;
|
|
185
185
|
}
|
186
186
|
|
187
187
|
tr.fee {
|
188
|
-
border-top: 1px solid
|
188
|
+
border-top: 1px solid $table-td-border;
|
189
189
|
|
190
190
|
td:first-child {
|
191
|
-
color:
|
191
|
+
color: $brown;
|
192
192
|
font-size: 16px;
|
193
193
|
border-top: 0;
|
194
194
|
|
195
195
|
small {
|
196
|
-
color:
|
196
|
+
color: $table-th-text;
|
197
197
|
font-size: 13px;
|
198
198
|
}
|
199
199
|
}
|
200
200
|
|
201
201
|
.price {
|
202
|
-
color:
|
202
|
+
color: $table-th-text;
|
203
203
|
}
|
204
204
|
}
|
205
205
|
|
@@ -211,16 +211,16 @@ $table-td-border: #ddd !default;
|
|
211
211
|
}
|
212
212
|
|
213
213
|
small {
|
214
|
-
color:
|
214
|
+
color: $table-th-text;
|
215
215
|
font-size: 13px;
|
216
216
|
}
|
217
217
|
}
|
218
218
|
|
219
219
|
.price {
|
220
|
-
color: $
|
220
|
+
color: $orange-red;
|
221
221
|
|
222
222
|
small {
|
223
|
-
color:
|
223
|
+
color: $table-th-text;
|
224
224
|
font-size: 13px;
|
225
225
|
text-decoration: line-through;
|
226
226
|
}
|
@@ -232,11 +232,11 @@ $table-td-border: #ddd !default;
|
|
232
232
|
}
|
233
233
|
|
234
234
|
.media-body span {
|
235
|
-
color:
|
235
|
+
color: $table-td-text;
|
236
236
|
display: block;
|
237
237
|
|
238
238
|
&.title {
|
239
|
-
color:
|
239
|
+
color: $brown;
|
240
240
|
font-size: 16px;
|
241
241
|
}
|
242
242
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
---
|
7
7
|
parent: 01_base
|
8
8
|
title: Typography
|
9
|
-
name:
|
9
|
+
name: 02_typography
|
10
10
|
---
|
11
11
|
|
12
12
|
### Fonts
|
@@ -26,74 +26,28 @@ Currently we're using
|
|
26
26
|
|
27
27
|
### Heading
|
28
28
|
|
29
|
-
Here are only briefly list some
|
30
|
-
|
31
|
-
<div class="ic-headings icook">
|
32
|
-
<small>iCook</small>
|
33
|
-
</div>
|
29
|
+
Here are only briefly list some customized headings, and please use it carefully, especially when you use it in sidebar or other sections.
|
34
30
|
|
35
31
|
```html_example
|
36
|
-
<h1
|
37
|
-
<h2
|
38
|
-
<h3
|
39
|
-
<h4
|
32
|
+
<h1>料理是一件幸福的事 H1 title</h1>
|
33
|
+
<h2>料理是一件幸福的事 H2 title</h2>
|
34
|
+
<h3>料理是一件幸福的事 H3 title</h3>
|
35
|
+
<h4>料理是一件幸福的事 H4 title</h4>
|
40
36
|
```
|
41
37
|
```
|
42
38
|
h1 { font-size: 28px; }
|
43
39
|
h2 { font-size: 24px; }
|
44
|
-
h3 { font-size:
|
40
|
+
h3 { font-size: 20px; }
|
45
41
|
h4 { font-size: 16px; }
|
46
42
|
```
|
47
43
|
|
48
|
-
<div class="ic-headings market">
|
49
|
-
<small>Market</small>
|
50
|
-
</div>
|
51
|
-
```html_example
|
52
|
-
<h1>h1.愛料理市集</h1>
|
53
|
-
<h2>h2.愛料理市集</h2>
|
54
|
-
<h3>h3.愛料理市集</h3>
|
55
|
-
<h4>h4.愛料理市集</h4>
|
56
|
-
```
|
57
|
-
```
|
58
|
-
h1 { font-size: 22px; }
|
59
|
-
h2 { font-size: 18px; }
|
60
|
-
h3 { font-size: 18px; }
|
61
|
-
h4 { font-size: 19px; }
|
62
|
-
```
|
63
|
-
|
64
|
-
<div class="ic-headings blog">
|
65
|
-
<small>Blog</small>
|
66
|
-
</div>
|
67
|
-
```html_example
|
68
|
-
<h1>h1.愛料理生活誌</h1>
|
69
|
-
<h2>h2.愛料理生活誌</h2>
|
70
|
-
<h3>h3.愛料理生活誌</h3>
|
71
|
-
<h4>h4.愛料理生活誌</h4>
|
72
|
-
<h5>h5.愛料理生活誌</h5>
|
73
|
-
<h6>h6.愛料理生活誌</h6>
|
74
|
-
```
|
75
|
-
```
|
76
|
-
h1 { font-size: 34px; }
|
77
|
-
h2 { font-size: 30px; }
|
78
|
-
h3 { font-size: 26px; }
|
79
|
-
h4 { font-size: 24px; }
|
80
|
-
h5 { font-size: 18px; }
|
81
|
-
h6 { font-size: 16px; }
|
82
|
-
```
|
83
|
-
|
84
|
-
|
85
44
|
<hr/>
|
86
45
|
|
87
46
|
### Paragraph
|
88
47
|
Note **DO NOT** forget to check other non-desktop devices...<br/>
|
89
48
|
Better typography better reading experiences.
|
90
49
|
|
91
|
-
|
92
|
-
iCook
|
93
|
-
|
94
|
-
<div class="ic-paragraph icook">
|
95
|
-
<small>recipe description</small>
|
96
|
-
</div>
|
50
|
+
<div class="ic-paragraph icook"></div>
|
97
51
|
|
98
52
|
```html_example
|
99
53
|
<p>愛料理站長:法式經典料理不用多說,這是從 4F 習得的食譜,份量調整到只有3~4人份左右,沾法國麵包超好吃的。紅酒的部份,選勃根地產區的任一紅酒,紅酒的量其實是將所有食材淹沒為主,我是把整罐給倒下去了。</p>
|
@@ -101,187 +55,57 @@ iCook
|
|
101
55
|
|
102
56
|
```
|
103
57
|
p {
|
104
|
-
|
105
|
-
|
106
|
-
letter-spacing: 0.03em;
|
107
|
-
}
|
108
|
-
```
|
109
|
-
<br/>
|
110
|
-
|
111
|
-
|
112
|
-
Blog
|
113
|
-
|
114
|
-
<div class="ic-paragraph blog">
|
115
|
-
<small>article Paragraph</small>
|
116
|
-
</div>
|
117
|
-
|
118
|
-
```html_example
|
119
|
-
<p>愛料理站長:法式經典料理不用多說,這是從 4F 習得的食譜,份量調整到只有3~4人份左右,沾法國麵包超好吃的。紅酒的部份,選勃根地產區的任一紅酒,紅酒的量其實是將所有食材淹沒為主,我是把整罐給倒下去了。</p>
|
120
|
-
```
|
121
|
-
|
122
|
-
```
|
123
|
-
p {
|
124
|
-
color: #444;
|
125
|
-
font-size: 16px;
|
126
|
-
letter-spacing: 0.04em;
|
127
|
-
line-height: 1.8em;
|
128
|
-
margin: 1em 0;
|
58
|
+
font-size: 14px;
|
59
|
+
line-height: 24px;
|
129
60
|
}
|
130
61
|
```
|
131
62
|
<hr/>
|
132
63
|
|
133
64
|
### Blockquote
|
134
|
-
Default `background-color: #fafafa;` , and see how to [embed icons](#) in a iCook way.
|
135
65
|
|
136
|
-
|
137
|
-
|
138
|
-
<div class="ic-blockquote blog">
|
139
|
-
<small>text is <code>color: #444;</code> and <code>font-size: 14px;</code>.</small><br/>
|
140
|
-
<small>blockquote with <code>padding: 30px 50px 30px 56px;</code></small>.
|
141
|
-
</div>
|
66
|
+
<div class="ic-blockquote blog"></div>
|
142
67
|
|
143
68
|
```html_example
|
144
69
|
<blockquote>料理是一件幸福的事,分享食譜則是分享幸福給更多的人。</blockquote>
|
145
70
|
```
|
146
71
|
|
147
72
|
```
|
148
|
-
|
149
|
-
|
150
|
-
|
73
|
+
blockquote {
|
74
|
+
border-left: 4px solid $red;
|
75
|
+
color: $brown-light20;
|
76
|
+
font-size: 18px;
|
77
|
+
padding-left: 15px;
|
78
|
+
}
|
151
79
|
```
|
152
80
|
<br/>
|
153
81
|
|
154
|
-
Market
|
155
|
-
|
156
|
-
<div class="ic-blockquote market">
|
157
|
-
<small>text is <code>color: #555;</code> and <code>font-size: 16px;</code>.</small><br/>
|
158
|
-
<small>blockquote with <code>padding: 10px 25px;</code></small>.
|
159
|
-
</div>
|
160
|
-
|
161
|
-
```html_example
|
162
|
-
<blockquote>料理是一件幸福的事,分享食譜則是分享幸福給更多的人。</blockquote>
|
163
|
-
```
|
164
|
-
|
165
|
-
```
|
166
|
-
color: #555;
|
167
|
-
font-size: 16px;
|
168
|
-
padding: 10px 25px;
|
169
|
-
```
|
170
82
|
<hr/>
|
83
|
+
### Small text
|
171
84
|
|
172
|
-
|
173
|
-
|
174
|
-
<div class="ic-timeformat icook">
|
175
|
-
<p>iCook</p>
|
176
|
-
<p>recipe cooking time</p>
|
177
|
-
<div class="cooking-time">5 分鐘</div>
|
178
|
-
</div>
|
179
|
-
|
180
|
-
```html_xample
|
181
|
-
<div class="cooking-time">5 分鐘</div>
|
85
|
+
```html_example
|
86
|
+
<small>料理是一件幸福的事,分享食譜則是分享幸福給更多的人。</small>
|
182
87
|
```
|
183
|
-
|
184
|
-
<br/>
|
185
|
-
<div class="ic-timeformat icook">
|
186
|
-
<p>recipe published</p>
|
187
|
-
<div class="recipe-published">2012/12/30 發表</div>
|
188
|
-
</div>
|
189
|
-
|
190
|
-
```html_xample
|
191
|
-
<div class="recipe-published">2012/12/30 發表</div>
|
192
88
|
```
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
<div>發表於 2012/12/30</div>
|
198
|
-
</div>
|
199
|
-
|
200
|
-
```html_xample
|
201
|
-
<div class="recipe-published">發表於 2012/12/30</div>
|
89
|
+
small {
|
90
|
+
font-size: 12px;
|
91
|
+
line-height: 18px;
|
92
|
+
}
|
202
93
|
```
|
203
94
|
|
204
|
-
<hr/>
|
205
|
-
### Byline
|
206
|
-
|
207
|
-
<div class="row">
|
208
|
-
<div class="col-xs-12 col-md-3">
|
209
|
-
<p>recipe card - iCook</p>
|
210
|
-
<p class="byline">by <a href="#">愛料理</a></p>
|
211
|
-
</div>
|
212
|
-
<div class="col-xs-12 col-md-5 tv-sub-info">
|
213
|
-
<p>TV</p>
|
214
|
-
<span class="byline">
|
215
|
-
於 2015/2/17 發表
|
216
|
-
<a href="#">闔家團圓年菜</a>
|
217
|
-
阿嬌
|
218
|
-
</span>
|
219
|
-
</div>
|
220
|
-
</div>
|
221
|
-
|
222
|
-
<hr/>
|
223
|
-
### Small text
|
224
|
-
<div class="row">
|
225
|
-
<div class="col-xs-12 col-md-6">
|
226
|
-
<p>recipe card (list-card) - iCook</p>
|
227
|
-
<small class="material">食材:豬絞肉、青蔥(切末)、水餃皮、清水、醬油、味霖、鹽、白胡椒粉</small>
|
228
|
-
</div>
|
229
|
-
<div class="col-xs-12 col-md-6">
|
230
|
-
<p>sku - Market</p>
|
231
|
-
<small class="sku-small">不分大小款,凡購買三個愛料理生活購物袋即享免運</small>
|
232
|
-
</div>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
|
236
95
|
*/
|
237
96
|
|
238
|
-
// default global body styles
|
239
|
-
$byline-text: #a5a5a5 !default;
|
240
|
-
$byline-link: #777 !default;
|
241
|
-
$material-text: #aa8f83 !default;
|
242
|
-
$sku-small-text: #555 !default;
|
243
|
-
|
244
97
|
// blockquote
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
position: relative;
|
251
|
-
|
252
|
-
&::before {
|
253
|
-
color: #f06354;
|
254
|
-
font-size: 16px;
|
255
|
-
line-height: 1;
|
256
|
-
margin-right: 10px;
|
257
|
-
position: absolute;
|
258
|
-
}
|
98
|
+
blockquote {
|
99
|
+
border-left: 4px solid $red;
|
100
|
+
color: $brown-light20;
|
101
|
+
font-size: 18px;
|
102
|
+
padding: 0 0 0 15px; // override bootstrap default
|
259
103
|
}
|
260
104
|
|
261
|
-
//
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
font-size: 16px;
|
267
|
-
}
|
268
|
-
|
269
|
-
.recipe-published {
|
270
|
-
color: #8c8783;
|
271
|
-
font-size: 14px;
|
105
|
+
// small text
|
106
|
+
small {
|
107
|
+
color: $brown;
|
108
|
+
font-size: 12px;
|
109
|
+
line-height: 18px;
|
272
110
|
}
|
273
111
|
|
274
|
-
// byline and small text
|
275
|
-
.byline {
|
276
|
-
color: $byline-text;
|
277
|
-
|
278
|
-
a {
|
279
|
-
color: $byline-link;
|
280
|
-
}
|
281
|
-
}
|
282
|
-
|
283
|
-
.material {
|
284
|
-
color: $material-text;
|
285
|
-
font-size: 13px;
|
286
|
-
max-height: 40px;
|
287
|
-
}
|
@@ -30,9 +30,19 @@ category: Components
|
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
<br/>
|
33
|
-
<div>
|
34
|
-
<
|
35
|
-
|
33
|
+
<div class="row">
|
34
|
+
<div class="col-xs-12 col-md-3">
|
35
|
+
<p>vip</p>
|
36
|
+
<div>愛料理<span class="badge-vip"></span></div>
|
37
|
+
</div>
|
38
|
+
<div class="col-xs-12 col-md-3">
|
39
|
+
<p>sponsor</p>
|
40
|
+
<div><span class="badge-sponsor">贊助</span></div>
|
41
|
+
</div>
|
42
|
+
<div class="col-xs-12 col-md-3">
|
43
|
+
<p>dish reply</p>
|
44
|
+
<div><span class="badge-author">作者回覆</span></div>
|
45
|
+
</div>
|
36
46
|
</div>
|
37
47
|
|
38
48
|
```html_example
|
@@ -41,15 +51,18 @@ category: Components
|
|
41
51
|
<div class="badge-new">炒飯食譜募集活動</div>
|
42
52
|
<div class="badge-support">愛料理市集</div>
|
43
53
|
<div>愛料理<span class="badge-vip"></span></div>
|
54
|
+
<div><span class="badge-sponsor">贊助</span></div>
|
55
|
+
<div><span class="badge-author">作者回覆</span></div>
|
44
56
|
```
|
45
57
|
|
46
58
|
*/
|
47
59
|
|
48
60
|
$badge-brand-bg: #ac8b86 !default;
|
49
|
-
$badge-new-bg: $orange !default;
|
61
|
+
$badge-new-bg: $orange-red !default;
|
50
62
|
$badge-pr-bg: #aa8f83 !default;
|
63
|
+
$badge-author-bg: $orange-red !default;
|
51
64
|
$badge-support-bg: #999 !default;
|
52
|
-
$badge-vip-bg: $
|
65
|
+
$badge-vip-bg: $red !default;
|
53
66
|
|
54
67
|
@each $type, $content, $color in
|
55
68
|
(brand, "品牌", $badge-brand-bg),
|
@@ -74,17 +87,41 @@ $badge-vip-bg: $orange !default;
|
|
74
87
|
display: inline-block;
|
75
88
|
height: 17px;
|
76
89
|
margin-left: 5px;
|
77
|
-
|
78
|
-
width:
|
90
|
+
text-align: center;
|
91
|
+
width: 34px;
|
79
92
|
|
80
93
|
&::after {
|
81
94
|
background-image: image-url("vip-icon.svg");
|
95
|
+
background-position: 0 2px;
|
82
96
|
background-repeat: no-repeat;
|
83
97
|
content: "";
|
84
98
|
display: inline-block;
|
85
|
-
height:
|
86
|
-
|
87
|
-
width:
|
99
|
+
height: 100%;
|
100
|
+
vertical-align: middle;
|
101
|
+
width: 60%;
|
88
102
|
}
|
89
103
|
}
|
90
104
|
|
105
|
+
.badge-sponsor {
|
106
|
+
background-color: $light-gray;
|
107
|
+
border-radius: 17px;
|
108
|
+
color: $brown;
|
109
|
+
font-size: 12px;
|
110
|
+
font-weight: bold;
|
111
|
+
height: 26px;
|
112
|
+
line-height: 22px;
|
113
|
+
margin-right: 10px;
|
114
|
+
padding: 3px 5px 3px 7px;
|
115
|
+
text-align: center;
|
116
|
+
width: 46px;
|
117
|
+
}
|
118
|
+
|
119
|
+
.badge-author {
|
120
|
+
background-color: $badge-author-bg;
|
121
|
+
border-radius: 30px;
|
122
|
+
color: $white;
|
123
|
+
font-size: 12px;
|
124
|
+
line-height: 1;
|
125
|
+
padding: 5px 11px;
|
126
|
+
}
|
127
|
+
|
@@ -12,18 +12,19 @@ category: Components
|
|
12
12
|
```html_example
|
13
13
|
<div>
|
14
14
|
<ol class="breadcrumb">
|
15
|
-
<li><a href="#"
|
16
|
-
<li><a href="#"
|
17
|
-
<li
|
18
|
-
<li class="active">餛飩抄手</li>
|
15
|
+
<li><a href="#">全部分類</a></li>
|
16
|
+
<li><a href="#">蛋糕</a></li>
|
17
|
+
<li class="active">磅蛋糕</li>
|
19
18
|
</ol>
|
20
19
|
</div>
|
21
20
|
```
|
22
21
|
|
23
22
|
*/
|
24
23
|
|
25
|
-
$breadcrumb-link: $
|
26
|
-
$breadcrumb-link-
|
24
|
+
$breadcrumb-link: $brown !default;
|
25
|
+
$breadcrumb-link-hover: $brown-light30 !default;
|
26
|
+
$breadcrumb-active: $red !default;
|
27
|
+
$breadcrumb-icon: $brown !default;
|
27
28
|
|
28
29
|
.breadcrumb {
|
29
30
|
background-color: transparent; // override bootstrap
|
@@ -32,16 +33,31 @@ $breadcrumb-link-active: #999 !default;
|
|
32
33
|
padding-left: 0;
|
33
34
|
padding-top: 0;
|
34
35
|
|
35
|
-
> li
|
36
|
-
|
36
|
+
> li {
|
37
|
+
font-size: 16px;
|
38
|
+
|
39
|
+
+ li::before {
|
40
|
+
color: $breadcrumb-icon;
|
41
|
+
content: "\e80d";
|
42
|
+
font-family: "icookfont";
|
43
|
+
font-size: 12px;
|
44
|
+
margin-right: 5px;
|
45
|
+
padding: 0;
|
46
|
+
vertical-align: text-bottom;
|
47
|
+
width: 12px;
|
48
|
+
}
|
37
49
|
}
|
38
50
|
|
39
51
|
a {
|
40
52
|
color: $breadcrumb-link;
|
53
|
+
|
54
|
+
&:hover {
|
55
|
+
color: $breadcrumb-link-hover;
|
56
|
+
}
|
41
57
|
}
|
42
58
|
|
43
59
|
.active {
|
44
|
-
color: $breadcrumb-
|
60
|
+
color: $breadcrumb-active;
|
45
61
|
}
|
46
62
|
}
|
47
63
|
|