-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Grzegorz Bujański
committed
Jan 11, 2021
1 parent
f0528ac
commit 4c1af6d
Showing
95 changed files
with
8,404 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.