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,34 @@
1
+ // -----------------------------------
2
+ // Brand sidebar widgets - pr video
3
+ // -----------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 06_brand_sidebar_widgets
8
+ title: Pr video
9
+ name: pr_video
10
+ ---
11
+
12
+ <div class="row">
13
+ <div class="col-xs-12 col-sm-6">
14
+ <div class="inner-block widget">
15
+ <div class="pr-video">
16
+ <h4 class="title new">最新影音</h4>
17
+ <div>
18
+ <iframe width="480" height="270" src="https://www.youtube.com/embed/videoseries?list=PLR0a51zoW3m5-QNgtFeRmv7Rv2s9tVGPv" frameborder="0" allowfullscreen=""></iframe>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+
25
+ */
26
+
27
+ .pr-video {
28
+ iframe {
29
+ height: 185px;
30
+ margin: 0 auto;
31
+ width: 100%;
32
+ }
33
+ }
34
+
@@ -0,0 +1,119 @@
1
+ @import "compass/typography/text/ellipsis";
2
+
3
+ // ----------------------------
4
+ // Widgets - feature events
5
+ // ----------------------------
6
+
7
+ /*doc
8
+ ---
9
+ parent: 03_widgets
10
+ title: Feature events
11
+ name: 2_feature_events
12
+ ---
13
+
14
+ <div class="row">
15
+ <div class="col-xs-12 col-md-9">
16
+ <div class="feature-events">
17
+ <ul>
18
+ <li>
19
+ <a href="#">
20
+ <span>維力「醬心獨具,好味料理!」炸醬食譜募集</span>
21
+ <span class="pull-right">2015/05/07 截止</span>
22
+ </a>
23
+ </li>
24
+ <li>
25
+ <a href="#">
26
+ <span>泰山親子料理趣,上傳親子食譜拿大獎!</span>
27
+ <span class="pull-right">2015/05/31 截止</span>
28
+ </a>
29
+ </li>
30
+ <li>
31
+ <a href="#">
32
+ <span>麵穿越 不思議 ! 懸賞古早味麵食變身王</span>
33
+ <span class="pull-right">2015/06/07 截止</span>
34
+ </a>
35
+ </li>
36
+ <li>
37
+ <a href="#">
38
+ <span>暖心深夜食堂食譜募集,萬元鍋具等妳帶回家</span>
39
+ <span class="pull-right">募集結束</span>
40
+ </a>
41
+ </li>
42
+ <li>
43
+ <a href="#">
44
+ <span>味丹真麵堂料理募集,把LC鑄鐵鍋帶回家!</span>
45
+ <span class="pull-right">募集結束</span>
46
+ </a>
47
+ </li>
48
+ <li>
49
+ <a href="#">
50
+ <span>淬釀開運食譜大募集 商品索取試用中!</span>
51
+ <span class="pull-right">募集結束</span>
52
+ </a>
53
+ </li>
54
+ </ul>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ */
59
+
60
+ $feature-event-link: #888 !default;
61
+ $feature-event-link-bg: #fffcf0 !default;
62
+ $feature-event-link-hover: $ic-brown !default;
63
+ $feature-event-deadline: $orange !default;
64
+
65
+ .feature-events {
66
+ ul,
67
+ li {
68
+ list-style-type: none;
69
+ }
70
+
71
+ ul {
72
+ padding-left: 0;
73
+ }
74
+
75
+ li {
76
+ a {
77
+ color: $feature-event-link;
78
+ display: block;
79
+ font-size: 15px;
80
+ padding: 10px 15px 5px;
81
+ }
82
+
83
+ + li {
84
+ border-top: 1px solid $basic-border;
85
+ }
86
+
87
+ &:hover {
88
+ background-color: $feature-event-link-bg;
89
+
90
+ a {
91
+ color: $feature-event-link-hover;
92
+ text-decoration: none;
93
+ }
94
+ }
95
+
96
+ &.deadline {
97
+ span.pull-right {
98
+ color: $feature-event-deadline;
99
+ }
100
+ }
101
+
102
+ span {
103
+ line-height: 15px;
104
+
105
+ &:not(.pull-right) {
106
+ @include ellipsis;
107
+
108
+ display: inline-block;
109
+ width: 75%;
110
+ }
111
+
112
+ &.pull-right {
113
+ font-size: 13px;
114
+ margin-top: 2px;
115
+ }
116
+ }
117
+ }
118
+ }
119
+
@@ -0,0 +1,144 @@
1
+ @import "compass/typography/text/ellipsis";
2
+
3
+ // ----------------------------
4
+ // Widgets - feature slides
5
+ // ----------------------------
6
+
7
+ /*doc
8
+ ---
9
+ parent: 03_widgets
10
+ title: Feature slides
11
+ name: 1_feature_slides
12
+ ---
13
+
14
+ <div class="row">
15
+ <div class="col-md-9">
16
+ <div class="feature-slides">
17
+ <ul class="pictures pull-left">
18
+ <li class="current" id="recipe_slide_0_pic">
19
+ <a href="#"><img alt="5分鐘酒蒸蛤蜊" src="/images/recipe-default.png"></a>
20
+
21
+ </li>
22
+ <li class="hidden" id="recipe_slide_1_pic">
23
+ <a href="#"><img alt="蔬菜煎餅" src="/images/recipe-default.png"></a>
24
+ </li>
25
+ <li class="hidden" id="recipe_slide_2_pic">
26
+ <a href="#"><img alt="蕃茄蔬菜麵" src="/images/recipe-default.png"></a>
27
+ </li>
28
+ <li class="hidden" id="recipe_slide_3_pic">
29
+ <a href="#"><img alt="鮮蝦水果沙拉" src="/images/recipe-default.png"></a>
30
+ </li>
31
+ <li class="hidden" id="recipe_slide_4_pic">
32
+ <a href="#"><img alt="自製芝麻油沙拉酱" src="/images/recipe-default.png"></a>
33
+ </li>
34
+ </ul>
35
+ <div class="featured-recipe-links">
36
+ <div class="slides">
37
+ <ul class="slide-tite">
38
+ <li id="recipe_slide_0" class="current">
39
+ <a href="#"><span>5分鐘酒蒸蛤蜊</span></a>
40
+ </li>
41
+ <li id="recipe_slide_1" class="">
42
+ <a href="#"><span>蔬菜煎餅</span></a>
43
+ </li>
44
+ <li id="recipe_slide_2" class="">
45
+ <a href="#"><span>蕃茄蔬菜麵</span></a>
46
+ </li>
47
+ <li id="recipe_slide_3" class="">
48
+ <a href="#"><span>鮮蝦水果沙拉</span></a>
49
+ </li>
50
+ <li id="recipe_slide_4" class="">
51
+ <a href="#"><span>自製芝麻油沙拉酱</span></a>
52
+ </li>
53
+ </ul>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ */
60
+
61
+ $featured-recipe-link: #888 !default;
62
+ $featured-recipe-link-current: #ac8c85 !default;
63
+
64
+ .feature-slides {
65
+ padding-top: 5px;
66
+ overflow: hidden;
67
+
68
+ ul,
69
+ li {
70
+ list-style-type: none;
71
+ }
72
+
73
+ ul {
74
+ padding-left: 0;
75
+ }
76
+
77
+ .pictures {
78
+ max-height: 210px;
79
+ overflow: hidden;
80
+ width: 50%;
81
+
82
+ img {
83
+ width: 100%;
84
+ }
85
+ }
86
+
87
+ img {
88
+ width: 100%;
89
+ }
90
+ }
91
+
92
+ .featured-recipe-links {
93
+ a {
94
+ @include ellipsis;
95
+
96
+ color: $featured-recipe-link;
97
+ display: block;
98
+ font-size: 16px;
99
+ height: 48px;
100
+ line-height: 1.1;
101
+ padding: 15px 0;
102
+ text-decoration: none;
103
+ width: 100%;
104
+ }
105
+
106
+ li {
107
+ + li a {
108
+ border-top: 1px solid $basic-border;
109
+ }
110
+
111
+ &:first-child a {
112
+ height: 33px;
113
+ padding-top: 0;
114
+ }
115
+
116
+ &:last-child a {
117
+ height: 33px;
118
+ padding-bottom: 0;
119
+ }
120
+
121
+ &.current a,
122
+ &:hover a {
123
+ @include icon("\f0da");
124
+
125
+ color: $ic-brown;
126
+ text-decoration: none;
127
+
128
+ &::before {
129
+ color: $featured-recipe-link-current;
130
+ font-size: 18px;
131
+ width: 10px;
132
+ }
133
+ }
134
+ }
135
+
136
+ .slides {
137
+ float: right;
138
+ width: 47.4%;
139
+
140
+ ul {
141
+ list-style: none;
142
+ }
143
+ }
144
+ }
@@ -0,0 +1,144 @@
1
+ // -------------------------------
2
+ // Widgets - feature feeds / blog
3
+ // -------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 03_widgets
8
+ title: Feature feeds - blog feeds
9
+ name: 3_blog_feeds
10
+ ---
11
+
12
+ <div class="row">
13
+ <div class="col-xs-12">
14
+ <div class="channel-feeds inner-block">
15
+ <h3 class="feeds-title">愛料理生活誌<a class="link-to-more pull-right" href="#" target="_blank">更多文章</a>
16
+ </h3>
17
+ <div id="rss-viewer" class="full rss-viewer">
18
+ <ul class="clearfix">
19
+ <li>
20
+ <div class="feed">
21
+ <a href="#" title="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹">
22
+ <span class="img">
23
+ <img alt="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹" src="/images/recipe-default.png">
24
+ </span>
25
+ <span>【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹</span>
26
+ </a>
27
+ </div>
28
+ </li>
29
+ <li>
30
+ <div class="feed">
31
+ <a href="#" title="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹">
32
+ <span class="img">
33
+ <img alt="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹" src="/images/recipe-default.png"
34
+ ></span>
35
+ <span>【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹</span>
36
+ </a>
37
+ </div>
38
+ </li>
39
+ <li>
40
+ <div class="feed">
41
+ <a href="#" title="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹">
42
+ <span class="img">
43
+ <img alt="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹" src="/images/recipe-default.png">
44
+ </span>
45
+ <span>【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹</span>
46
+ </a>
47
+ </div>
48
+ </li>
49
+ <li>
50
+ <div class="feed">
51
+ <a href="#" title="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹">
52
+ <span class="img">
53
+ <img alt="【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹" src="/images/recipe-default.png">
54
+ </span>
55
+ <span>【秋之蟹逅】輕鬆吃蟹-挑蟹、殺蟹、煮蟹</span>
56
+ </a>
57
+ </div>
58
+ </li>
59
+ </ul>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ */
65
+
66
+ $recipe-channel-feeds-title: $ic-brown !default;
67
+ $recipes-feature-spot-border: $basic-border !default;
68
+ $recipes-feature-spot-link-to-more: #888 !default;
69
+ $recipes-feature-spot-link-to-more-icon: $ic-brown !default;
70
+ $recipes-feature-spot-link-to-more-hover: $orange !default;
71
+
72
+ .channel-feeds {
73
+ h3 {
74
+ border-bottom: 1px solid $recipe-channel-feeds-title;
75
+ color: $recipe-channel-feeds-title;
76
+ font-size: 16px;
77
+ margin-bottom: 15px;
78
+ margin-top: 0;
79
+ padding-bottom: 15px;
80
+ }
81
+
82
+ ul {
83
+ margin-bottom: 0;
84
+ padding-left: 0;
85
+ }
86
+
87
+ li {
88
+ float: left;
89
+ list-style-type: none;
90
+ // max-width: 172px;
91
+ width: 24%;
92
+
93
+ + li {
94
+ margin-left: 1.33%;
95
+ }
96
+ }
97
+
98
+ a,
99
+ span {
100
+ color: $recipe-channel-feeds-title;
101
+ display: block;
102
+ }
103
+
104
+ .img {
105
+ height: 110px;
106
+ margin-bottom: 10px;
107
+ overflow: hidden;
108
+
109
+ img {
110
+ width: 100%;
111
+ }
112
+ }
113
+
114
+ span:not(.img) {
115
+ display: block;
116
+ height: 2.8em;
117
+ overflow: hidden;
118
+ }
119
+
120
+ .ie & li {
121
+ width: 23.8%;
122
+ }
123
+ }
124
+
125
+ .link-to-more {
126
+ @include icon-b("\f0a9");
127
+
128
+ color: $recipes-feature-spot-link-to-more;
129
+ font-size: 14px;
130
+
131
+ &::after {
132
+ color: $recipes-feature-spot-link-to-more-icon;
133
+ }
134
+
135
+ &:hover {
136
+ text-decoration: none;
137
+ }
138
+
139
+ &:hover,
140
+ &:hover::after {
141
+ color: $recipes-feature-spot-link-to-more-hover;
142
+ }
143
+ }
144
+
@@ -0,0 +1,143 @@
1
+ // -------------------------------
2
+ // Widgets - feature feeds / tv
3
+ // -------------------------------
4
+
5
+ /*doc
6
+ ---
7
+ parent: 03_widgets
8
+ title: Feature feeds - tv feeds
9
+ name: 4_tv_feeds
10
+ ---
11
+
12
+ <div class="row">
13
+ <div class="col-xs-12">
14
+ <div class="channel-feeds inner-block">
15
+ <h3>愛料理 TV <a target="_blank" class="link-to-more pull-right" href="https://tv.icook.tw/">更多影音</a>
16
+ </h3>
17
+ <div id="rss-viewer" class="full rss-viewer">
18
+ <ul class="clearfix">
19
+ <li>
20
+ <a title="繽紛水果氣泡水" class="video" target="_blank" href="#">
21
+ <div>
22
+ <div class="length">0:43</div>
23
+ <span class="img">
24
+ <img src="/images/recipe-default.png" alt="">
25
+ </span>
26
+ <div class="mask"></div>
27
+ </div>
28
+ <span>酸甜水果滋味,最夯消暑飲品!</span>
29
+ </a>
30
+ </li>
31
+ <li>
32
+ <a title="涼拌小黃瓜" class="video" target="_blank" href="#">
33
+ <div>
34
+ <div class="length">1:12</div>
35
+ <span class="img">
36
+ <img src="/images/recipe-default.png" alt="">
37
+ </span>
38
+ <div class="mask"></div>
39
+ </div>
40
+ <span>炎炎夏日開胃首選,拌一拌就完成!</span>
41
+ </a>
42
+ </li>
43
+ <li>
44
+ <a title="巧克力雪糕" class="video" target="_blank" href="#">
45
+ <div>
46
+ <div class="length">4:45</div>
47
+ <span class="img">
48
+ <img src="/images/recipe-default.png" alt="">
49
+ </span>
50
+ <div class="mask"></div>
51
+ </div>
52
+ <span>不需冰淇淋機!香甜綿密的迷人口感</span>
53
+ </a>
54
+ </li>
55
+ <li>
56
+ <a title="芋圓地瓜圓" class="video" target="_blank" href="#">
57
+ <div>
58
+ <div class="length">8:44</div>
59
+ <span class="img">
60
+ <img src="/images/recipe-default.png" alt="">
61
+ </span>
62
+ <div class="mask"></div>
63
+ </div>
64
+ <span>冰品必備配料!手作Q彈安心吃</span>
65
+ </a>
66
+ </li>
67
+ </ul>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </div>
72
+
73
+ */
74
+
75
+ $recipe-channel-feeds-tv-mask-bg: rgba(86, 78, 73, 0.4) !default;
76
+ $recipe-channel-feeds-tv-mask-icon: $white !default;
77
+ $recipe-channel-feeds-tv-length-bg: rgba(86, 78, 73, 0.8) !default;
78
+ $recipe-channel-feeds-tv-length-text: $white !default;
79
+
80
+ .channel-feeds {
81
+ .mask {
82
+ @include icon("\f04b");
83
+ background-color: $recipe-channel-feeds-tv-mask-bg;
84
+ display: none;
85
+ height: 100%;
86
+ left: 0;
87
+ position: absolute;
88
+ text-align: center;
89
+ top: 0;
90
+ width: 100%;
91
+ z-index: 2;
92
+
93
+ &::before {
94
+ border: 2px solid $recipe-channel-feeds-tv-mask-icon;
95
+ border-radius: 50%;
96
+ color: $recipe-channel-feeds-tv-mask-icon;
97
+ font-size: 20px;
98
+ font-weight: lighter;
99
+ height: 40px;
100
+ line-height: 36px;
101
+ margin-right: 0;
102
+ padding-left: 3px;
103
+ position: relative;
104
+ top: 34%;
105
+ width: 40px;
106
+ }
107
+ }
108
+
109
+ .length {
110
+ background-color: $recipe-channel-feeds-tv-length-bg;
111
+ bottom: 10px;
112
+ color: $recipe-channel-feeds-tv-length-text;
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
+ .video {
122
+ > div {
123
+ overflow: visible;
124
+ position: relative;
125
+ }
126
+
127
+ &:hover {
128
+ text-decoration: none;
129
+
130
+ .mask {
131
+ display: block;
132
+ }
133
+ }
134
+
135
+ span:not(.img) {
136
+ @include ellipsis;
137
+
138
+ height: 2.8em;
139
+ white-space: normal;
140
+ width: 100%;
141
+ }
142
+ }
143
+ }