Summary Files Commits Branches @commit @diff @stats
path: root / src / forms.less
diff options
context:
space:
mode:
Commit8c80ec8f50827cddc2a787b82c38503497647781 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-21 19:28:00 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-21 19:28:00 +0800
Files4c2294ed1170ad8d227c881f0168e737b7389137 /src/forms.less
Spectre-Dark-Gruvbox-8c80ec8f50827cddc2a787b82c38503497647781.tar
Spectre-Dark-Gruvbox-8c80ec8f50827cddc2a787b82c38503497647781.tar.gz
Spectre-Dark-Gruvbox-8c80ec8f50827cddc2a787b82c38503497647781.zip
Parent1a75ab13d578284a795c1c05e6914a53bacc8a93 (diff)
add more flexible responsive grid
1 files changed, 5 insertions, 40 deletions
-rw-r--r--src/forms.less45
diff --git a/src/forms.less b/src/forms.less
index a01ab3c..9f8b952 100644
--- a/src/forms.less
+++ b/src/forms.less
@@ -2,41 +2,6 @@
.form-group:not(:last-child) {
margin-bottom: 1rem;
}
-
-@media screen and (min-width: 841px) {
- .form-horizontal {
- padding: 1rem;
-
- .form-group {
- display: flex;
- }
- .form-label {
- padding: .8rem .4rem;
- }
- .form-checkbox,
- .form-radio {
- margin: .5rem 0;
- }
- }
-}
-@media screen and (max-width: 840px) {
- .form-horizontal {
- .col-12,
- .col-11,
- .col-10,
- .col-9,
- .col-8,
- .col-7,
- .col-6,
- .col-5,
- .col-4,
- .col-3,
- .col-2,
- .col-1 {
- width: 100%;
- }
- }
-}
// Form element: Input boxes
.form-input {
position: relative;
@@ -243,12 +208,12 @@
&::after {
content: "";
display: block;
- width: 1.4rem;
- height: 1.4rem;
+ width: 1.6rem;
+ height: 1.6rem;
border-radius: .8rem;
position: absolute;
- top: .1rem;
- left: .1rem;
+ top: 0;
+ left: 0;
background-color: #fff;
transition: left .15s ease;
}
@@ -259,7 +224,7 @@
border-color: @core-color;
&::after {
- left: 1.3rem;
+ left: 1.2rem;
}
}
}