Updating lining for css and js.
This commit is contained in:
parent
b55c863a45
commit
d69654162f
11 changed files with 73 additions and 20 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
|
*.compact.js
|
||||||
*.min.js
|
*.min.js
|
||||||
umbrella.js
|
umbrella.js
|
||||||
|
|
|
||||||
1
.stylelintignore
Normal file
1
.stylelintignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
typey/
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
plugins:
|
plugins:
|
||||||
- stylelint-scss
|
- stylelint-scss
|
||||||
|
extends:
|
||||||
|
- stylelint-config-recommended-scss
|
||||||
rules:
|
rules:
|
||||||
at-rule-disallowed-list:
|
at-rule-disallowed-list:
|
||||||
- debug
|
- debug
|
||||||
at-rule-no-unknown:
|
at-rule-no-unknown: null
|
||||||
at-rule-no-vendor-prefix: true
|
at-rule-no-vendor-prefix: true
|
||||||
block-no-empty: true
|
block-no-empty: true
|
||||||
block-opening-brace-space-before: always
|
block-opening-brace-space-before: always
|
||||||
|
|
@ -46,6 +48,7 @@ rules:
|
||||||
- include
|
- include
|
||||||
media-feature-name-no-vendor-prefix: true
|
media-feature-name-no-vendor-prefix: true
|
||||||
media-feature-parentheses-space-inside: never
|
media-feature-parentheses-space-inside: never
|
||||||
|
no-descending-specificity: null
|
||||||
no-missing-end-of-source-newline: true
|
no-missing-end-of-source-newline: true
|
||||||
number-leading-zero: never
|
number-leading-zero: never
|
||||||
number-no-trailing-zeros: true
|
number-no-trailing-zeros: true
|
||||||
|
|
@ -64,9 +67,11 @@ rules:
|
||||||
- scss
|
- scss
|
||||||
scss/at-mixin-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
scss/at-mixin-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
||||||
scss/at-rule-no-unknown: true
|
scss/at-rule-no-unknown: true
|
||||||
|
scss/comment-no-empty: null
|
||||||
#scss/dollar-variable-colon-space-after: always
|
#scss/dollar-variable-colon-space-after: always
|
||||||
scss/dollar-variable-colon-space-before: never
|
scss/dollar-variable-colon-space-before: never
|
||||||
scss/dollar-variable-pattern: "^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
scss/dollar-variable-pattern: "^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
||||||
|
scss/no-global-function-names: null
|
||||||
#scss/percent-placeholder-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
#scss/percent-placeholder-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
||||||
#scss/selector-no-redundant-nesting-selector: true
|
#scss/selector-no-redundant-nesting-selector: true
|
||||||
selector-class-pattern:
|
selector-class-pattern:
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// Lazy load images with lozad.js.
|
// Lazy load images with lozad.js.
|
||||||
const observer = window.lozad(); //
|
const observer = window.lozad();
|
||||||
observer.observe();
|
observer.observe();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef, guard-for-in */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
@ -47,10 +47,10 @@
|
||||||
limit: {{ site.Params.searchLimit | default 20 }}
|
limit: {{ site.Params.searchLimit | default 20 }}
|
||||||
});
|
});
|
||||||
const items = {};
|
const items = {};
|
||||||
results.forEach( function(result) {
|
results.forEach(function (result) {
|
||||||
result.result.forEach( function(r) {
|
result.result.forEach(function (r) {
|
||||||
items[r.id] = r.doc;
|
items[r.id] = r.doc;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
showResults(items);
|
showResults(items);
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
.then(function (data) {
|
.then(function (data) {
|
||||||
data.forEach(function (item) {
|
data.forEach(function (item) {
|
||||||
index.add(item);
|
index.add(item);
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Initialization partial
|
// Initialization partial
|
||||||
//
|
|
||||||
// To make it easier to use all variables and mixins in any Sass file in this
|
// To make it easier to use all variables and mixins in any Sass file in this
|
||||||
// project, each .scss file has a `@import 'init';` declaration. The _init.scss
|
// project, each .scss file has a `@import 'init';` declaration. The _init.scss
|
||||||
// file is in charge of importing all the other partials needed for the
|
// file is in charge of importing all the other partials needed for the
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
|
// stylelint-disable value-keyword-case
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
//
|
|
||||||
// Set variables for this site before a library sets its !default value.
|
// Set variables for this site before a library sets its !default value.
|
||||||
|
|
||||||
|
|
||||||
// Font faces, stacks and sizes.
|
// Font faces, stacks and sizes.
|
||||||
//
|
|
||||||
// Font styling and line heights are controlled by the several variables that
|
// Font styling and line heights are controlled by the several variables that
|
||||||
// used by mixins like `type-layout()`, `margin-top()`, and `margin-bottom()`.
|
// used by mixins like `type-layout()`, `margin-top()`, and `margin-bottom()`.
|
||||||
// These variable and mixins are documented on the [Typey
|
// These variable and mixins are documented on the [Typey
|
||||||
|
|
@ -102,7 +104,7 @@ $rem-fallback: false;
|
||||||
$auto-print-sizing: false;
|
$auto-print-sizing: false;
|
||||||
|
|
||||||
// Breakpoints
|
// Breakpoints
|
||||||
//
|
|
||||||
// Use the `respond-to()` mixin to use named breakpoints.
|
// Use the `respond-to()` mixin to use named breakpoints.
|
||||||
|
|
||||||
$breakpoints: (
|
$breakpoints: (
|
||||||
|
|
@ -132,9 +134,9 @@ $l-radius: 1rem;
|
||||||
|
|
||||||
|
|
||||||
// Miscellaneous variables
|
// Miscellaneous variables
|
||||||
//
|
|
||||||
// `$indent-amount` controls the amount lists, blockquotes and comments are indented.
|
// `$indent-amount` controls the amount lists, blockquotes and comments are indented.
|
||||||
//
|
|
||||||
// `$include-rtl` controls whether RTL styles are output.
|
// `$include-rtl` controls whether RTL styles are output.
|
||||||
|
|
||||||
$indent-amount: 2 * $base-font-size;
|
$indent-amount: 2 * $base-font-size;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
.responsive-video,
|
.responsive-video,
|
||||||
%responsive-video {
|
%responsive-video {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: (9/16)*100%; // 16:9 aspect ratio
|
padding-bottom: (9 / 16) * 100%; // 16:9 aspect ratio
|
||||||
padding-top: 25px; // Height of video controls
|
padding-top: 25px; // Height of video controls
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
||||||
|
|
@ -27,6 +27,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&--4-3 {
|
&--4-3 {
|
||||||
padding-bottom: (3/4)*100%; // 4:3 aspect ratio
|
padding-bottom: (3 / 4) * 100%; // 4:3 aspect ratio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
// stylelint-disable property-no-vendor-prefix
|
||||||
|
|
||||||
// Form defaults.
|
// Form defaults.
|
||||||
|
|
||||||
input,
|
input,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
//
|
// stylelint-disable no-invalid-position-at-import-rule
|
||||||
// The major stylesheet for this theme.
|
|
||||||
//
|
// The main stylesheet for this theme.
|
||||||
|
|
||||||
// Colors and Sass
|
// Colors and Sass
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
@import 'layouts/layouts';
|
@import 'layouts/layouts';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
//
|
|
||||||
// Design components are reusable designs that can be applied using just the CSS
|
// Design components are reusable designs that can be applied using just the CSS
|
||||||
// class names specified in the component.
|
// class names specified in the component.
|
||||||
|
|
||||||
|
|
|
||||||
42
package-lock.json
generated
42
package-lock.json
generated
|
|
@ -1375,6 +1375,12 @@
|
||||||
"integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==",
|
"integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"postcss-scss": {
|
||||||
|
"version": "4.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.3.tgz",
|
||||||
|
"integrity": "sha512-j4KxzWovfdHsyxwl1BxkUal/O4uirvHgdzMKS1aWJBAV0qh2qj5qAZqpeBfVUYGWv+4iK9Az7SPyZ4fyNju1uA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"postcss-selector-parser": {
|
"postcss-selector-parser": {
|
||||||
"version": "6.0.9",
|
"version": "6.0.9",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz",
|
||||||
|
|
@ -1761,6 +1767,42 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"stylelint-config-recommended": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZorSSdyMcxWpROYUvLEMm0vSZud2uB7tX1hzBZwvVY9SV/uly4AvvJPPhCcymZL3fcQhEQG5AELmrxWqtmzacw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"stylelint-config-recommended-scss": {
|
||||||
|
"version": "5.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-5.0.2.tgz",
|
||||||
|
"integrity": "sha512-b14BSZjcwW0hqbzm9b0S/ScN2+3CO3O4vcMNOw2KGf8lfVSwJ4p5TbNEXKwKl1+0FMtgRXZj6DqVUe/7nGnuBg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"postcss-scss": "^4.0.2",
|
||||||
|
"stylelint-config-recommended": "^6.0.0",
|
||||||
|
"stylelint-scss": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stylelint-config-standard": {
|
||||||
|
"version": "24.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-24.0.0.tgz",
|
||||||
|
"integrity": "sha512-+RtU7fbNT+VlNbdXJvnjc3USNPZRiRVp/d2DxOF/vBDDTi0kH5RX2Ny6errdtZJH3boO+bmqIYEllEmok4jiuw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"stylelint-config-recommended": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stylelint-config-standard-scss": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-zt3ZbzIbllN1iCmc94e4pDxqpkzeR6CJo5DDXzltshuXr+82B8ylHyMMARNnUYrZH80B7wgY7UkKTYCFM0UUyw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"stylelint-config-recommended-scss": "^5.0.2",
|
||||||
|
"stylelint-config-standard": "^24.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"stylelint-scss": {
|
"stylelint-scss": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-4.1.0.tgz",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue