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 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
polymer-ui-tabs; use Platform.flush instead of dirtyCheck; cleanup
workbench files
- Loading branch information
Showing
6 changed files
with
111 additions
and
17 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
<!doctype html> | ||
<!-- | ||
Copyright 2013 The Polymer Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style | ||
license that can be found in the LICENSE file. | ||
--> | ||
<html> | ||
<head> | ||
<title>polymer-ui-tabs</title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<!-- load toolkit --> | ||
<script src="../../polymer/polymer.js"></script> | ||
<!-- import elements--> | ||
<link rel="import" href="polymer-ui-tabs.html"> | ||
<!-- --> | ||
<link rel="stylesheet" href="../basic.css"> | ||
</head> | ||
<body class="polymer-ui-body-text"> | ||
<polymer-ui-tabs selected="0"> | ||
<span>One</span> | ||
<span>Two</span> | ||
<span>Three</span> | ||
<span>Four</span> | ||
<span>Five</span> | ||
</polymer-ui-tabs> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!-- | ||
Copyright 2013 The Polymer Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style | ||
license that can be found in the LICENSE file. | ||
--> | ||
<!-- | ||
/** | ||
* @module Polymer UI Elements | ||
*/ | ||
/** | ||
* polymer-ui-tabs is a g-selector styled to look like a tab menu. | ||
* | ||
* Example: | ||
* | ||
* <polymer-ui-tabs selected="0"> | ||
* <span>One</span> | ||
* <span>Two</span> | ||
* <span>Three</span> | ||
* <span>Four</span> | ||
* </polymer-ui-tabs> | ||
* | ||
* @class polymer-ui-tabs | ||
* @extends g-selector | ||
*/ | ||
--> | ||
<link rel="import" href="../../polymer-elements/polymer-selector/polymer-selector.html"> | ||
|
||
<element name="polymer-ui-tabs" extends="polymer-selector"> | ||
<template> | ||
<style> | ||
@host { | ||
* { | ||
display: block; | ||
height: 59px; | ||
border: 0; | ||
border-bottom: 1px solid #e8e8e8; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
/*@polyfill @host > * */ | ||
::-webkit-distributed(*) { | ||
display: inline-block; | ||
min-width: 60px; | ||
height: 59px; | ||
line-height: 59px; | ||
text-align: center; | ||
padding: 0 8px; | ||
cursor: pointer; | ||
font-size: 14px; | ||
color: #999; | ||
} | ||
|
||
/*@polyfill @host > *.polymer-selected */ | ||
::-webkit-distributed(*.polymer-selected) { | ||
background: #4888f0; | ||
color: #fff; | ||
} | ||
</style> | ||
<shadow></shadow> | ||
</template> | ||
<script> | ||
Polymer.register(this); | ||
</script> | ||
</element> |
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