shoplazza-cli 0.0.1
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.
- package/.editorconfig +28 -0
- package/.prettierrc +9 -0
- package/LICENSE +21 -0
- package/README.md +208 -0
- package/bin/shoplazza +117 -0
- package/fixtures/assets/blog.scss +74 -0
- package/fixtures/assets/cart_modal.scss +450 -0
- package/fixtures/assets/collection_detail.js +234 -0
- package/fixtures/assets/collection_detail.scss +345 -0
- package/fixtures/assets/collection_list.scss +11 -0
- package/fixtures/assets/collection_slider.scss +169 -0
- package/fixtures/assets/feature_columns.scss +26 -0
- package/fixtures/assets/feature_product.scss +109 -0
- package/fixtures/assets/footer.js +58 -0
- package/fixtures/assets/footer.scss +337 -0
- package/fixtures/assets/four_images.scss +29 -0
- package/fixtures/assets/gallery.scss +55 -0
- package/fixtures/assets/header.js +178 -0
- package/fixtures/assets/header.scss +929 -0
- package/fixtures/assets/image_text.scss +72 -0
- package/fixtures/assets/logo_bar.scss +11 -0
- package/fixtures/assets/newsletter.scss +90 -0
- package/fixtures/assets/not_found.scss +39 -0
- package/fixtures/assets/page_detail.scss +16 -0
- package/fixtures/assets/pagination.scss +150 -0
- package/fixtures/assets/postcss.config.js +6 -0
- package/fixtures/assets/product_description.scss +88 -0
- package/fixtures/assets/product_detail.js +634 -0
- package/fixtures/assets/product_detail.scss +1106 -0
- package/fixtures/assets/relative_product.scss +45 -0
- package/fixtures/assets/reviews.scss +70 -0
- package/fixtures/assets/rich_text.scss +71 -0
- package/fixtures/assets/search.js +87 -0
- package/fixtures/assets/search.scss +67 -0
- package/fixtures/assets/slide.scss +51 -0
- package/fixtures/assets/slider.scss +141 -0
- package/fixtures/assets/theme.css +976 -0
- package/fixtures/assets/theme.scss +1100 -0
- package/fixtures/assets/three_images.scss +20 -0
- package/fixtures/assets/tools.scss +23 -0
- package/fixtures/assets/two_images.scss +24 -0
- package/fixtures/assets/video.scss +45 -0
- package/fixtures/assets/video_text.scss +63 -0
- package/fixtures/config/settings_data.json +107 -0
- package/fixtures/config/settings_schema.json +690 -0
- package/fixtures/layout/theme.liquid +76 -0
- package/fixtures/locales/ar-SA.json +212 -0
- package/fixtures/locales/de-DE.json +290 -0
- package/fixtures/locales/en-US.json +290 -0
- package/fixtures/locales/es-ES.json +290 -0
- package/fixtures/locales/fr-FR.json +290 -0
- package/fixtures/locales/id-ID.json +212 -0
- package/fixtures/locales/it-IT.json +212 -0
- package/fixtures/locales/ja-JP.json +289 -0
- package/fixtures/locales/ko-KR.json +290 -0
- package/fixtures/locales/nl-NL.json +290 -0
- package/fixtures/locales/pl-PL.json +290 -0
- package/fixtures/locales/pt-PT.json +212 -0
- package/fixtures/locales/ru-RU.json +212 -0
- package/fixtures/locales/th-TH.json +212 -0
- package/fixtures/locales/zh-CN.json +290 -0
- package/fixtures/locales/zh-TW.json +290 -0
- package/fixtures/sections/apps.liquid +47 -0
- package/fixtures/sections/blog.liquid +137 -0
- package/fixtures/sections/collection_desc.liquid +34 -0
- package/fixtures/sections/collection_detail.liquid +436 -0
- package/fixtures/sections/collection_image.liquid +104 -0
- package/fixtures/sections/collection_list.liquid +161 -0
- package/fixtures/sections/collection_name.liquid +34 -0
- package/fixtures/sections/collection_slider.liquid +330 -0
- package/fixtures/sections/feature_columns.liquid +275 -0
- package/fixtures/sections/feature_product.liquid +227 -0
- package/fixtures/sections/footer.liquid +488 -0
- package/fixtures/sections/four_images.liquid +160 -0
- package/fixtures/sections/gallery.liquid +258 -0
- package/fixtures/sections/header.liquid +1157 -0
- package/fixtures/sections/html.liquid +40 -0
- package/fixtures/sections/image_text.liquid +350 -0
- package/fixtures/sections/instagram_plus.liquid +393 -0
- package/fixtures/sections/logo_bar.liquid +183 -0
- package/fixtures/sections/newsletter.liquid +225 -0
- package/fixtures/sections/not_found.liquid +39 -0
- package/fixtures/sections/overlay_image.liquid +648 -0
- package/fixtures/sections/page_detail.liquid +39 -0
- package/fixtures/sections/photo_collection.liquid +433 -0
- package/fixtures/sections/product_description.liquid +208 -0
- package/fixtures/sections/product_detail.liquid +611 -0
- package/fixtures/sections/products.liquid +216 -0
- package/fixtures/sections/relative_product.liquid +121 -0
- package/fixtures/sections/reviews.liquid +115 -0
- package/fixtures/sections/rich_text.liquid +157 -0
- package/fixtures/sections/search.liquid +163 -0
- package/fixtures/sections/slide.liquid +719 -0
- package/fixtures/sections/three_images.liquid +157 -0
- package/fixtures/sections/two_images.liquid +125 -0
- package/fixtures/sections/video.liquid +95 -0
- package/fixtures/sections/video_text.liquid +128 -0
- package/fixtures/snippets/bgset.liquid +21 -0
- package/fixtures/snippets/card_title.liquid +8 -0
- package/fixtures/snippets/cart_modal.liquid +74 -0
- package/fixtures/snippets/collection.liquid +77 -0
- package/fixtures/snippets/collection_filter_modal.liquid +56 -0
- package/fixtures/snippets/default_image_4.liquid +14 -0
- package/fixtures/snippets/default_image_6.liquid +18 -0
- package/fixtures/snippets/default_image_8.liquid +23 -0
- package/fixtures/snippets/four_images_item.liquid +8 -0
- package/fixtures/snippets/header_ads.liquid +95 -0
- package/fixtures/snippets/hero_image.liquid +94 -0
- package/fixtures/snippets/icon_video_play_large.liquid +1 -0
- package/fixtures/snippets/icon_video_play_medium.liquid +4 -0
- package/fixtures/snippets/icon_video_play_small.liquid +4 -0
- package/fixtures/snippets/lazyimg.liquid +22 -0
- package/fixtures/snippets/lazyimg_art.liquid +36 -0
- package/fixtures/snippets/lazysizes.liquid +41 -0
- package/fixtures/snippets/link.liquid +2 -0
- package/fixtures/snippets/pagination.liquid +48 -0
- package/fixtures/snippets/product.liquid +126 -0
- package/fixtures/snippets/product_art_tpl.liquid +152 -0
- package/fixtures/snippets/product_info_body.liquid +337 -0
- package/fixtures/snippets/product_info_tpl.liquid +423 -0
- package/fixtures/snippets/product_label.liquid +46 -0
- package/fixtures/snippets/settings.liquid +295 -0
- package/fixtures/snippets/social-meta-tags.liquid +106 -0
- package/fixtures/snippets/video_html.liquid +11 -0
- package/fixtures/snippets/video_source.liquid +98 -0
- package/fixtures/snippets/video_thumb_icon.liquid +2 -0
- package/fixtures/templates/404.liquid +1 -0
- package/fixtures/templates/collection.liquid +92 -0
- package/fixtures/templates/index.liquid +206 -0
- package/fixtures/templates/page.liquid +1 -0
- package/fixtures/templates/product.liquid +99 -0
- package/fixtures/templates/search.liquid +1 -0
- package/jest.config.js +192 -0
- package/lib/__tests__/log.test.js +15 -0
- package/lib/__tests__/utils.test.js +69 -0
- package/lib/auth/__mocks__/getCode.js +7 -0
- package/lib/auth/__mocks__/index.js +0 -0
- package/lib/auth/child.js +23 -0
- package/lib/auth/getCode.js +35 -0
- package/lib/auth/index.js +91 -0
- package/lib/commands/__tests__/login.test.js +77 -0
- package/lib/commands/__tests__/logout.test.js +29 -0
- package/lib/commands/__tests__/store.test.js +44 -0
- package/lib/commands/__tests__/switch.test.js +45 -0
- package/lib/commands/login.js +99 -0
- package/lib/commands/logout.js +14 -0
- package/lib/commands/store.js +14 -0
- package/lib/commands/switch.js +52 -0
- package/lib/commands/theme/__tests__/delete.test.js +49 -0
- package/lib/commands/theme/__tests__/init.test.js +21 -0
- package/lib/commands/theme/__tests__/list.test.js +80 -0
- package/lib/commands/theme/__tests__/package.test.js +17 -0
- package/lib/commands/theme/__tests__/publish.test.js +61 -0
- package/lib/commands/theme/__tests__/pull.test.js +69 -0
- package/lib/commands/theme/__tests__/push.test.js +63 -0
- package/lib/commands/theme/__tests__/serve.test.js +107 -0
- package/lib/commands/theme/delete.js +64 -0
- package/lib/commands/theme/init.js +51 -0
- package/lib/commands/theme/list.js +28 -0
- package/lib/commands/theme/package.js +37 -0
- package/lib/commands/theme/publish.js +56 -0
- package/lib/commands/theme/pull.js +62 -0
- package/lib/commands/theme/push.js +106 -0
- package/lib/commands/theme/serve.js +153 -0
- package/lib/commands/theme/share.js +20 -0
- package/lib/commands/version.js +6 -0
- package/lib/config.js +5 -0
- package/lib/db/__mocks__/index.js +9 -0
- package/lib/db/__tests__/analytics.test.js +19 -0
- package/lib/db/__tests__/user.test.js +20 -0
- package/lib/db/analytics.js +48 -0
- package/lib/db/index.js +9 -0
- package/lib/db/user.js +68 -0
- package/lib/log.js +13 -0
- package/lib/openAPI/__mocks__/index.js +20 -0
- package/lib/openAPI/api.js +76 -0
- package/lib/openAPI/index.js +46 -0
- package/lib/report.js +37 -0
- package/lib/tracing.js +50 -0
- package/lib/utils.js +48 -0
- package/package.json +54 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import './tools.scss';
|
|
2
|
+
|
|
3
|
+
.relative_product {
|
|
4
|
+
@media ($pc) {
|
|
5
|
+
padding-right: 0;
|
|
6
|
+
padding-left: 0;
|
|
7
|
+
}
|
|
8
|
+
&__content {
|
|
9
|
+
margin: 0 -12px;
|
|
10
|
+
clear: both;
|
|
11
|
+
@media ($mobile) {
|
|
12
|
+
margin: 0 -7.5px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
&__change {
|
|
16
|
+
// position: absolute;
|
|
17
|
+
float: right;
|
|
18
|
+
right: 0;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
color: #666;
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
margin-bottom: 10px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
&__title {
|
|
26
|
+
font-size: 24px;
|
|
27
|
+
line-height: 29px;
|
|
28
|
+
margin-bottom: 56px;
|
|
29
|
+
margin-top: 68px;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
|
|
32
|
+
@media ($mobile) {
|
|
33
|
+
font-size: 18px;
|
|
34
|
+
margin-bottom: 28px;
|
|
35
|
+
margin-top: 28px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
html[dir='rtl'] .relative_product {
|
|
40
|
+
&__change {
|
|
41
|
+
left: 0;
|
|
42
|
+
right: unset;
|
|
43
|
+
float: left;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@import './tools.scss';
|
|
2
|
+
|
|
3
|
+
.reviews-no-tips {
|
|
4
|
+
padding: 70px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
.reviews-content-loading{
|
|
12
|
+
margin:100px auto;
|
|
13
|
+
}
|
|
14
|
+
.reviews-product-container{
|
|
15
|
+
overflow:auto;
|
|
16
|
+
overflow: -moz-scrollbars-none;
|
|
17
|
+
-ms-overflow-style: none;
|
|
18
|
+
&::-webkit-scrollbar {
|
|
19
|
+
width: 0 !important
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.reviews-product {
|
|
24
|
+
display: flex;
|
|
25
|
+
border-bottom: 1px solid #eee;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media(max-width: 768px){
|
|
29
|
+
.reviews-product{
|
|
30
|
+
width:300%;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
.review-product-item {
|
|
36
|
+
flex: 0 0 25%;
|
|
37
|
+
padding: 0 12px;
|
|
38
|
+
position:relative;
|
|
39
|
+
}
|
|
40
|
+
.review-product-item:after{content: "";position: absolute;width: 80%;height: 4px;bottom: 0;left: 10%;}
|
|
41
|
+
|
|
42
|
+
.review-product-item.on:after {
|
|
43
|
+
background: #FFC700;
|
|
44
|
+
}
|
|
45
|
+
.review-product-item .image-wrap {
|
|
46
|
+
height: 280px;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
background-size: cover;
|
|
49
|
+
background-position: center;
|
|
50
|
+
background-repeat: no-repeat;
|
|
51
|
+
}
|
|
52
|
+
.review-product-item h3 {
|
|
53
|
+
font-size: 20px;
|
|
54
|
+
font-weight:400;
|
|
55
|
+
line-height:28px;
|
|
56
|
+
text-align: center;
|
|
57
|
+
margin-top: 12px;
|
|
58
|
+
margin-bottom: 26px;
|
|
59
|
+
}
|
|
60
|
+
.reviews-content[data-product-reviews='0']{
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media ($pc) {
|
|
65
|
+
.reviews-product-container{
|
|
66
|
+
&.row{
|
|
67
|
+
margin: 0 px-to-rem(- $bootstrap_padding - $pc_row_padding / 2);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@import './tools.scss';
|
|
2
|
+
|
|
3
|
+
.rich-text {
|
|
4
|
+
margin: 0 auto;
|
|
5
|
+
|
|
6
|
+
@media ($mobile) {
|
|
7
|
+
padding-left: px-to-rem(15);
|
|
8
|
+
padding-right: px-to-rem(15);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__title {
|
|
12
|
+
color: #212121;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
text-align: center;
|
|
15
|
+
margin-bottom: px-to-rem(24);
|
|
16
|
+
|
|
17
|
+
&_large {
|
|
18
|
+
font-size: px-to-rem(48);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&_medium {
|
|
22
|
+
font-size: px-to-rem(36);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&_small {
|
|
26
|
+
font-size: px-to-rem(24);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media ($mobile) {
|
|
30
|
+
margin-bottom: px-to-rem(12);
|
|
31
|
+
|
|
32
|
+
&_large {
|
|
33
|
+
font-size: px-to-rem(30);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&_medium {
|
|
37
|
+
font-size: px-to-rem(24);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&_small {
|
|
41
|
+
font-size: px-to-rem(18);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__text {
|
|
47
|
+
&_large {
|
|
48
|
+
font-size: px-to-rem(18);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&_medium {
|
|
52
|
+
font-size: px-to-rem(16);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&_small {
|
|
56
|
+
font-size: px-to-rem(14);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media ($pc) {
|
|
61
|
+
&__width_large {
|
|
62
|
+
width: 100%;
|
|
63
|
+
max-width: px-to-rem(1080);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__width_medium {
|
|
67
|
+
width: 70.37%;
|
|
68
|
+
max-width: px-to-rem(760);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
(function ($) {
|
|
2
|
+
$.search_card = function (params) {
|
|
3
|
+
var $section = $('[data-section-id=' + params.id + ']');
|
|
4
|
+
var searchUrl = '/api/search?';
|
|
5
|
+
var page = 1, //分页码
|
|
6
|
+
limit = 12, // 每页数量
|
|
7
|
+
loading = false, // 请求数据标示
|
|
8
|
+
hasMore = true, // 是否还有数据
|
|
9
|
+
key = params.keyword; // 搜索关键词
|
|
10
|
+
|
|
11
|
+
// 获取数据,拼接html模板
|
|
12
|
+
var getData = function (param, reload, cb) {
|
|
13
|
+
// 请求数据
|
|
14
|
+
$(document).trigger('dj.common.load_more.loading.start', { sectionId: params.id });
|
|
15
|
+
$.get(param, function (res) {
|
|
16
|
+
if (res) {
|
|
17
|
+
var products = res.data.products || [];
|
|
18
|
+
products = products.filter(function (item) {
|
|
19
|
+
return item.published;
|
|
20
|
+
});
|
|
21
|
+
page++;
|
|
22
|
+
hasMore = res.data.has_more == 1 ? true : false;
|
|
23
|
+
var html = window.template('search-art-tpl', {
|
|
24
|
+
products: products,
|
|
25
|
+
});
|
|
26
|
+
var content = $section.find('.common__product-row');
|
|
27
|
+
// 如果reload,清空原来的列表,重置page数值
|
|
28
|
+
reload && content.empty() && (page = 1);
|
|
29
|
+
content.append(html);
|
|
30
|
+
// 更新数量和关键字的显示,根据count是否为0渲染不同dom
|
|
31
|
+
if (key && res.data.total > 0) {
|
|
32
|
+
$section.find('.search__result').html('<div class="search__result_not-empty">' + params.search_result + '</div>');
|
|
33
|
+
}
|
|
34
|
+
$section.find('.search__key').html('“' + decodeURIComponent(res.data.keyword) + '“');
|
|
35
|
+
$section.find('.search__count').html(res.data.total);
|
|
36
|
+
} else {
|
|
37
|
+
hasMore = false;
|
|
38
|
+
// console.log(res.msg);
|
|
39
|
+
}
|
|
40
|
+
if (hasMore) {
|
|
41
|
+
$(document).trigger('dj.common.load_more.loading.end', { sectionId: params.id });
|
|
42
|
+
} else {
|
|
43
|
+
$(document).trigger('dj.common.load_more.hide', { sectionId: params.id });
|
|
44
|
+
}
|
|
45
|
+
loading = false;
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var loadMore = function () {
|
|
50
|
+
if (!loading && hasMore) {
|
|
51
|
+
loading = true;
|
|
52
|
+
getData(
|
|
53
|
+
searchUrl +
|
|
54
|
+
$.toQuery({
|
|
55
|
+
type: "product",
|
|
56
|
+
page: page,
|
|
57
|
+
keyword: key,
|
|
58
|
+
limit: limit
|
|
59
|
+
}),
|
|
60
|
+
false
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// 监听滚动,请求数据
|
|
66
|
+
$(document).on(
|
|
67
|
+
'scroll',
|
|
68
|
+
$.throttle(
|
|
69
|
+
function () {
|
|
70
|
+
// 判断是否到底
|
|
71
|
+
if ($.isToPageEnd(params.id)) {
|
|
72
|
+
loadMore();
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
10,
|
|
76
|
+
50
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
// 监听loadmore点击,请求数据
|
|
81
|
+
$(document).on('dj.common.load_more.is_click', function (e, data) {
|
|
82
|
+
if (data.sectionId == params.id) {
|
|
83
|
+
loadMore();
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
})(window.jQuery);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@import './tools.scss';
|
|
2
|
+
.search {
|
|
3
|
+
@media ($mobile) {
|
|
4
|
+
padding-top: px-to-rem(50);
|
|
5
|
+
padding-bottom: px-to-rem(50);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
padding-bottom: px-to-rem(200);
|
|
9
|
+
|
|
10
|
+
&__title {
|
|
11
|
+
font-size: px-to-rem(44 / 2);
|
|
12
|
+
line-height: px-to-rem(53 / 2);
|
|
13
|
+
letter-spacing: 2px;
|
|
14
|
+
margin-bottom: px-to-rem(50 / 2);
|
|
15
|
+
|
|
16
|
+
@media ($pc) {
|
|
17
|
+
font-size: px-to-rem(34);
|
|
18
|
+
line-height: px-to-rem(40);
|
|
19
|
+
letter-spacing: 1px;
|
|
20
|
+
margin-bottom: px-to-rem(53);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__input {
|
|
25
|
+
border: 1px solid rgba(215, 220, 222, 1);
|
|
26
|
+
font-size: px-to-rem(14);
|
|
27
|
+
color: rgba(0, 0, 0, 1);
|
|
28
|
+
line-height: px-to-rem(17);
|
|
29
|
+
height: px-to-rem(88 / 2);
|
|
30
|
+
margin-bottom: px-to-rem(50 / 2);
|
|
31
|
+
|
|
32
|
+
@media ($pc) {
|
|
33
|
+
margin-bottom: px-to-rem(0);
|
|
34
|
+
height: px-to-rem(50);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__btn {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: px-to-rem(88 / 2);
|
|
41
|
+
font-size: px-to-rem(30 / 2);
|
|
42
|
+
|
|
43
|
+
@media ($pc) {
|
|
44
|
+
height: px-to-rem(50);
|
|
45
|
+
width: px-to-rem(120);
|
|
46
|
+
margin-left: px-to-rem(-20);
|
|
47
|
+
font-size: px-to-rem(18);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__result {
|
|
52
|
+
font-size: px-to-rem(14);
|
|
53
|
+
color: rgba(119, 119, 119, 1);
|
|
54
|
+
line-height: px-to-rem(17);
|
|
55
|
+
margin-top: px-to-rem(25);
|
|
56
|
+
margin-bottom: px-to-rem(50);
|
|
57
|
+
|
|
58
|
+
@media ($pc) {
|
|
59
|
+
font-size: px-to-rem(18);
|
|
60
|
+
margin-bottom: px-to-rem(56);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__key {
|
|
65
|
+
color: #212121;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import './tools.scss';
|
|
2
|
+
|
|
3
|
+
.slide {
|
|
4
|
+
&__screen {
|
|
5
|
+
background: #f7f7f7;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__img-wrapper {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
outline: 0;
|
|
11
|
+
|
|
12
|
+
.slide__img {
|
|
13
|
+
width: 100%;
|
|
14
|
+
object-fit: cover;
|
|
15
|
+
&_auto {
|
|
16
|
+
object-fit: contain;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__bottom-margin {
|
|
22
|
+
margin-bottom: px-to-rem(40);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.swiper-container {
|
|
26
|
+
.swiper-slide {
|
|
27
|
+
width: 100% !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.swiper-pagination {
|
|
31
|
+
// bottom: px-to-rem(34);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.swiper-pagination-bullet {
|
|
35
|
+
margin: 0 px-to-rem(6);
|
|
36
|
+
width: px-to-rem(11);
|
|
37
|
+
height: px-to-rem(11);
|
|
38
|
+
background: transparent;
|
|
39
|
+
opacity: 1;
|
|
40
|
+
border: 2px solid white;
|
|
41
|
+
|
|
42
|
+
@media ($pc) {
|
|
43
|
+
border: 1px solid white;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.swiper-pagination-bullet-active {
|
|
48
|
+
background: #fff;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
@import './tools.scss';
|
|
2
|
+
|
|
3
|
+
/* slider starts */
|
|
4
|
+
.sep-slider {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sep-slider > div {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sep-slider > div:first-child {
|
|
14
|
+
display: block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sep-slider_loaded {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sep-loaded-slider {
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sep-loaded-slider__wrapper {
|
|
28
|
+
display: flex;
|
|
29
|
+
width: 300%;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
transform: translate(-33.3333%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sep-loaded-slider__item {
|
|
35
|
+
width: 100%;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
position: relative;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sep-loaded-slider__item img {
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sep-loaded-slider__item[data-slider-idx] {
|
|
45
|
+
height: 1px;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sep-loaded-slider__item.sep-loaded-slider_item_transiting[data-slider-idx] {
|
|
50
|
+
height: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sep-loaded-slider__bullets {
|
|
54
|
+
position: absolute;
|
|
55
|
+
z-index: 2;
|
|
56
|
+
bottom: 10px;
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sep-loaded-slider__bullet {
|
|
63
|
+
margin: 0 px-to-rem(6);
|
|
64
|
+
width: px-to-rem(11);
|
|
65
|
+
height: px-to-rem(11);
|
|
66
|
+
opacity: 1;
|
|
67
|
+
border: 2px solid white;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sep-loaded-slider__bullet_active {
|
|
72
|
+
background-color: #fff;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sep-loaded-slider__buttons {
|
|
76
|
+
position: absolute;
|
|
77
|
+
left: 0;
|
|
78
|
+
top: 50%;
|
|
79
|
+
z-index: 2;
|
|
80
|
+
display: flex;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: px-to-rem(50);
|
|
83
|
+
line-height: px-to-rem(50);
|
|
84
|
+
margin-top: px-to-rem(-25);
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.sep-loaded-slider__button {
|
|
89
|
+
color: #000;
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
width: px-to-rem(50);
|
|
92
|
+
text-align: center;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
color: #000;
|
|
95
|
+
background-color: #fff;
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
position: absolute;
|
|
98
|
+
left: 0;
|
|
99
|
+
top: 50%;
|
|
100
|
+
z-index: 2;
|
|
101
|
+
height: px-to-rem(50);
|
|
102
|
+
line-height: px-to-rem(50);
|
|
103
|
+
margin-top: px-to-rem(-25);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.sep-loaded-slider__button-next,
|
|
107
|
+
html[dir='rtl'] .sep-loaded-slider__button-prev {
|
|
108
|
+
left: auto;
|
|
109
|
+
right: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sep-loaded-slider__button-prev,
|
|
113
|
+
html[dir='rtl'] .sep-loaded-slider__button-next {
|
|
114
|
+
left: 0;
|
|
115
|
+
right: auto;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sep-loaded-slider__button:hover {
|
|
119
|
+
background-color: #222;
|
|
120
|
+
color: #fff;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.sep-loaded-slider__button-prev_disabled,
|
|
124
|
+
.sep-loaded-slider__button-next_disabled {
|
|
125
|
+
opacity: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sep-loaded-slider_no-buttons .sep-loaded-slider__buttons {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.sep-loaded-slider_no-bullets .sep-loaded-slider__bullets {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* rtl support */
|
|
137
|
+
html[dir='rtl'] .sep-loaded-slider__wrapper {
|
|
138
|
+
transform: translate(33.3333%);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* slider ends */
|