Commit 3e033341 authored by Nikolay Gromov's avatar Nikolay Gromov

Рефакторинг: modal

parent 30568f6e
...@@ -29,13 +29,15 @@ ...@@ -29,13 +29,15 @@
position: relative; position: relative;
margin: 0; margin: 0;
width: 100%; width: 100%;
height: 100%;
flex-shrink: 0; flex-shrink: 0;
@media (min-width: $screen-lg) { @media (min-width: $screen-lg) {
width: 600px; width: 600px;
margin: auto; margin: auto;
height: auto;
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
padding: 2em 0;
}
#{$block-name}--open & { #{$block-name}--open & {
animation: modal-content-show $transition-time 1 both; animation: modal-content-show $transition-time 1 both;
...@@ -101,8 +103,11 @@ ...@@ -101,8 +103,11 @@
@media (min-width: $screen-lg) { @media (min-width: $screen-lg) {
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
align-items: flex-start;
}
} }
} }
} }
......
...@@ -748,6 +748,19 @@ block content ...@@ -748,6 +748,19 @@ block content
+modal('modal-demo-01', 'Заголовок', 'some') +modal('modal-demo-01', 'Заголовок', 'some')
.modal__body .modal__body
p Текст p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
p Текст
.modal__footer .modal__footer
button.btn(type='button', data-dismiss='modal') Закрыть button.btn(type='button', data-dismiss='modal') Закрыть
pre.code pre.code
......
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