From 70c6a6cd855a617b086682ef919e02cf67d4e86e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 12:58:26 -0800 Subject: [PATCH] fix border and border radius on radios/checkboxes for iOS, fix forms docs alignment on small devices --- docs/assets/css/bootstrap-responsive.css | 3 +- docs/assets/css/bootstrap.css | 1 + docs/assets/css/docs.css | 62 ++---------------------- less/forms.less | 1 + less/responsive.less | 3 +- 5 files changed, 11 insertions(+), 59 deletions(-) diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index e91f255391..0d975824bb 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -20,7 +20,8 @@ padding-top: 0; } .form-horizontal .form-actions { - padding-left: 0; + padding-left: 10px; + padding-right: 10px; } .modal { position: absolute; diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 8cd2d9e362..74cef08f2f 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -534,6 +534,7 @@ input[type="image"], input[type="checkbox"], input[type="radio"] { line-height: normal; border: none; + border: initial; cursor: pointer; border-radius: 0 \0/; } diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 8c92f087f1..a485583956 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -306,42 +306,6 @@ hr.soften { } -/* Quickstart section for getting le code --------------------------------------------------- */ -.getting-started p { - color: #777; - margin-bottom: 9px; -} -.getting-started .current-version, -.getting-started .current-version a { - color: #999; -} -.getting-started form { - margin-bottom: 0; -} -.getting-started textarea { - display: block; - width: 95%; - height: auto; - font-family: Menlo, Monaco, "Courier New", monospace; - font-size: 12px; - line-height: 20px; - white-space: nowrap; - overflow: hidden; - color: #999; - /* Makes inputs behave like true block-level elements */ - -webkit-box-sizing: border-box; /* Older Webkit */ - -moz-box-sizing: border-box; /* Older FF */ - -ms-box-sizing: border-box; /* IE8 */ - box-sizing: border-box; /* CSS3 spec*/ - /* Hacks for IE7 to make this work just okay enough to function */ - *width: 80%; - *height: 24px; -} -.getting-started textarea:focus { - color: #333; -} - /* Footer -------------------------------------------------- */ @@ -354,27 +318,6 @@ hr.soften { margin-bottom: 0; color: #555; } -.footer dl { - margin-bottom: 0; -} -.footer dl dt { - font-size: 11px; - color: #999; - text-transform: uppercase; -} -.footer dl dd + dt { - margin-top: 18px; -} -.footer dl dd { - margin-left: 0; - font-size: 12px; -} -.footer dl a { - color: #999; -} -.footer dl a:hover { - color: #555; -} @@ -745,6 +688,11 @@ form.well { bottom: auto; left: auto; } + + /* Forms docs */ + .form-docs { + padding-left: 0; /* down from 10px */ + } } diff --git a/less/forms.less b/less/forms.less index 9565c52d7f..f327b4faa6 100644 --- a/less/forms.less +++ b/less/forms.less @@ -85,6 +85,7 @@ input[type="radio"] { *margin-top: 0; /* IE7 */ line-height: normal; border: none; + border: initial; cursor: pointer; border-radius: 0 e("\0/"); } diff --git a/less/responsive.less b/less/responsive.less index 24b58d2ab7..4ce4aff726 100644 --- a/less/responsive.less +++ b/less/responsive.less @@ -50,7 +50,8 @@ } // Move over buttons in .form-actions to align with .controls .form-horizontal .form-actions { - padding-left: 0; + padding-left: 10px; + padding-right: 10px; } // Modals