cupboard 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +2 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +4 -0
  6. data/CODE_OF_CONDUCT.md +13 -0
  7. data/Dockerfile +19 -0
  8. data/Gemfile +6 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +44 -0
  11. data/Rakefile +6 -0
  12. data/app/assets/images/category-cover.png +0 -0
  13. data/app/assets/images/category-default.jpg +0 -0
  14. data/app/assets/images/default-avatar.png +0 -0
  15. data/app/assets/images/favicon.ico +0 -0
  16. data/app/assets/images/icook-logo.png +0 -0
  17. data/app/assets/images/icook-logo.svg +26 -0
  18. data/app/assets/images/logo-2x.png +0 -0
  19. data/app/assets/images/no-result.png +0 -0
  20. data/app/assets/images/recipe-default.png +0 -0
  21. data/app/assets/images/section_bg.jpg +0 -0
  22. data/app/assets/images/setting-pr.jpg +0 -0
  23. data/app/assets/images/step-placeholder.jpg +0 -0
  24. data/app/assets/images/vip-icon.svg +1 -0
  25. data/app/assets/pages/atomic.md +56 -0
  26. data/app/assets/pages/index.md +101 -0
  27. data/app/assets/stylesheets/_base.scss +4 -0
  28. data/app/assets/stylesheets/_basic.scss +22 -0
  29. data/app/assets/stylesheets/_components.scss +95 -0
  30. data/app/assets/stylesheets/_forms.scss +159 -0
  31. data/app/assets/stylesheets/_global.scss +40 -0
  32. data/app/assets/stylesheets/_images.scss +125 -0
  33. data/app/assets/stylesheets/_layouts.scss +4 -0
  34. data/app/assets/stylesheets/_lists.scss +203 -0
  35. data/app/assets/stylesheets/_mixins.scss +6 -0
  36. data/app/assets/stylesheets/_tables.scss +244 -0
  37. data/app/assets/stylesheets/_typography.scss +292 -0
  38. data/app/assets/stylesheets/_variables.scss +1 -0
  39. data/app/assets/stylesheets/_widgets.scss +50 -0
  40. data/app/assets/stylesheets/base/_badge.scss +89 -0
  41. data/app/assets/stylesheets/base/_buttons.scss +217 -0
  42. data/app/assets/stylesheets/components/_accordion.scss +69 -0
  43. data/app/assets/stylesheets/components/_breadcrumbs.scss +46 -0
  44. data/app/assets/stylesheets/components/_cards.scss +12 -0
  45. data/app/assets/stylesheets/components/_grid.scss +45 -0
  46. data/app/assets/stylesheets/components/_navigations.scss +12 -0
  47. data/app/assets/stylesheets/components/_pagination.scss +166 -0
  48. data/app/assets/stylesheets/components/_search-form.scss +56 -0
  49. data/app/assets/stylesheets/components/_sorting-cards.scss +76 -0
  50. data/app/assets/stylesheets/components/_text.scss +166 -0
  51. data/app/assets/stylesheets/components/alerts/_alert-global.scss +137 -0
  52. data/app/assets/stylesheets/components/alerts/_alert-market.scss +129 -0
  53. data/app/assets/stylesheets/components/cards/_dish-card.scss +244 -0
  54. data/app/assets/stylesheets/components/cards/_list-card.scss +168 -0
  55. data/app/assets/stylesheets/components/cards/_photo-card.scss +244 -0
  56. data/app/assets/stylesheets/components/cards/_product-card.scss +104 -0
  57. data/app/assets/stylesheets/components/cards/_recipe-card.scss +96 -0
  58. data/app/assets/stylesheets/components/cards/_video-card.scss +206 -0
  59. data/app/assets/stylesheets/components/comments/_comment-form.scss +222 -0
  60. data/app/assets/stylesheets/components/medias/_blog-feeds.scss +28 -0
  61. data/app/assets/stylesheets/components/medias/_brand-cover.scss +127 -0
  62. data/app/assets/stylesheets/components/medias/_brand-product.scss +35 -0
  63. data/app/assets/stylesheets/components/medias/_business-kitchen.scss +66 -0
  64. data/app/assets/stylesheets/components/medias/_categories-cover.scss +79 -0
  65. data/app/assets/stylesheets/components/medias/_hot-categories.scss +36 -0
  66. data/app/assets/stylesheets/components/medias/_popular-categories.scss +89 -0
  67. data/app/assets/stylesheets/components/medias/_popular-recipes.scss +38 -0
  68. data/app/assets/stylesheets/components/medias/_pr-lists.scss +53 -0
  69. data/app/assets/stylesheets/components/medias/_recipe-reference.scss +45 -0
  70. data/app/assets/stylesheets/components/medias/_user-recipes.scss +46 -0
  71. data/app/assets/stylesheets/components/navigations/_blog-nav.scss +120 -0
  72. data/app/assets/stylesheets/components/navigations/_brand-tabs-nav.scss +187 -0
  73. data/app/assets/stylesheets/components/navigations/_categories-nav-responsive.scss +131 -0
  74. data/app/assets/stylesheets/components/navigations/_categories-nav.scss +307 -0
  75. data/app/assets/stylesheets/components/navigations/_recipe-nav.scss +112 -0
  76. data/app/assets/stylesheets/components/navigations/_tv-nav.scss +283 -0
  77. data/app/assets/stylesheets/components/recipes/_ingredients.scss +223 -0
  78. data/app/assets/stylesheets/components/recipes/_notes.scss +60 -0
  79. data/app/assets/stylesheets/components/recipes/_steps.scss +153 -0
  80. data/app/assets/stylesheets/components/single_comment/_single-comment.scss +251 -0
  81. data/app/assets/stylesheets/layouts/_footer-nav.scss +151 -0
  82. data/app/assets/stylesheets/layouts/_footer.scss +48 -0
  83. data/app/assets/stylesheets/layouts/_footers.scss +12 -0
  84. data/app/assets/stylesheets/layouts/_global-navbar.scss +261 -0
  85. data/app/assets/stylesheets/layouts/_headers.scss +11 -0
  86. data/app/assets/stylesheets/layouts/_sub-header-market.scss +138 -0
  87. data/app/assets/stylesheets/mixins/_mixin-alert.scss +27 -0
  88. data/app/assets/stylesheets/mixins/_mixin-animation.scss +10 -0
  89. data/app/assets/stylesheets/mixins/_mixin-badge.scss +21 -0
  90. data/app/assets/stylesheets/mixins/_mixin-buttons.scss +21 -0
  91. data/app/assets/stylesheets/mixins/_mixin-icons.scss +32 -0
  92. data/app/assets/stylesheets/mixins/_mixin-type.scss +7 -0
  93. data/app/assets/stylesheets/variables/_color-palette.scss +222 -0
  94. data/app/assets/stylesheets/widgets/_brand-sidebar-widgets.scss +11 -0
  95. data/app/assets/stylesheets/widgets/_recipe-mark.scss +55 -0
  96. data/app/assets/stylesheets/widgets/_sidebar-widgets.scss +11 -0
  97. data/app/assets/stylesheets/widgets/_tv-sidebar-widgets.scss +11 -0
  98. data/app/assets/stylesheets/widgets/_user-sidebar-widgets.scss +11 -0
  99. data/app/assets/stylesheets/widgets/_widgets.scss +11 -0
  100. data/app/assets/stylesheets/widgets/brands/_pr-ingredients.scss +154 -0
  101. data/app/assets/stylesheets/widgets/brands/_pr-latest.scss +62 -0
  102. data/app/assets/stylesheets/widgets/brands/_pr-popular-recipe-lists.scss +51 -0
  103. data/app/assets/stylesheets/widgets/brands/_pr-recent.scss +59 -0
  104. data/app/assets/stylesheets/widgets/brands/_pr-video.scss +34 -0
  105. data/app/assets/stylesheets/widgets/features/_feature-events.scss +119 -0
  106. data/app/assets/stylesheets/widgets/features/_feature-slides.scss +144 -0
  107. data/app/assets/stylesheets/widgets/feeds/_blog-feeds.scss +144 -0
  108. data/app/assets/stylesheets/widgets/feeds/_tv-feeds.scss +143 -0
  109. data/app/assets/stylesheets/widgets/modal/_modal-reset.scss +40 -0
  110. data/app/assets/stylesheets/widgets/modal/_recipe-list-modal.scss +111 -0
  111. data/app/assets/stylesheets/widgets/sidebar-widgets/_business-kitchen.scss +134 -0
  112. data/app/assets/stylesheets/widgets/sidebar-widgets/_icook-video.scss +109 -0
  113. data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-recipe-lists.scss +232 -0
  114. data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-recipes.scss +105 -0
  115. data/app/assets/stylesheets/widgets/sidebar-widgets/_popular-search.scss +317 -0
  116. data/app/assets/stylesheets/widgets/sidebar-widgets/_recipes-collect.scss +45 -0
  117. data/app/assets/stylesheets/widgets/sidebar-widgets/_sidebar-widget.scss +62 -0
  118. data/app/assets/stylesheets/widgets/tv/_tv-more-recipes.scss +93 -0
  119. data/app/assets/stylesheets/widgets/tv/_tv-popular-tags.scss +78 -0
  120. data/app/assets/stylesheets/widgets/users/_fav-list.scss +197 -0
  121. data/app/assets/stylesheets/widgets/users/_user-stats.scss +330 -0
  122. data/bin/console +14 -0
  123. data/bin/setup +7 -0
  124. data/config/initializers/assets.rb +5 -0
  125. data/cupboard.gemspec +40 -0
  126. data/example/.gitignore +19 -0
  127. data/lib/cupboard.rb +12 -0
  128. data/lib/cupboard/engine.rb +6 -0
  129. data/lib/cupboard/version.rb +3 -0
  130. metadata +298 -0
