Summary Files Commits Branches @commit @diff @stats
path: root / src / forms.less
diff options
context:
space:
mode:
Commit48f0d7e0e6d6d6569dbf98dd56091466520ae206 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-01-25 18:45:24 +0800
Committer
 GitHub <noreply@github.com>
2017-01-25 18:45:24 +0800
Files62c5f08d27a6ba1b87782e0433dcf9559d37ed94 /src/forms.less
Spectre-Dark-Gruvbox-48f0d7e0e6d6d6569dbf98dd56091466520ae206.tar
Spectre-Dark-Gruvbox-48f0d7e0e6d6d6569dbf98dd56091466520ae206.tar.gz
Spectre-Dark-Gruvbox-48f0d7e0e6d6d6569dbf98dd56091466520ae206.zip
Parenta5076e547192bf098ddde4049c31cfd4c899ff01 (diff)
Parentf87896f812b712f730bddd304cead9aa8090d21a (diff)
Merge pull request #136 from picturepan2/hotfix/fixes v0.1.32
Hotfix/fixes
1 files changed, 15 insertions, 14 deletions
-rw-r--r--src/forms.less29
diff --git a/src/forms.less b/src/forms.less
index 131fbc5..7e0db4d 100644
--- a/src/forms.less
+++ b/src/forms.less
@@ -8,19 +8,21 @@
background: #fff;
background-image: none;
border: .1rem solid @control-color;
- border-radius: .3rem;
+ border-radius: @border-radius;
color: @body-font-color;
+ .control-transition();
display: block;
font-size: 1.4rem;
height: 3.2rem;
- line-height: 1.6rem;
+ line-height: 1.8rem;
max-width: 100%;
outline: 0;
- padding: .7rem .8rem;
+ padding: .6rem .8rem;
position: relative;
width: 100%;
&:focus {
border-color: @core-color;
+ .control-shadow();
}
&[disabled] {
background: #eeeff2;
@@ -28,14 +30,12 @@
// Input sizes
&.input-sm {
- border-radius: .2rem;
font-size: 1.2rem;
height: 2.4rem;
padding: .3rem .6rem;
}
&.input-lg {
- border-radius: .4rem;
font-size: 1.6rem;
height: 4.2rem;
line-height: 2rem;
@@ -98,7 +98,7 @@
.form-select {
appearance: none;
border: .1rem solid @control-color;
- border-radius: .3rem;
+ border-radius: @border-radius;
font-size: 1.4rem;
line-height: 1.6rem;
min-width: @control-min-width;
@@ -117,6 +117,7 @@
}
&:focus {
border-color: @core-color;
+ .control-shadow();
}
&::-ms-expand {
display: none;
@@ -124,7 +125,6 @@
// Select sizes
&.select-sm {
- border-radius: .2rem;
font-size: 1.2rem;
height: 2.4rem;
padding: .4rem 2rem .4rem .6rem;
@@ -159,6 +159,10 @@
overflow: hidden;
position: absolute;
width: .1rem;
+ &:focus + .form-icon {
+ border-color: @core-color;
+ .control-shadow();
+ }
}
}
.form-checkbox,
@@ -171,6 +175,7 @@
.form-icon {
border: .1rem solid @control-color;
+ .control-transition();
display: inline-block;
font-size: 1.4rem;
height: 1.4rem;
@@ -180,7 +185,6 @@
padding: 0;
position: absolute;
top: .5rem;
- transition: all .15s ease;
vertical-align: top;
width: 1.4rem;
}
@@ -189,9 +193,6 @@
}
input {
- &:focus + .form-icon {
- border-color: @core-color;
- }
&:checked + .form-icon {
background: @core-color;
border-color: @core-color;
@@ -203,7 +204,7 @@
}
.form-checkbox {
.form-icon {
- border-radius: .2rem;
+ border-radius: @border-radius;
}
input {
@@ -249,7 +250,7 @@
input:checked + .form-icon {
&::after {
background: #fff;
- border-radius: .2rem;
+ border-radius: @border-radius;
content: "";
height: .4rem;
left: 50%;
@@ -320,7 +321,7 @@
.input-group-addon {
background: lighten(@core-border-color, 4%);
border: .1rem solid @control-color;
- border-radius: .3rem;
+ border-radius: @border-radius;
line-height: 1.6rem;
padding: .7rem .8rem;