mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +03:00
0.5.5
This commit is contained in:
commit
66bad55ac7
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -35,3 +35,4 @@ scripts
|
||||||
meteor
|
meteor
|
||||||
bower.json
|
bower.json
|
||||||
testcase.html
|
testcase.html
|
||||||
|
package.js
|
||||||
|
|
81
dist/css/bootstrap-material-design.css
vendored
81
dist/css/bootstrap-material-design.css
vendored
|
@ -85,6 +85,21 @@ a:hover .material-icons,
|
||||||
a:focus .material-icons {
|
a:focus .material-icons {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
.form-horizontal .radio,
|
||||||
|
.form-horizontal .checkbox,
|
||||||
|
.form-horizontal .radio-inline,
|
||||||
|
.form-horizontal .checkbox-inline {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
.form-horizontal .radio {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.form-horizontal label {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.form-horizontal label.control-label {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
body .container .well.well-sm,
|
body .container .well.well-sm,
|
||||||
body .container-fluid .well.well-sm {
|
body .container-fluid .well.well-sm {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
@ -787,7 +802,14 @@ fieldset[disabled][disabled] .btn-group-vertical.btn-group-raised:focus:not(:act
|
||||||
.checkbox label {
|
.checkbox label {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
color: rgba(0,0,0, 0.26);
|
||||||
|
}
|
||||||
|
.form-group.is-focused .checkbox label {
|
||||||
|
color: rgba(0,0,0, 0.26);
|
||||||
|
}
|
||||||
|
.form-group.is-focused .checkbox label:hover,
|
||||||
|
.form-group.is-focused .checkbox label:focus {
|
||||||
|
color: rgba(0,0,0, .54);
|
||||||
}
|
}
|
||||||
.checkbox input[type=checkbox] {
|
.checkbox input[type=checkbox] {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@ -825,7 +847,7 @@ fieldset[disabled][disabled] .btn-group-vertical.btn-group-raised:focus:not(:act
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
border: 2px solid rgba(0, 0, 0, 0.54);
|
border: 2px solid rgba(0,0,0, .54);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
@ -863,11 +885,11 @@ fieldset[disabled][disabled] .btn-group-vertical.btn-group-raised:focus:not(:act
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
.checkbox input[type=checkbox]:checked + .checkbox-material .check {
|
.checkbox input[type=checkbox]:checked + .checkbox-material .check {
|
||||||
color: #4caf50;
|
color: #009688;
|
||||||
border-color: #4caf50;
|
border-color: #009688;
|
||||||
}
|
}
|
||||||
.checkbox input[type=checkbox]:checked + .checkbox-material .check:before {
|
.checkbox input[type=checkbox]:checked + .checkbox-material .check:before {
|
||||||
color: #4caf50;
|
color: #009688;
|
||||||
-webkit-box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
|
-webkit-box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
|
||||||
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
|
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
|
||||||
-webkit-animation: checkbox-on 0.3s forwards;
|
-webkit-animation: checkbox-on 0.3s forwards;
|
||||||
|
@ -1205,7 +1227,14 @@ fieldset[disabled] .checkbox input[type=checkbox],
|
||||||
}
|
}
|
||||||
.togglebutton label {
|
.togglebutton label {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
color: rgba(0,0,0, 0.26);
|
||||||
|
}
|
||||||
|
.form-group.is-focused .togglebutton label {
|
||||||
|
color: rgba(0,0,0, 0.26);
|
||||||
|
}
|
||||||
|
.form-group.is-focused .togglebutton label:hover,
|
||||||
|
.form-group.is-focused .togglebutton label:focus {
|
||||||
|
color: rgba(0,0,0, .54);
|
||||||
}
|
}
|
||||||
.togglebutton label input[type=checkbox] {
|
.togglebutton label input[type=checkbox] {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@ -1271,7 +1300,14 @@ fieldset[disabled] .checkbox input[type=checkbox],
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding-left: 45px;
|
padding-left: 45px;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
color: rgba(0,0,0, 0.26);
|
||||||
|
}
|
||||||
|
.form-group.is-focused .radio label {
|
||||||
|
color: rgba(0,0,0, 0.26);
|
||||||
|
}
|
||||||
|
.form-group.is-focused .radio label:hover,
|
||||||
|
.form-group.is-focused .radio label:focus {
|
||||||
|
color: rgba(0,0,0, .54);
|
||||||
}
|
}
|
||||||
.radio label span {
|
.radio label span {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -1283,7 +1319,7 @@ fieldset[disabled] .checkbox input[type=checkbox],
|
||||||
transition-duration: 0.2s;
|
transition-duration: 0.2s;
|
||||||
}
|
}
|
||||||
.radio label .circle {
|
.radio label .circle {
|
||||||
border: 2px solid rgba(0, 0, 0, 0.54);
|
border: 2px solid rgba(0,0,0, .54);
|
||||||
height: 15px;
|
height: 15px;
|
||||||
width: 15px;
|
width: 15px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
@ -2005,21 +2041,6 @@ select.form-control[multiple],
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.form-horizontal .radio,
|
|
||||||
.form-horizontal .checkbox,
|
|
||||||
.form-horizontal .radio-inline,
|
|
||||||
.form-horizontal .checkbox-inline {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
.form-horizontal .radio {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.form-horizontal label {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.form-horizontal label.control-label {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
legend {
|
legend {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@ -3308,21 +3329,15 @@ hr.on-light {
|
||||||
.selectize-control.multi .dropdown-active ~ .selectize-dropdown {
|
.selectize-control.multi .dropdown-active ~ .selectize-dropdown {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.dropdownjs:after {
|
.dropdownjs::after {
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "\e8ac";
|
font-family: 'Material Icons';
|
||||||
font-family: "Material-Design-Icons";
|
|
||||||
speak: none;
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: 400;
|
||||||
font-variant: normal;
|
content: "\e5c5";
|
||||||
text-transform: none;
|
|
||||||
line-height: 1;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
color: #757575;
|
color: #757575;
|
||||||
}
|
}
|
||||||
|
|
2
dist/css/bootstrap-material-design.css.map
vendored
2
dist/css/bootstrap-material-design.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-material-design.min.css
vendored
2
dist/css/bootstrap-material-design.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
23
dist/js/material.js
vendored
23
dist/js/material.js
vendored
|
@ -18,11 +18,11 @@
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _addFormGroupFocus(element){
|
function _addFormGroupFocus(element){
|
||||||
$(element).closest(".form-group").addClass("is-focused");
|
$(element).closest(".form-group").addClass("is-focused");
|
||||||
}
|
}
|
||||||
|
|
||||||
function _removeFormGroupFocus(element){
|
function _removeFormGroupFocus(element){
|
||||||
$(element).closest(".form-group").removeClass("is-focused"); // remove class from form-group
|
$(element).closest(".form-group").removeClass("is-focused"); // remove class from form-group
|
||||||
}
|
}
|
||||||
|
@ -62,17 +62,32 @@
|
||||||
},
|
},
|
||||||
"togglebutton": function(selector) {
|
"togglebutton": function(selector) {
|
||||||
// Add fake-checkbox to material checkboxes
|
// Add fake-checkbox to material checkboxes
|
||||||
$((selector) ? selector : this.options.togglebuttonElements)
|
var $input = $((selector) ? selector : this.options.togglebuttonElements)
|
||||||
.filter(":notmdproc")
|
.filter(":notmdproc")
|
||||||
.data("mdproc", true)
|
.data("mdproc", true)
|
||||||
.after("<span class='toggle'></span>");
|
.after("<span class='toggle'></span>");
|
||||||
|
|
||||||
|
var $formGroup = $input.closest(".form-group"); // note that form-group may be grandparent in the case of an input-group
|
||||||
|
$formGroup.find('label').hover(function() {
|
||||||
|
_addFormGroupFocus(this);
|
||||||
|
}, function() {
|
||||||
|
_removeFormGroupFocus(this);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
"radio": function(selector) {
|
"radio": function(selector) {
|
||||||
// Add fake-radio to material radios
|
// Add fake-radio to material radios
|
||||||
$((selector) ? selector : this.options.radioElements)
|
var $input = $((selector) ? selector : this.options.radioElements)
|
||||||
.filter(":notmdproc")
|
.filter(":notmdproc")
|
||||||
.data("mdproc", true)
|
.data("mdproc", true)
|
||||||
.after("<span class='circle'></span><span class='check'></span>");
|
.after("<span class='circle'></span><span class='check'></span>");
|
||||||
|
|
||||||
|
|
||||||
|
var $formGroup = $input.closest(".form-group"); // note that form-group may be grandparent in the case of an input-group
|
||||||
|
$formGroup.find('label').hover(function() {
|
||||||
|
_addFormGroupFocus(this);
|
||||||
|
}, function() {
|
||||||
|
_removeFormGroupFocus(this);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
"input": function(selector) {
|
"input": function(selector) {
|
||||||
$((selector) ? selector : this.options.inputElements)
|
$((selector) ? selector : this.options.inputElements)
|
||||||
|
|
2
dist/js/material.min.js
vendored
2
dist/js/material.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/material.min.js.map
vendored
2
dist/js/material.min.js.map
vendored
File diff suppressed because one or more lines are too long
26
index.html
26
index.html
|
@ -226,12 +226,12 @@
|
||||||
<p class="help-block">Auto-update apps over wifi only</p>
|
<p class="help-block">Auto-update apps over wifi only</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Horizontal form <small>with column label variations and <code>checkbox-primary</code> color</small></h2>
|
<h2>Horizontal form with column label variations</h2>
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-2" for="ch1">Touch sounds</label>
|
<label class="col-sm-2" for="ch1">Touch sounds</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<div class="checkbox checkbox-primary">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input id="ch1" type="checkbox" checked>
|
<input id="ch1" type="checkbox" checked>
|
||||||
</label>
|
</label>
|
||||||
|
@ -242,7 +242,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-2 control-label" for="ch3">Vibrate on touch</label>
|
<label class="col-sm-2 control-label" for="ch3">Vibrate on touch</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<div class="checkbox checkbox-primary">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input id="ch3" type="checkbox">
|
<input id="ch3" type="checkbox">
|
||||||
</label>
|
</label>
|
||||||
|
@ -284,15 +284,15 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><small><code>.radio-success</code> inside a <code>.form-group</code></small></h2>
|
<h2>Default inside a <small><code>.form-group</code></small></h2>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="radio radio-success">
|
<div class="radio">
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="sample1" value="option1" checked="">
|
<input type="radio" name="sample1" value="option1" checked="">
|
||||||
Always
|
Always
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio radio-success">
|
<div class="radio">
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="sample1" value="option1">
|
<input type="radio" name="sample1" value="option1">
|
||||||
Only when plugged in
|
Only when plugged in
|
||||||
|
@ -300,20 +300,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><small><code>.radio-primary</code> outside a <code>.form-group</code></small></h2>
|
|
||||||
<div class="radio radio-primary">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="sample2" value="option1" checked="">
|
|
||||||
Auto
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="radio radio-primary">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="sample2" value="option1">
|
|
||||||
5 GHz only
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="well page" id="toggle-button">
|
<div class="well page" id="toggle-button">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user