@@ -0,0 +1,60 @@
1
+ // --------------------------------
2
+ // Recipe components - notes
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ name: 24_recipe_notes
8
+ title: Recipe notes
9
+ category: UI components
10
+ ---
11
+
12
+ <div class="notes">
13
+ <h3 class="title">小撇步</h3>
14
+ <div>
15
+ <p>1. 蓋鍋悶到8成蛤蜊都開了就可掀蓋,煮太久蛤蜊肉會縮小,就不多汁了。</p>
16
+ <p>2. 奶油融化就可關火。</p>
17
+ <p>這裡可以看更多喲~<a href="#" rel="nofollow">http://icook.tw/categories?ref=feature-categories</a></p>
18
+ </div>
19
+ </div>
20
+
21
+ */
22
+
23
+ $recipe-notes-bg: #fefee5 !default;
24
+ $recipe-notes-border: #fee59a !default;
25
+ $recipe-notes-text: #666 !default;
26
+
27
+ .notes {
28
+ background-color: $recipe-notes-bg;
29
+ border-top: 4px solid $recipe-notes-border;
30
+ margin-top: 15px;
31
+ padding: 20px 30px;
32
+
33
+ .title {
34
+ border-bottom: 0;
35
+ color: $ic-brown;
36
+ font-size: 20px;
37
+ line-height: 22px;
38
+ padding-bottom: 20px;
39
+ }
40
+
41
+ p {
42
+ color: $recipe-notes-text;
43
+ font-size: 16px;
44
+ margin-bottom: 0;
45
+ word-wrap: break-word;
46
+ }
47
+
48
+ a {
49
+ color: $orange;
50
+ text-decoration: underline;
51
+ }
52
+ }
53
+
54
+ @media only screen and (max-width: 767px) {
55
+ .notes {
56
+ padding-left: 20px;
57
+ padding-right: 20px;
58
+ }
59
+ }
60
+
@@ -0,0 +1,153 @@
1
+ // --------------------------------
2
+ // Recipe components - steps
3
+ // --------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ name: 23_recipe_steps
8
+ title: Recipe steps
9
+ category: UI components
10
+ ---
11
+
12
+ <div class="recipe-detail">
13
+ <div class="steps">
14
+ <ul itemprop="recipeInstructions">
15
+ <li class="step">
16
+ <div class="media">
17
+ <div class="step-img media-left">
18
+ <a href="#">
19
+ <img alt="step1" src="http:/images/step-placeholder.jpg">
20
+ </a>
21
+ </div>
22
+ <div class="media-body">
23
+ <big>1</big>
24
+ 備料:蛤蜊需吐沙,蒜頭切末,青蔥切花,奶油切小塊放室溫回軟。
25
+ </div>
26
+ </div>
27
+ </li>
28
+ <li class="step">
29
+ <div class="media">
30
+ <div class="step-img media-left">
31
+ <a href="#">
32
+ <img alt="step2" src="/images/step-placeholder.jpg">
33
+ </a>
34
+ </div>
35
+ <div class="media-body">
36
+ <big>2</big>
37
+ </div>
38
+ </div>
39
+ </li>
40
+ <li class="step">
41
+ <div class="media">
42
+ <div class="media-body">
43
+ <big>3</big>
44
+ 放入蛤蜊,加入米酒,轉中火,蓋上鍋蓋悶煮約3-5分鐘,至蛤蜊打開就可掀蓋。
45
+ </div>
46
+ </div>
47
+ </li>
48
+ <li class="step">
49
+ <div class="media">
50
+ <div class="media-body">
51
+ <big>4</big>
52
+ 加入奶油、醬油等<span class="group-1">醃料</span>,大火拌炒至奶油融化就可關火(煮太久蛤蜊肉會縮),最後撒上蔥花就可以盛盤。
53
+ </div>
54
+ </div>
55
+ </li>
56
+ </ul>
57
+ <div>
58
+ <p>group name in step</p>
59
+ <span class="group-1">醃料</span>
60
+ <span class="group-2">醃料</span>
61
+ <span class="group-3">醃料</span>
62
+ <span class="group-4">醃料</span>
63
+ <span class="group-5">醃料</span>
64
+ <span class="group-6">醃料</span>
65
+ <span class="group-7">醃料</span>
66
+ <span class="group-8">醃料</span>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ */
71
+
72
+ $recipe-steps-border: #969696 !default;
73
+ $recipe-steps-order: $ic-brown !default;
74
+ $recipe-step-border: $basic-border !default;
75
+ $recipe-step-text: #666 !default;
76
+
77
+ .recipe-detail {
78
+ big {
79
+ color: $recipe-steps-order;
80
+ display: block;
81
+ font-size: 30px;
82
+ font-weight: bold;
83
+ line-height: 1;
84
+ margin: 5px 0 15px;
85
+ }
86
+
87
+ .recipe-steps {
88
+ border-top: 1px solid $recipe-steps-border;
89
+ margin-bottom: 20px;
90
+ margin-top: 15px;
91
+ }
92
+
93
+ .steps {
94
+ ul {
95
+ padding-left: 0;
96
+ }
97
+
98
+ .group_1,
99
+ .group_2,
100
+ .group_3,
101
+ .group_4,
102
+ .group_5 {
103
+ padding: 0 4px;
104
+ }
105
+ }
106
+
107
+ .step {
108
+ border-bottom: 1px solid $recipe-step-border;
109
+ min-height: 90px;
110
+ overflow: hidden;
111
+ padding: 15px 0;
112
+ word-wrap: break-word;
113
+ }
114
+
115
+ .step-img {
116
+ overflow: hidden;
117
+ padding: 0;
118
+
119
+ img {
120
+ width: 100%;
121
+ }
122
+ }
123
+
124
+ .media-body {
125
+ color: $recipe-step-text;
126
+ font-size: 18px;
127
+ line-height: 30px;
128
+ width: auto;
129
+ }
130
+ }
131
+
132
+ @media only screen and (min-width: 768px) {
133
+ .steps {
134
+ .step-img {
135
+ height: 165px;
136
+ padding-right: 15px;
137
+ width: 30.4%;
138
+ }
139
+
140
+ img {
141
+ height: 165px;
142
+ }
143
+ }
144
+ }
145
+
146
+ @media only screen and (max-width: 767px) {
147
+ .step-img {
148
+ display: block;
149
+ margin-bottom: 10px;
150
+ margin-right: 0;
151
+ width: 100%;
152
+ }
153
+ }
@@ -0,0 +1,251 @@
1
+ // --------------------------
2
+ // Single comment
3
+ // --------------------------
4
+
5
+ /*doc
6
+ ---
7
+ title: Single comment
8
+ name: 16_single_comment
9
+ category: UI components
10
+ ---
11
+
12
+ <div class="inner-block comments">
13
+ <div class="panel-group recipe-comments" id="accordion">
14
+ <div class="panel">
15
+ <div class="panel-heading">
16
+ <a href="#collapseComments" class="visible-xs visible-sm collapsed collapse in" data-toggle="collapse" data-parent="#accordion" id="more-comment" aria-expanded="true">看更多留言</a>
17
+ </div>
18
+ <div class="panel-collapse" id="collapseComments" aria-expanded="false">
19
+ <div class="panel-body">
20
+ <div>
21
+ <div class="media comment clearfix">
22
+ <a href="#" target="_blank" class="pull-left">
23
+ <img class="img-responsive img-circle user-img" src="/images/default-avatar.png" alt="user_avatar">
24
+ </a>
25
+ <div class="media-body">
26
+ <div class="info">
27
+ <div class="author">
28
+ <a href="#" target="_blank">料理貓</a>
29
+ </div>
30
+ <div class="body">
31
+ <div class="message">
32
+ <p>這種的保存方式,可以不需要冰嗎?<br/>因為我在找尋可以不用冰的自製辣椒醬</p>
33
+ </div>
34
+ <span class="timestamp">3天前</span>
35
+ </div>
36
+ <button class="report-msg" data-original-title="" title=""></button>
37
+ </div>
38
+ <div class="media comment reply-comment">
39
+ <a href="#" class="pull-left">
40
+ <img class="img-responsive img-circle user-img" alt="user_avatar" src="/images/default-avatar.png">
41
+ </a>
42
+ <div class="media-body">
43
+ <div class="info">
44
+ <div class="author">作者回覆</div>
45
+ <div class="body">
46
+ <div class="message">
47
+ <p>自製的不用冰真的比較困難~因沒添加防腐~利用的是油鹽做保存~所以需要冰</p>
48
+ </div>
49
+ <span class="timestamp">2天前</span>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <button class="report-msg" data-original-title="" title=""></button>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ */
64
+
65
+ $reply-comment-border: $basic-border !default;
66
+ $reply-comment-author: $orange !default;
67
+ $comments-form-actions-border: $basic-border !default;
68
+ $comment-border: $basic-border !default;
69
+ $comment-form-text: #777 !default;
70
+ $comment-func-text: #aaa !default;
71
+ $comment-delete: #aa0000 !default;
72
+ $recipe-comments-bg: $white !default;
73
+ $recipe-comments-title: #666 !default;
74
+
75
+ .comment {
76
+ margin-top: 0;
77
+ overflow: visible;
78
+ padding-top: 20px;
79
+ position: relative;
80
+
81
+ &:last-child {
82
+ border-bottom: 1px solid $comment-border;
83
+
84
+ .info {
85
+ border-bottom: 0;
86
+ }
87
+
88
+ .reply-comment {
89
+ border-bottom: 0;
90
+ border-top: 1px solid $comment-border;
91
+ }
92
+
93
+ .delete-msg {
94
+ margin-bottom: -1px;
95
+ }
96
+ }
97
+
98
+ .pull-left {
99
+ margin-right: 15px;
100
+ padding-right: 0;
101
+ position: relative;
102
+ }
103
+
104
+ form {
105
+ position: relative;
106
+
107
+ > .pull-right {
108
+ bottom: 0;
109
+ position: absolute;
110
+ right: 0;
111
+ }
112
+
113
+ a {
114
+ color: $comment-form-text;
115
+ margin-right: 10px;
116
+ }
117
+ }
118
+
119
+ .func {
120
+ color: $comment-func-text;
121
+
122
+ a {
123
+ color: $comment-func-text;
124
+ font-size: 13px;
125
+ margin-left: 5px;
126
+ margin-right: 5px;
127
+ }
128
+
129
+ .delete:hover {
130
+ color: $comment-delete;
131
+ }
132
+
133
+ .edit {
134
+ @include icon("|");
135
+
136
+ &::before {
137
+ width: 7px;
138
+ }
139
+ }
140
+ }
141
+
142
+ .info {
143
+ border-bottom: 1px solid $comment-border;
144
+ display: inline-block;
145
+ position: relative;
146
+ width: 100%;
147
+ }
148
+
149
+ .badge {
150
+ margin-left: 6px;
151
+ margin-top: -2px;
152
+ }
153
+
154
+ .report-msg {
155
+ bottom: 20px;
156
+ display: none;
157
+ position: absolute;
158
+ right: 0;
159
+ z-index: 3;
160
+ }
161
+
162
+ // .tooltip.top .tooltip-inner {
163
+ // width: 120px;
164
+ // }
165
+ }
166
+
167
+ .reply-comment {
168
+ border-bottom: 1px solid $reply-comment-border;
169
+ margin-top: 0;
170
+ position: relative;
171
+
172
+ .pull-left {
173
+ // margin-right: 10px;
174
+
175
+ &::after {
176
+ border-top: 1px solid $reply-comment-author;
177
+ content: "";
178
+ left: 30px;
179
+ position: absolute;
180
+ top: 15px;
181
+ width: 15px;
182
+ }
183
+ }
184
+
185
+ .user-img,
186
+ > a {
187
+ height: 30px;
188
+ width: 30px;
189
+ }
190
+
191
+ .form-group {
192
+ margin-bottom: 20px;
193
+ }
194
+
195
+ .author {
196
+ border: 1px solid $reply-comment-author;
197
+ border-radius: 30px;
198
+ color: $reply-comment-author;
199
+ display: inline-block;
200
+ padding: 4px 8px;
201
+ top: 3px;
202
+ }
203
+
204
+ &.edit {
205
+ .info {
206
+ margin-bottom: 0;
207
+ }
208
+
209
+ .help-block {
210
+ color: $comments-help-block-notice;
211
+ }
212
+ }
213
+
214
+ .help-block:last-child {
215
+ color: $comments-help-block-text;
216
+ font-size: 13px;
217
+ }
218
+ }
219
+
220
+ .recipe-comments {
221
+ margin-bottom: 0;
222
+
223
+ .panel {
224
+ border: 0;
225
+ border-radius: 0;
226
+ box-shadow: none;
227
+ }
228
+
229
+ .panel-heading {
230
+ background-color: $recipe-comments-bg;
231
+ border: 0;
232
+ border-radius: 0;
233
+ padding: 0;
234
+
235
+ a {
236
+ @include icon("\f0d7");
237
+
238
+ color: $recipe-comments-title;
239
+ display: block;
240
+ margin-bottom: -5px;
241
+ padding: 10px 15px 0;
242
+ text-align: center;
243
+ }
244
+
245
+ + .panel-collapse > .panel-body {
246
+ border-top: 0;
247
+ padding: 0;
248
+ }
249
+ }
250
+ }
251
+