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

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

parent 002396fb
......@@ -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
......@@ -45,21 +45,21 @@
}
}
&--sm {
// &--sm {
$toggler-part-height: 1px;
// $toggler-part-height: 1px;
width: 30px;
line-height: 30px;
// width: 30px;
// line-height: 30px;
span {
width: 60%;
// span {
// width: 60%;
&:before,
&:after {
height: $toggler-part-height;
background: $toggler-part-bg-color;
}
}
}
// &:before,
// &:after {
// height: $toggler-part-height;
// background: $toggler-part-bg-color;
// }
// }
// }
}
......@@ -186,7 +186,6 @@ block content
include:markdown-it(html='true') ../blocks/close/readme.md
div
+close('Закрыть')
+close('Закрыть', 'sm')
+block-lib-code()
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