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,96 @@
|
|
1
|
+
// base styles for photo-card, list-card and dish-card
|
2
|
+
$card-button-basic-bg: rgba(86, 78, 74, 0.8) !default;
|
3
|
+
$card-button-basic-bg-hover: rgba(86, 78, 74, 0.7) !default;
|
4
|
+
$card-button-basic-border: $white !default;
|
5
|
+
$card-button-basic-text: $white !default;
|
6
|
+
$card-basic-ingredient: #aa8f83 !default;
|
7
|
+
$card-btn-list-bg: $white !default;
|
8
|
+
$card-btn-list-text: $ic-brown !default;
|
9
|
+
$card-btn-following-bg: $orange !default;
|
10
|
+
$card-btn-following-icon: $white !default;
|
11
|
+
|
12
|
+
%card-button-basic {
|
13
|
+
background-color: $card-button-basic-bg;
|
14
|
+
border: 2px solid $card-button-basic-border;
|
15
|
+
border-radius: 13px;
|
16
|
+
color: $card-button-basic-text;
|
17
|
+
float: left;
|
18
|
+
font-size: inherit;
|
19
|
+
padding: 4px 6px;
|
20
|
+
position: relative;
|
21
|
+
text-align: center;
|
22
|
+
width: 62px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.recipe-card {
|
26
|
+
.btn {
|
27
|
+
font-size: 13px;
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
.material {
|
32
|
+
color: $card-basic-ingredient;
|
33
|
+
font-size: 13px;
|
34
|
+
}
|
35
|
+
|
36
|
+
&:hover {
|
37
|
+
.btn {
|
38
|
+
display: block;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
// used in photo-card / list-card / recipes/show
|
44
|
+
.btn-list {
|
45
|
+
@extend %card-button-basic;
|
46
|
+
@include icon("\f0c9");
|
47
|
+
|
48
|
+
background-color: $card-btn-list-bg;
|
49
|
+
color: $card-btn-list-text;
|
50
|
+
margin-left: 4px;
|
51
|
+
|
52
|
+
&::after {
|
53
|
+
border: 1px solid $card-btn-list-text;
|
54
|
+
border-radius: 12px;
|
55
|
+
bottom: 0;
|
56
|
+
content: "";
|
57
|
+
display: block;
|
58
|
+
left: 0;
|
59
|
+
position: absolute;
|
60
|
+
right: 0;
|
61
|
+
top: 0;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.btn-follow-recipe {
|
66
|
+
@extend %card-button-basic;
|
67
|
+
@include icon("\f08a");
|
68
|
+
|
69
|
+
&:hover,
|
70
|
+
&:focus {
|
71
|
+
background-color: $card-button-basic-bg-hover;
|
72
|
+
color: $white;
|
73
|
+
}
|
74
|
+
|
75
|
+
&.following {
|
76
|
+
background-color: $card-btn-following-bg;
|
77
|
+
|
78
|
+
&::before {
|
79
|
+
color: $card-btn-following-icon;
|
80
|
+
content: "\f004 已收";
|
81
|
+
}
|
82
|
+
|
83
|
+
&:hover::before {
|
84
|
+
content: "\f004 取消";
|
85
|
+
}
|
86
|
+
|
87
|
+
+ .btn-list {
|
88
|
+
color: $card-btn-following-bg;
|
89
|
+
|
90
|
+
&::after {
|
91
|
+
border-color: $card-btn-following-bg;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
@@ -0,0 +1,206 @@
|
|
1
|
+
@import "compass/typography/text/ellipsis";
|
2
|
+
|
3
|
+
// --------------------------------
|
4
|
+
// Cards - video card
|
5
|
+
// --------------------------------
|
6
|
+
|
7
|
+
/*doc
|
8
|
+
---
|
9
|
+
parent: 17_cards
|
10
|
+
name: video_card
|
11
|
+
title: Video card
|
12
|
+
---
|
13
|
+
|
14
|
+
<div class="ic-promoted-cards clearfix">
|
15
|
+
<div class="ic-promoted-card">
|
16
|
+
<div>video-card in TV</div>
|
17
|
+
<a class="video" href="/fruit-sparkling-water">
|
18
|
+
<div>
|
19
|
+
<div class="length">0:43</div>
|
20
|
+
<img alt="繽紛水果氣泡水" class="img-responsive" src="/images/recipe-default.png">
|
21
|
+
<div class="mask"></div>
|
22
|
+
</div>
|
23
|
+
<div class="info">
|
24
|
+
<div class="name" itemprop="name">繽紛水果氣泡水</div>
|
25
|
+
<div class="author">by <span>愛料理</span></div>
|
26
|
+
</div>
|
27
|
+
</a>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<div class="ic-promoted-card">
|
31
|
+
<div>card with label</div>
|
32
|
+
<a class="video" href="/fruit-sparkling-water">
|
33
|
+
<div>
|
34
|
+
<div class="feature-label">
|
35
|
+
<span>最新影片</span>
|
36
|
+
<div class="length">
|
37
|
+
<span>0:55</span>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<img alt="繽紛水果氣泡水" class="img-responsive" src="/images/recipe-default.png">
|
41
|
+
<div class="mask"></div>
|
42
|
+
</div>
|
43
|
+
<div class="info">
|
44
|
+
<div class="name" itemprop="name">繽紛水果氣泡水</div>
|
45
|
+
<div class="author">by <span>愛料理</span></div>
|
46
|
+
</div>
|
47
|
+
</a>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
*/
|
51
|
+
|
52
|
+
@import "compass/typography/text/ellipsis";
|
53
|
+
|
54
|
+
$video-mask-bg: rgba(86, 78, 73, 0.4) !default;
|
55
|
+
$video-length-bg: rgba(86, 78, 73, 0.8) !default;
|
56
|
+
$video-card-author-by: #7c8783 !default;
|
57
|
+
$video-card-author: #555 !default;
|
58
|
+
|
59
|
+
.mask {
|
60
|
+
@include icon("\f04b");
|
61
|
+
|
62
|
+
background-color: $video-mask-bg;
|
63
|
+
color: $white;
|
64
|
+
display: none;
|
65
|
+
height: 100%;
|
66
|
+
left: 0;
|
67
|
+
position: absolute;
|
68
|
+
text-align: center;
|
69
|
+
top: 0;
|
70
|
+
width: 100%;
|
71
|
+
z-index: 2;
|
72
|
+
|
73
|
+
&::before {
|
74
|
+
border: 2px solid $white;
|
75
|
+
border-radius: 50%;
|
76
|
+
font-size: 20px;
|
77
|
+
height: 40px;
|
78
|
+
line-height: 1.7;
|
79
|
+
margin-right: 0;
|
80
|
+
padding-left: 3px;
|
81
|
+
position: relative;
|
82
|
+
top: 36%;
|
83
|
+
width: 40px;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
.video {
|
88
|
+
background-color: $white;
|
89
|
+
display: block;
|
90
|
+
position: relative;
|
91
|
+
|
92
|
+
> div:first-child {
|
93
|
+
overflow: hidden;
|
94
|
+
position: relative;
|
95
|
+
}
|
96
|
+
|
97
|
+
&:hover {
|
98
|
+
text-decoration: none;
|
99
|
+
|
100
|
+
.mask {
|
101
|
+
display: block;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
img {
|
106
|
+
width: 100%;
|
107
|
+
}
|
108
|
+
|
109
|
+
.length {
|
110
|
+
background-color: $video-length-bg;
|
111
|
+
bottom: 10px;
|
112
|
+
color: $white;
|
113
|
+
font-size: 12px;
|
114
|
+
left: 10px;
|
115
|
+
padding: 3px 11px 2px;
|
116
|
+
position: absolute;
|
117
|
+
text-align: center;
|
118
|
+
z-index: 3;
|
119
|
+
}
|
120
|
+
|
121
|
+
.info {
|
122
|
+
padding: 10px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.name,
|
126
|
+
.author {
|
127
|
+
@include ellipsis;
|
128
|
+
|
129
|
+
width: 100%;
|
130
|
+
}
|
131
|
+
|
132
|
+
.name {
|
133
|
+
color: $ic-brown;
|
134
|
+
font-size: 16px;
|
135
|
+
margin-bottom: 5px;
|
136
|
+
}
|
137
|
+
|
138
|
+
.author {
|
139
|
+
color: $video-card-author-by;
|
140
|
+
|
141
|
+
span {
|
142
|
+
color: $video-card-author;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.feature-label {
|
148
|
+
bottom: 10px;
|
149
|
+
left: 10px;
|
150
|
+
position: absolute;
|
151
|
+
z-index: 3;
|
152
|
+
|
153
|
+
> span,
|
154
|
+
.length {
|
155
|
+
display: inline-block;
|
156
|
+
float: left;
|
157
|
+
}
|
158
|
+
|
159
|
+
> span {
|
160
|
+
@include icon("\f04b");
|
161
|
+
|
162
|
+
background-color: $orange;
|
163
|
+
color: $white;
|
164
|
+
padding: 5px 6px;
|
165
|
+
|
166
|
+
&::before {
|
167
|
+
border: 1px solid $white;
|
168
|
+
border-radius: 50%;
|
169
|
+
color: $white;
|
170
|
+
font-size: 11px;
|
171
|
+
height: 18px;
|
172
|
+
line-height: 17px;
|
173
|
+
padding-left: 3px;
|
174
|
+
text-align: center;
|
175
|
+
vertical-align: top;
|
176
|
+
width: 18px;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
.length {
|
181
|
+
bottom: auto;
|
182
|
+
float: left;
|
183
|
+
left: auto;
|
184
|
+
|
185
|
+
span {
|
186
|
+
display: block;
|
187
|
+
line-height: 25px;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.to-list > div {
|
193
|
+
padding-right: 0;
|
194
|
+
width: 24.5%;
|
195
|
+
|
196
|
+
+ div {
|
197
|
+
padding-left: 16px;
|
198
|
+
}
|
199
|
+
|
200
|
+
.info {
|
201
|
+
padding-bottom: 0;
|
202
|
+
padding-left: 0;
|
203
|
+
padding-right: 0;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
@@ -0,0 +1,222 @@
|
|
1
|
+
// ----------------------------------
|
2
|
+
// Form components - recipe comment
|
3
|
+
// ----------------------------------
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Comment form
|
8
|
+
name: 15_comment_form
|
9
|
+
category: UI components
|
10
|
+
---
|
11
|
+
|
12
|
+
<div class="inner-block comments">
|
13
|
+
<h3>討論<span>共 0 則</span></h3>
|
14
|
+
<div class="recipe-comment-form">
|
15
|
+
<form class="form-horizontal">
|
16
|
+
<fieldset>
|
17
|
+
<div class="media">
|
18
|
+
<div class="pull-left hidden-xs">
|
19
|
+
<img src="./images/default-avatar.png" class="img-responsive img-circle user-img" alt="user_avatar">
|
20
|
+
</div>
|
21
|
+
<div class="media-body">
|
22
|
+
<div class="form-group required maxlen">
|
23
|
+
<label for="message" class="control-label required maxlen hidden"></label>
|
24
|
+
<textarea class="form-control required maxlen" placeholder="加入討論..." name="message" rows="2" cols="10" required="" maxlength="400"></textarea>
|
25
|
+
<div class="help-block">
|
26
|
+
<span>剩餘400個字</span>
|
27
|
+
</div>
|
28
|
+
<div class="help-block hidden">
|
29
|
+
<span></span></div>
|
30
|
+
</div>
|
31
|
+
<div class="form-actions clearfix">
|
32
|
+
<div class="pull-left">
|
33
|
+
<p class="notice">
|
34
|
+
<span>發佈即代表已知悉並詳閱「</span><a href="http://newsroom.icook.tw/terms" target="_blank">愛料理服務條款</a><span>」之規範。</span>
|
35
|
+
</p>
|
36
|
+
</div>
|
37
|
+
<button type="submit" class="btn btn-login pull-right">確定送出</button>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</fieldset>
|
42
|
+
</form>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
*/
|
47
|
+
|
48
|
+
$comments-title: $ic-brown !default;
|
49
|
+
$comments-border: $ic-brown !default;
|
50
|
+
$comments-title-small-text: #aaa !default;
|
51
|
+
$comments-content-text: #888 !default;
|
52
|
+
$comments-content-link: $orange !default;
|
53
|
+
$comments-content-timestamp: #aaa !default;
|
54
|
+
$comments-author: #5d4545 !default;
|
55
|
+
$comments-load-more: $ic-brown !default;
|
56
|
+
$comments-notice-text: #aa8f83 !default;
|
57
|
+
$comments-help-block-text: #888 !default;
|
58
|
+
$comments-help-block-notice: #333 !default;
|
59
|
+
$comments-form-border: #efede8 !default;
|
60
|
+
$comments-form-btn-bg: #53ade5 !default;
|
61
|
+
$comments-user-img-bg: #efede8 !default;
|
62
|
+
$comments-form-actions-text: #888 !default;
|
63
|
+
|
64
|
+
// comments
|
65
|
+
.comments {
|
66
|
+
h3 {
|
67
|
+
border-bottom: 1px solid $comments-border;
|
68
|
+
color: $comments-title;
|
69
|
+
font-size: 16px;
|
70
|
+
line-height: 20px;
|
71
|
+
margin-bottom: 18px;
|
72
|
+
margin-top: 0;
|
73
|
+
padding-bottom: 5px;
|
74
|
+
|
75
|
+
span {
|
76
|
+
color: $comments-title-small-text;
|
77
|
+
font-size: 14px;
|
78
|
+
font-weight: normal;
|
79
|
+
margin-left: 5px;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
textarea {
|
84
|
+
border-radius: 0;
|
85
|
+
margin-bottom: 20px;
|
86
|
+
}
|
87
|
+
|
88
|
+
.media-body {
|
89
|
+
display: table-cell;
|
90
|
+
overflow: visible;
|
91
|
+
width: 10000px;
|
92
|
+
}
|
93
|
+
|
94
|
+
.body {
|
95
|
+
margin-bottom: 20px;
|
96
|
+
min-height: 1em;
|
97
|
+
word-break: break-all;
|
98
|
+
}
|
99
|
+
|
100
|
+
.message {
|
101
|
+
color: $comments-content-text;
|
102
|
+
font-size: 15px;
|
103
|
+
line-height: 24px;
|
104
|
+
margin: 0 auto 15px;
|
105
|
+
|
106
|
+
p {
|
107
|
+
margin-bottom: 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
a {
|
111
|
+
color: $comments-content-link;
|
112
|
+
|
113
|
+
&:hover {
|
114
|
+
text-decoration: none;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.timestamp {
|
120
|
+
color: $comments-content-timestamp;
|
121
|
+
font-size: 13px;
|
122
|
+
}
|
123
|
+
|
124
|
+
.author {
|
125
|
+
line-height: 14px;
|
126
|
+
margin-bottom: 10px;
|
127
|
+
position: relative;
|
128
|
+
|
129
|
+
a:not(.badge) {
|
130
|
+
color: $comments-author;
|
131
|
+
font-size: 16px;
|
132
|
+
|
133
|
+
&:hover {
|
134
|
+
text-decoration: underline;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
.load-more {
|
140
|
+
@include icon("\e800");
|
141
|
+
|
142
|
+
color: $comments-load-more;
|
143
|
+
display: block;
|
144
|
+
font-size: 16px;
|
145
|
+
margin: 20px auto 0;
|
146
|
+
text-align: center;
|
147
|
+
width: 25%;
|
148
|
+
|
149
|
+
&::before {
|
150
|
+
font-family: "icookfont";
|
151
|
+
font-weight: bold;
|
152
|
+
margin-right: 10px;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
.recipe-comment-form {
|
158
|
+
.form-group {
|
159
|
+
margin-bottom: 0;
|
160
|
+
margin-left: 0;
|
161
|
+
margin-right: 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
[type="submit"] {
|
165
|
+
background-color: $comments-form-btn-bg;
|
166
|
+
position: absolute;
|
167
|
+
right: 0;
|
168
|
+
top: -20px;
|
169
|
+
width: 120px;
|
170
|
+
}
|
171
|
+
|
172
|
+
.notice {
|
173
|
+
font-size: 13px;
|
174
|
+
padding-left: 0;
|
175
|
+
text-align: left;
|
176
|
+
|
177
|
+
a {
|
178
|
+
color: $comments-notice-text;
|
179
|
+
text-decoration: underline;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
.recipe-comment-form,
|
185
|
+
.comments {
|
186
|
+
.user-img {
|
187
|
+
background-color: $comments-user-img-bg;
|
188
|
+
display: block;
|
189
|
+
height: 50px;
|
190
|
+
margin: auto;
|
191
|
+
width: 50px;
|
192
|
+
}
|
193
|
+
|
194
|
+
.form-actions {
|
195
|
+
border-bottom: 1px solid $comments-form-border;
|
196
|
+
padding-bottom: 20px;
|
197
|
+
position: relative;
|
198
|
+
|
199
|
+
p {
|
200
|
+
color: $comments-form-actions-text;
|
201
|
+
margin-bottom: 0;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
.help-block {
|
206
|
+
color: $comments-help-block-notice;
|
207
|
+
margin-bottom: 0;
|
208
|
+
margin-top: 0;
|
209
|
+
|
210
|
+
+ .help-block {
|
211
|
+
color: $comments-help-block-text;
|
212
|
+
font-size: 13px;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
> a {
|
217
|
+
display: block;
|
218
|
+
height: 50px;
|
219
|
+
width: 50px;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|