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
cd63f31c
Commit
cd63f31c
authored
Jan 21, 2019
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stylelint: добавил проверку очередности правил
parent
19d346ae
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
152 additions
and
84 deletions
+152
-84
.stylelintrc
.stylelintrc
+72
-4
alert.scss
src/blocks/alert/alert.scss
+1
-1
baron.scss
src/blocks/baron/baron.scss
+8
-8
breadcrumbs.scss
src/blocks/breadcrumbs/breadcrumbs.scss
+1
-1
btn.scss
src/blocks/btn/btn.scss
+5
-5
burger.scss
src/blocks/burger/burger.scss
+6
-6
close.scss
src/blocks/close/close.scss
+5
-5
code.scss
src/blocks/code/code.scss
+5
-5
embed-responsive.scss
src/blocks/embed-responsive/embed-responsive.scss
+2
-2
field-checkbox.scss
src/blocks/field-checkbox/field-checkbox.scss
+2
-2
field-file.scss
src/blocks/field-file/field-file.scss
+3
-3
field-radio.scss
src/blocks/field-radio/field-radio.scss
+3
-3
field-range.scss
src/blocks/field-range/field-range.scss
+4
-4
field-select.scss
src/blocks/field-select/field-select.scss
+7
-7
field-text.scss
src/blocks/field-text/field-text.scss
+3
-3
field-toggler.scss
src/blocks/field-toggler/field-toggler.scss
+1
-1
form.scss
src/blocks/form/form.scss
+1
-1
main-nav.scss
src/blocks/main-nav/main-nav.scss
+4
-4
modal.scss
src/blocks/modal/modal.scss
+9
-9
pagination.scss
src/blocks/pagination/pagination.scss
+1
-1
table-responsive.scss
src/blocks/table-responsive/table-responsive.scss
+3
-3
tabs.scss
src/blocks/tabs/tabs.scss
+5
-5
to-top.scss
src/blocks/to-top/to-top.scss
+1
-1
No files found.
.stylelintrc
View file @
cd63f31c
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"message": "Селектор не из имени файла или БЭМ-ошибка"
"message": "Селектор не из имени файла или БЭМ-ошибка"
}],
}],
# Проверка очередности в контексте селектора
# Проверка очередности в контексте селектора
# https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md
"order/order": [
"order/order": [
# Кастомные свойства
# Кастомные свойства
"custom-properties",
"custom-properties",
...
@@ -53,29 +54,96 @@
...
@@ -53,29 +54,96 @@
},
},
# Псевдоселекторы и псевдоэлементы
# Псевдоселекторы и псевдоэлементы
{
{
"emptyLineBefore": "always",
"type": "rule",
"type": "rule",
"selector": "^&:\\w+$"
"selector": "^&:\\w+$"
},
},
# Сторонние вложенные селекторы
# Сторонние вложенные селекторы
{
{
"emptyLineBefore": "always",
"type": "rule",
"type": "rule",
"selector": "^\\.[-_a-zA-Z0-9]+"
"selector": "^\\.[-_a-zA-Z0-9]+"
},
},
# Элементы блока
# Элементы блока
{
{
"emptyLineBefore": "always",
"type": "rule",
"type": "rule",
"selector": "^&__[-a-z0-9]+"
"selector": "^&__[-a-z0-9]+"
},
},
# Модификаторы блока
# Модификаторы блока
{
{
"emptyLineBefore": "always",
"type": "rule",
"type": "rule",
"selector": "^&--[-a-z0-9]+"
"selector": "^&--[-a-z0-9]+"
},
},
],
],
# Проверка очередности правил
# https://github.com/hudochenkov/stylelint-order/blob/master/rules/properties-order/README.md
"order/properties-order": [[
{
"properties": [
"content",
"box-sizing",
"display",
"flex",
"flex-wrap",
"flex-basis",
"flex-direction",
"flex-flow",
"flex-grow",
"flex-shrink",
"align-content",
"align-items",
"align-self",
"justify-content",
"order",
"grid",
"grid-area",
"grid-auto-*",
"grid-column",
"grid-column-*",
"grid-gap",
"grid-row",
"grid-row-*",
"grid-template",
"grid-template-*",
"position",
"z-index",
"top",
"right",
"bottom",
"left",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"overflow",
"overflow-*",
"margin",
"margin-*",
"border",
"border-*",
"padding",
"padding-*",
]
},
{
# "emptyLineBefore": "always",
"properties": [
"transform",
"transform-*",
"backface-visibility",
"perspective",
"perspective-origin",
"transition",
"transition-*",
"animation",
"animation-*",
]
},
],
{
"severity": "warning",
}
],
# http://stylelint.io/user-guide/rules/
# http://stylelint.io/user-guide/rules/
"color-hex-case": ["lower", {
"color-hex-case": ["lower", {
"severity": "warning",
"severity": "warning",
...
...
src/blocks/alert/alert.scss
View file @
cd63f31c
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
.alert
{
.alert
{
position
:
relative
;
position
:
relative
;
padding
:
0
.7em
1
.5em
0
.7em
1
.4em
;
margin-top
:
$typo-margin-vertical
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
.7em
1
.5em
0
.7em
1
.4em
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
color
:
$text-color
;
color
:
$text-color
;
background-color
:
lighten
(
$color-warning
,
30%
);
background-color
:
lighten
(
$color-warning
,
30%
);
...
...
src/blocks/baron/baron.scss
View file @
cd63f31c
...
@@ -13,14 +13,14 @@
...
@@ -13,14 +13,14 @@
overflow
:
hidden
;
overflow
:
hidden
;
&
__scroller
{
&
__scroller
{
overflow-y
:
scroll
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
overflow-y
:
scroll
;
margin
:
0
;
margin
:
0
;
border
:
0
;
border
:
0
;
padding
:
0
;
padding
:
0
;
padding-right
:
$scrollbar-width
;
padding-right
:
$scrollbar-width
;
width
:
100%
;
height
:
100%
;
-webkit-overflow-scrolling
:
touch
;
// remove line to customize scrollbar in iOs
-webkit-overflow-scrolling
:
touch
;
// remove line to customize scrollbar in iOs
&
:
:-
webkit-scrollbar
{
&
:
:-
webkit-scrollbar
{
...
@@ -30,13 +30,13 @@
...
@@ -30,13 +30,13 @@
}
}
&
__track
{
&
__track
{
opacity
:
0
;
position
:
absolute
;
position
:
absolute
;
z-index
:
3
;
z-index
:
3
;
top
:
0
;
top
:
0
;
bottom
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
width
:
$scrollbar-width
;
width
:
$scrollbar-width
;
opacity
:
0
;
background-color
:
$gray-lightest
;
background-color
:
$gray-lightest
;
#{
$block-name
}
--scrollbar
&
{
#{
$block-name
}
--scrollbar
&
{
...
@@ -47,17 +47,17 @@
...
@@ -47,17 +47,17 @@
&
__free
{
&
__free
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
bottom
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
}
}
&
__bar
{
&
__bar
{
box-sizing
:
border-box
;
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
left
:
(
$scrollbar-width
*
-1
+
1
);
z-index
:
1
;
z-index
:
1
;
left
:
(
$scrollbar-width
*
-1
+
1
);
width
:
(
$scrollbar-width
-
2
);
width
:
(
$scrollbar-width
-
2
);
box-sizing
:
border-box
;
opacity
:
1
;
opacity
:
1
;
pointer-events
:
auto
;
pointer-events
:
auto
;
background
:
$gray-lighten
;
background
:
$gray-lighten
;
...
...
src/blocks/breadcrumbs/breadcrumbs.scss
View file @
cd63f31c
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.breadcrumbs
{
.breadcrumbs
{
padding
:
0
;
list-style
:
none
;
list-style
:
none
;
margin-top
:
$typo-margin-vertical
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
;
color
:
$text-color
;
color
:
$text-color
;
a
{
a
{
...
...
src/blocks/btn/btn.scss
View file @
cd63f31c
...
@@ -6,11 +6,14 @@
...
@@ -6,11 +6,14 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
inline-block
;
display
:
inline-block
;
max-width
:
100%
;
max-width
:
100%
;
vertical-align
:
middle
;
overflow
:
hidden
;
margin
:
0
;
margin
:
0
;
border-radius
:
$border-radius
;
// border: 1px solid $gray-lighter;
border
:
0
;
padding
:
$field-padding-vertical
$field-padding-horizontal
;
padding
:
$field-padding-vertical
$field-padding-horizontal
;
vertical-align
:
middle
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
user-select
:
none
;
user-select
:
none
;
text-align
:
center
;
text-align
:
center
;
...
@@ -20,9 +23,6 @@
...
@@ -20,9 +23,6 @@
text-decoration
:
none
;
text-decoration
:
none
;
text-transform
:
none
;
text-transform
:
none
;
color
:
$text-color
;
color
:
$text-color
;
border-radius
:
$border-radius
;
// border: 1px solid $gray-lighter;
border
:
0
;
background-color
:
$gray-lightest
;
background-color
:
$gray-lightest
;
background-image
:
none
;
background-image
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
src/blocks/burger/burger.scss
View file @
cd63f31c
...
@@ -3,23 +3,23 @@
...
@@ -3,23 +3,23 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.burger
{
.burger
{
display
:
inline-block
;
position
:
relative
;
position
:
relative
;
z-index
:
1
;
z-index
:
1
;
display
:
inline-block
;
padding
:
0
;
width
:
30px
;
width
:
30px
;
border
:
none
;
padding
:
0
;
line-height
:
30px
;
line-height
:
30px
;
background
:
transparent
;
background
:
transparent
;
border
:
none
;
user-select
:
none
;
user-select
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
>
span
{
// stylelint-disable-line selector-combinator-blacklist
>
span
{
// stylelint-disable-line selector-combinator-blacklist
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
middl
e
;
position
:
relativ
e
;
width
:
100%
;
width
:
100%
;
height
:
$toggler-part-height
;
height
:
$toggler-part-height
;
vertical-align
:
middle
;
font-size
:
0
;
font-size
:
0
;
color
:
transparent
;
color
:
transparent
;
background
:
$toggler-part-bg-color
;
background
:
$toggler-part-bg-color
;
...
@@ -54,8 +54,8 @@
...
@@ -54,8 +54,8 @@
&
:before
,
&
:before
,
&
:after
{
&
:after
{
transition
:
top
$transition-time
,
transform
$transition-time
$transition-time
;
top
:
0
;
top
:
0
;
transition
:
top
$transition-time
,
transform
$transition-time
$transition-time
;
}
}
&
:before
{
&
:before
{
...
...
src/blocks/close/close.scss
View file @
cd63f31c
...
@@ -3,23 +3,23 @@
...
@@ -3,23 +3,23 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.close
{
.close
{
display
:
inline-block
;
position
:
relative
;
position
:
relative
;
z-index
:
1
;
z-index
:
1
;
display
:
inline-block
;
padding
:
0
;
width
:
30px
;
width
:
30px
;
border
:
none
;
padding
:
0
;
line-height
:
30px
;
line-height
:
30px
;
background
:
transparent
;
background
:
transparent
;
border
:
none
;
user-select
:
none
;
user-select
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
span
{
span
{
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
middl
e
;
position
:
relativ
e
;
width
:
100%
;
width
:
100%
;
height
:
$toggler-part-height
;
height
:
$toggler-part-height
;
vertical-align
:
middle
;
font-size
:
0
;
font-size
:
0
;
color
:
transparent
;
color
:
transparent
;
background
:
transparent
;
background
:
transparent
;
...
...
src/blocks/code/code.scss
View file @
cd63f31c
...
@@ -5,23 +5,23 @@
...
@@ -5,23 +5,23 @@
.code
{
.code
{
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
max-height
:
rem
(
500px
)
;
max-height
:
500px
;
margin-top
:
$typo-margin-vertical
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
.5rem
1rem
;
overflow-x
:
auto
;
background-color
:
$gray-lightest
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
border
:
1px
solid
$gray-lighter
;
border
:
1px
solid
$gray-lighter
;
padding
:
0
.5em
1em
;
overflow-x
:
auto
;
background-color
:
$gray-lightest
;
white-space
:
normal
;
white-space
:
normal
;
tab-size
:
2
;
tab-size
:
2
;
code
{
code
{
display
:
block
;
display
:
block
;
min-height
:
1em
;
padding
:
0
;
padding
:
0
;
white-space
:
pre
;
white-space
:
pre
;
background-color
:
transparent
;
background-color
:
transparent
;
min-height
:
1em
;
p
,
p
,
div
{
div
{
...
...
src/blocks/embed-responsive/embed-responsive.scss
View file @
cd63f31c
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
// Не пишите здесь другие селекторы.
// Не пишите здесь другие селекторы.
.embed-responsive
{
.embed-responsive
{
position
:
relative
;
display
:
block
;
display
:
block
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
margin-top
:
$typo-margin-vertical
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
;
padding
:
0
;
overflow
:
hidden
;
&
:
:
before
{
&
:
:
before
{
content
:
''
;
content
:
''
;
...
...
src/blocks/field-checkbox/field-checkbox.scss
View file @
cd63f31c
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
}
}
&
__name
{
&
__name
{
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
position
:
relative
;
padding-left
:
1
.5em
;
padding-left
:
1
.5em
;
margin-right
:
0
.6em
;
margin-right
:
0
.6em
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -117,8 +117,8 @@
...
@@ -117,8 +117,8 @@
position
:
absolute
;
position
:
absolute
;
top
:
0
.7em
;
top
:
0
.7em
;
left
:
0
;
left
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
&
:focus
,
&
:focus
,
...
...
src/blocks/field-file/field-file.scss
View file @
cd63f31c
...
@@ -31,15 +31,15 @@
...
@@ -31,15 +31,15 @@
}
}
&
__name-text
{
&
__name-text
{
position
:
relative
;
display
:
flex
;
display
:
flex
;
align-items
:
baseline
;
align-items
:
baseline
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
background-color
:
#fff
;
overflow
:
hidden
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
background-color
:
#fff
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
src/blocks/field-radio/field-radio.scss
View file @
cd63f31c
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
}
}
&
__name
{
&
__name
{
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
p
adding-left
:
1
.5em
;
p
osition
:
relative
;
margin-right
:
0
.6em
;
margin-right
:
0
.6em
;
padding-left
:
1
.5em
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
$line-height
;
line-height
:
$line-height
;
}
}
...
@@ -115,8 +115,8 @@
...
@@ -115,8 +115,8 @@
position
:
absolute
;
position
:
absolute
;
top
:
0
.8em
;
top
:
0
.8em
;
left
:
0
;
left
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
&
:focus
,
&
:focus
,
...
...
src/blocks/field-range/field-range.scss
View file @
cd63f31c
...
@@ -11,17 +11,17 @@
...
@@ -11,17 +11,17 @@
}
}
&
__input-wrap
{
&
__input-wrap
{
position
:
relative
;
display
:
block
;
display
:
block
;
position
:
relative
;
}
}
&
__input
{
&
__input
{
align-self
:
center
;
align-self
:
center
;
padding
:
0
;
width
:
100%
;
width
:
100%
;
height
:
2em
;
height
:
2em
;
border-radius
:
0
.25em
;
border-radius
:
0
.25em
;
border
:
0
;
border
:
0
;
padding
:
0
;
background
:
none
;
background
:
none
;
font-size
:
inherit
;
font-size
:
inherit
;
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -70,14 +70,14 @@
...
@@ -70,14 +70,14 @@
// Да, да, и это — локальная примесь.
// Да, да, и это — локальная примесь.
@mixin
field-range-slider-thumb
{
@mixin
field-range-slider-thumb
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
;
width
:
2em
;
width
:
2em
;
height
:
2em
;
height
:
2em
;
border
:
1px
solid
$border-color
;
border-radius
:
1em
;
border-radius
:
1em
;
padding
:
0
;
box-shadow
:
none
;
box-shadow
:
none
;
cursor
:
ew-resize
;
cursor
:
ew-resize
;
background
:
$gray-lightest
;
background
:
$gray-lightest
;
border
:
1px
solid
$border-color
;
}
}
&
:
:-
webkit-slider-thumb
{
&
:
:-
webkit-slider-thumb
{
...
...
src/blocks/field-select/field-select.scss
View file @
cd63f31c
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
position
:
absolute
;
position
:
absolute
;
top
:
7px
;
top
:
7px
;
right
:
16px
;
right
:
16px
;
height
:
14px
;
width
:
14px
;
width
:
14px
;
height
:
14px
;
border-left
:
1px
solid
$border-color
;
border-left
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
pointer-events
:
none
;
pointer-events
:
none
;
...
@@ -118,9 +118,9 @@
...
@@ -118,9 +118,9 @@
}
}
&
__inner
{
&
__inner
{
padding
:
$field-padding-vertical
40px
$field-padding-vertical
$field-padding-horizontal
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
padding
:
$field-padding-vertical
40px
$field-padding-vertical
$field-padding-horizontal
;
background
:
#fff
;
background
:
#fff
;
font-size
:
1em
;
font-size
:
1em
;
line-height
:
1
.5
;
line-height
:
1
.5
;
...
@@ -136,16 +136,16 @@
...
@@ -136,16 +136,16 @@
&
__list--dropdown
{
&
__list--dropdown
{
display
:
none
;
display
:
none
;
z-index
:
1
;
position
:
absolute
;
position
:
absolute
;
width
:
100%
;
z-index
:
1
;
background-color
:
#fff
;
border
:
1px
solid
$border-color
;
top
:
100%
;
top
:
100%
;
width
:
100%
;
overflow
:
hidden
;
margin-top
:
-1px
;
margin-top
:
-1px
;
border
:
1px
solid
$border-color
;
border-bottom-left-radius
:
$border-radius
;
border-bottom-left-radius
:
$border-radius
;
border-bottom-right-radius
:
$border-radius
;
border-bottom-right-radius
:
$border-radius
;
overflow
:
hidden
;
background-color
:
#fff
;
word-break
:
break-all
;
word-break
:
break-all
;
#{
$block-name
}
__item
{
#{
$block-name
}
__item
{
...
...
src/blocks/field-text/field-text.scss
View file @
cd63f31c
...
@@ -22,14 +22,14 @@
...
@@ -22,14 +22,14 @@
vertical-align
:
middle
;
vertical-align
:
middle
;
width
:
100%
;
width
:
100%
;
// height: 2.125em;
// height: 2.125em;
padding
:
$field-padding-vertical
$field-padding-horizontal
;
margin
:
0
;
margin
:
0
;
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius
;
padding
:
$field-padding-vertical
$field-padding-horizontal
;
line-height
:
$line-height
;
line-height
:
$line-height
;
font-size
:
1em
;
font-size
:
1em
;
font-family
:
inherit
;
font-family
:
inherit
;
background-color
:
#fff
;
background-color
:
#fff
;
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius
;
appearance
:
textfield
;
appearance
:
textfield
;
&
:focus
{
&
:focus
{
...
...
src/blocks/field-toggler/field-toggler.scss
View file @
cd63f31c
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
}
}
&
__name
{
&
__name
{
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
position
:
relative
;
padding-left
:
3
.2em
;
padding-left
:
3
.2em
;
margin-right
:
0
.6em
;
margin-right
:
0
.6em
;
font-weight
:
400
;
font-weight
:
400
;
...
...
src/blocks/form/form.scss
View file @
cd63f31c
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
&
__fieldset
{
&
__fieldset
{
min-width
:
0
;
min-width
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
border
:
0
;
border
:
0
;
padding
:
0
;
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
...
...
src/blocks/main-nav/main-nav.scss
View file @
cd63f31c
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
// открытие/закрытие меню только в случае работающего JS
// открытие/закрытие меню только в случае работающего JS
.js
&
{
.js
&
{
overflow
:
hidden
;
max-height
:
0
;
max-height
:
0
;
overflow
:
hidden
;
transition
:
max-height
0
.2s
;
transition
:
max-height
0
.2s
;
}
}
...
@@ -93,11 +93,11 @@
...
@@ -93,11 +93,11 @@
@media
(
min-width
:
$menu-desktop-width
)
{
@media
(
min-width
:
$menu-desktop-width
)
{
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
top
:
100%
;
top
:
100%
;
left
:
0
;
left
:
0
;
z-index
:
1
;
opacity
:
0
;
height
:
0
;
height
:
0
;
opacity
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
transition
:
opacity
$transition-time
;
transition
:
opacity
$transition-time
;
...
@@ -142,9 +142,9 @@
...
@@ -142,9 +142,9 @@
&
__toggler
{
&
__toggler
{
display
:
inline-block
;
display
:
inline-block
;
border
:
none
;
padding
:
0
;
padding
:
0
;
background
:
none
;
background
:
none
;
border
:
none
;
@media
(
min-width
:
$menu-desktop-width
)
{
@media
(
min-width
:
$menu-desktop-width
)
{
display
:
none
;
display
:
none
;
...
...
src/blocks/modal/modal.scss
View file @
cd63f31c
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
none
;
display
:
none
;
overflow
:
hidden
;
position
:
fixed
;
position
:
fixed
;
z-index
:
$z-index-modal
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
z-index
:
$z-index-modal
;
overflow
:
hidden
;
-webkit-overflow-scrolling
:
touch
;
-webkit-overflow-scrolling
:
touch
;
.js-modal-open
&
{
.js-modal-open
&
{
...
@@ -26,10 +26,10 @@
...
@@ -26,10 +26,10 @@
}
}
&
__dialog
{
&
__dialog
{
flex-shrink
:
0
;
position
:
relative
;
position
:
relative
;
margin
:
0
;
width
:
100%
;
width
:
100%
;
flex-shrink
:
0
;
margin
:
0
;
@media
(
min-width
:
$screen-lg
)
{
@media
(
min-width
:
$screen-lg
)
{
width
:
600px
;
width
:
600px
;
...
@@ -46,9 +46,9 @@
...
@@ -46,9 +46,9 @@
}
}
&
__content
{
&
__content
{
position
:
relative
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
position
:
relative
;
min-width
:
100%
;
min-width
:
100%
;
min-height
:
100%
;
min-height
:
100%
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
}
}
&
__header
{
&
__header
{
padding
:
0
40px
0
15px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
padding
:
0
40px
0
15px
;
}
}
&
__title
{
&
__title
{
...
@@ -76,22 +76,22 @@
...
@@ -76,22 +76,22 @@
}
}
&
__body
{
&
__body
{
padding
:
0
15px
;
flex-grow
:
1
;
flex-grow
:
1
;
padding
:
0
15px
;
}
}
&
__footer
{
&
__footer
{
padding
:
15px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
padding
:
15px
;
}
}
&
__backdrop
{
&
__backdrop
{
position
:
fixed
;
position
:
fixed
;
z-index
:
(
$z-index-modal
-
1
);
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
z-index
:
(
$z-index-modal
-
1
);
background-color
:
rgba
(
0
,
0
,
0
,
$opacity
);
background-color
:
rgba
(
0
,
0
,
0
,
$opacity
);
@media
(
min-width
:
$screen-lg
)
{
@media
(
min-width
:
$screen-lg
)
{
...
...
src/blocks/pagination/pagination.scss
View file @
cd63f31c
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
&
__item
{
&
__item
{
display
:
block
;
display
:
block
;
padding
:
0
.5em
;
min-width
:
2
.5em
;
min-width
:
2
.5em
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
padding
:
0
.5em
;
text-decoration
:
none
;
text-decoration
:
none
;
text-align
:
center
;
text-align
:
center
;
color
:
$text-color
;
color
:
$text-color
;
...
...
src/blocks/table-responsive/table-responsive.scss
View file @
cd63f31c
...
@@ -3,18 +3,18 @@
...
@@ -3,18 +3,18 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.table-responsive
{
.table-responsive
{
width
:
100%
;
margin-top
:
$typo-margin-vertical
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
width
:
100%
;
caption
{
caption
{
caption-side
:
top
;
caption-side
:
top
;
text-align
:
left
;
text-align
:
left
;
padding
:
0
.4em
$field-padding-horizontal
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
border-bottom
:
0
;
border-bottom
:
0
;
padding
:
0
.4em
$field-padding-horizontal
;
font-size
:
$font-size--small
;
font-size
:
$font-size--small
;
line-height
:
1em
;
line-height
:
1em
;
color
:
$text-color--muted
;
color
:
$text-color--muted
;
...
@@ -64,9 +64,9 @@
...
@@ -64,9 +64,9 @@
border-left
:
0
!
important
;
// stylelint-disable-line declaration-no-important
border-left
:
0
!
important
;
// stylelint-disable-line declaration-no-important
&
:before
{
// stylelint-disable-line max-nesting-depth
&
:before
{
// stylelint-disable-line max-nesting-depth
content
:
attr
(
data-label
);
display
:
block
;
display
:
block
;
font-weight
:
700
;
font-weight
:
700
;
content
:
attr
(
data-label
);
}
}
}
}
}
}
...
...
src/blocks/tabs/tabs.scss
View file @
cd63f31c
...
@@ -10,12 +10,12 @@
...
@@ -10,12 +10,12 @@
margin-bottom
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
&
__links
{
&
__links
{
margin
:
0
;
padding
:
0
;
list-style
:
none
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
align-items
:
flex-end
;
align-items
:
flex-end
;
margin
:
0
;
padding
:
0
;
list-style
:
none
;
&
:after
{
&
:after
{
content
:
''
;
content
:
''
;
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
&
__link-wrap
{
&
__link-wrap
{
position
:
relative
;
position
:
relative
;
border
:
1px
solid
$border-color
;
margin
:
0
0
.3em
0
.3em
0
;
margin
:
0
0
.3em
0
.3em
0
;
border
:
1px
solid
$border-color
;
color
:
$text-color--muted
;
color
:
$text-color--muted
;
@media
(
min-width
:
$screen-md
)
{
@media
(
min-width
:
$screen-md
)
{
...
@@ -76,8 +76,8 @@
...
@@ -76,8 +76,8 @@
&
__content-wrapper
{
&
__content-wrapper
{
display
:
block
;
display
:
block
;
padding
:
$field-padding-vertical
$field-padding-horizontal
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
padding
:
$field-padding-vertical
$field-padding-horizontal
;
@media
(
min-width
:
$screen-md
)
{
@media
(
min-width
:
$screen-md
)
{
border-top
:
none
;
border-top
:
none
;
...
...
src/blocks/to-top/to-top.scss
View file @
cd63f31c
...
@@ -9,9 +9,9 @@ $transition-time: 0.3s !default;
...
@@ -9,9 +9,9 @@ $transition-time: 0.3s !default;
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
position
:
fixed
;
position
:
fixed
;
z-index
:
99
;
right
:
1rem
;
right
:
1rem
;
bottom
:
1rem
;
bottom
:
1rem
;
z-index
:
99
;
width
:
3rem
;
width
:
3rem
;
height
:
3rem
;
height
:
3rem
;
border-radius
:
50%
;
border-radius
:
50%
;
...
...
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