summaryrefslogtreecommitdiff
path: root/flatly/bootswatch.less
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2013-06-04 11:44:43 -0400
committerThomas Park <thomas@thomaspark.me>2013-06-04 11:44:43 -0400
commitc4c22f00dc1513ea76b32b588a69b685bd2477cb (patch)
treed23476265adc5857e4f260ade37393fd1dccee7a /flatly/bootswatch.less
parent157344668e39748d1be0dd356e2fbdc57c5cecaf (diff)
flatly: fixes #107, input-addon
Diffstat (limited to 'flatly/bootswatch.less')
-rw-r--r--flatly/bootswatch.less68
1 files changed, 65 insertions, 3 deletions
diff --git a/flatly/bootswatch.less b/flatly/bootswatch.less
index b940d4f0..1576d4f1 100644
--- a/flatly/bootswatch.less
+++ b/flatly/bootswatch.less
@@ -90,6 +90,10 @@ p {
.box-shadow(none);
}
+ .btn, .btn-group {
+ margin-top: 6px;
+ }
+
&-inverse {
.brand:hover {
@@ -223,7 +227,7 @@ div.subnav {
// --------------------------------------------------
.btn {
- padding: 8px 20px;
+ padding: 9px 20px;
border: none;
background-image: none;
color: @white;
@@ -293,7 +297,7 @@ input[type="color"],
padding: 7px 6px;
border: 2px solid #dce4ec;
text-indent: 1px;
- .border-radius(6px);
+ .border-radius(@inputBorderRadius);
.box-shadow(none);
.placeholder(#acb6c0);
@@ -302,7 +306,65 @@ input[type="color"],
.box-shadow(none);
}
+}
+
+.input-prepend {
+
+ .add-on:first-child,
+ .btn:first-child {
+ .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
+ }
+}
+
+.input-append {
+
+ input,
+ select,
+ .uneditable-input {
+
+ .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
+
+ + .btn-group .btn:last-child {
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
+ }
+ }
+ .add-on:last-child,
+ .btn:last-child,
+ .btn-group:last-child > .dropdown-toggle {
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
+ }
+}
+
+.input-prepend.input-append {
+
+ input,
+ select,
+ .uneditable-input {
+ .border-radius(0);
+ + .btn-group .btn {
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
+ }
+ }
+
+ .add-on:first-child,
+ .btn:first-child {
+ .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
+ }
+
+ .add-on:last-child,
+ .btn:last-child {
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
+ }
+}
+
+.input-append,
+.input-prepend {
+
+ .add-on {
+ padding: 9px 5px;
+ text-shadow: none;
+ }
}
.control-group.error,
@@ -485,7 +547,7 @@ legend {
&-footer {
background-color: @grayLighter;
- border-top: 2px solid @dropdownDividerTop;
+ border-top: none;
.box-shadow(none);
}
}