This commit is contained in:
Kevin Ross 2015-12-08 10:52:29 -06:00
parent 12c6e3e66c
commit c9898040c5
4 changed files with 132 additions and 1 deletions

View File

@ -498,7 +498,7 @@ module.exports = function (grunt) {
watch: {
html: {
files: ["index.html", "bootstrap-elements.html", "test.html"],
files: ["index.html", "bootstrap-elements.html", "testcase.html"],
tasks: ["htmllint", "bootlint"]
},
//src: {

View File

@ -13,6 +13,10 @@
width: 0;
height: 0;
}
.toggle {
text-align: left; // Issue #737 horizontal form
}
// Switch bg off and disabled
.toggle,
input[type=checkbox][disabled] + .toggle {

View File

@ -15,6 +15,10 @@
width: 0;
height: 0;
}
.toggle {
text-align: left; // Issue #737 horizontal form
}
// Switch bg off and disabled
.toggle,
input[type=checkbox][disabled] + .toggle {

123
testcase.html Normal file
View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html>
<head>
<title>Material Design for Bootstrap temporary development test case</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile support -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Material Design fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Bootstrap -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Material Design -->
<link href="dist/css/bootstrap-material-design.css" rel="stylesheet">
<link href="dist/css/ripples.min.css" rel="stylesheet">
<!-- Dropdown.js -->
<link href="//cdn.rawgit.com/FezVrasta/dropdown.js/master/jquery.dropdown.css" rel="stylesheet">
<!-- Page style -->
<link href="index.css" rel="stylesheet">
<!-- jQuery -->
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
</head>
<body>
<!--
Test case
-->
<div class="container">
<form class="form-horizontal">
<fieldset>
<legend>Horizontal Form</legend>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="togglebutton">
<label>
<input type="checkbox" checked> Checked
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="togglebutton">
<label>
<input type="checkbox"> Unchecked
</label>
</div>
</div>
</div>
</fieldset>
</form>
<form class="form">
<fieldset>
<legend>Standard Form</legend>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="togglebutton">
<label>
<input type="checkbox" checked> Checked
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="togglebutton">
<label>
<input type="checkbox"> Unchecked
</label>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<!--
Scripts
-->
<!-- Twitter Bootstrap -->
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- Material Design for Bootstrap -->
<script src="dist/js/material.js"></script>
<script src="dist/js/ripples.min.js"></script>
<script>
$.material.init();
</script>
<!-- Sliders -->
<script src="//cdnjs.cloudflare.com/ajax/libs/noUiSlider/6.2.0/jquery.nouislider.min.js"></script>
<!-- Dropdown.js -->
<script src="https://cdn.rawgit.com/FezVrasta/dropdown.js/master/jquery.dropdown.js"></script>
<script>
$("#dropdown-menu select").dropdown();
</script>
</body>
</html>