Commit 8ef991d2 authored by Nikolay Gromov's avatar Nikolay Gromov

Кнопка закрытия: рефакторинг

parent 002396fb
...@@ -19,5 +19,5 @@ mixin close(label, mods) ...@@ -19,5 +19,5 @@ mixin close(label, mods)
} }
} }
button.close(class=allMods, aria-label=label, title=label)&attributes(attributes) button.close(class=allMods, type='button', aria-label=label, title=label)&attributes(attributes)
span= label span= label
...@@ -45,21 +45,21 @@ ...@@ -45,21 +45,21 @@
} }
} }
&--sm { // &--sm {
$toggler-part-height: 1px; // $toggler-part-height: 1px;
width: 30px; // width: 30px;
line-height: 30px; // line-height: 30px;
span { // span {
width: 60%; // width: 60%;
&:before, // &:before,
&:after { // &:after {
height: $toggler-part-height; // height: $toggler-part-height;
background: $toggler-part-bg-color; // background: $toggler-part-bg-color;
} // }
} // }
} // }
} }
...@@ -186,7 +186,6 @@ block content ...@@ -186,7 +186,6 @@ block content
include:markdown-it(html='true') ../blocks/close/readme.md include:markdown-it(html='true') ../blocks/close/readme.md
div div
+close('Закрыть') +close('Закрыть')
+close('Закрыть', 'sm')
+block-lib-code() +block-lib-code()
include:show-code(first-line='//- Pug-файл этого блока:') ../blocks/close/close.pug include:show-code(first-line='//- Pug-файл этого блока:') ../blocks/close/close.pug
......
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