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,244 @@
|
|
1
|
+
// ----------------------------
|
2
|
+
// Table
|
3
|
+
// ----------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Tables
|
8
|
+
name: 7_Tables
|
9
|
+
category: Design elements
|
10
|
+
---
|
11
|
+
|
12
|
+
Table view examples (in Market)
|
13
|
+
|
14
|
+
### Order
|
15
|
+
<div class="ic-table"><p>Order table</p></div>
|
16
|
+
|
17
|
+
<table class="table basic-table order-table">
|
18
|
+
<thead>
|
19
|
+
<tr>
|
20
|
+
<th>商品</th>
|
21
|
+
<th>數量</th>
|
22
|
+
<th>金額</th>
|
23
|
+
<th>貨品</th>
|
24
|
+
<th>發票</th>
|
25
|
+
</tr>
|
26
|
+
</thead>
|
27
|
+
<tbody>
|
28
|
+
<tr>
|
29
|
+
<td> 愛料理生活購物袋 - 限定(手提)大款 </td>
|
30
|
+
<td>2</td>
|
31
|
+
<td>NT$598</td>
|
32
|
+
<td>未出貨</td>
|
33
|
+
<td>未寄送</td>
|
34
|
+
</tr>
|
35
|
+
<tr>
|
36
|
+
<td>宅配到府運費</td>
|
37
|
+
<td>--</td>
|
38
|
+
<td>NT$60</td>
|
39
|
+
<td>--</td>
|
40
|
+
<td>--</td>
|
41
|
+
</tr>
|
42
|
+
</tbody>
|
43
|
+
</table>
|
44
|
+
|
45
|
+
<hr/>
|
46
|
+
### Sku
|
47
|
+
<div class="ic-table"><p>Sku table</p></div>
|
48
|
+
|
49
|
+
<table class="table basic-table sku-table">
|
50
|
+
<thead>
|
51
|
+
<tr>
|
52
|
+
<th>品名</th>
|
53
|
+
<th>數量</th>
|
54
|
+
<th>價格</th>
|
55
|
+
</tr>
|
56
|
+
</thead>
|
57
|
+
<tbody>
|
58
|
+
<tr class="media-heading hidden-md hidden-lg"><td>品名</td></tr>
|
59
|
+
<tr class="limit">
|
60
|
+
<td class="media">
|
61
|
+
<span class="img pull-left">
|
62
|
+
<img alt="Icook bag" class="img-responsive" src="http://placehold.it/640x480">
|
63
|
+
</span>
|
64
|
+
<div class="media-body">
|
65
|
+
<span class="title">愛料理生活購物袋 - 限定(手提)大款</span>
|
66
|
+
<span>長 37 x 寬 45 x 底 12 cm</span>
|
67
|
+
</div>
|
68
|
+
</td>
|
69
|
+
<td class="quantity-m">
|
70
|
+
<input id="order_quan_0" name="order_quan_0" type="hidden" value="1">
|
71
|
+
<select class="form-control" id="order_quan_0" name="order_quan_0" track-action="Selector" track-category="Order" track-label="選擇數量" track-on="click">
|
72
|
+
<option value="0">0</option>
|
73
|
+
<option value="1">1</option>
|
74
|
+
<option value="2">2</option>
|
75
|
+
<option value="3">3</option>
|
76
|
+
</select>
|
77
|
+
</td>
|
78
|
+
<td class="price-m">
|
79
|
+
<div class="price">
|
80
|
+
NT$299
|
81
|
+
<small>NT$349</small>
|
82
|
+
</div>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
<tr class="limit ">
|
86
|
+
<td class="media">
|
87
|
+
<div class="media-body">
|
88
|
+
<span class="title">愛料理生活購物袋 - 限定(側背)小款</span>
|
89
|
+
<span></span>
|
90
|
+
</div>
|
91
|
+
</td>
|
92
|
+
<td class="quantity-m">
|
93
|
+
<input id="order_quan_1" name="order_quan_1" type="hidden" value="2">
|
94
|
+
<select class="form-control" id="order_quan_1" name="order_quan_1" track-action="Selector" track-category="Order" track-label="選擇數量" track-on="click">
|
95
|
+
<option value="0">0</option>
|
96
|
+
<option value="1">1</option>
|
97
|
+
<option value="2">2</option>
|
98
|
+
<option value="3">3</option>
|
99
|
+
</select>
|
100
|
+
</td>
|
101
|
+
<td class="price-m">
|
102
|
+
<div class="price">
|
103
|
+
NT$349
|
104
|
+
<small>NT$399</small>
|
105
|
+
</div>
|
106
|
+
</td>
|
107
|
+
</tr>
|
108
|
+
<tr class="fee clearfix">
|
109
|
+
<td class="pull-left">運費 <small>不分大小款,凡購買三個愛料理生活購物袋即享免運</small>
|
110
|
+
</td>
|
111
|
+
<td colspan="2">
|
112
|
+
<div class="price pull-right">
|
113
|
+
NT$60
|
114
|
+
</div>
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
<tr class="total">
|
118
|
+
<td colspan="4">
|
119
|
+
<div>
|
120
|
+
<span>總計 </span>NT$<span>0</span><br>
|
121
|
+
<input name="total" type="hidden" value="0">
|
122
|
+
<small class="ng-binding">還差 NT$1,047 就能免運費</small>
|
123
|
+
</div>
|
124
|
+
</td>
|
125
|
+
</tr>
|
126
|
+
</tbody>
|
127
|
+
</table>
|
128
|
+
*/
|
129
|
+
|
130
|
+
$table-th-bg: #efede8 !default;
|
131
|
+
$table-th-text: #555 !default;
|
132
|
+
$table-td-text: #888 !default;
|
133
|
+
$table-td-border: #ddd !default;
|
134
|
+
|
135
|
+
.basic-table {
|
136
|
+
th {
|
137
|
+
background-color: $table-th-bg;
|
138
|
+
color: $table-th-text;
|
139
|
+
font-size: 16px;
|
140
|
+
}
|
141
|
+
|
142
|
+
td {
|
143
|
+
border-color: $table-td-border;
|
144
|
+
color: $table-td-text;
|
145
|
+
font-size: 16px;
|
146
|
+
padding: 20px 10px;
|
147
|
+
}
|
148
|
+
|
149
|
+
// override bootstraps's style
|
150
|
+
> thead > tr > th {
|
151
|
+
border-bottom: 0;
|
152
|
+
}
|
153
|
+
|
154
|
+
> tbody > tr > td {
|
155
|
+
padding: 20px 10px;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
.sku-table {
|
160
|
+
thead {
|
161
|
+
th:nth-child(1) {
|
162
|
+
width: 72%;
|
163
|
+
}
|
164
|
+
|
165
|
+
th:nth-child(2) {
|
166
|
+
width: 14%;
|
167
|
+
}
|
168
|
+
|
169
|
+
th:nth-child(3) {
|
170
|
+
padding-left: 20px;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
td:not(.price-m) {
|
175
|
+
padding-left: 0 !important;
|
176
|
+
padding-right: 0 !important;
|
177
|
+
}
|
178
|
+
|
179
|
+
.price-m {
|
180
|
+
padding-left: 20px !important;
|
181
|
+
}
|
182
|
+
|
183
|
+
.limit:nth-of-type(1) td {
|
184
|
+
border-top: 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
tr.fee {
|
188
|
+
border-top: 1px solid #ddd;
|
189
|
+
|
190
|
+
td:first-child {
|
191
|
+
color: #564e4a;
|
192
|
+
font-size: 16px;
|
193
|
+
border-top: 0;
|
194
|
+
|
195
|
+
small {
|
196
|
+
color: #555;
|
197
|
+
font-size: 13px;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
.price {
|
202
|
+
color: #555;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
.total {
|
207
|
+
text-align: right;
|
208
|
+
|
209
|
+
span {
|
210
|
+
font-size: 15px;
|
211
|
+
}
|
212
|
+
|
213
|
+
small {
|
214
|
+
color: #555;
|
215
|
+
font-size: 13px;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
.price {
|
220
|
+
color: $orangered;
|
221
|
+
|
222
|
+
small {
|
223
|
+
color: #555;
|
224
|
+
font-size: 13px;
|
225
|
+
text-decoration: line-through;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
img {
|
230
|
+
height: 90px;
|
231
|
+
width: 120px;
|
232
|
+
}
|
233
|
+
|
234
|
+
.media-body span {
|
235
|
+
color: #888;
|
236
|
+
display: block;
|
237
|
+
|
238
|
+
&.title {
|
239
|
+
color: #564e4a;
|
240
|
+
font-size: 16px;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
@@ -0,0 +1,292 @@
|
|
1
|
+
// -------------
|
2
|
+
// Typography
|
3
|
+
// -------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Typography
|
8
|
+
name: 2_typography
|
9
|
+
category: Design elements
|
10
|
+
---
|
11
|
+
|
12
|
+
Headings, Paragraph, Blockquote, Time format, default definitions also may be customized in multi sites.
|
13
|
+
|
14
|
+
### Heading
|
15
|
+
|
16
|
+
Here are only briefly list some customization, and please use it carefully, especially when you use it in widgets or other sections.
|
17
|
+
|
18
|
+
<div class="ic-headings icook">
|
19
|
+
<small>iCook</small>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
```html_example
|
23
|
+
<h1>h1.愛料理食譜社群網</h1>
|
24
|
+
<h2>h2.愛料理食譜社群網</h2>
|
25
|
+
<h3>h3.愛料理食譜社群網</h3>
|
26
|
+
<h4>h4.愛料理食譜社群網</h4>
|
27
|
+
```
|
28
|
+
```
|
29
|
+
h1 { font-size: 28px; }
|
30
|
+
h2 { font-size: 24px; }
|
31
|
+
h3 { font-size: 18px; }
|
32
|
+
h4 { font-size: 16px; }
|
33
|
+
```
|
34
|
+
|
35
|
+
<div class="ic-headings market">
|
36
|
+
<small>Market</small>
|
37
|
+
</div>
|
38
|
+
```html_example
|
39
|
+
<h1>h1.愛料理市集</h1>
|
40
|
+
<h2>h2.愛料理市集</h2>
|
41
|
+
<h3>h3.愛料理市集</h3>
|
42
|
+
<h4>h4.愛料理市集</h4>
|
43
|
+
```
|
44
|
+
```
|
45
|
+
h1 { font-size: 22px; }
|
46
|
+
h2 { font-size: 18px; }
|
47
|
+
h3 { font-size: 18px; }
|
48
|
+
h4 { font-size: 19px; }
|
49
|
+
```
|
50
|
+
|
51
|
+
<div class="ic-headings blog">
|
52
|
+
<small>Blog</small>
|
53
|
+
</div>
|
54
|
+
```html_example
|
55
|
+
<h1>h1.愛料理生活誌</h1>
|
56
|
+
<h2>h2.愛料理生活誌</h2>
|
57
|
+
<h3>h3.愛料理生活誌</h3>
|
58
|
+
<h4>h4.愛料理生活誌</h4>
|
59
|
+
<h5>h5.愛料理生活誌</h5>
|
60
|
+
<h6>h6.愛料理生活誌</h6>
|
61
|
+
```
|
62
|
+
```
|
63
|
+
h1 { font-size: 34px; }
|
64
|
+
h2 { font-size: 30px; }
|
65
|
+
h3 { font-size: 26px; }
|
66
|
+
h4 { font-size: 24px; }
|
67
|
+
h5 { font-size: 18px; }
|
68
|
+
h6 { font-size: 16px; }
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
<hr/>
|
73
|
+
|
74
|
+
### Paragraph
|
75
|
+
Note **DO NOT** forget to check other non-desktop devices...<br/>
|
76
|
+
Bet:200
|
77
|
+
ter typography better reading experiences.
|
78
|
+
|
79
|
+
|
80
|
+
iCook
|
81
|
+
|
82
|
+
<div class="ic-paragraph icook">
|
83
|
+
<small>recipe description</small>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
```html_example
|
87
|
+
<p>愛料理站長:法式經典料理不用多說,這是從 4F 習得的食譜,份量調整到只有3~4人份左右,沾法國麵包超好吃的。紅酒的部份,選勃根地產區的任一紅酒,紅酒的量其實是將所有食材淹沒為主,我是把整罐給倒下去了。</p>
|
88
|
+
```
|
89
|
+
|
90
|
+
```
|
91
|
+
p {
|
92
|
+
color: #888;
|
93
|
+
font-size: 15px;
|
94
|
+
letter-spacing: 0.03em;
|
95
|
+
}
|
96
|
+
```
|
97
|
+
<br/>
|
98
|
+
|
99
|
+
|
100
|
+
Blog
|
101
|
+
|
102
|
+
<div class="ic-paragraph blog">
|
103
|
+
<small>article Paragraph</small>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
```html_example
|
107
|
+
<p>愛料理站長:法式經典料理不用多說,這是從 4F 習得的食譜,份量調整到只有3~4人份左右,沾法國麵包超好吃的。紅酒的部份,選勃根地產區的任一紅酒,紅酒的量其實是將所有食材淹沒為主,我是把整罐給倒下去了。</p>
|
108
|
+
```
|
109
|
+
|
110
|
+
```
|
111
|
+
p {
|
112
|
+
color: #444;
|
113
|
+
font-size: 16px;
|
114
|
+
letter-spacing: 0.04em;
|
115
|
+
line-height: 1.8em;
|
116
|
+
margin: 1em 0;
|
117
|
+
}
|
118
|
+
```
|
119
|
+
<hr/>
|
120
|
+
|
121
|
+
### Blockquote
|
122
|
+
Default `background-color: #fafafa;` , and see how to [embed icons](#) in a iCook way.
|
123
|
+
|
124
|
+
Blog
|
125
|
+
|
126
|
+
<div class="ic-blockquote blog">
|
127
|
+
<small>text is <code>color: #444;</code> and <code>font-size: 14px;</code>.</small><br/>
|
128
|
+
<small>blockquote with <code>padding: 30px 50px 30px 56px;</code></small>.
|
129
|
+
</div>
|
130
|
+
|
131
|
+
```html_example
|
132
|
+
<blockquote>料理是一件幸福的事,分享食譜則是分享幸福給更多的人。</blockquote>
|
133
|
+
```
|
134
|
+
|
135
|
+
```
|
136
|
+
color: #444;
|
137
|
+
font-size: 14px;
|
138
|
+
padding: 30px 50px 30px 56px;
|
139
|
+
```
|
140
|
+
<br/>
|
141
|
+
|
142
|
+
Market
|
143
|
+
|
144
|
+
<div class="ic-blockquote market">
|
145
|
+
<small>text is <code>color: #555;</code> and <code>font-size: 16px;</code>.</small><br/>
|
146
|
+
<small>blockquote with <code>padding: 10px 25px;</code></small>.
|
147
|
+
</div>
|
148
|
+
|
149
|
+
```html_example
|
150
|
+
<blockquote>料理是一件幸福的事,分享食譜則是分享幸福給更多的人。</blockquote>
|
151
|
+
```
|
152
|
+
|
153
|
+
```
|
154
|
+
color: #555;
|
155
|
+
font-size: 16px;
|
156
|
+
padding: 10px 25px;
|
157
|
+
```
|
158
|
+
<hr/>
|
159
|
+
|
160
|
+
### Time format
|
161
|
+
|
162
|
+
<div class="ic-timeformat icook">
|
163
|
+
<p>iCook</p>
|
164
|
+
<p>recipe cooking time</p>
|
165
|
+
<div class="cooking-time">5 分鐘</div>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
```html_xample
|
169
|
+
<div class="cooking-time">5 分鐘</div>
|
170
|
+
```
|
171
|
+
|
172
|
+
<br/>
|
173
|
+
<div class="ic-timeformat icook">
|
174
|
+
<p>recipe published</p>
|
175
|
+
<div class="recipe-published">2012/12/30 發表</div>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
```html_xample
|
179
|
+
<div class="recipe-published">2012/12/30 發表</div>
|
180
|
+
```
|
181
|
+
|
182
|
+
<br/>
|
183
|
+
<div class="ic-timeformat blog">
|
184
|
+
<p>Blog</p>
|
185
|
+
<div>發表於 2012/12/30</div>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
```html_xample
|
189
|
+
<div class="recipe-published">發表於 2012/12/30</div>
|
190
|
+
```
|
191
|
+
|
192
|
+
*/
|
193
|
+
|
194
|
+
// headings
|
195
|
+
.ic-headings {
|
196
|
+
&.icook + .codeExample {
|
197
|
+
h1 { font-size: 28px; }
|
198
|
+
h2 { font-size: 24px; }
|
199
|
+
h3 { font-size: 18px; }
|
200
|
+
h4 { font-size: 16px; }
|
201
|
+
}
|
202
|
+
|
203
|
+
&.market + .codeExample {
|
204
|
+
h1 { font-size: 22px; }
|
205
|
+
h2 { font-size: 18px; }
|
206
|
+
h3 { font-size: 18px; }
|
207
|
+
h4 { font-size: 19px; }
|
208
|
+
}
|
209
|
+
|
210
|
+
&.blog + .codeExample {
|
211
|
+
h1 { font-size: 34px; }
|
212
|
+
h2 { font-size: 30px; }
|
213
|
+
h3 { font-size: 26px; }
|
214
|
+
h4 { font-size: 24px; }
|
215
|
+
h5 { font-size: 18px; }
|
216
|
+
h6 { font-size: 16px; }
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
// paragraph
|
221
|
+
.ic-paragraph {
|
222
|
+
&.icook + .codeExample p {
|
223
|
+
color: #888;
|
224
|
+
font-size: 15px;
|
225
|
+
letter-spacing: 0.03em;
|
226
|
+
}
|
227
|
+
|
228
|
+
&.blog + .codeExample p {
|
229
|
+
color: #444;
|
230
|
+
font-size: 16px;
|
231
|
+
letter-spacing: 0.04em;
|
232
|
+
line-height: 1.8em;
|
233
|
+
margin: 1em 0;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
// blockquote
|
238
|
+
%blockquote {
|
239
|
+
@include icon("\f10d");
|
240
|
+
|
241
|
+
background-color: #fafafa;
|
242
|
+
border-left: 0;
|
243
|
+
position: relative;
|
244
|
+
|
245
|
+
&::before {
|
246
|
+
color: #f06354;
|
247
|
+
font-size: 16px;
|
248
|
+
line-height: 1;
|
249
|
+
margin-right: 10px;
|
250
|
+
position: absolute;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
.ic-blockquote.blog + .codeExample blockquote {
|
255
|
+
@extend %blockquote;
|
256
|
+
|
257
|
+
color: #444;
|
258
|
+
font-size: 14px;
|
259
|
+
padding: 30px 50px 30px 56px;
|
260
|
+
|
261
|
+
&::before {
|
262
|
+
left: 20px;
|
263
|
+
top: 20px;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
.ic-blockquote.market + .codeExample blockquote {
|
268
|
+
@extend %blockquote;
|
269
|
+
|
270
|
+
color: #555;
|
271
|
+
font-size: 16px;
|
272
|
+
padding: 10px 25px;
|
273
|
+
|
274
|
+
&::before {
|
275
|
+
left: 10px;
|
276
|
+
top: 10px;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
// time format
|
281
|
+
.cooking-time {
|
282
|
+
@include icon("\f017");
|
283
|
+
|
284
|
+
color: #999;
|
285
|
+
font-size: 16px;
|
286
|
+
}
|
287
|
+
|
288
|
+
.recipe-published {
|
289
|
+
color: #8c8783;
|
290
|
+
font-size: 14px;
|
291
|
+
}
|
292
|
+
|