Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Commit a8401ca

Browse files
[DEV] Updating packages and compiling
1 parent 15217e4 commit a8401ca

19 files changed

Lines changed: 4566 additions & 3979 deletions

Gruntfile.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const sass = require('node-sass');
1+
const sass = require('sass');
22

33
module.exports = grunt => {
44
require('load-grunt-tasks')(grunt);
@@ -117,13 +117,18 @@ module.exports = grunt => {
117117
},
118118
},
119119
},
120-
// ---------------------------------------------------- SASS-LINT //
121-
sasslint: {
120+
// ---------------------------------------------------- STYLELINT //
121+
stylelint: {
122122
options: {
123-
configFile: '.sass-lint.yml',
124-
formatter: 'stylish',
125-
},
126-
target: ['src/**/*.scss'],
123+
configFile: 'stylelint.config.js',
124+
formatter: 'string',
125+
ignoreDisables: false,
126+
failOnError: true,
127+
fix: true,
128+
reportNeedlessDisables: false,
129+
syntax: '',
130+
},
131+
all: ['src/**/*.scss'],
127132
},
128133
// ---------------------------------------------------- POSTCSS //
129134
postcss: {
@@ -173,7 +178,7 @@ module.exports = grunt => {
173178
},
174179
scss: {
175180
files: ['src/**/*.scss'],
176-
tasks: ['sass', 'postcss', 'sasslint'],
181+
tasks: ['sass', 'postcss', 'stylelint'],
177182
},
178183
},
179184
paths: {

dist/css/slide-out-panel.css

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,60 @@
11
html {
22
width: 100%;
33
}
4-
54
@media all and (max-width: 768px) {
65
html {
76
width: 100% !important;
87
}
98
}
10-
119
html.slide-out-top {
1210
bottom: initial !important;
1311
top: 0;
1412
}
15-
1613
html.slide-out-right {
1714
left: 0;
1815
right: initial !important;
1916
}
20-
2117
html.slide-out-bottom {
2218
bottom: 0;
2319
top: initial !important;
2420
}
25-
2621
html.slide-out-left {
2722
left: initial !important;
2823
right: 0;
2924
}
30-
3125
html.slide-out-panel-static {
3226
position: static !important;
3327
transition: none !important;
3428
width: 100% !important;
3529
}
3630

3731
.slide-out-panel-container {
38-
-webkit-overflow-scrolling: touch;
3932
background-color: #fff;
4033
bottom: 0;
4134
box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.3);
4235
height: auto;
4336
max-width: 100vw;
37+
-webkit-overflow-scrolling: touch;
4438
overflow-y: auto;
4539
position: fixed;
4640
top: 0;
4741
transition: top ease, right ease, bottom ease, left ease;
4842
z-index: 9999;
4943
}
50-
5144
@media all and (max-width: 768px) {
5245
.slide-out-panel-container {
5346
bottom: initial;
5447
position: fixed !important;
5548
}
5649
}
57-
5850
@media all and (max-width: 768px) {
5951
.slide-out-panel-container.open {
6052
width: 100% !important;
6153
}
6254
}
63-
6455
.slide-out-panel-container * {
6556
box-sizing: border-box;
6657
}
67-
6858
.slide-out-panel-container .close-slide-out-panel {
6959
color: #000;
7060
cursor: pointer;
@@ -74,29 +64,26 @@ html.slide-out-panel-static {
7464
line-height: 12px;
7565
min-height: 12px;
7666
min-width: 12px;
77-
opacity: .5;
67+
opacity: 0.5;
7868
position: absolute;
7969
right: 10px;
8070
top: 50%;
8171
transform: translateY(-50%);
82-
transition: opacity .35s ease;
72+
transition: opacity 0.35s ease;
8373
width: auto;
8474
z-index: 9999;
8575
}
86-
8776
.slide-out-panel-container .close-slide-out-panel:hover {
8877
font-weight: bold;
8978
opacity: 1;
9079
}
91-
9280
.slide-out-panel-container .slide-out-header,
9381
.slide-out-panel-container .slide-out-content,
9482
.slide-out-panel-container .slide-out-footer {
9583
padding: 15px;
9684
position: relative;
9785
width: 100%;
9886
}
99-
10087
.slide-out-panel-container .slide-out-header {
10188
align-items: center;
10289
background-color: #fff;
@@ -105,30 +92,24 @@ html.slide-out-panel-static {
10592
justify-content: center;
10693
text-align: center;
10794
}
108-
10995
.slide-out-panel-container .slide-out-header h4 {
11096
margin: 0;
11197
padding: 0;
11298
}
113-
11499
.slide-out-panel-container .slide-out-content {
115100
background-color: #fff;
116101
}
117-
118102
.slide-out-panel-container .slide-out-content.no-header {
119103
padding-top: 30px;
120104
}
121-
122105
.slide-out-panel-container .slide-out-content.no-header .close-slide-out-panel {
123106
display: block;
124107
}
125-
126108
.slide-out-panel-container .slide-out-content .close-slide-out-panel {
127109
display: none;
128110
position: absolute;
129111
top: 15px;
130112
}
131-
132113
.slide-out-panel-container .slide-out-footer {
133114
background-color: #fff;
134115
}
@@ -146,7 +127,6 @@ html.slide-out-panel-static {
146127
transition: opacity ease;
147128
width: 100vw;
148129
}
149-
150130
@media all and (max-width: 768px) {
151131
.slide-out-panel-screen {
152132
height: 100%;

dist/css/slide-out-panel.css.map

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/slide-out-panel.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/slide-out-panel.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
"use strict";
22

3-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
44

5-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
66

7-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
7+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8+
9+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10+
11+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
812

913
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1014

dist/js/slide-out-panel.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)