cupboard 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,217 +1,13 @@
|
|
|
1
1
|
// --------------------------------
|
|
2
|
-
// Components -
|
|
2
|
+
// Components - Buttons
|
|
3
3
|
// --------------------------------
|
|
4
4
|
|
|
5
5
|
/*doc
|
|
6
6
|
---
|
|
7
7
|
title: Buttons
|
|
8
|
-
name:
|
|
9
|
-
category:
|
|
8
|
+
name: 01_buttons
|
|
9
|
+
category: Components
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
basic buttons, fram buttons, card Buttons
|
|
13
|
-
use these class on tags such as `<a>`, `<button>` or `<input>`, and don't forget to incude the class `.btn`.
|
|
14
|
-
|
|
15
|
-
### Basic buttons
|
|
16
|
-
|
|
17
|
-
<div class="ic-buttons"></div>
|
|
18
|
-
|
|
19
|
-
```html_example
|
|
20
|
-
<a class="btn btn-standard" href="#">寫食譜</a>
|
|
21
|
-
<a class="btn btn-pealbush" href="#">已訂閱</a>
|
|
22
|
-
<a class="btn btn-red" href="#">我要購買</a>
|
|
23
|
-
<a class="btn btn-orangered" href="#">繼續閱讀</a>
|
|
24
|
-
<a class="btn btn-green" href="#">儲存更新</a>
|
|
25
|
-
<a class="btn btn-blue" href="#">訂閱</a>
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
<hr/>
|
|
30
|
-
|
|
31
|
-
### Frame buttons
|
|
32
|
-
|
|
33
|
-
use in brands/products
|
|
34
|
-
|
|
35
|
-
```html_example
|
|
36
|
-
<a class="btn btn-frame" href="#">看詳細介紹</a>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
<hr/>
|
|
40
|
-
|
|
41
|
-
### Card Buttons
|
|
42
|
-
|
|
43
|
-
use in recipes cards and recipes/show
|
|
44
|
-
|
|
45
|
-
<div class="ic-buttons card-buttons"></div>
|
|
46
|
-
|
|
47
|
-
```html_example
|
|
48
|
-
<a class="btn btn-card" href="#">收藏</a>
|
|
49
|
-
<a class="btn btn-card list" href="#">清單</a>
|
|
50
|
-
<a class="btn btn-card following-recipe" href="#">已收</a>
|
|
51
|
-
<a class="btn btn-card list href="#">清單</a>
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
|
|
55
12
|
*/
|
|
56
13
|
|
|
57
|
-
.btn {
|
|
58
|
-
&.orders {
|
|
59
|
-
@include icon("\f00b");
|
|
60
|
-
|
|
61
|
-
color: #888;
|
|
62
|
-
font-size: 15px;
|
|
63
|
-
|
|
64
|
-
&:hover {
|
|
65
|
-
color: #333;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.btn-standard {
|
|
71
|
-
@include btn(14px, $darkgray, $palegray);
|
|
72
|
-
border: 1px solid $linegray1;
|
|
73
|
-
|
|
74
|
-
&.new-recipe {
|
|
75
|
-
@include icon("\f040");
|
|
76
|
-
padding: 5px 12px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.btn-pealbush {
|
|
81
|
-
@include btn(14px, $darkgray, $pearlbush);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.btn-red {
|
|
85
|
-
@include btn(14px, #fff, $darkred);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.btn-orangered {
|
|
89
|
-
@include btn(14px, #fff, $orangered);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.btn-green {
|
|
93
|
-
@include btn(14px, #fff, $grassgreen);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.btn-blue {
|
|
97
|
-
@include btn(14px, #fff, $softblue);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.btn-frame {
|
|
101
|
-
@include btn(14px, $lightgray, #fff);
|
|
102
|
-
border: 1px solid $lightgray;
|
|
103
|
-
|
|
104
|
-
&:hover {
|
|
105
|
-
color: $redbrown;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// in recipe card
|
|
110
|
-
.btn-card {
|
|
111
|
-
@include btn(14px, #fff, rgba(86, 78, 74, .8));
|
|
112
|
-
|
|
113
|
-
border-radius: 13px;
|
|
114
|
-
border: 2px solid #fff;
|
|
115
|
-
width: 104px;
|
|
116
|
-
|
|
117
|
-
&:hover {
|
|
118
|
-
background-color: rgba(86, 78, 74, .7);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.favorite {
|
|
122
|
-
@include icon("\f08a");
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.list {
|
|
126
|
-
@include icon("\f0c9");
|
|
127
|
-
|
|
128
|
-
background-color: #fff;
|
|
129
|
-
color: $darkbrown;
|
|
130
|
-
margin-left: 4px;
|
|
131
|
-
position: relative;
|
|
132
|
-
|
|
133
|
-
&:after {
|
|
134
|
-
bottom: 0;
|
|
135
|
-
border: 1px solid $darkbrown;
|
|
136
|
-
border-radius: 12px;
|
|
137
|
-
content: "";
|
|
138
|
-
display: block;
|
|
139
|
-
left: 0;
|
|
140
|
-
position: absolute;
|
|
141
|
-
right: 0;
|
|
142
|
-
top: 0;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&.favorite,
|
|
147
|
-
&.list {
|
|
148
|
-
padding: 4px 6px;
|
|
149
|
-
|
|
150
|
-
span {
|
|
151
|
-
margin-left: -4px;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&.following-recipe {
|
|
156
|
-
background-color: $orangered;
|
|
157
|
-
|
|
158
|
-
&:before {
|
|
159
|
-
color: #fff;
|
|
160
|
-
content: "\f004";
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
& + .list {
|
|
164
|
-
color: $orangered;
|
|
165
|
-
|
|
166
|
-
&:after {
|
|
167
|
-
border-color: $orangered;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// in dish card
|
|
174
|
-
.btn-like {
|
|
175
|
-
@include icon("\f004");
|
|
176
|
-
|
|
177
|
-
border-radius: 50%;
|
|
178
|
-
background-color: rgba(86, 78, 74, .85);
|
|
179
|
-
border: 3px solid #fff;
|
|
180
|
-
color: #fff;
|
|
181
|
-
font-size: 20px;
|
|
182
|
-
height: 42px;
|
|
183
|
-
padding: 0;
|
|
184
|
-
width: 42px;
|
|
185
|
-
z-index: 2;
|
|
186
|
-
|
|
187
|
-
&:before {
|
|
188
|
-
height: 20px;
|
|
189
|
-
line-height: 1.4;
|
|
190
|
-
margin-right: 0;
|
|
191
|
-
vertical-align: middle;
|
|
192
|
-
width: 20px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&:hover,
|
|
196
|
-
&.btn-liking-dish {
|
|
197
|
-
background-color: #f06354;
|
|
198
|
-
color: #fff;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// override bootstrap
|
|
203
|
-
.btn:active {
|
|
204
|
-
box-shadow: none;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.btn-red,
|
|
208
|
-
.btn-orangered,
|
|
209
|
-
.btn-green,
|
|
210
|
-
.btn-blue,
|
|
211
|
-
.btn-card:not(.list) {
|
|
212
|
-
&:hover,
|
|
213
|
-
&:focus {
|
|
214
|
-
color: #fff;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
@@ -59,15 +59,16 @@ category: Components
|
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
*/
|
|
62
|
+
|
|
62
63
|
$pagi-link-bg: $white !default;
|
|
63
|
-
$pagi-link-text: $
|
|
64
|
-
$pagi-link-hover-bg: $
|
|
64
|
+
$pagi-link-text: $brown !default;
|
|
65
|
+
$pagi-link-hover-bg: $brown !default;
|
|
65
66
|
$pagi-link-hover-text: $white !default;
|
|
66
|
-
$pagi-link-active-bg: $
|
|
67
|
+
$pagi-link-active-bg: $brown !default;
|
|
67
68
|
$pagi-link-active-text: $white !default;
|
|
68
|
-
$pagi-link-border:
|
|
69
|
-
$pagi-link-disabled-bg:
|
|
70
|
-
$pagi-link-disabled-text:
|
|
69
|
+
$pagi-link-border: $light-gray-dark5 !default;
|
|
70
|
+
$pagi-link-disabled-bg: $light-gray !default;
|
|
71
|
+
$pagi-link-disabled-text: $light-gray-dark20 !default;
|
|
71
72
|
|
|
72
73
|
.pagination {
|
|
73
74
|
clear: both;
|
|
@@ -109,27 +110,36 @@ $pagi-link-disabled-text: #bcbab5 !default;
|
|
|
109
110
|
padding-right: 15px;
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
.prev a
|
|
113
|
-
|
|
113
|
+
.prev a,
|
|
114
|
+
.next_page a {
|
|
115
|
+
&::before {
|
|
116
|
+
-moz-osx-font-smoothing: grayscale;
|
|
117
|
+
-webkit-font-smoothing: antialiased;
|
|
118
|
+
display: inline-block;
|
|
119
|
+
font-family: "icookfont";
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-weight: normal;
|
|
122
|
+
height: 14px;
|
|
123
|
+
line-height: 1;
|
|
124
|
+
width: 14px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
114
127
|
|
|
128
|
+
.prev a {
|
|
115
129
|
border-bottom-left-radius: 4px;
|
|
116
130
|
border-top-left-radius: 4px;
|
|
117
131
|
|
|
118
132
|
&::before {
|
|
119
|
-
|
|
120
|
-
margin-right: 0;
|
|
133
|
+
content: "\e812";
|
|
121
134
|
}
|
|
122
135
|
}
|
|
123
136
|
|
|
124
137
|
.next_page a {
|
|
125
|
-
@include icon("\e811");
|
|
126
|
-
|
|
127
138
|
border-bottom-right-radius: 4px;
|
|
128
139
|
border-top-right-radius: 4px;
|
|
129
140
|
|
|
130
141
|
&::before {
|
|
131
|
-
|
|
132
|
-
margin-right: 0;
|
|
142
|
+
content: "\e811";
|
|
133
143
|
}
|
|
134
144
|
}
|
|
135
145
|
|
|
@@ -142,7 +152,7 @@ $pagi-link-disabled-text: #bcbab5 !default;
|
|
|
142
152
|
|
|
143
153
|
@media only screen and (max-width: 768px) {
|
|
144
154
|
.pagination {
|
|
145
|
-
|
|
155
|
+
.page {
|
|
146
156
|
display: none;
|
|
147
157
|
|
|
148
158
|
&.active {
|
|
@@ -154,7 +164,7 @@ $pagi-link-disabled-text: #bcbab5 !default;
|
|
|
154
164
|
|
|
155
165
|
@media only screen and (max-width: 768px) {
|
|
156
166
|
.pagination {
|
|
157
|
-
|
|
167
|
+
.page {
|
|
158
168
|
display: none;
|
|
159
169
|
|
|
160
170
|
&.active {
|
|
@@ -9,48 +9,109 @@ name: 11_search_form
|
|
|
9
9
|
category: Components
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
+
<div>in users/brands</div>
|
|
13
|
+
|
|
12
14
|
```html_example
|
|
13
|
-
<div class="
|
|
14
|
-
<form
|
|
15
|
-
<
|
|
16
|
-
|
|
15
|
+
<div class="my-search">
|
|
16
|
+
<form action="" method="get" accept-charset="UTF-8" class="search-user-recipes" id="search-user-recipes">
|
|
17
|
+
<div class="form-group">
|
|
18
|
+
<input name="q" type="text" class="form-control" placeholder="搜尋 iCook 愛料理 的食譜">
|
|
19
|
+
</div>
|
|
20
|
+
<button class="btn btn-user-search" type="submit"> </button>
|
|
21
|
+
</form>
|
|
22
|
+
</div>
|
|
23
|
+
```
|
|
24
|
+
<br/>
|
|
25
|
+
<div>with badge</div>
|
|
26
|
+
<div class="my-search">
|
|
27
|
+
<form action="" method="get" accept-charset="UTF-8" class="search-user-recipes user-favorites" id="search-user-recipes">
|
|
28
|
+
<div class="form-group">
|
|
29
|
+
<span class="badge-vip"></span>
|
|
30
|
+
<input name="q" type="text" class="form-control" placeholder="搜尋 iCook 愛料理 的食譜">
|
|
31
|
+
</div>
|
|
32
|
+
<button class="btn btn-user-search" type="submit"> </button>
|
|
33
|
+
</form>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
<div class="my-search">
|
|
38
|
+
<form action="" method="get" accept-charset="UTF-8" class="search-user-recipes" id="search-user-recipes">
|
|
39
|
+
<div class="form-group">
|
|
40
|
+
<span class="badge-vip"></span>
|
|
41
|
+
<input name="q" type="text" class="form-control" placeholder="搜尋 iCook 愛料理 的食譜">
|
|
42
|
+
</div>
|
|
43
|
+
<button class="btn btn-user-search" type="submit"> </button>
|
|
17
44
|
</form>
|
|
18
45
|
</div>
|
|
19
46
|
```
|
|
20
47
|
|
|
21
48
|
*/
|
|
22
49
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
$search-user-recipes-border: #dedede !default;
|
|
51
|
+
$search-user-recipes-border-focus: $red !default;
|
|
52
|
+
$search-user-recipes-text: #888 !default;
|
|
53
|
+
$btn-user-search-bg: $red !default;
|
|
54
|
+
$btn-user-search-text: $white !default;
|
|
55
|
+
|
|
56
|
+
.my-search {
|
|
57
|
+
background-color: $light-gray;
|
|
58
|
+
margin-bottom: 10px;
|
|
59
|
+
padding: 10px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.search-user-recipes {
|
|
31
63
|
position: relative;
|
|
32
|
-
width: 100%;
|
|
33
64
|
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
border:
|
|
37
|
-
|
|
65
|
+
.form-control {
|
|
66
|
+
border: 1px solid $search-user-recipes-border;
|
|
67
|
+
border-radius: 0;
|
|
68
|
+
box-shadow: none;
|
|
69
|
+
color: $search-user-recipes-text;
|
|
70
|
+
height: 36px;
|
|
38
71
|
width: 100%;
|
|
72
|
+
|
|
73
|
+
&:focus {
|
|
74
|
+
border-color: $search-user-recipes-border-focus;
|
|
75
|
+
}
|
|
39
76
|
}
|
|
40
77
|
|
|
41
|
-
.
|
|
42
|
-
|
|
78
|
+
.form-group {
|
|
79
|
+
margin-bottom: 0;
|
|
80
|
+
}
|
|
43
81
|
|
|
44
|
-
|
|
82
|
+
// user search
|
|
83
|
+
.btn-user-search {
|
|
84
|
+
background-color: $btn-user-search-bg;
|
|
45
85
|
border-radius: 0;
|
|
46
|
-
color:
|
|
47
|
-
|
|
48
|
-
font-size: 13px;
|
|
49
|
-
height: 20px;
|
|
50
|
-
padding: 0;
|
|
86
|
+
color: $btn-user-search-text;
|
|
87
|
+
height: 36px;
|
|
51
88
|
position: absolute;
|
|
52
|
-
right:
|
|
53
|
-
top:
|
|
54
|
-
width:
|
|
89
|
+
right: 0;
|
|
90
|
+
top: 0;
|
|
91
|
+
width: 40px;
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
@include icon-util("\f002", "FontAwesome");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// vip search
|
|
99
|
+
&.user-favorites {
|
|
100
|
+
.badge-vip {
|
|
101
|
+
left: 10px;
|
|
102
|
+
margin-left: 0;
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 9px;
|
|
105
|
+
z-index: 2;
|
|
106
|
+
|
|
107
|
+
&::after {
|
|
108
|
+
margin-left: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.form-control {
|
|
113
|
+
padding-left: 50px;
|
|
114
|
+
}
|
|
55
115
|
}
|
|
56
116
|
}
|
|
117
|
+
|
|
@@ -33,49 +33,62 @@ simply add `.alert-icon` class
|
|
|
33
33
|
## Dismissible alert
|
|
34
34
|
alert can be closed by add `.alert-icon` class and `<a>` tag with `.close` class
|
|
35
35
|
|
|
36
|
-
```html_example
|
|
37
36
|
<div class="alert alert-error alert-icon alert-dismissible">
|
|
38
|
-
<a href="#" class="close"
|
|
37
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Error
|
|
39
38
|
</div>
|
|
40
39
|
<div class="alert alert-warning alert-icon alert-dismissible">
|
|
41
|
-
<a href="#" class="close"
|
|
40
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Warning
|
|
42
41
|
</div>
|
|
43
42
|
<div class="alert alert-success alert-icon alert-dismissible">
|
|
44
|
-
<a href="#" class="close"
|
|
43
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Success
|
|
45
44
|
</div>
|
|
46
45
|
<div class="alert alert-info alert-icon alert-dismissible">
|
|
47
|
-
<a href="#" class="close"
|
|
46
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Info
|
|
48
47
|
</div>
|
|
49
48
|
<div class="alert alert-failed alert-icon alert-dismissible">
|
|
50
|
-
<a href="#" class="close"
|
|
49
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Failed
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
<div class="alert alert-error alert-icon alert-dismissible">
|
|
54
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Error
|
|
51
55
|
</div>
|
|
52
56
|
```
|
|
53
57
|
|
|
54
58
|
## Link in alert
|
|
55
59
|
simply add `.alert-link` class to `<a>` tag in alert
|
|
56
60
|
|
|
57
|
-
```html_example
|
|
58
61
|
<div class="alert alert-error alert-icon alert-dismissible">
|
|
59
|
-
<a href="#" class="close"
|
|
62
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Error. This is a <a href="#" class="alert-link">link to somewhere</a>.
|
|
60
63
|
</div>
|
|
61
64
|
<div class="alert alert-warning alert-icon alert-dismissible">
|
|
62
|
-
<a href="#" class="close"
|
|
65
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Warning. This is a <a href="#" class="alert-link">link to somewhere</a>.
|
|
63
66
|
</div>
|
|
64
67
|
<div class="alert alert-success alert-icon alert-dismissible">
|
|
65
|
-
<a href="#" class="close"
|
|
68
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Success. This is a <a href="#" class="alert-link">link to somewhere</a>.
|
|
66
69
|
</div>
|
|
67
70
|
<div class="alert alert-info alert-icon alert-dismissible">
|
|
68
|
-
<a href="#" class="close"
|
|
71
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Info. This is a <a href="#" class="alert-link">link to somewhere</a>.
|
|
69
72
|
</div>
|
|
70
73
|
<div class="alert alert-failed alert-icon alert-dismissible">
|
|
71
|
-
<a href="#" class="close"
|
|
74
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Failed. This is a <a href="#" class="alert-link">link to somewhere</a>.
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
<div class="alert alert-error alert-icon alert-dismissible">
|
|
79
|
+
<a href="#" class="close"><i class="icon-ic-close"></i></a>Error. This is a <a href="#" class="alert-link">link to somewhere</a>.
|
|
72
80
|
</div>
|
|
73
81
|
```
|
|
74
82
|
|
|
75
83
|
*/
|
|
76
84
|
|
|
77
|
-
$alerts: (
|
|
78
|
-
$
|
|
85
|
+
$alerts: (
|
|
86
|
+
error: $alert-error,
|
|
87
|
+
warning: $alert-warning,
|
|
88
|
+
success: $alert-success,
|
|
89
|
+
info: $alert-info,
|
|
90
|
+
failed: $alert-failed
|
|
91
|
+
);
|
|
79
92
|
|
|
80
93
|
@each $type, $color in $alerts {
|
|
81
94
|
.alert-#{$type} {
|
|
@@ -87,24 +100,29 @@ $aler-save: (success, info);
|
|
|
87
100
|
padding-left: 59px;
|
|
88
101
|
position: relative;
|
|
89
102
|
|
|
90
|
-
@if ($type == "success") or ($type == "info") {
|
|
91
|
-
@include icon("\f06a");
|
|
92
|
-
} @else {
|
|
93
|
-
@include icon("\f071");
|
|
94
|
-
}
|
|
95
|
-
|
|
96
103
|
&::before {
|
|
104
|
+
-moz-osx-font-smoothing: grayscale;
|
|
105
|
+
-webkit-font-smoothing: antialiased;
|
|
106
|
+
content: "\f071";
|
|
97
107
|
background-color: $color;
|
|
98
108
|
color: $white;
|
|
109
|
+
display: inline-block;
|
|
110
|
+
font-family: "FontAwesome";
|
|
111
|
+
font-weight: normal;
|
|
99
112
|
height: 100%;
|
|
100
113
|
left: 0;
|
|
101
114
|
line-height: inherit;
|
|
102
|
-
margin-right: 0;
|
|
103
115
|
padding: 15px;
|
|
104
116
|
position: absolute;
|
|
105
117
|
top: 0;
|
|
106
118
|
width: 44px;
|
|
107
119
|
}
|
|
120
|
+
|
|
121
|
+
@if ($type == "success") or ($type == "info") {
|
|
122
|
+
&::before {
|
|
123
|
+
content: "\f06a";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
108
126
|
}
|
|
109
127
|
|
|
110
128
|
&.alert-dismissible {
|
|
@@ -117,13 +135,13 @@ $aler-save: (success, info);
|
|
|
117
135
|
text-decoration: underline;
|
|
118
136
|
}
|
|
119
137
|
|
|
120
|
-
.close {
|
|
138
|
+
.close {
|
|
139
|
+
background-color: $color;
|
|
121
140
|
border-radius: 50%;
|
|
122
141
|
color: $white;
|
|
123
142
|
font-size: 14px;
|
|
124
143
|
font-weight: normal;
|
|
125
144
|
height: 18px;
|
|
126
|
-
line-height: 1.2;
|
|
127
145
|
opacity: 1; // override bootstrap
|
|
128
146
|
right: 0;
|
|
129
147
|
text-align: center;
|
|
@@ -131,6 +149,10 @@ $aler-save: (success, info);
|
|
|
131
149
|
top: 0;
|
|
132
150
|
width: 18px;
|
|
133
151
|
}
|
|
152
|
+
|
|
153
|
+
.icon-ic-close {
|
|
154
|
+
font-size: 9px;
|
|
155
|
+
}
|
|
134
156
|
}
|
|
135
157
|
}
|
|
136
158
|
|
|
@@ -15,19 +15,19 @@ don't forget the `.notice` class as the base
|
|
|
15
15
|
```html_example
|
|
16
16
|
<div class="notice notice-unfinished">
|
|
17
17
|
請於下單 10 日內(含例假日)完成匯款交易,逾期將自動取消訂單。<br/>
|
|
18
|
-
|
|
18
|
+
若有任何問題請<a href="#">點此聯絡我們</a>。
|
|
19
19
|
</div>
|
|
20
20
|
<div class="notice notice-done">
|
|
21
21
|
訂單已匯款、出貨完成。<br/>
|
|
22
|
-
|
|
22
|
+
若有任何問題請<a href="#">點此聯絡我們</a>。
|
|
23
23
|
</div>
|
|
24
24
|
<div class="notice notice-preparing">
|
|
25
25
|
出貨處理中。<br/>
|
|
26
|
-
|
|
26
|
+
若有任何問題請<a href="#">點此聯絡我們</a>。
|
|
27
27
|
</div>
|
|
28
28
|
<div class="notice notice-expired">
|
|
29
29
|
繳費已逾期,請重新下單。<br/>
|
|
30
|
-
|
|
30
|
+
若有任何問題請<a href="#">點此聯絡我們</a>。
|
|
31
31
|
</div>
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ don't forget the `.notice` class as the base
|
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
// notice
|
|
50
|
-
$notice-unfinished-text: $orange !default;
|
|
50
|
+
$notice-unfinished-text: $orange-red !default;
|
|
51
51
|
$notice-unfinished-bg: #ffeae5 !default;
|
|
52
52
|
$notice-done-text: #a0bd4b !default;
|
|
53
53
|
$notice-done-bg: #eeffe5 !default;
|
|
@@ -72,7 +72,7 @@ $notice-list-item-text: #888 !default;
|
|
|
72
72
|
padding: 10px;
|
|
73
73
|
|
|
74
74
|
a {
|
|
75
|
-
color: $orange;
|
|
75
|
+
color: $orange-red;
|
|
76
76
|
text-decoration: underline;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// --------------------------------
|
|
2
|
+
// Components - Report-msg
|
|
3
|
+
// --------------------------------
|
|
4
|
+
$report-msg-icon: #999 !default;
|
|
5
|
+
$report-msg-icon-hover: #aa0000 !default;
|
|
6
|
+
$report-msg-reported-icon: #9fbe4b !default;
|
|
7
|
+
|
|
8
|
+
.report-msg {
|
|
9
|
+
&,
|
|
10
|
+
&:focus {
|
|
11
|
+
background: none;
|
|
12
|
+
border: 0;
|
|
13
|
+
outline: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&::before {
|
|
18
|
+
@include icon-util("\f024", "FontAwesome");
|
|
19
|
+
|
|
20
|
+
color: $report-msg-icon;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
&:hover,
|
|
25
|
+
&:active,
|
|
26
|
+
&[aria-describedby] {
|
|
27
|
+
&::before {
|
|
28
|
+
color: $report-msg-icon-hover;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.reported {
|
|
33
|
+
&::before {
|
|
34
|
+
@include icon-util("\f00c", "FontAwesome");
|
|
35
|
+
|
|
36
|
+
color: $report-msg-reported-icon;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
+ .tooltip .tooltip-inner {
|
|
40
|
+
width: 310px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.report-msg,
|
|
46
|
+
.report-msg.reported {
|
|
47
|
+
&::before {
|
|
48
|
+
margin-right: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|