@coreui/coreui 5.0.0-beta.0 → 5.0.0-beta.2
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/README.md +8 -36
- package/dist/css/coreui-grid.css +2 -2
- package/dist/css/coreui-grid.css.map +1 -1
- package/dist/css/coreui-grid.min.css +2 -2
- package/dist/css/coreui-grid.min.css.map +1 -1
- package/dist/css/coreui-grid.rtl.css +2 -2
- package/dist/css/coreui-grid.rtl.css.map +1 -1
- package/dist/css/coreui-grid.rtl.min.css +2 -2
- package/dist/css/coreui-grid.rtl.min.css.map +1 -1
- package/dist/css/coreui-reboot.css +1 -1
- package/dist/css/coreui-reboot.css.map +1 -1
- package/dist/css/coreui-reboot.min.css +1 -1
- package/dist/css/coreui-reboot.min.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.css +1 -1
- package/dist/css/coreui-reboot.rtl.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.min.css +1 -1
- package/dist/css/coreui-reboot.rtl.min.css.map +1 -1
- package/dist/css/coreui-utilities.css +1 -1
- package/dist/css/coreui-utilities.css.map +1 -1
- package/dist/css/coreui-utilities.min.css +1 -1
- package/dist/css/coreui-utilities.min.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.css +1 -1
- package/dist/css/coreui-utilities.rtl.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.min.css +1 -1
- package/dist/css/coreui-utilities.rtl.min.css.map +1 -1
- package/dist/css/coreui.css +29 -20
- package/dist/css/coreui.css.map +1 -1
- package/dist/css/coreui.min.css +2 -2
- package/dist/css/coreui.min.css.map +1 -1
- package/dist/css/coreui.rtl.css +29 -20
- package/dist/css/coreui.rtl.css.map +1 -1
- package/dist/css/coreui.rtl.min.css +2 -2
- package/dist/css/coreui.rtl.min.css.map +1 -1
- package/dist/js/coreui.bundle.js +7 -3
- package/dist/js/coreui.bundle.js.map +1 -1
- package/dist/js/coreui.bundle.min.js +2 -2
- package/dist/js/coreui.bundle.min.js.map +1 -1
- package/dist/js/coreui.esm.js +7 -3
- package/dist/js/coreui.esm.js.map +1 -1
- package/dist/js/coreui.esm.min.js +2 -2
- package/dist/js/coreui.esm.min.js.map +1 -1
- package/dist/js/coreui.js +7 -3
- package/dist/js/coreui.js.map +1 -1
- package/dist/js/coreui.min.js +2 -2
- package/dist/js/coreui.min.js.map +1 -1
- package/js/dist/alert.js +1 -1
- package/js/dist/base-component.js +2 -2
- package/js/dist/base-component.js.map +1 -1
- package/js/dist/button.js +1 -1
- package/js/dist/carousel.js +1 -1
- package/js/dist/collapse.js +1 -1
- package/js/dist/dom/data.js +1 -1
- package/js/dist/dom/event-handler.js +1 -1
- package/js/dist/dom/manipulator.js +1 -1
- package/js/dist/dom/selector-engine.js +1 -1
- package/js/dist/dropdown.js +1 -1
- package/js/dist/modal.js +1 -1
- package/js/dist/navigation.js +1 -1
- package/js/dist/navigation.js.map +1 -1
- package/js/dist/offcanvas.js +1 -1
- package/js/dist/popover.js +1 -1
- package/js/dist/scrollspy.js +1 -1
- package/js/dist/sidebar.js +6 -2
- package/js/dist/sidebar.js.map +1 -1
- package/js/dist/tab.js +1 -1
- package/js/dist/toast.js +1 -1
- package/js/dist/tooltip.js +1 -1
- package/js/dist/tooltip.js.map +1 -1
- package/js/dist/util/backdrop.js +1 -1
- package/js/dist/util/component-functions.js +1 -1
- package/js/dist/util/config.js +1 -1
- package/js/dist/util/config.js.map +1 -1
- package/js/dist/util/focustrap.js +1 -1
- package/js/dist/util/index.js +1 -1
- package/js/dist/util/sanitizer.js +1 -1
- package/js/dist/util/scrollbar.js +1 -1
- package/js/dist/util/swipe.js +1 -1
- package/js/dist/util/template-factory.js +1 -1
- package/js/src/base-component.js +1 -1
- package/js/src/sidebar.js +7 -1
- package/package.json +9 -9
- package/scss/_variables.scss +4 -3
- package/scss/mixins/_banner.scss +1 -1
- package/scss/sidebar/_sidebar-narrow.scss +2 -2
- package/scss/sidebar/_sidebar.scss +22 -6
package/js/dist/util/backdrop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI backdrop.js v5.0.0-beta.
|
|
2
|
+
* CoreUI backdrop.js v5.0.0-beta.2 (https://coreui.io)
|
|
3
3
|
* Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI component-functions.js v5.0.0-beta.
|
|
2
|
+
* CoreUI component-functions.js v5.0.0-beta.2 (https://coreui.io)
|
|
3
3
|
* Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
package/js/dist/util/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../src/util/config.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * CoreUI util/config.js\n * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)\n *\n * This is a modified version of the Bootstrap's util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js'\nimport { isElement, toType } from './index.js'\n\n/**\n * Class definition\n */\n\nclass Config {\n // Getters\n static get Default() {\n return {}\n }\n\n static get DefaultType() {\n return {}\n }\n\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!')\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config)\n config = this._configAfterMerge(config)\n this._typeCheckConfig(config)\n return config\n }\n\n _configAfterMerge(config) {\n return config\n }\n\n _mergeConfigObj(config, element) {\n const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {} // try to parse\n\n return {\n ...this.constructor.Default,\n ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n ...(typeof config === 'object' ? config : {})\n }\n }\n\n _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n for (const [property, expectedTypes] of Object.entries(configTypes)) {\n const value = config[property]\n const valueType = isElement(value) ? 'element' : toType(value)\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(\n `${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`\n )\n }\n }\n }\n}\n\nexport default Config\n"],"names":["Config","Default","DefaultType","NAME","Error","_getConfig","config","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","element","jsonConfig","isElement","Manipulator","getDataAttribute","constructor","getDataAttributes","configTypes","property","expectedTypes","Object","entries","value","valueType","toType","RegExp","test","TypeError","toUpperCase"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;EAKA;EACA;EACA;;EAEA,MAAMA,MAAM,CAAC;EACX;IACA,WAAWC,OAAOA,GAAG;EACnB,IAAA,OAAO,EAAE,CAAA;EACX,GAAA;IAEA,WAAWC,WAAWA,GAAG;EACvB,IAAA,OAAO,EAAE,CAAA;EACX,GAAA;IAEA,WAAWC,IAAIA,GAAG;EAChB,IAAA,MAAM,IAAIC,KAAK,CAAC,qEAAqE,CAAC,CAAA;EACxF,GAAA;IAEAC,UAAUA,CAACC,MAAM,EAAE;EACjBA,IAAAA,MAAM,GAAG,IAAI,CAACC,eAAe,CAACD,MAAM,CAAC,CAAA;EACrCA,IAAAA,MAAM,GAAG,IAAI,CAACE,iBAAiB,CAACF,MAAM,CAAC,CAAA;EACvC,IAAA,IAAI,CAACG,gBAAgB,CAACH,MAAM,CAAC,CAAA;EAC7B,IAAA,OAAOA,MAAM,CAAA;EACf,GAAA;IAEAE,iBAAiBA,CAACF,MAAM,EAAE;EACxB,IAAA,OAAOA,MAAM,CAAA;EACf,GAAA;EAEAC,EAAAA,eAAeA,CAACD,MAAM,EAAEI,OAAO,EAAE;EAC/B,IAAA,MAAMC,UAAU,GAAGC,kBAAS,CAACF,OAAO,CAAC,GAAGG,WAAW,CAACC,gBAAgB,CAACJ,OAAO,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC;;MAE7F,OAAO;EACL,MAAA,GAAG,IAAI,CAACK,WAAW,CAACd,OAAO;QAC3B,IAAI,OAAOU,UAAU,KAAK,QAAQ,GAAGA,UAAU,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"config.js","sources":["../../src/util/config.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * CoreUI util/config.js\n * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)\n *\n * This is a modified version of the Bootstrap's util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js'\nimport { isElement, toType } from './index.js'\n\n/**\n * Class definition\n */\n\nclass Config {\n // Getters\n static get Default() {\n return {}\n }\n\n static get DefaultType() {\n return {}\n }\n\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!')\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config)\n config = this._configAfterMerge(config)\n this._typeCheckConfig(config)\n return config\n }\n\n _configAfterMerge(config) {\n return config\n }\n\n _mergeConfigObj(config, element) {\n const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {} // try to parse\n\n return {\n ...this.constructor.Default,\n ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n ...(typeof config === 'object' ? config : {})\n }\n }\n\n _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n for (const [property, expectedTypes] of Object.entries(configTypes)) {\n const value = config[property]\n const valueType = isElement(value) ? 'element' : toType(value)\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(\n `${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`\n )\n }\n }\n }\n}\n\nexport default Config\n"],"names":["Config","Default","DefaultType","NAME","Error","_getConfig","config","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","element","jsonConfig","isElement","Manipulator","getDataAttribute","constructor","getDataAttributes","configTypes","property","expectedTypes","Object","entries","value","valueType","toType","RegExp","test","TypeError","toUpperCase"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;EAKA;EACA;EACA;;EAEA,MAAMA,MAAM,CAAC;EACX;IACA,WAAWC,OAAOA,GAAG;EACnB,IAAA,OAAO,EAAE,CAAA;EACX,GAAA;IAEA,WAAWC,WAAWA,GAAG;EACvB,IAAA,OAAO,EAAE,CAAA;EACX,GAAA;IAEA,WAAWC,IAAIA,GAAG;EAChB,IAAA,MAAM,IAAIC,KAAK,CAAC,qEAAqE,CAAC,CAAA;EACxF,GAAA;IAEAC,UAAUA,CAACC,MAAM,EAAE;EACjBA,IAAAA,MAAM,GAAG,IAAI,CAACC,eAAe,CAACD,MAAM,CAAC,CAAA;EACrCA,IAAAA,MAAM,GAAG,IAAI,CAACE,iBAAiB,CAACF,MAAM,CAAC,CAAA;EACvC,IAAA,IAAI,CAACG,gBAAgB,CAACH,MAAM,CAAC,CAAA;EAC7B,IAAA,OAAOA,MAAM,CAAA;EACf,GAAA;IAEAE,iBAAiBA,CAACF,MAAM,EAAE;EACxB,IAAA,OAAOA,MAAM,CAAA;EACf,GAAA;EAEAC,EAAAA,eAAeA,CAACD,MAAM,EAAEI,OAAO,EAAE;EAC/B,IAAA,MAAMC,UAAU,GAAGC,kBAAS,CAACF,OAAO,CAAC,GAAGG,WAAW,CAACC,gBAAgB,CAACJ,OAAO,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC;;MAE7F,OAAO;EACL,MAAA,GAAG,IAAI,CAACK,WAAW,CAACd,OAAO;QAC3B,IAAI,OAAOU,UAAU,KAAK,QAAQ,GAAGA,UAAU,GAAG,EAAE;EACpD,MAAA,IAAIC,kBAAS,CAACF,OAAO,CAAC,GAAGG,WAAW,CAACG,iBAAiB,CAACN,OAAO,CAAC,GAAG,EAAE;QACpE,IAAI,OAAOJ,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAG,EAAE;OAC7C,CAAA;EACH,GAAA;IAEAG,gBAAgBA,CAACH,MAAM,EAAEW,WAAW,GAAG,IAAI,CAACF,WAAW,CAACb,WAAW,EAAE;EACnE,IAAA,KAAK,MAAM,CAACgB,QAAQ,EAAEC,aAAa,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACJ,WAAW,CAAC,EAAE;EACnE,MAAA,MAAMK,KAAK,GAAGhB,MAAM,CAACY,QAAQ,CAAC,CAAA;EAC9B,MAAA,MAAMK,SAAS,GAAGX,kBAAS,CAACU,KAAK,CAAC,GAAG,SAAS,GAAGE,eAAM,CAACF,KAAK,CAAC,CAAA;QAE9D,IAAI,CAAC,IAAIG,MAAM,CAACN,aAAa,CAAC,CAACO,IAAI,CAACH,SAAS,CAAC,EAAE;UAC9C,MAAM,IAAII,SAAS,CAChB,CAAA,EAAE,IAAI,CAACZ,WAAW,CAACZ,IAAI,CAACyB,WAAW,EAAG,aAAYV,QAAS,CAAA,iBAAA,EAAmBK,SAAU,CAAuBJ,qBAAAA,EAAAA,aAAc,IAChI,CAAC,CAAA;EACH,OAAA;EACF,KAAA;EACF,GAAA;EACF;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI focustrap.js v5.0.0-beta.
|
|
2
|
+
* CoreUI focustrap.js v5.0.0-beta.2 (https://coreui.io)
|
|
3
3
|
* Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
package/js/dist/util/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI sanitizer.js v5.0.0-beta.
|
|
2
|
+
* CoreUI sanitizer.js v5.0.0-beta.2 (https://coreui.io)
|
|
3
3
|
* Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI scrollbar.js v5.0.0-beta.
|
|
2
|
+
* CoreUI scrollbar.js v5.0.0-beta.2 (https://coreui.io)
|
|
3
3
|
* Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
package/js/dist/util/swipe.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI template-factory.js v5.0.0-beta.
|
|
2
|
+
* CoreUI template-factory.js v5.0.0-beta.2 (https://coreui.io)
|
|
3
3
|
* Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
|
|
4
4
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
5
5
|
*/
|
package/js/src/base-component.js
CHANGED
package/js/src/sidebar.js
CHANGED
|
@@ -90,6 +90,10 @@ class Sidebar extends BaseComponent {
|
|
|
90
90
|
this._element.classList.remove(CLASS_NAME_HIDE)
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
if (this._overlaid) {
|
|
94
|
+
this._element.classList.add(CLASS_NAME_SHOW)
|
|
95
|
+
}
|
|
96
|
+
|
|
93
97
|
if (this._isMobile()) {
|
|
94
98
|
this._element.classList.add(CLASS_NAME_SHOW)
|
|
95
99
|
this._backdrop.show()
|
|
@@ -120,7 +124,9 @@ class Sidebar extends BaseComponent {
|
|
|
120
124
|
if (this._isMobile()) {
|
|
121
125
|
this._backdrop.hide()
|
|
122
126
|
new ScrollBarHelper().reset()
|
|
123
|
-
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (!this._isMobile() && !this._overlaid) {
|
|
124
130
|
this._element.classList.add(CLASS_NAME_HIDE)
|
|
125
131
|
}
|
|
126
132
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/coreui",
|
|
3
3
|
"description": "The most popular front-end framework for developing responsive, mobile-first projects on the web rewritten and maintained by the CoreUI Team",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.2",
|
|
5
5
|
"config": {
|
|
6
6
|
"version_short": "5.0"
|
|
7
7
|
},
|
|
@@ -100,21 +100,21 @@
|
|
|
100
100
|
"@rollup/plugin-babel": "^6.0.4",
|
|
101
101
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
102
102
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
103
|
-
"@rollup/plugin-replace": "^5.0.
|
|
103
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
104
104
|
"autoprefixer": "^10.4.16",
|
|
105
105
|
"bundlewatch": "^0.3.3",
|
|
106
106
|
"clean-css-cli": "^5.6.2",
|
|
107
107
|
"cross-env": "^7.0.3",
|
|
108
|
-
"eslint": "^8.
|
|
108
|
+
"eslint": "^8.53.0",
|
|
109
109
|
"eslint-config-xo": "^0.43.1",
|
|
110
110
|
"eslint-plugin-html": "^7.1.0",
|
|
111
111
|
"eslint-plugin-import": "^2.29.0",
|
|
112
112
|
"eslint-plugin-markdown": "^3.0.1",
|
|
113
|
-
"eslint-plugin-unicorn": "^
|
|
113
|
+
"eslint-plugin-unicorn": "^49.0.0",
|
|
114
114
|
"find-unused-sass-variables": "^5.0.0",
|
|
115
115
|
"globby": "^11.1.0",
|
|
116
116
|
"hammer-simulator": "0.0.1",
|
|
117
|
-
"hugo-bin": "^0.
|
|
117
|
+
"hugo-bin": "^0.116.3",
|
|
118
118
|
"ip": "^2.0.0",
|
|
119
119
|
"jasmine": "^4.6.0",
|
|
120
120
|
"jquery": "^3.7.1",
|
|
@@ -133,15 +133,15 @@
|
|
|
133
133
|
"postcss": "^8.4.31",
|
|
134
134
|
"postcss-cli": "^10.1.0",
|
|
135
135
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
136
|
-
"rollup": "^3.
|
|
137
|
-
"rollup-plugin-istanbul": "^
|
|
136
|
+
"rollup": "^4.3.0",
|
|
137
|
+
"rollup-plugin-istanbul": "^5.0.0",
|
|
138
138
|
"rtlcss": "^4.1.1",
|
|
139
|
-
"sass": "^1.69.
|
|
139
|
+
"sass": "^1.69.5",
|
|
140
140
|
"sass-true": "^7.0.0",
|
|
141
141
|
"shelljs": "^0.8.5",
|
|
142
142
|
"stylelint": "^15.11.0",
|
|
143
143
|
"stylelint-config-twbs-bootstrap": "^11.0.1",
|
|
144
|
-
"terser": "5.
|
|
144
|
+
"terser": "5.24.0",
|
|
145
145
|
"vnu-jar": "23.4.11"
|
|
146
146
|
},
|
|
147
147
|
"files": [
|
package/scss/_variables.scss
CHANGED
|
@@ -407,7 +407,7 @@ $prefix: $variable-prefix !default;
|
|
|
407
407
|
|
|
408
408
|
// Set mobile breakpoint
|
|
409
409
|
|
|
410
|
-
$mobile-breakpoint:
|
|
410
|
+
$mobile-breakpoint: lg !default;
|
|
411
411
|
|
|
412
412
|
// Gradient
|
|
413
413
|
//
|
|
@@ -1857,6 +1857,7 @@ $sidebar-brand-color: var(--#{$prefix}body-color) !default;
|
|
|
1857
1857
|
$sidebar-brand-bg: rgba($black, .2) !default;
|
|
1858
1858
|
$sidebar-backdrop-bg: $black !default;
|
|
1859
1859
|
$sidebar-backdrop-opacity: .5 !default;
|
|
1860
|
+
$sidebar-overlaid-box-shadow: var(--#{$prefix}box-shadow) !default;
|
|
1860
1861
|
// scss-docs-end sidebar-variables
|
|
1861
1862
|
|
|
1862
1863
|
// scss-docs-start sidebar-nav-variables
|
|
@@ -1878,10 +1879,10 @@ $sidebar-nav-link-border-color: transparent !default;
|
|
|
1878
1879
|
$sidebar-nav-link-border-radius: var(--#{$prefix}border-radius) !default;
|
|
1879
1880
|
$sidebar-nav-link-transition: background .15s ease, color .15s ease, gap .15s ease !default;
|
|
1880
1881
|
|
|
1881
|
-
$sidebar-compact-nav-link-padding-y: .
|
|
1882
|
+
$sidebar-compact-nav-link-padding-y: .5625rem !default;
|
|
1882
1883
|
|
|
1883
1884
|
$sidebar-narrow-nav-link-padding-y: .75rem !default;
|
|
1884
|
-
$sidebar-narrow-nav-link-padding-x: .
|
|
1885
|
+
$sidebar-narrow-nav-link-padding-x: .5rem !default;
|
|
1885
1886
|
|
|
1886
1887
|
$sidebar-nav-link-icon-margin: .75rem !default;
|
|
1887
1888
|
$sidebar-nav-link-icon-color: var(--#{$prefix}tertiary-color) !default;
|
package/scss/mixins/_banner.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@mixin bsBanner($file) {
|
|
2
2
|
/*!
|
|
3
|
-
* CoreUI #{$file} v5.0.0-beta.
|
|
3
|
+
* CoreUI #{$file} v5.0.0-beta.2 (https://coreui.io)
|
|
4
4
|
* Copyright (c) 2023 creativeLabs Łukasz Holeczek
|
|
5
5
|
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
6
6
|
*/
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
.nav-group.show .nav-group-items,
|
|
44
44
|
.sidebar-form {
|
|
45
45
|
height: 0 !important; // stylelint-disable-line declaration-no-important
|
|
46
|
-
padding: 0;
|
|
47
|
-
margin: 0;
|
|
46
|
+
padding: 0 !important; // stylelint-disable-line declaration-no-important
|
|
47
|
+
margin: 0 !important; // stylelint-disable-line declaration-no-important
|
|
48
48
|
visibility: hidden;
|
|
49
49
|
opacity: 0;
|
|
50
50
|
}
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
&.sidebar-fixed,
|
|
29
29
|
&.sidebar-narrow,
|
|
30
|
-
&.sidebar-narrow-unfoldable
|
|
30
|
+
&.sidebar-narrow-unfoldable,
|
|
31
|
+
&.sidebar-overlaid {
|
|
31
32
|
z-index: var(--#{$prefix}sidebar-zindex);
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -106,16 +107,17 @@
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
&.sidebar-overlaid {
|
|
110
|
+
// scss-docs-start sidebar-css-vars
|
|
111
|
+
--#{$prefix}sidebar-overlaid-box-shadow: #{$sidebar-overlaid-box-shadow};
|
|
112
|
+
// scss-docs-end sidebar-css-vars
|
|
113
|
+
|
|
109
114
|
position: fixed;
|
|
110
115
|
top: 0;
|
|
111
116
|
bottom: 0;
|
|
112
117
|
|
|
113
|
-
&:not(.
|
|
114
|
-
box-shadow: $box-shadow;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:not(.sidebar-end) {
|
|
118
|
+
&:not(.sidebar-end){
|
|
118
119
|
@include ltr-rtl("left", 0);
|
|
120
|
+
@include ltr-rtl("margin-left", calc(-1 * var(--#{$prefix}sidebar-width)));
|
|
119
121
|
~ * {
|
|
120
122
|
--#{$prefix}sidebar-occupy-start: 0 !important; // stylelint-disable-line
|
|
121
123
|
}
|
|
@@ -123,15 +125,29 @@
|
|
|
123
125
|
|
|
124
126
|
&.sidebar-end {
|
|
125
127
|
@include ltr-rtl("right", 0);
|
|
128
|
+
@include ltr-rtl("margin-right", calc(-1 * var(--#{$prefix}sidebar-width)));
|
|
126
129
|
~ * {
|
|
127
130
|
--#{$prefix}sidebar-occupy-end: 0 !important; // stylelint-disable-line
|
|
128
131
|
}
|
|
129
132
|
}
|
|
133
|
+
|
|
134
|
+
&.show {
|
|
135
|
+
box-shadow: var(--#{$prefix}sidebar-overlaid-box-shadow);
|
|
136
|
+
|
|
137
|
+
&:not(.sidebar-end) {
|
|
138
|
+
@include ltr-rtl("margin-left", 0);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&.sidebar-end {
|
|
142
|
+
@include ltr-rtl("margin-right", 0);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
130
145
|
}
|
|
131
146
|
|
|
132
147
|
@include media-breakpoint-down($mobile-breakpoint) {
|
|
133
148
|
// Some of our components use this property to detect if the sidebar has mobile behavior.
|
|
134
149
|
--#{$prefix}is-mobile: true;
|
|
150
|
+
|
|
135
151
|
position: fixed;
|
|
136
152
|
top: 0;
|
|
137
153
|
bottom: 0;
|