@coreui/coreui 5.0.0-rc.0 → 5.0.0-rc.1
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 +1 -1
- package/dist/css/coreui-grid.css +1 -1
- package/dist/css/coreui-grid.css.map +1 -1
- package/dist/css/coreui-grid.min.css +1 -1
- package/dist/css/coreui-grid.min.css.map +1 -1
- package/dist/css/coreui-grid.rtl.css +1 -1
- package/dist/css/coreui-grid.rtl.css.map +1 -1
- package/dist/css/coreui-grid.rtl.min.css +1 -1
- 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 +2 -2
- package/dist/css/coreui-reboot.rtl.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.min.css +2 -2
- 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 +9 -9
- package/dist/css/coreui-utilities.rtl.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.min.css +2 -2
- package/dist/css/coreui-utilities.rtl.min.css.map +1 -1
- package/dist/css/coreui.css +14 -14
- 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 +30 -27
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/offcanvas.js +1 -1
- package/js/dist/popover.js +1 -1
- package/js/dist/scrollspy.js +1 -1
- package/js/dist/sidebar.js +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/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/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/package.json +4 -4
- package/scss/_accordion.scss +1 -1
- package/scss/_dropdown.scss +1 -1
- package/scss/_reboot.scss +1 -1
- package/scss/_utilities.scss +8 -5
- package/scss/mixins/_banner.scss +1 -1
- package/scss/mixins/_reset-text.scss +1 -1
- package/scss/mixins/_utilities.scss +5 -2
- package/scss/sidebar/_sidebar-narrow.scss +8 -8
- package/scss/sidebar/_sidebar.scss +4 -1
package/js/dist/alert.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI base-component.js v5.0.0-rc.
|
|
2
|
+
* CoreUI base-component.js v5.0.0-rc.1 (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
|
*/
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Constants
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
const VERSION = '5.0.0-rc.
|
|
27
|
+
const VERSION = '5.0.0-rc.1';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Class definition
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-component.js","sources":["../src/base-component.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * CoreUI base-component.js\n * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)\n *\n * This component is a modified version of the Bootstrap's base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from './dom/data.js'\nimport EventHandler from './dom/event-handler.js'\nimport Config from './util/config.js'\nimport { executeAfterTransition, getElement } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst VERSION = '5.0.0-rc.
|
|
1
|
+
{"version":3,"file":"base-component.js","sources":["../src/base-component.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * CoreUI base-component.js\n * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)\n *\n * This component is a modified version of the Bootstrap's base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from './dom/data.js'\nimport EventHandler from './dom/event-handler.js'\nimport Config from './util/config.js'\nimport { executeAfterTransition, getElement } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst VERSION = '5.0.0-rc.1'\n\n/**\n * Class definition\n */\n\nclass BaseComponent extends Config {\n constructor(element, config) {\n super()\n\n element = getElement(element)\n if (!element) {\n return\n }\n\n this._element = element\n this._config = this._getConfig(config)\n\n Data.set(this._element, this.constructor.DATA_KEY, this)\n }\n\n // Public\n dispose() {\n Data.remove(this._element, this.constructor.DATA_KEY)\n EventHandler.off(this._element, this.constructor.EVENT_KEY)\n\n for (const propertyName of Object.getOwnPropertyNames(this)) {\n this[propertyName] = null\n }\n }\n\n _queueCallback(callback, element, isAnimated = true) {\n executeAfterTransition(callback, element, isAnimated)\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config, this._element)\n config = this._configAfterMerge(config)\n this._typeCheckConfig(config)\n return config\n }\n\n // Static\n static getInstance(element) {\n return Data.get(getElement(element), this.DATA_KEY)\n }\n\n static getOrCreateInstance(element, config = {}) {\n return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)\n }\n\n static get VERSION() {\n return VERSION\n }\n\n static get DATA_KEY() {\n return `coreui.${this.NAME}`\n }\n\n static get EVENT_KEY() {\n return `.${this.DATA_KEY}`\n }\n\n static eventName(name) {\n return `${name}${this.EVENT_KEY}`\n }\n}\n\nexport default BaseComponent\n"],"names":["VERSION","BaseComponent","Config","constructor","element","config","getElement","_element","_config","_getConfig","Data","set","DATA_KEY","dispose","remove","EventHandler","off","EVENT_KEY","propertyName","Object","getOwnPropertyNames","_queueCallback","callback","isAnimated","executeAfterTransition","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","getInstance","get","getOrCreateInstance","NAME","eventName","name"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;EAOA;EACA;EACA;;EAEA,MAAMA,OAAO,GAAG,YAAY,CAAA;;EAE5B;EACA;EACA;;EAEA,MAAMC,aAAa,SAASC,MAAM,CAAC;EACjCC,EAAAA,WAAWA,CAACC,OAAO,EAAEC,MAAM,EAAE;EAC3B,IAAA,KAAK,EAAE,CAAA;EAEPD,IAAAA,OAAO,GAAGE,mBAAU,CAACF,OAAO,CAAC,CAAA;MAC7B,IAAI,CAACA,OAAO,EAAE;EACZ,MAAA,OAAA;EACF,KAAA;MAEA,IAAI,CAACG,QAAQ,GAAGH,OAAO,CAAA;MACvB,IAAI,CAACI,OAAO,GAAG,IAAI,CAACC,UAAU,CAACJ,MAAM,CAAC,CAAA;EAEtCK,IAAAA,IAAI,CAACC,GAAG,CAAC,IAAI,CAACJ,QAAQ,EAAE,IAAI,CAACJ,WAAW,CAACS,QAAQ,EAAE,IAAI,CAAC,CAAA;EAC1D,GAAA;;EAEA;EACAC,EAAAA,OAAOA,GAAG;EACRH,IAAAA,IAAI,CAACI,MAAM,CAAC,IAAI,CAACP,QAAQ,EAAE,IAAI,CAACJ,WAAW,CAACS,QAAQ,CAAC,CAAA;EACrDG,IAAAA,YAAY,CAACC,GAAG,CAAC,IAAI,CAACT,QAAQ,EAAE,IAAI,CAACJ,WAAW,CAACc,SAAS,CAAC,CAAA;MAE3D,KAAK,MAAMC,YAAY,IAAIC,MAAM,CAACC,mBAAmB,CAAC,IAAI,CAAC,EAAE;EAC3D,MAAA,IAAI,CAACF,YAAY,CAAC,GAAG,IAAI,CAAA;EAC3B,KAAA;EACF,GAAA;IAEAG,cAAcA,CAACC,QAAQ,EAAElB,OAAO,EAAEmB,UAAU,GAAG,IAAI,EAAE;EACnDC,IAAAA,+BAAsB,CAACF,QAAQ,EAAElB,OAAO,EAAEmB,UAAU,CAAC,CAAA;EACvD,GAAA;IAEAd,UAAUA,CAACJ,MAAM,EAAE;MACjBA,MAAM,GAAG,IAAI,CAACoB,eAAe,CAACpB,MAAM,EAAE,IAAI,CAACE,QAAQ,CAAC,CAAA;EACpDF,IAAAA,MAAM,GAAG,IAAI,CAACqB,iBAAiB,CAACrB,MAAM,CAAC,CAAA;EACvC,IAAA,IAAI,CAACsB,gBAAgB,CAACtB,MAAM,CAAC,CAAA;EAC7B,IAAA,OAAOA,MAAM,CAAA;EACf,GAAA;;EAEA;IACA,OAAOuB,WAAWA,CAACxB,OAAO,EAAE;EAC1B,IAAA,OAAOM,IAAI,CAACmB,GAAG,CAACvB,mBAAU,CAACF,OAAO,CAAC,EAAE,IAAI,CAACQ,QAAQ,CAAC,CAAA;EACrD,GAAA;IAEA,OAAOkB,mBAAmBA,CAAC1B,OAAO,EAAEC,MAAM,GAAG,EAAE,EAAE;MAC/C,OAAO,IAAI,CAACuB,WAAW,CAACxB,OAAO,CAAC,IAAI,IAAI,IAAI,CAACA,OAAO,EAAE,OAAOC,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAG,IAAI,CAAC,CAAA;EACnG,GAAA;IAEA,WAAWL,OAAOA,GAAG;EACnB,IAAA,OAAOA,OAAO,CAAA;EAChB,GAAA;IAEA,WAAWY,QAAQA,GAAG;EACpB,IAAA,OAAQ,CAAS,OAAA,EAAA,IAAI,CAACmB,IAAK,CAAC,CAAA,CAAA;EAC9B,GAAA;IAEA,WAAWd,SAASA,GAAG;EACrB,IAAA,OAAQ,CAAG,CAAA,EAAA,IAAI,CAACL,QAAS,CAAC,CAAA,CAAA;EAC5B,GAAA;IAEA,OAAOoB,SAASA,CAACC,IAAI,EAAE;EACrB,IAAA,OAAQ,GAAEA,IAAK,CAAA,EAAE,IAAI,CAAChB,SAAU,CAAC,CAAA,CAAA;EACnC,GAAA;EACF;;;;;;;;"}
|
package/js/dist/button.js
CHANGED
package/js/dist/carousel.js
CHANGED
package/js/dist/collapse.js
CHANGED
package/js/dist/dom/data.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI event-handler.js v5.0.0-rc.
|
|
2
|
+
* CoreUI event-handler.js v5.0.0-rc.1 (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 manipulator.js v5.0.0-rc.
|
|
2
|
+
* CoreUI manipulator.js v5.0.0-rc.1 (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 selector-engine.js v5.0.0-rc.
|
|
2
|
+
* CoreUI selector-engine.js v5.0.0-rc.1 (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/dropdown.js
CHANGED
package/js/dist/modal.js
CHANGED
package/js/dist/navigation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI navigation.js v5.0.0-rc.
|
|
2
|
+
* CoreUI navigation.js v5.0.0-rc.1 (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/offcanvas.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI offcanvas.js v5.0.0-rc.
|
|
2
|
+
* CoreUI offcanvas.js v5.0.0-rc.1 (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/popover.js
CHANGED
package/js/dist/scrollspy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI scrollspy.js v5.0.0-rc.
|
|
2
|
+
* CoreUI scrollspy.js v5.0.0-rc.1 (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/sidebar.js
CHANGED
package/js/dist/tab.js
CHANGED
package/js/dist/toast.js
CHANGED
package/js/dist/tooltip.js
CHANGED
package/js/dist/util/backdrop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI component-functions.js v5.0.0-rc.
|
|
2
|
+
* CoreUI component-functions.js v5.0.0-rc.1 (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,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI focustrap.js v5.0.0-rc.
|
|
2
|
+
* CoreUI focustrap.js v5.0.0-rc.1 (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-rc.
|
|
2
|
+
* CoreUI sanitizer.js v5.0.0-rc.1 (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-rc.
|
|
2
|
+
* CoreUI scrollbar.js v5.0.0-rc.1 (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-rc.
|
|
2
|
+
* CoreUI template-factory.js v5.0.0-rc.1 (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/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-rc.
|
|
4
|
+
"version": "5.0.0-rc.1",
|
|
5
5
|
"config": {
|
|
6
6
|
"version_short": "5.0"
|
|
7
7
|
},
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@popperjs/core": "^2.11.8"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@babel/cli": "^7.23.
|
|
96
|
+
"@babel/cli": "^7.23.4",
|
|
97
97
|
"@babel/core": "^7.23.3",
|
|
98
98
|
"@babel/preset-env": "^7.23.3",
|
|
99
99
|
"@popperjs/core": "^2.11.8",
|
|
@@ -105,7 +105,7 @@
|
|
|
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.54.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",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"postcss": "^8.4.31",
|
|
134
134
|
"postcss-cli": "^10.1.0",
|
|
135
135
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
136
|
-
"rollup": "^4.
|
|
136
|
+
"rollup": "^4.5.2",
|
|
137
137
|
"rollup-plugin-istanbul": "^5.0.0",
|
|
138
138
|
"rtlcss": "^4.1.1",
|
|
139
139
|
"sass": "^1.69.5",
|
package/scss/_accordion.scss
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
padding: var(--#{$prefix}accordion-btn-padding-y) var(--#{$prefix}accordion-btn-padding-x);
|
|
38
38
|
@include font-size($font-size-base);
|
|
39
39
|
color: var(--#{$prefix}accordion-btn-color);
|
|
40
|
-
text-align
|
|
40
|
+
@include ltr-rtl("text-align", left); // Reset button style
|
|
41
41
|
background-color: var(--#{$prefix}accordion-btn-bg);
|
|
42
42
|
border: 0;
|
|
43
43
|
@include border-radius(0);
|
package/scss/_dropdown.scss
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
margin: 0; // Override default margin of ul
|
|
55
55
|
@include font-size(var(--#{$prefix}dropdown-font-size));
|
|
56
56
|
color: var(--#{$prefix}dropdown-color);
|
|
57
|
-
text-align
|
|
57
|
+
@include ltr-rtl("text-align", left); // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
|
58
58
|
list-style: none;
|
|
59
59
|
background-color: var(--#{$prefix}dropdown-bg);
|
|
60
60
|
background-clip: padding-box;
|
package/scss/_reboot.scss
CHANGED
|
@@ -350,7 +350,7 @@ caption {
|
|
|
350
350
|
padding-top: $table-cell-padding-y;
|
|
351
351
|
padding-bottom: $table-cell-padding-y;
|
|
352
352
|
color: var(--#{$prefix}table-caption-color, $table-caption-color);
|
|
353
|
-
text-align
|
|
353
|
+
@include ltr-rtl("text-align", left);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
// 1. Removes font-weight bold by inheriting
|
package/scss/_utilities.scss
CHANGED
|
@@ -109,21 +109,24 @@ $utilities: map-merge(
|
|
|
109
109
|
"start": (
|
|
110
110
|
property: left,
|
|
111
111
|
class: start,
|
|
112
|
-
values: $position-values
|
|
112
|
+
values: $position-values,
|
|
113
|
+
rtl: true
|
|
113
114
|
),
|
|
114
115
|
"end": (
|
|
115
116
|
property: right,
|
|
116
117
|
class: end,
|
|
117
|
-
values: $position-values
|
|
118
|
+
values: $position-values,
|
|
119
|
+
rtl: true
|
|
118
120
|
),
|
|
119
121
|
"translate-middle": (
|
|
120
122
|
property: transform,
|
|
121
123
|
class: translate-middle,
|
|
122
124
|
values: (
|
|
123
|
-
null: translate(-50%, -50%),
|
|
124
|
-
x: translateX(-50%),
|
|
125
|
+
null: ("ltr": translate(-50%, -50%), "rtl": translate(50%, -50%)),
|
|
126
|
+
x: ("ltr": translateX(-50%), "rtl": translateX(50%)),
|
|
125
127
|
y: translateY(-50%),
|
|
126
|
-
)
|
|
128
|
+
),
|
|
129
|
+
rtl: true
|
|
127
130
|
),
|
|
128
131
|
// scss-docs-end utils-position
|
|
129
132
|
// scss-docs-start utils-borders
|
package/scss/mixins/_banner.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-weight: $font-weight-normal;
|
|
6
6
|
line-height: $line-height-base;
|
|
7
|
-
text-align
|
|
7
|
+
@include ltr-rtl("text-align", left); // Fallback for where `start` is not supported
|
|
8
8
|
text-align: start;
|
|
9
9
|
text-decoration: none;
|
|
10
10
|
text-shadow: none;
|
|
@@ -93,11 +93,14 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
@if $is-rtl == true {
|
|
96
|
-
@
|
|
96
|
+
@if (type-of($value) == 'map') {
|
|
97
|
+
@include ltr-rtl($property, map-get($value, "ltr"), null, map-get($value, "rtl"), if($enable-important-utilities, !important, null));
|
|
98
|
+
} @else {
|
|
99
|
+
@include ltr-rtl($property, $value, null, null, if($enable-important-utilities, !important, null));
|
|
100
|
+
}
|
|
97
101
|
} @else {
|
|
98
102
|
#{$property}: $value if($enable-important-utilities, !important, null);
|
|
99
103
|
}
|
|
100
|
-
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
}
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
--#{$prefix}sidebar-narrow-width: #{$sidebar-narrow-width};
|
|
4
4
|
// scss-docs-end sidebar-narrow-css-vars
|
|
5
5
|
|
|
6
|
-
.sidebar-nav {
|
|
7
|
-
--#{$prefix}sidebar-nav-link-padding-x: #{$sidebar-narrow-nav-link-padding-x};
|
|
8
|
-
--#{$prefix}sidebar-nav-link-padding-y: #{$sidebar-narrow-nav-link-padding-y};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
6
|
@include media-breakpoint-up($mobile-breakpoint) {
|
|
12
7
|
flex: 0 0 var(--#{$prefix}sidebar-narrow-width);
|
|
13
8
|
width: var(--#{$prefix}sidebar-narrow-width);
|
|
@@ -32,6 +27,11 @@
|
|
|
32
27
|
padding-left: 0;
|
|
33
28
|
}
|
|
34
29
|
|
|
30
|
+
.sidebar-nav {
|
|
31
|
+
--#{$prefix}sidebar-nav-link-padding-x: #{$sidebar-narrow-nav-link-padding-x};
|
|
32
|
+
--#{$prefix}sidebar-nav-link-padding-y: #{$sidebar-narrow-nav-link-padding-y};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
35
|
.nav-icon {
|
|
36
36
|
flex: 0 0 calc(var(--#{$prefix}sidebar-narrow-width) - (var(--#{$prefix}sidebar-nav-padding-x) * 2) - (var(--#{$prefix}sidebar-nav-link-padding-x) * 2)); // stylelint-disable-line function-disallowed-list
|
|
37
37
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
opacity: 0;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.sidebar-toggler {
|
|
52
|
+
.sidebar-toggler::before {
|
|
53
53
|
@include ltr-rtl("transform", rotate(-180deg), null, rotate(0deg));
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
&:hover {
|
|
91
91
|
box-shadow: $box-shadow;
|
|
92
92
|
|
|
93
|
-
.sidebar-toggler {
|
|
93
|
+
.sidebar-toggler::before {
|
|
94
94
|
@include ltr-rtl("transform", rotate(-180deg), null, rotate(0deg));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&.sidebar-end .sidebar-toggler {
|
|
97
|
+
&.sidebar-end .sidebar-toggler::before {
|
|
98
98
|
transform: rotate(0deg);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -229,7 +229,6 @@
|
|
|
229
229
|
background-color: transparent;
|
|
230
230
|
border: 0;
|
|
231
231
|
@include border-radius();
|
|
232
|
-
@include transition(var(--#{$prefix}sidebar-toggler-transition));
|
|
233
232
|
|
|
234
233
|
&::before {
|
|
235
234
|
position: absolute;
|
|
@@ -240,6 +239,10 @@
|
|
|
240
239
|
content: "";
|
|
241
240
|
background-color: var(--#{$prefix}sidebar-toggler-color);
|
|
242
241
|
mask: var(--#{$prefix}sidebar-toggler-bg) no-repeat center;
|
|
242
|
+
@include transition(var(--#{$prefix}sidebar-toggler-transition));
|
|
243
|
+
@include rtl() {
|
|
244
|
+
transform: rotate(-180deg);
|
|
245
|
+
}
|
|
243
246
|
}
|
|
244
247
|
|
|
245
248
|
// Override <a>'s hover style
|