mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-25 02:54:04 +03:00
release 4.4.0
This commit is contained in:
parent
08d8add438
commit
2a38986fe7
|
@ -1,5 +1,5 @@
|
||||||
MDB5
|
MDB5
|
||||||
Version: FREE 4.3.0
|
Version: FREE 4.4.0
|
||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
https://mdbootstrap.com/docs/standard/
|
https://mdbootstrap.com/docs/standard/
|
||||||
|
|
8
css/mdb.dark.min.css
vendored
8
css/mdb.dark.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
css/mdb.dark.rtl.min.css
vendored
4
css/mdb.dark.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
10
css/mdb.min.css
vendored
10
css/mdb.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
css/mdb.rtl.min.css
vendored
4
css/mdb.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
js/mdb.min.js
vendored
4
js/mdb.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mdb-ui-kit",
|
"name": "mdb-ui-kit",
|
||||||
"version": "4.3.0",
|
"version": "4.4.0",
|
||||||
"main": "js/mdb.min.js",
|
"main": "js/mdb.min.js",
|
||||||
"homepage": "https://mdbootstrap.com/docs/standard/",
|
"homepage": "https://mdbootstrap.com/docs/standard/",
|
||||||
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",
|
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",
|
||||||
|
|
|
@ -14,6 +14,7 @@ const NAME = 'ripple';
|
||||||
const DATA_KEY = 'mdb.ripple';
|
const DATA_KEY = 'mdb.ripple';
|
||||||
const CLASSNAME_RIPPLE = 'ripple-surface';
|
const CLASSNAME_RIPPLE = 'ripple-surface';
|
||||||
const CLASSNAME_RIPPLE_WAVE = 'ripple-wave';
|
const CLASSNAME_RIPPLE_WAVE = 'ripple-wave';
|
||||||
|
const CLASSNAME_RIPPLE_WRAPPER = 'input-wrapper';
|
||||||
const SELECTOR_COMPONENT = ['.btn', '.ripple'];
|
const SELECTOR_COMPONENT = ['.btn', '.ripple'];
|
||||||
|
|
||||||
const CLASSNAME_UNBOUND = 'ripple-surface-unbound';
|
const CLASSNAME_UNBOUND = 'ripple-surface-unbound';
|
||||||
|
@ -70,6 +71,7 @@ class Ripple {
|
||||||
this._clickHandler = this._createRipple.bind(this);
|
this._clickHandler = this._createRipple.bind(this);
|
||||||
this._rippleTimer = null;
|
this._rippleTimer = null;
|
||||||
this._isMinWidthSet = false;
|
this._isMinWidthSet = false;
|
||||||
|
this._rippleInSpan = false;
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
@ -103,13 +105,40 @@ class Ripple {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._options = this._getConfig();
|
||||||
|
|
||||||
|
if (this._element.tagName.toLowerCase() === 'input') {
|
||||||
|
const parent = this._element.parentNode;
|
||||||
|
|
||||||
|
this._rippleInSpan = true;
|
||||||
|
|
||||||
|
if (parent.tagName.toLowerCase() === 'span' && parent.classList.contains(CLASSNAME_RIPPLE)) {
|
||||||
|
this._element = parent;
|
||||||
|
} else {
|
||||||
|
const shadow = getComputedStyle(this._element).boxShadow;
|
||||||
|
|
||||||
|
const wrapper = document.createElement('span');
|
||||||
|
wrapper.classList.add(CLASSNAME_RIPPLE, CLASSNAME_RIPPLE_WRAPPER);
|
||||||
|
|
||||||
|
Manipulator.addStyle(wrapper, {
|
||||||
|
border: 0,
|
||||||
|
'box-shadow': shadow,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Put element as child
|
||||||
|
parent.replaceChild(wrapper, this._element);
|
||||||
|
wrapper.appendChild(this._element);
|
||||||
|
this._element = wrapper;
|
||||||
|
}
|
||||||
|
this._element.focus();
|
||||||
|
}
|
||||||
|
|
||||||
if (!this._element.style.minWidth) {
|
if (!this._element.style.minWidth) {
|
||||||
Manipulator.style(this._element, { 'min-width': `${this._element.offsetWidth}px` });
|
Manipulator.style(this._element, { 'min-width': `${this._element.offsetWidth}px` });
|
||||||
this._isMinWidthSet = true;
|
this._isMinWidthSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Manipulator.addClass(this._element, CLASSNAME_RIPPLE);
|
Manipulator.addClass(this._element, CLASSNAME_RIPPLE);
|
||||||
this._options = this._getConfig();
|
|
||||||
this._createRipple(event);
|
this._createRipple(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,12 +224,25 @@ class Ripple {
|
||||||
Manipulator.style(this._element, { 'min-width': '' });
|
Manipulator.style(this._element, { 'min-width': '' });
|
||||||
this._isMinWidthSet = false;
|
this._isMinWidthSet = false;
|
||||||
}
|
}
|
||||||
|
if (this._rippleInSpan && this._element.classList.contains(CLASSNAME_RIPPLE_WRAPPER)) {
|
||||||
|
this._removeWrapperSpan();
|
||||||
|
} else {
|
||||||
Manipulator.removeClass(this._element, CLASSNAME_RIPPLE);
|
Manipulator.removeClass(this._element, CLASSNAME_RIPPLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, duration);
|
}, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_removeWrapperSpan() {
|
||||||
|
const child = this._element.firstChild;
|
||||||
|
|
||||||
|
this._element.replaceWith(child);
|
||||||
|
this._element = child;
|
||||||
|
this._element.focus();
|
||||||
|
this._rippleInSpan = false;
|
||||||
|
}
|
||||||
|
|
||||||
_durationToMsNumber(time) {
|
_durationToMsNumber(time) {
|
||||||
return Number(time.replace('ms', '').replace('s', '000'));
|
return Number(time.replace('ms', '').replace('s', '000'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
// To be removed
|
||||||
|
|
||||||
|
hr.divider-horizontal:not([size]) {
|
||||||
|
height: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider-horizontal {
|
||||||
|
opacity: 1;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
height: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider-vertical {
|
||||||
|
opacity: 1;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
display: inline-block;
|
||||||
|
width: 2px;
|
||||||
|
margin: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr.divider-horizontal-blurry {
|
||||||
|
background-image: linear-gradient(90deg, transparent, hsl(0, 0%, 40%), transparent);
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr.divider-vertical-blurry {
|
||||||
|
background-image: linear-gradient(180deg, transparent, hsl(0, 0%, 40%), transparent);
|
||||||
|
background-color: transparent;
|
||||||
|
width: 1px;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
|
@ -119,3 +119,11 @@
|
||||||
border-top: 2px solid $dropdown-divider-bg;
|
border-top: 2px solid $dropdown-divider-bg;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown-menu {
|
||||||
|
INPUT:not(:-webkit-autofill),
|
||||||
|
SELECT:not(:-webkit-autofill),
|
||||||
|
TEXTAREA:not(:-webkit-autofill) {
|
||||||
|
animation-name: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Navbar themes
|
||||||
.navbar-light {
|
.navbar-light {
|
||||||
.navbar-toggler-icon {
|
.navbar-toggler-icon {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
@include ripple-variant(white);
|
@include ripple-variant(white);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-wrapper .ripple-wave {
|
||||||
|
@include ripple-variant(white);
|
||||||
|
}
|
||||||
|
|
||||||
@each $color, $value in $theme-colors {
|
@each $color, $value in $theme-colors {
|
||||||
.ripple-surface-#{$color} {
|
.ripple-surface-#{$color} {
|
||||||
.ripple-wave {
|
.ripple-wave {
|
||||||
|
|
|
@ -175,33 +175,78 @@ $utilities: map-merge(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
hr.divider-horizontal:not([size]) {
|
hr:not([size]) {
|
||||||
|
&.hr {
|
||||||
height: 2px;
|
height: 2px;
|
||||||
}
|
|
||||||
|
|
||||||
.divider-horizontal {
|
|
||||||
opacity: 1;
|
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
height: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.divider-vertical {
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background-color: #f5f5f5;
|
|
||||||
display: inline-block;
|
|
||||||
width: 2px;
|
|
||||||
margin: 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr.divider-horizontal-blurry {
|
&.hr-blurry {
|
||||||
background-image: linear-gradient(90deg, transparent, hsl(0, 0%, 40%), transparent);
|
background-image: linear-gradient(90deg, transparent, hsl(0, 0%, 40%), transparent);
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
height: 1px;
|
||||||
|
opacity: $hr-opacity;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.vr {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hr.divider-vertical-blurry {
|
.vr {
|
||||||
|
width: 2px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vr-blurry {
|
||||||
background-image: linear-gradient(180deg, transparent, hsl(0, 0%, 40%), transparent);
|
background-image: linear-gradient(180deg, transparent, hsl(0, 0%, 40%), transparent);
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
top: 0;
|
opacity: $hr-opacity;
|
||||||
right: 0;
|
}
|
||||||
|
|
||||||
|
$utilities: map-merge(
|
||||||
|
$utilities,
|
||||||
|
(
|
||||||
|
'object-fit': (
|
||||||
|
property: object-fit,
|
||||||
|
class: object,
|
||||||
|
values: (
|
||||||
|
cover: cover,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$utilities: map-merge(
|
||||||
|
$utilities,
|
||||||
|
(
|
||||||
|
'object-position': (
|
||||||
|
property: object-position,
|
||||||
|
class: object,
|
||||||
|
values: (
|
||||||
|
top: top,
|
||||||
|
center: center,
|
||||||
|
bottom: bottom,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
@each $name, $color in $theme-colors {
|
||||||
|
.link-#{$name} {
|
||||||
|
transition: color 0.15s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-light .navbar-nav .nav-link.link-grayish,
|
||||||
|
.navbar-dark .navbar-nav .nav-link.link-grayish,
|
||||||
|
.link-grayish {
|
||||||
|
color: #9fa6b2;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: #798497;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -289,6 +289,7 @@ $warning: #ffa900 !default;
|
||||||
$danger: #f93154 !default;
|
$danger: #f93154 !default;
|
||||||
$light: #f9f9f9 !default;
|
$light: #f9f9f9 !default;
|
||||||
$dark: $gray-900 !default;
|
$dark: $gray-900 !default;
|
||||||
|
$grayish: #9fa6b2 !default;
|
||||||
|
|
||||||
// scss-docs-start theme-colors-map
|
// scss-docs-start theme-colors-map
|
||||||
$theme-colors: (
|
$theme-colors: (
|
||||||
|
@ -302,6 +303,7 @@ $theme-colors: (
|
||||||
'dark': $dark,
|
'dark': $dark,
|
||||||
'white': $white,
|
'white': $white,
|
||||||
'black': $black,
|
'black': $black,
|
||||||
|
'grayish': $grayish,
|
||||||
) !default;
|
) !default;
|
||||||
// scss-docs-end theme-colors-map
|
// scss-docs-end theme-colors-map
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user