Skip to content

Commit

Permalink
added css animation to only the dialog part and also added opacity to bg
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed Mar 27, 2015
1 parent b08ee1a commit aee3fb3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-style-confirm",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "http://bitwiser.i/medium-style-confirm/",
"authors": [
"Brijesh Bittu <[email protected]>"
Expand Down
13 changes: 13 additions & 0 deletions css/msc-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
top: 0;
height: 100%;
width: 100%;
opacity: 0.9;
left: 0;
background-color: #fff;
z-index: 20;
Expand Down Expand Up @@ -70,9 +71,21 @@
opacity: 1.0;
max-width: 480px;
margin: 10% auto 10% auto;
padding: 40px;
text-align: center;
}

@media (max-width: 600px) {
.msc-content {
padding: 10px;
}
}
@media (max-width: 600px) {
.msc-content {
padding: 0px;
}
}

.msc-title {
font-size: 2em;
margin: 0 0 0.1em 0;
Expand Down
4 changes: 2 additions & 2 deletions js/msc-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
dialog.appendChild(content);
document.body.appendChild(dialog);
dialog.style.display = 'block';
dialog.classList.add('msc-confirm--animate');
content.classList.add('msc-confirm--animate');
cancelbtn.focus();

document.addEventListener('keyup', _hide);
Expand Down Expand Up @@ -106,4 +106,4 @@

//window.msc = MscConfirm;
window.mscConfirm = MscConfirm;
})();
})();

0 comments on commit aee3fb3

Please sign in to comment.