Skip to content

Commit

Permalink
release 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Bujański committed Jan 11, 2021
1 parent f0528ac commit 4c1af6d
Show file tree
Hide file tree
Showing 95 changed files with 8,404 additions and 318 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MDB5
Version: FREE 3.0.0
Version: FREE 3.1.0

Documentation:
https://mdbootstrap.com/docs/standard/
Expand Down
22 changes: 18 additions & 4 deletions css/mdb.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.min.css.map

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions css/mdb.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.rtl.min.css.map

Large diffs are not rendered by default.

172 changes: 14 additions & 158 deletions index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/mdb.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/mdb.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-ui-kit",
"version": "3.0.0",
"version": "3.1.0",
"main": "js/mdb.min.js",
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",
"author": "MDBootstrap",
Expand Down
13 changes: 7 additions & 6 deletions src/js/free/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class Input {
if (this._initiated) {
return;
}

this._getLabelData();
this._applyDivs();
this._applyNotch();
Expand Down Expand Up @@ -164,12 +163,14 @@ class Input {
}

_activate(event) {
this._getElements(event);
const input = event ? event.target : this.input;
onDOMContentLoaded(() => {
this._getElements(event);
const input = event ? event.target : this.input;

if (input.value !== '') {
Manipulator.addClass(input, CLASSNAME_ACTIVE);
}
if (input.value !== '') {
Manipulator.addClass(input, CLASSNAME_ACTIVE);
}
});
}

_getElements(event) {
Expand Down
124 changes: 124 additions & 0 deletions src/scss/bootstrap-rtl-fix/_accordion.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
//
// Base styles
//

.accordion-button {
position: relative;
display: flex;
align-items: center;
width: 100%;
padding: $accordion-button-padding-y $accordion-button-padding-x;
@include font-size($font-size-base);
color: $accordion-button-color;
background-color: $accordion-button-bg;
border: $accordion-border-width solid $accordion-border-color;
@include border-radius(0);
overflow-anchor: none;
@include transition($accordion-transition);

&.collapsed {
border-bottom-width: 0;
}

&:not(.collapsed) {
color: $accordion-button-active-color;
background-color: $accordion-button-active-bg;

&::after {
background-image: escape-svg($accordion-button-active-icon);
transform: $accordion-icon-transform;
}
}

// Accordion icon
&::after {
flex-shrink: 0;
width: $accordion-icon-width;
height: $accordion-icon-width;
margin-left: auto;
content: '';
background-image: escape-svg($accordion-button-icon);
background-repeat: no-repeat;
background-size: $accordion-icon-width;
@include transition($accordion-icon-transition);
}

&:hover {
z-index: 2;
}

&:focus {
z-index: 3;
border-color: $accordion-button-focus-border-color;
outline: 0;
box-shadow: $accordion-button-focus-box-shadow;
}
}

.accordion-header {
margin-bottom: 0;
}

.accordion-item {
&:first-of-type {
.accordion-button {
@include border-top-radius($accordion-border-radius);
}
}

&:last-of-type {
.accordion-button {
// Only set a border-radius on the last item if the accordion is collapsed
&.collapsed {
border-bottom-width: $accordion-border-width;
@include border-bottom-radius($accordion-border-radius);
}
}

.accordion-collapse {
border-bottom-width: $accordion-border-width;
@include border-bottom-radius($accordion-border-radius);
}
}
}

.accordion-collapse {
border: solid $accordion-border-color;
border-width: 0 $accordion-border-width;
}

.accordion-body {
padding: $accordion-body-padding-y $accordion-body-padding-x;
}

// Flush accordion items
//
// Remove borders and border-radius to keep accordion items edge-to-edge.

.accordion-flush {
.accordion-button {
border-right: 0;
border-left: 0;
@include border-radius(0);
}

.accordion-collapse {
border-width: 0;
}

.accordion-item {
&:first-of-type {
.accordion-button {
border-top-width: 0;
@include border-top-radius(0);
}
}

&:last-of-type {
.accordion-button.collapsed {
border-bottom-width: 0;
@include border-bottom-radius(0);
}
}
}
}
55 changes: 55 additions & 0 deletions src/scss/bootstrap-rtl-fix/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//
// Base styles
//

.alert {
position: relative;
padding: $alert-padding-y $alert-padding-x;
margin-bottom: $alert-margin-bottom;
border: $alert-border-width solid transparent;
@include border-radius($alert-border-radius);
}

// Headings for larger alerts
.alert-heading {
// Specified to prevent conflicts of changing $headings-color
color: inherit;
}

// Provide class for links that match alerts
.alert-link {
font-weight: $alert-link-font-weight;
}

// Dismissible alerts
//
// Expand the right padding and account for the close button's positioning.

.alert-dismissible {
padding-right: $alert-dismissible-padding-r;

// Adjust close link position
.btn-close {
position: absolute;
top: 0;
right: 0;
z-index: $stretched-link-z-index + 1;
padding: $alert-padding-y * 1.25 $alert-padding-x;
}
}

// scss-docs-start alert-modifiers
// Generate contextual modifier classes for colorizing the alert.

@each $state, $value in $theme-colors {
$background: shift-color($value, $alert-bg-scale);
$border: shift-color($value, $alert-border-scale);
$color: shift-color($value, $alert-color-scale);
@if (contrast-ratio($background, $color) < $min-contrast-ratio) {
$color: mix($value, color-contrast($background), abs($alert-color-scale));
}
.alert-#{$state} {
@include alert-variant($background, $border, $color);
}
}
// scss-docs-end alert-modifiers
29 changes: 29 additions & 0 deletions src/scss/bootstrap-rtl-fix/_badge.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Base class
//
// Requires one of the contextual, color modifier classes for `color` and
// `background-color`.

.badge {
display: inline-block;
padding: $badge-padding-y $badge-padding-x;
@include font-size($badge-font-size);
font-weight: $badge-font-weight;
line-height: 1;
color: $badge-color;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
@include border-radius($badge-border-radius);
@include gradient-bg();

// Empty badges collapse automatically
&:empty {
display: none;
}
}

// Quick fix for badges in buttons
.btn .badge {
position: relative;
top: -1px;
}
29 changes: 29 additions & 0 deletions src/scss/bootstrap-rtl-fix/_breadcrumb.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.breadcrumb {
display: flex;
flex-wrap: wrap;
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
margin-bottom: $breadcrumb-margin-bottom;
@include font-size($breadcrumb-font-size);
list-style: none;
background-color: $breadcrumb-bg;
@include border-radius($breadcrumb-border-radius);
}

.breadcrumb-item {
// The separator between breadcrumbs (by default, a forward-slash: "/")
+ .breadcrumb-item {
padding-left: $breadcrumb-item-padding-x;

&::before {
float: left; // Suppress inline spacings and underlining of the separator
padding-right: $breadcrumb-item-padding-x;
color: $breadcrumb-divider-color;
content: var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{'/*!rtl:'}
var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{'*/'};
}
}

&.active {
color: $breadcrumb-active-color;
}
}
Loading

0 comments on commit 4c1af6d

Please sign in to comment.