4.0.0 Release for compatibilty issues
Add missing translations bump npm dependencies
This commit is contained in:
parent
45de73676c
commit
a6948c7c25
17 changed files with 1915 additions and 6670 deletions
|
|
@ -1,12 +1,16 @@
|
|||
{
|
||||
"extends": [
|
||||
"stylelint-config-prettier",
|
||||
"stylelint-config-standard-scss",
|
||||
"stylelint-config-sass-guidelines",
|
||||
"stylelint-config-idiomatic-order"
|
||||
],
|
||||
"plugins": ["stylelint-scss"],
|
||||
"files": ["**/*.css", "**/*.scss"],
|
||||
"plugins": [
|
||||
"stylelint-scss"
|
||||
],
|
||||
"files": [
|
||||
"**/*.css",
|
||||
"**/*.scss"
|
||||
],
|
||||
"ignoreFiles": [
|
||||
"**/vendor/*.css",
|
||||
"**/vendor/**/*.css",
|
||||
|
|
@ -19,15 +23,12 @@
|
|||
],
|
||||
"customSyntax": "postcss-scss",
|
||||
"rules": {
|
||||
"indentation": 4,
|
||||
"string-quotes": "double",
|
||||
"declaration-property-value-no-unknown": true,
|
||||
"selector-max-id": null,
|
||||
"color-no-invalid-hex": true,
|
||||
"order/properties-alphabetical-order": null,
|
||||
"max-nesting-depth": 5,
|
||||
"selector-max-compound-selectors": 5,
|
||||
"declaration-colon-space-after": "always-single-line",
|
||||
"function-parentheses-space-inside": "never-single-line",
|
||||
"declaration-colon-newline-after": null,
|
||||
"value-list-comma-newline-after": null,
|
||||
"scss/double-slash-comment-empty-line-before": [
|
||||
|
|
|
|||
|
|
@ -1,5 +1,13 @@
|
|||
# Changelog
|
||||
|
||||
## 4.0.0
|
||||
|
||||
- Bump to major version in order to prevent breaking projects,
|
||||
the bump cannot be done only using npm update, therefore the
|
||||
developper has to change template and other fils in any specific project.
|
||||
- Bump Npm dependencies to latest in order fix audit issues and so on.
|
||||
- Add missing translations
|
||||
|
||||
## 3.1.3
|
||||
|
||||
- Update and add new sass variables to counter global font-size in project
|
||||
|
|
|
|||
14
dist/browser/cookie-cn.css
vendored
14
dist/browser/cookie-cn.css
vendored
|
|
@ -37,10 +37,12 @@
|
|||
#cn-wrapper button:hover,
|
||||
#cn-wrapper button:focus {
|
||||
background: #a0a0a0;
|
||||
/* prettier-ignore */
|
||||
color: #000;
|
||||
}
|
||||
#cn-wrapper button:focus {
|
||||
outline: 1px solid;
|
||||
/* prettier-ignore */
|
||||
outline-color: #000;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
|
@ -48,7 +50,7 @@
|
|||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
/* FENETRE D'ACCUEIL */
|
||||
/* Title settings */
|
||||
/* Text settings */
|
||||
|
|
@ -74,10 +76,12 @@
|
|||
#cn-wrapper .cn-content .cn-modal-container .deny label:hover, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:hover, #cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
background-color: #a0a0a0;
|
||||
/* prettier-ignore */
|
||||
color: #000;
|
||||
}
|
||||
#cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
/* prettier-ignore */
|
||||
outline-color: #000;
|
||||
}
|
||||
|
||||
|
|
@ -118,8 +122,8 @@
|
|||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
padding: 0.3rem;
|
||||
background-color: #fff;
|
||||
border-radius: 100%;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.35);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
@ -165,10 +169,10 @@
|
|||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
margin: auto;
|
||||
margin-bottom: 0;
|
||||
background-color: #fff;
|
||||
border-radius: 0;
|
||||
box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.35);
|
||||
line-height: initial;
|
||||
opacity: 0;
|
||||
|
|
@ -303,8 +307,8 @@
|
|||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
border: 1px solid #e4e4e4;
|
||||
margin: 10px 0;
|
||||
border-radius: 20px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper span {
|
||||
color: #dc9c52;
|
||||
|
|
@ -330,7 +334,7 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos span:first-of-type {
|
||||
font-size: 20px;
|
||||
font-size: calc(16px * 1.25);
|
||||
font-weight: bold;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos .cn-cookie-description {
|
||||
|
|
|
|||
2
dist/browser/typings/ts/index.d.ts
vendored
2
dist/browser/typings/ts/index.d.ts
vendored
|
|
@ -1,4 +1,4 @@
|
|||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
export default class CookieNotice {
|
||||
browserCookieName: string;
|
||||
/** Cookie life time */
|
||||
|
|
|
|||
2
dist/esm/ts/index.js
vendored
2
dist/esm/ts/index.js
vendored
|
|
@ -1,4 +1,4 @@
|
|||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
export default class CookieNotice {
|
||||
constructor(config) {
|
||||
this.browserCookieName = "cn-init";
|
||||
|
|
|
|||
2
dist/typings/ts/index.d.ts
vendored
2
dist/typings/ts/index.d.ts
vendored
|
|
@ -1,4 +1,4 @@
|
|||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
export default class CookieNotice {
|
||||
browserCookieName: string;
|
||||
/** Cookie life time */
|
||||
|
|
|
|||
14
dist/umd/css/standard.css
vendored
14
dist/umd/css/standard.css
vendored
|
|
@ -37,10 +37,12 @@
|
|||
#cn-wrapper button:hover,
|
||||
#cn-wrapper button:focus {
|
||||
background: #a0a0a0;
|
||||
/* prettier-ignore */
|
||||
color: #000;
|
||||
}
|
||||
#cn-wrapper button:focus {
|
||||
outline: 1px solid;
|
||||
/* prettier-ignore */
|
||||
outline-color: #000;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
|
@ -48,7 +50,7 @@
|
|||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
/* FENETRE D'ACCUEIL */
|
||||
/* Title settings */
|
||||
/* Text settings */
|
||||
|
|
@ -74,10 +76,12 @@
|
|||
#cn-wrapper .cn-content .cn-modal-container .deny label:hover, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:hover, #cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
background-color: #a0a0a0;
|
||||
/* prettier-ignore */
|
||||
color: #000;
|
||||
}
|
||||
#cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
/* prettier-ignore */
|
||||
outline-color: #000;
|
||||
}
|
||||
|
||||
|
|
@ -118,8 +122,8 @@
|
|||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
padding: 0.3rem;
|
||||
background-color: #fff;
|
||||
border-radius: 100%;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.35);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
@ -165,10 +169,10 @@
|
|||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
margin: auto;
|
||||
margin-bottom: 0;
|
||||
background-color: #fff;
|
||||
border-radius: 0;
|
||||
box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.35);
|
||||
line-height: initial;
|
||||
opacity: 0;
|
||||
|
|
@ -303,8 +307,8 @@
|
|||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
border: 1px solid #e4e4e4;
|
||||
margin: 10px 0;
|
||||
border-radius: 20px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper span {
|
||||
color: #dc9c52;
|
||||
|
|
@ -330,7 +334,7 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos span:first-of-type {
|
||||
font-size: 20px;
|
||||
font-size: calc(16px * 1.25);
|
||||
font-weight: bold;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos .cn-cookie-description {
|
||||
|
|
|
|||
12
dist/umd/main.js
vendored
12
dist/umd/main.js
vendored
|
|
@ -22,25 +22,25 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": function() { return /* binding */ CookieNotice; }
|
||||
/* harmony export */ });
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
||||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
||||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
||||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
||||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
||||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
||||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e3) { function e(_x3) { return _e3.apply(this, arguments); } e.toString = function () { return _e3.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
||||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e) { function e(_x) { return _e.apply(this, arguments); } e.toString = function () { return _e.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
||||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
||||
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."); }
|
||||
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); }
|
||||
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; }
|
||||
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
||||
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
||||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
||||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
||||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
||||
/** 3.1.3 */
|
||||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
||||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
||||
/** 4.0.0 */
|
||||
var CookieNotice = /*#__PURE__*/function () {
|
||||
/** Cookie expiration date as specified in the cookie itself */
|
||||
|
||||
|
|
|
|||
2
dist/umd/main.js.map
vendored
2
dist/umd/main.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// * Version 3.1.3
|
||||
// * Version 4.0.0
|
||||
// phpcs:disable
|
||||
return [
|
||||
'button_customize_cookies' => 'Cookie-Einstellungen',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// * Version 3.1.3
|
||||
// * Version 4.0.0
|
||||
// phpcs:disable
|
||||
return [
|
||||
'button_customize_cookies' => 'Customize cookies',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// * Version 3.1.3
|
||||
// * Version 4.0.0
|
||||
// phpcs:disable
|
||||
return [
|
||||
'button_customize_cookies' => 'Personnaliser les cookies',
|
||||
|
|
|
|||
8427
package-lock.json
generated
8427
package-lock.json
generated
File diff suppressed because it is too large
Load diff
30
package.json
30
package.json
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ldc-web/cookie-notice",
|
||||
"version": "3.1.3",
|
||||
"version": "4.0.0",
|
||||
"description": "Web cookie notice for websites usage",
|
||||
"main": "./dist/umd/main.js",
|
||||
"module": "./dist/esm/ts/index.js",
|
||||
|
|
@ -42,13 +42,15 @@
|
|||
"stylelint-ci": "node ./node_modules/.bin/stylelint --config './.stylelintrc.json' --max-warnings 0 '**/*.scss' -f json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.21.4",
|
||||
"@babel/preset-typescript": "^7.21.4",
|
||||
"@babel/core": "^7.22.11",
|
||||
"@babel/preset-env": "^7.23.6",
|
||||
"@babel/preset-typescript": "^7.23.3",
|
||||
"@babel/types": "^7.21.2",
|
||||
"@rollup/plugin-babel": "^6.0.3",
|
||||
"@rollup/plugin-terser": "^0.4.3",
|
||||
"@rollup/plugin-typescript": "^11.1.1",
|
||||
"@typescript-eslint/parser": "^5.58.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.2",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"@vue/eslint-config-typescript": "^12.0.0",
|
||||
"babel-loader": "^9.1.2",
|
||||
"core-js": "^3.30.2",
|
||||
"eslint": "^8.38.0",
|
||||
|
|
@ -62,15 +64,15 @@
|
|||
"rollup-plugin-scss": "^3.0.0",
|
||||
"sass": "^1.58.3",
|
||||
"sass-loader": "^13.3.1",
|
||||
"stylelint": "^14.16.1",
|
||||
"stylelint-config-idiomatic-order": "^8.1.0",
|
||||
"stylelint-config-prettier": "^9.0.5",
|
||||
"stylelint-config-sass-guidelines": "^9.0.1",
|
||||
"stylelint-config-standard-scss": "^6.1.0",
|
||||
"stylelint-scss": "^4.4.0",
|
||||
"stylelint-webpack-plugin": "^3.3.0",
|
||||
"typescript": "^5.0.4",
|
||||
"typescript-eslint": "^0.0.1-alpha.0",
|
||||
"stylelint": "^15.11.0",
|
||||
"stylelint-config-idiomatic-order": "github:ream88/stylelint-config-idiomatic-order",
|
||||
"stylelint-config-sass-guidelines": "^10.0.0",
|
||||
"stylelint-config-standard-scss": "^11.1.0",
|
||||
"stylelint-scss": "^5.3.2",
|
||||
"stylelint-webpack-plugin": "^4.1.1",
|
||||
"tslib": "^2.6.2",
|
||||
"typescript": ">=3.3.1 <5.2.0",
|
||||
"typescript-eslint": "latest",
|
||||
"webpack": "^5.78.0",
|
||||
"webpack-cli": "^5.0.1"
|
||||
}
|
||||
|
|
|
|||
14
src/scss/reset.scss
vendored
14
src/scss/reset.scss
vendored
|
|
@ -25,7 +25,7 @@
|
|||
margin: 0;
|
||||
appearance: none;
|
||||
background: $cn-button-bg-color;
|
||||
color: text($cn-button-bg-color);
|
||||
color: #{text($cn-button-bg-color)};
|
||||
cursor: pointer;
|
||||
font-family: $cn-button-font-family;
|
||||
font-size: $cn-button-font-size;
|
||||
|
|
@ -38,16 +38,16 @@
|
|||
button:hover,
|
||||
button:focus {
|
||||
background: color.adjust($color: $cn-button-bg-color, $lightness: -10%);
|
||||
color: text(
|
||||
color.adjust($color: $cn-button-bg-color, $lightness: -10%)
|
||||
);
|
||||
|
||||
/* prettier-ignore */
|
||||
color: text(color.adjust($color: $cn-button-bg-color, $lightness: -10%));
|
||||
}
|
||||
|
||||
button:focus {
|
||||
outline: 1px solid;
|
||||
outline-color: text(
|
||||
color.adjust($color: $cn-button-bg-color, $lightness: -10%)
|
||||
);
|
||||
|
||||
/* prettier-ignore */
|
||||
outline-color: text(color.adjust($color: $cn-button-bg-color, $lightness: -10%));
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
|
|
|
|||
35
src/scss/themes/standard.scss
vendored
35
src/scss/themes/standard.scss
vendored
|
|
@ -3,7 +3,7 @@
|
|||
@import "./../mixins";
|
||||
@import "./../reset";
|
||||
|
||||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
|
||||
/* FENETRE D'ACCUEIL */
|
||||
$ck-bg-color: $ck-background-color;
|
||||
|
|
@ -59,7 +59,7 @@ $breakpoint-mobile: 535px;
|
|||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
background-color: text($cn-button-bg-color);
|
||||
background-color: #{text($cn-button-bg-color)};
|
||||
color: $cn-button-bg-color;
|
||||
font-family: $ck-text-font;
|
||||
font-size: $ck-w1-font-size-btn-txt;
|
||||
|
|
@ -70,15 +70,14 @@ $breakpoint-mobile: 535px;
|
|||
$color: $cn-button-bg-color,
|
||||
$lightness: -10%
|
||||
);
|
||||
color: text(
|
||||
color.adjust($color: $cn-button-bg-color, $lightness: -10%)
|
||||
);
|
||||
|
||||
/* prettier-ignore */
|
||||
color: text(color.adjust($color: $cn-button-bg-color, $lightness: -10%));
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline-color: text(
|
||||
color.adjust($color: $cn-button-bg-color, $lightness: -10%)
|
||||
);
|
||||
/* prettier-ignore */
|
||||
outline-color: text(color.adjust($color: $cn-button-bg-color, $lightness: -10%));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -125,8 +124,8 @@ $breakpoint-mobile: 535px;
|
|||
width: $cn-cookie-button-width;
|
||||
height: $cn-cookie-button-height;
|
||||
padding: $cn-cookie-button-padding;
|
||||
background-color: $ck-btn-background-color;
|
||||
border-radius: 100%;
|
||||
background-color: $ck-btn-background-color;
|
||||
box-shadow: $ck-shadow-color;
|
||||
cursor: pointer;
|
||||
|
||||
|
|
@ -183,10 +182,10 @@ $breakpoint-mobile: 535px;
|
|||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
margin: auto;
|
||||
margin-bottom: 0;
|
||||
background-color: $ck-bg-color;
|
||||
border-radius: 0;
|
||||
box-shadow: $ck-shadow-color;
|
||||
line-height: initial;
|
||||
opacity: 0;
|
||||
|
|
@ -223,7 +222,7 @@ $breakpoint-mobile: 535px;
|
|||
|
||||
@media (min-width: $breakpoint-mobile) {
|
||||
right: $cn-cookie-animation-right;
|
||||
bottom: calc($cn-cookie-button-position-bottom + 60px);
|
||||
bottom: calc(#{$cn-cookie-button-position-bottom} + 60px);
|
||||
left: $cn-cookie-animation-left;
|
||||
width: $cn-cookie-modal-width;
|
||||
height: fit-content;
|
||||
|
|
@ -347,9 +346,9 @@ $breakpoint-mobile: 535px;
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
border: 1px solid $ck-bgcolor-list;
|
||||
margin: 10px 0;
|
||||
border: 1px solid #{$ck-bgcolor-list};
|
||||
border-radius: 20px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
span {
|
||||
|
|
@ -382,7 +381,7 @@ $breakpoint-mobile: 535px;
|
|||
flex-direction: column;
|
||||
|
||||
span:first-of-type {
|
||||
font-size: calc($ck-font-size-list * 1.25);
|
||||
font-size: calc(#{$ck-font-size-list} * 1.25);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
|
@ -480,7 +479,7 @@ $breakpoint-mobile: 535px;
|
|||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
border-top: 1px solid $ck-borders-color;
|
||||
border-top: 1px solid #{$ck-borders-color};
|
||||
|
||||
#cn-deny-banner {
|
||||
@extend %nav-button;
|
||||
|
|
@ -492,8 +491,8 @@ $breakpoint-mobile: 535px;
|
|||
@extend %nav-button;
|
||||
|
||||
width: 50%;
|
||||
border-right: 1px solid $ck-borders-color;
|
||||
border-left: 1px solid $ck-borders-color;
|
||||
border-right: 1px solid #{$ck-borders-color};
|
||||
border-left: 1px solid #{$ck-borders-color};
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
|
|
@ -501,7 +500,7 @@ $breakpoint-mobile: 535px;
|
|||
@extend %nav-button;
|
||||
|
||||
width: 100%;
|
||||
border-top: 1px solid $ck-borders-color;
|
||||
border-top: 1px solid #{$ck-borders-color};
|
||||
}
|
||||
|
||||
@media (min-width: $breakpoint-mobile) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/** 3.1.3 */
|
||||
/** 4.0.0 */
|
||||
|
||||
export default class CookieNotice {
|
||||
browserCookieName = "cn-init";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue