Summary Files Commits Branches @commit @diff @stats
path: root / src / forms.less
diff options
context:
space:
mode:
Commit16e12c5efac6eb019d6ff2732fa51704218c7bbe (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-04 18:04:51 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-04 18:04:51 +0800
Filesfefe9406c0d1027a49b0e512e68d22615877f329 /src/forms.less
Spectre-Dark-Gruvbox-16e12c5efac6eb019d6ff2732fa51704218c7bbe.tar
Spectre-Dark-Gruvbox-16e12c5efac6eb019d6ff2732fa51704218c7bbe.tar.gz
Spectre-Dark-Gruvbox-16e12c5efac6eb019d6ff2732fa51704218c7bbe.zip
Parentaea71b81042ddcf399a3da82ec6f8c3965b575ff (diff)
add input groups code
1 files changed, 36 insertions, 2 deletions
-rw-r--r--src/forms.less38
diff --git a/src/forms.less b/src/forms.less
index 9838228..eaab29d 100644
--- a/src/forms.less
+++ b/src/forms.less
@@ -86,11 +86,11 @@
// Status
.has-success &,
- &.input-success {
+ &.is-success {
border-color: @control-color-success;
}
.has-danger &,
- &.input-danger {
+ &.is-danger {
border-color: @control-color-danger;
}
@@ -250,3 +250,37 @@
}
}
}
+
+// Form element: Input groups
+.input-group {
+ display: flex;
+
+ .input-group-addon {
+ line-height: 1.6rem;
+ padding: .7rem .8rem;
+ border: 1px solid @control-color;
+ border-radius: .3rem;
+ background-color: @core-border-color;
+ }
+
+ .form-input,
+ .input-group-addon,
+ .input-group-btn {
+ &:first-child:not(:last-child) {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+ &:not(:first-child):not(:last-child) {
+ margin-left: -.1rem;
+ border-radius: 0;
+ z-index: 49;
+ }
+ &:last-child:not(:first-child) {
+ margin-left: -.1rem;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ z-index: 99;
+ }
+ }
+}
+