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
97f544f0
Commit
97f544f0
authored
Nov 18, 2017
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил файлы блока группы полей
parent
cbf20eaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
0 deletions
+120
-0
fields-group.html
src/blocks/fields-group/fields-group.html
+14
-0
fields-group.scss
src/blocks/fields-group/fields-group.scss
+106
-0
No files found.
src/blocks/fields-group/fields-group.html
0 → 100644
View file @
97f544f0
<!--DEV
Для использования этого файла как шаблона:
@ @include('blocks/fields-group/fields-group.html')
(Нужно убрать пробел между символами @)
Подробнее: https://www.npmjs.com/package/gulp-file-include
<div class="fields-group">content</div>
-->
src/blocks/fields-group/fields-group.scss
0 → 100644
View file @
97f544f0
// В этом файле должны быть стили для БЭМ-блока fields-group, его элементов,
// модификаторов, псевдоселекторов, псевдоэлементов, @media-условий...
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.fields-group
{
$block-name
:
&
;
// #{$block-name}__element
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
flex-start
;
margin-bottom
:
(
$line-height
/
2
);
.btn
,
select
,
//
обычно
,
не
участвует
в
группировке
input
{
position
:
relative
;
margin
:
0
;
// &:hover,
&
:focus
{
position
:
relative
;
z-index
:
1
;
// фокус должен быть красивым
}
}
.field-actions
,
//
.field-file
,
//
обычно
,
не
участвует
в
группировке
//
.field-select
,
//
обычно
,
не
участвует
в
группировке
.field-text
{
margin
:
0
;
}
.field-actions
{
&
:not
(
:last-child
)
.btn
{
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
}
&
:not
(
:first-child
)
.btn
{
border-left
:
0
;
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
}
.btn
{
// &:hover,
&
:focus
{
z-index
:
1
;
// фокус должен быть красивым
}
}
}
.field-text
{
&
:not
(
:last-child
)
.field-text__input
{
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
}
&
:not
(
:first-child
)
.field-text__input
{
border-left
:
0
;
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
}
}
// .field-file { // обычно, не участвует в группировке
// input {
// position: absolute;
// }
// &:not(:last-child) .field-file__name-text {
// border-top-right-radius: 0;
// border-bottom-right-radius: 0;
// }
// &:not(:first-child) .field-file__name-text {
// border-left: 0;
// border-top-left-radius: 0;
// border-bottom-left-radius: 0;
// &:before {
// border-top-left-radius: 0;
// border-bottom-left-radius: 0;
// }
// }
// }
// .field-select { // обычно, не участвует в группировке
// &:not(:last-child) .field-select__select {
// border-top-right-radius: 0;
// border-bottom-right-radius: 0;
// }
// &:not(:first-child) .field-select__select {
// border-left: 0;
// border-top-left-radius: 0;
// border-bottom-left-radius: 0;
// }
// }
}
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