Skip to content

Commit

Permalink
modal: fix visibility of modal's content
Browse files Browse the repository at this point in the history
  • Loading branch information
sipayRT committed Mar 3, 2015
1 parent 8a3cd9c commit a6f1100
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions design/common.blocks/modal/_theme/modal_theme_islands.styl
Expand Up @@ -3,7 +3,9 @@
display: none;
visibility: hidden;

background: rgba(50, 50, 50, .2);
margin: -9999px 0 0 -9999px; // to prevent clickability and visiblity of internal elements with visiblity: visible

background: rgba(50, 50, 50, 0.2);

&,
& .modal__content
Expand All @@ -17,8 +19,8 @@
{
margin: 5px;

background-color: #fff;
border: 1px solid #bfbfbf;
background-color: #fff;
}

&.modal_js_inited
Expand All @@ -40,6 +42,8 @@
{
visibility: visible;

margin: 0;

&.modal_has-animation
{
animation-name: modal_theme_islands_visible;
Expand All @@ -49,7 +53,6 @@
animation-name: modal_theme_islands_visible__content;
}
}

}
}

Expand All @@ -59,12 +62,23 @@
0%
{
visibility: visible;

margin: 0;

opacity: 1;
}

99%
{
margin: 0;
}

100%
{
visibility: hidden;

margin: -9999px 0 0 -9999px;

opacity: 0;
}
}
Expand Down

0 comments on commit a6f1100

Please sign in to comment.