Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
K
kpp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Veselov
kpp
Commits
1501d681
Commit
1501d681
authored
Mar 22, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил формы в линию, поправил существующие
parent
bc87f98c
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
292 additions
and
5 deletions
+292
-5
field-checkbox.less
src/blocks/field-checkbox/field-checkbox.less
+1
-1
field-radio.less
src/blocks/field-radio/field-radio.less
+1
-1
field-range.less
src/blocks/field-range/field-range.less
+1
-0
field-select.less
src/blocks/field-select/field-select.less
+1
-0
field-text.less
src/blocks/field-text/field-text.less
+1
-0
field-toggler.less
src/blocks/field-toggler/field-toggler.less
+1
-1
form--line.less
src/blocks/form/form--line.less
+76
-0
form.less
src/blocks/form/form.less
+1
-0
blocks_library.html
src/blocks_library.html
+208
-2
style.less
src/less/style.less
+1
-0
No files found.
src/blocks/field-checkbox/field-checkbox.less
View file @
1501d681
...
...
@@ -7,7 +7,7 @@
&__title {
font-weight: 700;
line-height:
1.2em
;
line-height:
@line-height
;
display: block;
margin-bottom: round(@line-height / 4, 2);
min-height: 1px;
...
...
src/blocks/field-radio/field-radio.less
View file @
1501d681
...
...
@@ -7,7 +7,7 @@
&__title {
font-weight: 700;
line-height:
1.2em
;
line-height:
@line-height
;
display: block;
margin-bottom: round(@line-height / 4, 2);
min-height: 1px;
...
...
src/blocks/field-range/field-range.less
View file @
1501d681
...
...
@@ -9,6 +9,7 @@
font-weight: 700;
display: block;
margin-bottom: round(@line-height / 4, 2);
line-height: @line-height;
}
&__input-wrap {
...
...
src/blocks/field-select/field-select.less
View file @
1501d681
...
...
@@ -19,6 +19,7 @@
background-repeat: no-repeat;
background-position: right 0.3em center;
background-size: 1.063em 0.688em;
padding-right: 1.8em;
&[multiple] {
background-image: none;
...
...
src/blocks/field-text/field-text.less
View file @
1501d681
...
...
@@ -9,6 +9,7 @@
font-weight: 700;
display: block;
margin-bottom: round(@line-height / 4, 2);
line-height: @line-height;
}
&__input-wrap {}
...
...
src/blocks/field-toggler/field-toggler.less
View file @
1501d681
...
...
@@ -7,7 +7,7 @@
&__title {
font-weight: 700;
line-height:
1.2em
;
line-height:
@line-height
;
display: block;
margin-bottom: round(@line-height / 4, 2);
min-height: 1px;
...
...
src/blocks/form/form--line.less
0 → 100644
View file @
1501d681
@import '../../less/variables.less'; // только для удобства обращения к переменным
.form {
&--line {
&:not(:last-child) {
margin-bottom: 0;
}
@media (min-width: @screen-sm) {
.field-text,
.field-checkbox,
.field-radio,
.field-select,
.field-file,
.field-range,
.field-toggler,
.field-actions {
display: inline-block;
vertical-align: top;
margin-top: 0;
margin-right: 0.3em;
}
.field-text__input-wrap,
.field-checkbox__input-wrap,
.field-radio__input-wrap,
.field-select__select-wrap,
.field-toggler__input-wrap,
.field-file__input-wrap {
display: inline-block;
vertical-align: top;
}
.field-file__input-wrap {
max-width: 35rem;
}
.field-text__name,
.field-checkbox__title,
.field-radio__title,
.field-select__name,
.field-file__name,
.field-range__name,
.field-toggler__title {
display: inline-block;
vertical-align: top;
margin: 0;
max-width: 20rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-top: e("calc(@{field-padding-top} + 1px)"); // 1px — бордюр инпута
}
.field-checkbox__title,
.field-radio__title,
.field-toggler__title {
margin-right: 0.3em;
}
.field-checkbox__name,
.field-radio__name,
.field-toggler__name {
margin-right: 0.6em;
margin-top: e("calc(@{field-padding-top} + 1px)");
margin-bottom: e("calc(@{field-padding-top} + 1px)");
}
}
}
}
src/blocks/form/form.less
View file @
1501d681
...
...
@@ -12,4 +12,5 @@
margin-bottom: @line-height;
}
}
}
src/blocks_library.html
View file @
1501d681
This diff is collapsed.
Click to expand it.
src/less/style.less
View file @
1501d681
...
...
@@ -46,6 +46,7 @@
@import './src/blocks/field-actions/field-actions.less';
@import './src/blocks/form/form.less';
@import './src/blocks/form/form--horizontal.less';
@import './src/blocks/form/form--line.less';
@import './src/blocks/thumb/thumb.less';
@import './src/blocks/sprite-svg--localstorage/sprite-svg--localstorage.less';
@import './src/blocks/field-toggler/field-toggler.less';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment