Created
October 30, 2014 03:57
-
-
Save JanMiksovsky/4f06a2e4cf0ea054ccbd to your computer and use it in GitHub Desktop.
Does an akyral-modal instance pick up body styling?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<script src="akyral-modal/bower_components/platform/platform.js"></script> | |
<link rel="import" href="akyral-modal/bower_components/akyral-modal/akyral-modal.html"> | |
<style> | |
body, | |
button { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 15px; | |
} | |
</style> | |
<script> | |
function toggleDialog() { | |
var dialog = document.querySelector( "#dialog" ); | |
dialog.toggle(); | |
} | |
</script> | |
</head> | |
<body> | |
<p> | |
This is a test. | |
</p> | |
<akyral-modal id="dialog" style="box-shadow: 0px 5px 20px 2px rgba(0,0,0,.5);"> | |
<p> | |
Here's a modal dialog. | |
</p> | |
<button onclick="toggleDialog()">OK</button> | |
</akyral-modal> | |
<button onclick="toggleDialog()">Show dialog</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment