aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-12-27 15:40:58 -0600
committerMark Otto <[email protected]>2011-12-27 15:40:58 -0600
commitfec02f50455c87f0e01fe74b1fb2e3cd032ade09 (patch)
tree2b6a88aba4e36698eda3b98ee183bdeb6f68b2f5 /lib
parent5801c4d766205c6f1579b9c45e733df5dba3b1fe (diff)
downloadbootstrap-fec02f50455c87f0e01fe74b1fb2e3cd032ade09.tar.xz
bootstrap-fec02f50455c87f0e01fe74b1fb2e3cd032ade09.zip
clean up some css for github issues: input prepend z-index, modals revamped for responsive
Diffstat (limited to 'lib')
-rw-r--r--lib/forms.less4
-rw-r--r--lib/modals.less3
-rw-r--r--lib/responsive.less12
3 files changed, 15 insertions, 4 deletions
diff --git a/lib/forms.less b/lib/forms.less
index 99d6fcb59..9d96e8f33 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -96,6 +96,7 @@ input[type=file] {
// Chrome on Linux and Mobile Safari need background-color
select {
background-color: @white;
+ vertical-align: middle;
}
// Make multiple select elements height not fixed
@@ -304,13 +305,10 @@ textarea[readonly] {
// Allow us to put symbols and text within the input field for a cleaner look
.input-prepend,
.input-append {
- overflow: hidden;
input {
.border-radius(0 3px 3px 0);
}
.add-on {
- position: relative;
- z-index: 2;
float: left;
display: block;
width: auto;
diff --git a/lib/modals.less b/lib/modals.less
index 53d6cd408..4d2b92cbc 100644
--- a/lib/modals.less
+++ b/lib/modals.less
@@ -13,7 +13,8 @@
&.fade { opacity: 0; }
}
-.modal-backdrop, .modal-backdrop.fade.in {
+.modal-backdrop,
+.modal-backdrop.fade.in {
.opacity(80);
}
diff --git a/lib/responsive.less b/lib/responsive.less
index d8b453d06..fe2b7cd49 100644
--- a/lib/responsive.less
+++ b/lib/responsive.less
@@ -43,6 +43,18 @@
.horizontal-form .form-actions {
padding-left: 0;
}
+
+ // Modals
+ .modal {
+ position: fixed;
+ top: 20px;
+ left: 20px;
+ right: 20px;
+ width: auto;
+ .close {
+ padding: 10px;
+ }
+ }
}