Commit d85ff257 authored by Nikolay Gromov's avatar Nikolay Gromov

Рефакторинг: добавил новые правила стайллинта

parent 8e94312c
This diff is collapsed.
......@@ -11,12 +11,12 @@
color: $text-color;
background-color: lighten($color-warning, 30%);
& > * {
& > * { // stylelint-disable-line selector-combinator-blacklist
margin-top: 0;
margin-bottom: 0;
}
& > * + * {
& > * + * { // stylelint-disable-line selector-combinator-blacklist
margin-top: $typo-margin-vertical;
}
......
......@@ -14,7 +14,7 @@
user-select: none;
cursor: pointer;
> span {
> span { // stylelint-disable-line selector-combinator-blacklist
position: relative;
display: inline-block;
vertical-align: middle;
......@@ -48,7 +48,7 @@
&--close {
> span {
> span { // stylelint-disable-line selector-combinator-blacklist
transition: background $transition-time 0s;
background: transparent;
......
......@@ -14,7 +14,7 @@
user-select: none;
cursor: pointer;
> span {
span {
position: relative;
display: inline-block;
vertical-align: middle;
......@@ -52,7 +52,7 @@
width: 30px;
line-height: 30px;
> span {
span {
width: 60%;
&:before,
......
......@@ -12,7 +12,7 @@
padding-left: calc(60px + 1em);
}
& & & & {
& & & & { // stylelint-disable-line selector-max-compound-selectors, selector-max-class, selector-max-combinators
padding-left: 0;
}
}
......@@ -45,7 +45,7 @@
&__body {
& > *:last-child {
& > *:last-child { // stylelint-disable-line selector-combinator-blacklist
margin-bottom: 0;
}
}
......
......@@ -52,7 +52,7 @@
&--active {
& > #{$block-name}__link {
& > #{$block-name}__link { // stylelint-disable-line selector-combinator-blacklist
color: #000;
}
}
......@@ -101,12 +101,12 @@
overflow: hidden;
transition: opacity $transition-time;
// stylelint-disable max-nesting-depth
// stylelint-disable
#{$block-name}__item--show-child > &,
#{$block-name}__item:hover & {
opacity: 1;
height: auto;
overflow: visible;
opacity: 1;
}
// stylelint-enable
}
......@@ -124,12 +124,12 @@
overflow: hidden;
transition: opacity $transition-time;
// stylelint-disable max-nesting-depth
// stylelint-disable
#{$block-name}__item--show-child > &,
#{$block-name}__item--lvl-2:hover & {
opacity: 1;
height: auto;
overflow: visible;
opacity: 1;
}
// stylelint-enable
}
......
// Демка для библиотеки блоков
img.ofp-demo {
img.ofp-demo { // stylelint-disable-line
object-fit: cover;
}
......@@ -88,7 +88,7 @@
display: none;
}
& > *:last-child {
& > *:last-child { // stylelint-disable-line selector-combinator-blacklist
margin-bottom: 0;
}
......
......@@ -17,7 +17,7 @@ $transition-time: 0.3s !default;
border-radius: 50%;
background-color: #000;
color: transparent;
font: 0/0 a;
font: 0/0 a; // stylelint-disable-line
// см. bg-img/to-up.svg
// http://yoksel.github.io/url-encoder/ru/
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 11' width='17' height='11'%3E%3Cpath fill='%23fff' d='M.202 1.97L1.956.204A.61.61 0 0 1 2.43 0a.61.61 0 0 1 .47.204L8.5 5.84 14.1.204A.61.61 0 0 1 14.57 0a.61.61 0 0 1 .474.204l1.754 1.766a.618.618 0 0 1 .202.473.62.62 0 0 1-.202.476l-7.826 7.875A.61.61 0 0 1 8.5 11a.61.61 0 0 1-.472-.204L.202 2.92A.618.618 0 0 1 0 2.444c0-.203.067-.34.202-.475z'/%3E%3C/svg%3E");
......
......@@ -123,7 +123,7 @@ $grid-gutter-width: 30px !default;
display: flex;
flex-wrap: wrap;
& > * {
& > * { // stylelint-disable-line selector-combinator-blacklist
flex-basis: 100%;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment