diff --git a/packages/Webkul/Product/src/Product/Review.php b/packages/Webkul/Product/src/Product/Review.php
index 72a4d910b..a092ec606 100644
--- a/packages/Webkul/Product/src/Product/Review.php
+++ b/packages/Webkul/Product/src/Product/Review.php
@@ -67,15 +67,15 @@ class Review extends AbstractProduct
*/
public function getPercentageRating($product)
{
- $reviews['five'] = $product->reviews()->where('rating', 5)->where('status',1)->count();
+ $reviews['five'] = $product->reviews()->where('rating', 5)->where('status','approved')->count();
- $reviews['four'] = $product->reviews()->where('rating', 4)->where('status',1)->count();
+ $reviews['four'] = $product->reviews()->where('rating', 4)->where('status','approved')->count();
- $reviews['three'] = $product->reviews()->where('rating', 3)->where('status',1)->count();
+ $reviews['three'] = $product->reviews()->where('rating', 3)->where('status','approved')->count();
- $reviews['two'] = $product->reviews()->where('rating', 2)->where('status',1)->count();
+ $reviews['two'] = $product->reviews()->where('rating', 2)->where('status','approved')->count();
- $reviews['one'] = $product->reviews()->where('rating', 1)->where('status',1)->count();
+ $reviews['one'] = $product->reviews()->where('rating', 1)->where('status','approved')->count();
foreach($reviews as $key=>$review){
@@ -102,6 +102,7 @@ class Review extends AbstractProduct
$link_array = explode('/',$link);
$last=end($link_array);
$itemPerPage = 1*5;
- return $product->reviews()->where('status',1)->paginate($itemPerPage);
+
+ return $product->reviews()->where('status','approved')->paginate($itemPerPage);
}
}
\ No newline at end of file
diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/app.scss b/packages/Webkul/Shop/src/Resources/assets/sass/app.scss
index 0406160eb..d27d36255 100644
--- a/packages/Webkul/Shop/src/Resources/assets/sass/app.scss
+++ b/packages/Webkul/Shop/src/Resources/assets/sass/app.scss
@@ -753,6 +753,10 @@ section.slider-block {
display: none;
}
+ .responsive-layred-filter{
+ display: none;
+ }
+
.bottom-toolbar {
display: block;
margin-top: 40px;
diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/components.scss b/packages/Webkul/Shop/src/Resources/assets/sass/components.scss
index 079db9b39..939075c42 100644
--- a/packages/Webkul/Shop/src/Resources/assets/sass/components.scss
+++ b/packages/Webkul/Shop/src/Resources/assets/sass/components.scss
@@ -2,7 +2,7 @@
.product-grid-4 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
- grid-column-gap: 45px;
+ grid-column-gap: 40px;
grid-row-gap: 15px;
grid-auto-rows: auto;
}
@@ -17,25 +17,31 @@
@media only screen and (max-width: 854px) {
.product-grid-4 {
- grid-template-columns: 30% 30% 30%;
+ grid-template-columns: 29.5% 29.5% 29.5%;
grid-column-gap: 35px;
}
}
-@media only screen and (max-width: 550px) {
+@media only screen and (max-width: 653px) {
.product-grid-4 {
grid-template-columns: 48.5% 48.5%;
grid-column-gap: 17px;
}
+}
+@media only screen and (max-width: 425px) {
.product-card {
+ font-size: 90%;
- .cart-fav-seg {
- font-size: 0.71rem;
- justify-content: space-between;
+ .btn.btn-md {
+ padding: 5px;
}
}
+ .product-grid-4 {
+ grid-template-columns: 48.5% 48.5%;
+ grid-column-gap: 10px;
+ }
}
.product-card {
@@ -109,89 +115,3 @@
}
}
-//layered filter wrapper styles
-.layered-filter-wrapper {
- width: 25%;
- float: left;
- padding-right: 20px;
- min-height: 1px;
-
- .filter-title {
- border-bottom: 1px solid $border-color;
- color: $font-color;
- padding: 10px 0;
- }
-
- .filter-attributes {
- .filter-attributes-item {
- border-bottom: 1px solid $border-color;
- padding-bottom: 10px;
-
- .filter-attributes-title {
- padding: 10px 40px 0 10px;
- color: #5E5E5E;
- cursor: pointer;
- position: relative;
-
- .remove-filter-link {
- font-weight: 400;
- color: $brand-color;
- margin-right: 10px;
- }
-
- .icon {
- background-image: url('../images/arrow-down.svg') !important;
- width: 10px;
- height: 10px;
- position: absolute;
- right: 15px;
- top: 14px;
- }
- }
-
- .filter-attributes-content {
- padding: 10px;
- display: none;
-
- ol.items {
- padding: 0;
- margin: 0;
- list-style: none none;
-
- li.item {
- padding: 8px 0;
- color: #5E5E5E;
-
- .checkbox {
- margin: 0;
-
- .checkbox-view {
- height: 16px;
- width: 16px;
- background-image: url("../images/checkbox.svg");
- }
-
- input:checked + .checkbox-view {
- background-image: url("../images/checkbox-checked.svg");
- }
- }
- }
- }
-
- .price-range-wrapper {
- margin-top: 21px;
- }
- }
-
- &.active {
- .filter-attributes-content {
- display: block;
- }
-
- .filter-attributes-title .icon {
- background-image: url('../images//arrow-up.svg') !important;
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/icons.scss b/packages/Webkul/Shop/src/Resources/assets/sass/icons.scss
index f94d127a9..468ec6158 100644
--- a/packages/Webkul/Shop/src/Resources/assets/sass/icons.scss
+++ b/packages/Webkul/Shop/src/Resources/assets/sass/icons.scss
@@ -33,14 +33,14 @@
.sort-icon {
background-image:URL('../images/icon-sort.svg');
- width: 24px;
- height: 24px;
+ width: 32px;
+ height: 32px;
}
.filter-icon {
background-image:URL('../images/icon-filter.svg');
- width: 24px;
- height: 24px;
+ width: 32px;
+ height: 32px;
}
.whishlist-icon {
diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/override.scss b/packages/Webkul/Shop/src/Resources/assets/sass/override.scss
index 1c1477307..b3aac40d3 100644
--- a/packages/Webkul/Shop/src/Resources/assets/sass/override.scss
+++ b/packages/Webkul/Shop/src/Resources/assets/sass/override.scss
@@ -175,9 +175,19 @@ body {
}
}
}
+
+ .reponsive-sorter-limiter {
+ display: none;
+
+ select {
+ background: #FFFFFF;
+ border: 1px solid #C7C7C7;
+ border-radius: 3px;
+ color: #242424;
+ padding: 10px;
+ }
+ }
}
-
-
}
}
@@ -193,4 +203,100 @@ body {
// .product-grid-3 {
// grid-template-columns: 47.5% 47.5%;
// }
-// }
\ No newline at end of file
+// }
+
+
+
+//layered filter wrapper styles
+.layered-filter-wrapper {
+ width: 25%;
+ float: left;
+ padding-right: 20px;
+ min-height: 1px;
+
+ .filter-title {
+ border-bottom: 1px solid $border-color;
+ color: $font-color;
+ padding: 10px 0;
+ }
+
+ .filter-attributes {
+ .filter-attributes-item {
+ border-bottom: 1px solid $border-color;
+ padding-bottom: 10px;
+
+ .filter-attributes-title {
+ padding: 10px 40px 0 10px;
+ color: #5E5E5E;
+ cursor: pointer;
+ position: relative;
+
+ .remove-filter-link {
+ font-weight: 400;
+ color: $brand-color;
+ margin-right: 10px;
+ }
+
+ .icon {
+ background-image: url('../images/arrow-down.svg') !important;
+ width: 10px;
+ height: 10px;
+ position: absolute;
+ right: 15px;
+ top: 14px;
+ }
+ }
+
+ .filter-attributes-content {
+ padding: 10px;
+ display: none;
+
+ ol.items {
+ padding: 0;
+ margin: 0;
+ list-style: none none;
+
+ li.item {
+ padding: 8px 0;
+ color: #5E5E5E;
+
+ .checkbox {
+ margin: 0;
+
+ .checkbox-view {
+ height: 16px;
+ width: 16px;
+ background-image: url("../images/checkbox.svg");
+ }
+
+ input:checked + .checkbox-view {
+ background-image: url("../images/checkbox-checked.svg");
+ }
+ }
+ }
+ }
+
+ .price-range-wrapper {
+ margin-top: 21px;
+ }
+ }
+
+ &.active {
+ .filter-attributes-content {
+ display: block;
+ }
+
+ .filter-attributes-title .icon {
+ background-image: url('../images//arrow-up.svg') !important;
+ }
+ }
+ }
+ }
+}
+
+.responsive-layred-filter {
+ @extend .layered-filter-wrapper;
+ width: 100%;
+ float: none;
+ padding-right: 0px;
+}
\ No newline at end of file
diff --git a/packages/Webkul/Shop/src/Resources/views/home/new-products.blade.php b/packages/Webkul/Shop/src/Resources/views/home/new-products.blade.php
index bd1d00ef2..84eefb109 100644
--- a/packages/Webkul/Shop/src/Resources/views/home/new-products.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/home/new-products.blade.php
@@ -4,7 +4,7 @@
_____
-
+

@@ -21,7 +21,7 @@
-
+
@@ -42,7 +42,7 @@
-
+
@@ -63,7 +63,7 @@
-
+
@@ -84,7 +84,7 @@
-
+
diff --git a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php
index 5fad9a103..50be3f6b3 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php
@@ -53,3 +53,49 @@
@stop
+
+@push('scripts')
+
+@endpush
+
diff --git a/packages/Webkul/Shop/src/Resources/views/products/list/toolbar.blade.php b/packages/Webkul/Shop/src/Resources/views/products/list/toolbar.blade.php
index f885024ba..3a20a086a 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/list/toolbar.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/list/toolbar.blade.php
@@ -77,7 +77,7 @@
-
+
@@ -113,4 +113,8 @@
+
+
+
+
diff --git a/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php b/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php
index e1d3cf88b..880f46a3c 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php
@@ -10,7 +10,7 @@
Home >
Men >
Slit Open Jeans
-
+
@@ -41,6 +41,7 @@
10% Off
+
@@ -113,6 +114,7 @@
+
@endsection
diff --git a/public/themes/default/assets/css/shop.css b/public/themes/default/assets/css/shop.css
index 9917d0021..9e81fdd8c 100644
--- a/public/themes/default/assets/css/shop.css
+++ b/public/themes/default/assets/css/shop.css
@@ -33,14 +33,14 @@
.sort-icon {
background-image: URL("../images/icon-sort.svg");
- width: 24px;
- height: 24px;
+ width: 32px;
+ height: 32px;
}
.filter-icon {
background-image: URL("../images/icon-filter.svg");
- width: 24px;
- height: 24px;
+ width: 32px;
+ height: 32px;
}
.whishlist-icon {
@@ -76,7 +76,7 @@
.product-grid-4 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
- grid-column-gap: 45px;
+ grid-column-gap: 40px;
grid-row-gap: 15px;
grid-auto-rows: auto;
}
@@ -91,21 +91,28 @@
@media only screen and (max-width: 854px) {
.product-grid-4 {
- grid-template-columns: 30% 30% 30%;
+ grid-template-columns: 29.5% 29.5% 29.5%;
grid-column-gap: 35px;
}
}
-@media only screen and (max-width: 550px) {
+@media only screen and (max-width: 653px) {
.product-grid-4 {
grid-template-columns: 48.5% 48.5%;
grid-column-gap: 17px;
}
- .product-card .cart-fav-seg {
- font-size: 0.71rem;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
+}
+
+@media only screen and (max-width: 425px) {
+ .product-card {
+ font-size: 90%;
+ }
+ .product-card .btn.btn-md {
+ padding: 5px;
+ }
+ .product-grid-4 {
+ grid-template-columns: 48.5% 48.5%;
+ grid-column-gap: 10px;
}
}
@@ -178,88 +185,6 @@
color: #FF6472;
}
-.layered-filter-wrapper {
- width: 25%;
- float: left;
- padding-right: 20px;
- min-height: 1px;
-}
-
-.layered-filter-wrapper .filter-title {
- border-bottom: 1px solid #E8E8E8;
- color: #242424;
- padding: 10px 0;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item {
- border-bottom: 1px solid #E8E8E8;
- padding-bottom: 10px;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title {
- padding: 10px 40px 0 10px;
- color: #5E5E5E;
- cursor: pointer;
- position: relative;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .remove-filter-link {
- font-weight: 400;
- color: #0041FF;
- margin-right: 10px;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .icon {
- background-image: url("../images/arrow-down.svg") !important;
- width: 10px;
- height: 10px;
- position: absolute;
- right: 15px;
- top: 14px;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content {
- padding: 10px;
- display: none;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items {
- padding: 0;
- margin: 0;
- list-style: none none;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item {
- padding: 8px 0;
- color: #5E5E5E;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox {
- margin: 0;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox .checkbox-view {
- height: 16px;
- width: 16px;
- background-image: url("../images/checkbox.svg");
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox input:checked + .checkbox-view {
- background-image: url("../images/checkbox-checked.svg");
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content .price-range-wrapper {
- margin-top: 21px;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-content {
- display: block;
-}
-
-.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-title .icon {
- background-image: url("../images//arrow-up.svg") !important;
-}
-
body {
margin: 0;
padding: 0;
@@ -390,7 +315,7 @@ body {
}
@media only screen and (max-width: 840px) {
- .layered-filter-wrapper {
+ .layered-filter-wrapper, .responsive-layred-filter {
display: none;
}
.main .category-block {
@@ -418,6 +343,104 @@ body {
.main .category-block .top-toolbar .pager .sorter, .main .category-block .top-toolbar .pager .limiter {
display: none;
}
+ .main .category-block .reponsive-sorter-limiter {
+ display: none;
+ }
+ .main .category-block .reponsive-sorter-limiter select {
+ background: #FFFFFF;
+ border: 1px solid #C7C7C7;
+ border-radius: 3px;
+ color: #242424;
+ padding: 10px;
+ }
+}
+
+.layered-filter-wrapper, .responsive-layred-filter {
+ width: 25%;
+ float: left;
+ padding-right: 20px;
+ min-height: 1px;
+}
+
+.layered-filter-wrapper .filter-title, .responsive-layred-filter .filter-title {
+ border-bottom: 1px solid #E8E8E8;
+ color: #242424;
+ padding: 10px 0;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item, .responsive-layred-filter .filter-attributes .filter-attributes-item {
+ border-bottom: 1px solid #E8E8E8;
+ padding-bottom: 10px;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-title {
+ padding: 10px 40px 0 10px;
+ color: #5E5E5E;
+ cursor: pointer;
+ position: relative;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .remove-filter-link, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-title .remove-filter-link {
+ font-weight: 400;
+ color: #0041FF;
+ margin-right: 10px;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .icon, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-title .icon {
+ background-image: url("../images/arrow-down.svg") !important;
+ width: 10px;
+ height: 10px;
+ position: absolute;
+ right: 15px;
+ top: 14px;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content {
+ padding: 10px;
+ display: none;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items {
+ padding: 0;
+ margin: 0;
+ list-style: none none;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item {
+ padding: 8px 0;
+ color: #5E5E5E;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox {
+ margin: 0;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox .checkbox-view, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox .checkbox-view {
+ height: 16px;
+ width: 16px;
+ background-image: url("../images/checkbox.svg");
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox input:checked + .checkbox-view, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox input:checked + .checkbox-view {
+ background-image: url("../images/checkbox-checked.svg");
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content .price-range-wrapper, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content .price-range-wrapper {
+ margin-top: 21px;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-content, .responsive-layred-filter .filter-attributes .filter-attributes-item.active .filter-attributes-content {
+ display: block;
+}
+
+.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-title .icon, .responsive-layred-filter .filter-attributes .filter-attributes-item.active .filter-attributes-title .icon {
+ background-image: url("../images//arrow-up.svg") !important;
+}
+
+.responsive-layred-filter {
+ width: 100%;
+ float: none;
+ padding-right: 0px;
}
.main-container-wrapper {
@@ -1240,6 +1263,10 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
display: none;
}
+.main .responsive-layred-filter {
+ display: none;
+}
+
.main .bottom-toolbar {
display: block;
margin-top: 40px;
diff --git a/public/themes/default/assets/js/shop.js b/public/themes/default/assets/js/shop.js
index fe4af4ad7..5e70c2460 100644
--- a/public/themes/default/assets/js/shop.js
+++ b/public/themes/default/assets/js/shop.js
@@ -60,7 +60,7 @@
/******/ __webpack_require__.p = "/";
/******/
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 12);
+/******/ return __webpack_require__(__webpack_require__.s = 10);
/******/ })
/************************************************************************/
/******/ ([
@@ -71,7 +71,7 @@
var bind = __webpack_require__(5);
-var isBuffer = __webpack_require__(21);
+var isBuffer = __webpack_require__(19);
/*global toString:true*/
@@ -517,7 +517,7 @@ module.exports = g;
/* WEBPACK VAR INJECTION */(function(process) {
var utils = __webpack_require__(0);
-var normalizeHeaderName = __webpack_require__(23);
+var normalizeHeaderName = __webpack_require__(21);
var DEFAULT_CONTENT_TYPE = {
'Content-Type': 'application/x-www-form-urlencoded'
@@ -829,12 +829,12 @@ module.exports = function bind(fn, thisArg) {
var utils = __webpack_require__(0);
-var settle = __webpack_require__(24);
-var buildURL = __webpack_require__(26);
-var parseHeaders = __webpack_require__(27);
-var isURLSameOrigin = __webpack_require__(28);
+var settle = __webpack_require__(22);
+var buildURL = __webpack_require__(24);
+var parseHeaders = __webpack_require__(25);
+var isURLSameOrigin = __webpack_require__(26);
var createError = __webpack_require__(7);
-var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(29);
+var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(27);
module.exports = function xhrAdapter(config) {
return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -931,7 +931,7 @@ module.exports = function xhrAdapter(config) {
// This is only done if running in a standard browser environment.
// Specifically not if we're in a web worker, or react-native.
if (utils.isStandardBrowserEnv()) {
- var cookies = __webpack_require__(30);
+ var cookies = __webpack_require__(28);
// Add xsrf header
var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
@@ -1015,7 +1015,7 @@ module.exports = function xhrAdapter(config) {
"use strict";
-var enhanceError = __webpack_require__(25);
+var enhanceError = __webpack_require__(23);
/**
* Create an Error with the specified message, config, error code, request and response.
@@ -1073,337 +1073,27 @@ module.exports = Cancel;
/***/ }),
/* 10 */
-/***/ (function(module, exports) {
+/***/ (function(module, exports, __webpack_require__) {
-/*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
-*/
-// css base code, injected by the css-loader
-module.exports = function(useSourceMap) {
- var list = [];
-
- // return the list of modules as css string
- list.toString = function toString() {
- return this.map(function (item) {
- var content = cssWithMappingToString(item, useSourceMap);
- if(item[2]) {
- return "@media " + item[2] + "{" + content + "}";
- } else {
- return content;
- }
- }).join("");
- };
-
- // import a list of modules into the list
- list.i = function(modules, mediaQuery) {
- if(typeof modules === "string")
- modules = [[null, modules, ""]];
- var alreadyImportedModules = {};
- for(var i = 0; i < this.length; i++) {
- var id = this[i][0];
- if(typeof id === "number")
- alreadyImportedModules[id] = true;
- }
- for(i = 0; i < modules.length; i++) {
- var item = modules[i];
- // skip already imported module
- // this implementation is not 100% perfect for weird media query combinations
- // when a module is imported multiple times with different media queries.
- // I hope this will never occur (Hey this way we have smaller bundles)
- if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
- if(mediaQuery && !item[2]) {
- item[2] = mediaQuery;
- } else if(mediaQuery) {
- item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
- }
- list.push(item);
- }
- }
- };
- return list;
-};
-
-function cssWithMappingToString(item, useSourceMap) {
- var content = item[1] || '';
- var cssMapping = item[3];
- if (!cssMapping) {
- return content;
- }
-
- if (useSourceMap && typeof btoa === 'function') {
- var sourceMapping = toComment(cssMapping);
- var sourceURLs = cssMapping.sources.map(function (source) {
- return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
- });
-
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
- }
-
- return [content].join('\n');
-}
-
-// Adapted from convert-source-map (MIT)
-function toComment(sourceMap) {
- // eslint-disable-next-line no-undef
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
-
- return '/*# ' + data + ' */';
-}
+__webpack_require__(11);
+module.exports = __webpack_require__(54);
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
-/*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- Modified by Evan You @yyx990803
-*/
-
-var hasDocument = typeof document !== 'undefined'
-
-if (typeof DEBUG !== 'undefined' && DEBUG) {
- if (!hasDocument) {
- throw new Error(
- 'vue-style-loader cannot be used in a non-browser environment. ' +
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
- ) }
-}
-
-var listToStyles = __webpack_require__(47)
-
-/*
-type StyleObject = {
- id: number;
- parts: Array
-}
-
-type StyleObjectPart = {
- css: string;
- media: string;
- sourceMap: ?string
-}
-*/
-
-var stylesInDom = {/*
- [id: number]: {
- id: number,
- refs: number,
- parts: Array<(obj?: StyleObjectPart) => void>
- }
-*/}
-
-var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
-var singletonElement = null
-var singletonCounter = 0
-var isProduction = false
-var noop = function () {}
-var options = null
-var ssrIdKey = 'data-vue-ssr-id'
-
-// Force single-tag solution on IE6-9, which has a hard limit on the # of