Skip to content

Instantly share code, notes, and snippets.

@JanMiksovsky
Created October 30, 2014 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JanMiksovsky/4f06a2e4cf0ea054ccbd to your computer and use it in GitHub Desktop.
Save JanMiksovsky/4f06a2e4cf0ea054ccbd to your computer and use it in GitHub Desktop.
Does an akyral-modal instance pick up body styling?
<!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