1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-26 14:54:27 +02:00

rewrite some forms docs, use new validation styles and icons

This commit is contained in:
Mark Otto
2015-08-08 14:15:09 -07:00
parent 14d8c29596
commit 7c3f5b6d59
27 changed files with 7763 additions and 6090 deletions

View File

@@ -1,11 +1,19 @@
/*!
* Bootstrap v4.0.0-alpha (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under ()
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; }
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0; }
margin: 0;
}
article,
aside,
@@ -20,294 +28,367 @@ menu,
nav,
section,
summary {
display: block; }
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline; }
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0; }
height: 0;
}
[hidden],
template {
display: none; }
display: none;
}
a {
background-color: transparent; }
background-color: transparent;
}
a:active {
outline: 0; }
outline: 0;
}
a:hover {
outline: 0; }
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted; }
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold; }
font-weight: bold;
}
dfn {
font-style: italic; }
font-style: italic;
}
h1 {
margin: .67em 0;
font-size: 2em;
margin: 0.67em 0; }
}
mark {
color: #000;
background: #ff0;
color: #000; }
}
small {
font-size: 80%; }
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline; }
vertical-align: baseline;
}
sup {
top: -0.5em; }
top: -.5em;
}
sub {
bottom: -0.25em; }
bottom: -.25em;
}
img {
border: 0; }
border: 0;
}
svg:not(:root) {
overflow: hidden; }
overflow: hidden;
}
figure {
margin: 1em 40px; }
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0; }
height: 0;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
pre {
overflow: auto; }
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em; }
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
margin: 0;
font: inherit;
margin: 0; }
color: inherit;
}
button {
overflow: visible; }
overflow: visible;
}
button,
select {
text-transform: none; }
text-transform: none;
}
button,
html input[type="button"], input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer; }
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default; }
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: 0;
padding: 0; }
}
input {
line-height: normal; }
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0; }
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto; }
height: auto;
}
input[type="search"] {
-webkit-box-sizing: content-box;
box-sizing: content-box;
-webkit-appearance: textfield;
box-sizing: content-box; }
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none; }
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
padding: .35em .625em .75em;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em; }
border: 1px solid #c0c0c0;
}
legend {
padding: 0;
border: 0;
padding: 0; }
}
textarea {
overflow: auto; }
overflow: auto;
}
optgroup {
font-weight: bold; }
font-weight: bold;
}
table {
border-spacing: 0;
border-collapse: collapse;
border-spacing: 0; }
}
td,
th {
padding: 0; }
padding: 0;
}
html {
box-sizing: border-box; }
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit; }
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
@-moz-viewport {
width: device-width; }
width: device-width;
}
@-ms-viewport {
width: device-width; }
@-o-viewport {
width: device-width; }
width: device-width;
}
@-webkit-viewport {
width: device-width; }
width: device-width;
}
@viewport {
width: device-width; }
width: device-width;
}
html {
font-size: 16px;
-webkit-tap-highlight-color: transparent; }
-webkit-tap-highlight-color: transparent;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 1rem;
line-height: 1.5;
color: #373a3c;
background-color: #fff; }
background-color: #fff;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem; }
margin-bottom: .5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem; }
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #818a91; }
border-bottom: 1px dotted #818a91;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit; }
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem; }
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0; }
margin-bottom: 0;
}
dt {
font-weight: bold; }
font-weight: bold;
}
dd {
margin-bottom: .5rem;
margin-left: 0; }
margin-left: 0;
}
blockquote {
margin: 0 0 1rem; }
margin: 0 0 1rem;
}
a {
color: #0275d8;
text-decoration: none; }
a:focus,
text-decoration: none;
}
a:focus,
a:hover {
color: #014c8c;
text-decoration: underline; }
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px; }
color: #014c8c;
text-decoration: underline;
}
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
pre {
margin-top: 0;
margin-bottom: 1rem; }
margin-bottom: 1rem;
}
figure {
margin: 0 0 1rem; }
margin: 0 0 1rem;
}
img {
vertical-align: middle; }
vertical-align: middle;
}
[role="button"] {
cursor: pointer; }
cursor: pointer;
}
table {
background-color: transparent; }
background-color: transparent;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
padding-top: .75rem;
padding-bottom: .75rem;
color: #818a91;
text-align: left;
caption-side: bottom; }
caption-side: bottom;
}
th {
text-align: left; }
text-align: left;
}
label {
display: inline-block;
margin-bottom: .5rem; }
margin-bottom: .5rem;
}
input,
button,
select,
textarea {
margin: 0;
line-height: inherit; }
line-height: inherit;
}
textarea {
resize: vertical; }
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0; }
border: 0;
}
legend {
display: block;
@@ -315,12 +396,14 @@ legend {
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit; }
line-height: inherit;
}
input[type="search"] {
-webkit-appearance: none; }
-webkit-appearance: none;
}
output {
display: inline-block; }
/*# sourceMappingURL=bootstrap-reboot.css.map */
display: inline-block;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */