This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott J. Miles
committed
Dec 13, 2013
1 parent
36af6dd
commit 91e61d4
Showing
3 changed files
with
93 additions
and
237 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,130 +1,50 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>polymer-flex-layout</title> | ||
<script src="../../polymer/polymer.js"></script> | ||
<link rel="import" href="polymer-flex-layout.html"> | ||
<link rel="import" href="polymer-flex-panel.html"> | ||
<title>x-palette</title> | ||
<script src="../platform/platform.js"></script> | ||
<link rel="import" href="../x-palette/x-palette.html"> | ||
<style> | ||
html { | ||
position: relative; | ||
height: 100%; | ||
} | ||
body { | ||
font-size: 20px; | ||
font-family: Neue Helvetica, Roboto, Arial; | ||
height: 100%; | ||
margin: 0; | ||
overflow: hidden; | ||
} | ||
|
||
flex-css, flex-container, flex-nonvisual { | ||
height: 300px; | ||
x-palette { | ||
display: block; | ||
overflow: hidden; | ||
position: absolute !important; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
} | ||
</style> | ||
<link rel="import" href="../polymer-ui-elements/metadata.html"> | ||
</head> | ||
<body> | ||
<polymer-element name="flex-css"> | ||
<template> | ||
<link rel="stylesheet" href="polymer-flex-layout.css"> | ||
<style> | ||
div { | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
border: 2px solid #ccc; | ||
} | ||
</style> | ||
<div class="flexbox" flex> | ||
<div>Hi I'm some content</div> | ||
<div class="flexbox column" flex> | ||
<div class="flexbox align-center"> | ||
<h3>Title</h3> | ||
<button>hello</button> | ||
</div> | ||
<div class="flexbox" flex> | ||
<div flex>Main content</div> | ||
<div>Sidebar content</div> | ||
</div> | ||
<div>Some more stuffs...</div> | ||
<div class="flexbox justify-end"> | ||
<b>Footer</b> | ||
</div> | ||
</div> | ||
<div>A last bit, like a panel</div> | ||
</div> | ||
</template> | ||
<script> | ||
Polymer('flex-css', { | ||
ready: function() { | ||
this.classList.add('flexbox'); | ||
} | ||
<x-palette></x-palette> | ||
<template> | ||
<link rel="import" href="../polymer-elements/metadata.html"> | ||
<link rel="import" href="../more-elements/metadata.html"> | ||
</template> | ||
<script> | ||
setTimeout(function() { | ||
var doc = document.querySelector('template').content; | ||
HTMLImports.importer.load(doc, function() { | ||
doc.querySelectorAll('link').array().forEach( | ||
function(link) { | ||
HTMLImports.parser.parse(link.content); | ||
CustomElements.parser.parse(link.content); | ||
} | ||
); | ||
}); | ||
</script> | ||
</polymer-element> | ||
|
||
<polymer-element name="flex-container" noscript extends="polymer-flex-panel"> | ||
<template> | ||
<style> | ||
div, polymer-flex-panel { | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
border: 2px solid #ccc; | ||
} | ||
</style> | ||
<div>Hi I'm some content</div> | ||
<polymer-flex-panel vertical flex> | ||
<polymer-flex-panel align="center"> | ||
<h3>Title</h3> | ||
<button>hello</button> | ||
</polymer-flex-panel> | ||
<polymer-flex-panel flex> | ||
<div flex>Main content</div> | ||
<div>Sidebar content</div> | ||
</polymer-flex-panel> | ||
<div>Some more stuffs...</div> | ||
<polymer-flex-panel justify="end"> | ||
<b>Footer</b> | ||
</polymer-flex-panel> | ||
</polymer-flex-panel> | ||
<div>A last bit, like a panel</div> | ||
</template> | ||
</polymer-element> | ||
|
||
<polymer-element name="flex-nonvisual" noscript> | ||
<template> | ||
<style> | ||
div { | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
border: 2px solid #ccc; | ||
} | ||
</style> | ||
<polymer-flex-layout></polymer-flex-layout> | ||
<div flex> | ||
<polymer-flex-layout></polymer-flex-layout> | ||
<div>Hi I'm some content</div> | ||
<div flex> | ||
<polymer-flex-layout vertical></polymer-flex-layout> | ||
<div> | ||
<polymer-flex-layout align="center"></polymer-flex-layout> | ||
<h3>Title</h3> | ||
<button>hello</button> | ||
</div> | ||
<div flex> | ||
<polymer-flex-layout></polymer-flex-layout> | ||
<div flex>Main content</div> | ||
<div>Sidebar content</div> | ||
</div> | ||
<div>Some more stuffs...</div> | ||
<div> | ||
<polymer-flex-layout justify="end"></polymer-flex-layout> | ||
<b>Footer</b> | ||
</div> | ||
</div> | ||
<div>A last bit, like a panel</div> | ||
</div> | ||
</template> | ||
</polymer-element> | ||
|
||
<h3>polymer-flex-layout.css</h3> | ||
<flex-css></flex-css> | ||
<br> | ||
<h3>polymer-flex-panel element</h3> | ||
<flex-container></flex-container> | ||
<br> | ||
<h3>polymer-flex-layout element</h3> | ||
<flex-nonvisual></flex-nonvisual> | ||
}, 2000); | ||
</script> | ||
</body> | ||
</html> |
This file contains 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