Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

8/1 master -> stable #7

Merged
merged 57 commits into from
Aug 1, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
f4a70f3
adjust transiton duration from 0.5 to 0.33
frankiefu Jul 12, 2013
28f59e5
select on menu-item itself should deselect all sub-items
frankiefu Jul 16, 2013
df75d25
create polymer-ui-sidebar and allow for constucting a custom sidebar
frankiefu Jul 16, 2013
643d2fd
use polymer-ui-sidebar in polymer-ui-sidebar-menu
frankiefu Jul 16, 2013
21e3c99
remove touch-action="none" since it's not needed anymore
frankiefu Jul 16, 2013
afe4511
css tweaks; add gruntfile for building docs, and manifest.xml for dis…
Jul 17, 2013
2c891b1
add noscript to elements that don't have script
frankiefu Jul 17, 2013
15116c0
adjust padding for menu inside sidebar
frankiefu Jul 17, 2013
377d7a2
avoid styles leak in polyfill
frankiefu Jul 17, 2013
20d6323
include docs infrastructure
Jul 18, 2013
ab70196
fix doc tool provisioning
Jul 18, 2013
280df12
avoid getComputedStyle at create time (breaks FF)
Jul 18, 2013
5c2f710
hide the arrow if item is null
frankiefu Jul 19, 2013
3527a6f
toggle collapsed only when there are sub-items
frankiefu Jul 19, 2013
e4a848c
add targetId back
frankiefu Jul 19, 2013
e83f4ae
tapping on the item with opened submenu will close the submenu
frankiefu Jul 19, 2013
c6cc83b
moar icons
Jul 23, 2013
e2468a4
fix api doc
frankiefu Jul 23, 2013
4badbe7
update toolbar example
frankiefu Jul 24, 2013
06dd421
remove .htaccess file
frankiefu Jul 24, 2013
ca364d9
Added 10px margin left right to icon button
yuinchien Jul 25, 2013
db86a74
add back custom toolbar example (it was accidentally comment out)
frankiefu Jul 25, 2013
cd0a5c6
moar icons
Jul 25, 2013
d7d8b54
correct icon names to indexes
sorvell Jul 25, 2013
cccd036
add font-size
sorvell Jul 25, 2013
3ab1578
polymer-ui-overlay-menu: an overlay containing a menu.
sorvell Jul 25, 2013
0f1e424
polymer-ui-menu-button: a button which can have menu-items inside it …
sorvell Jul 25, 2013
fc5e600
Added action-icons.svg for polymer-ui-icon. Updated icon margin for p…
yuinchien Jul 25, 2013
862ab7c
Merge branch 'master' of github.com:Polymer/polymer-ui-elements
yuinchien Jul 25, 2013
93918b2
fix icon names
Jul 25, 2013
46ac8c6
Merge branch 'master' of https://github.com/Polymer/polymer-ui-elements
Jul 25, 2013
9fe55a4
collapsible: make tap optional
frankiefu Jul 25, 2013
7f2b2e5
Temporarily use the icon png file instead of svg until we have an equ…
sorvell Jul 25, 2013
ca88dd7
bind selected and selectedClass
sorvell Jul 25, 2013
5f212f3
bind valueattr and multi
frankiefu Jul 25, 2013
910801e
update @polyfill to match CSS change
frankiefu Jul 26, 2013
b6e6831
add list item simple mock
dfreedm Jul 27, 2013
8cf1699
polymer-ui-list-item -> polymer-ui-field
dfreedm Jul 27, 2013
3ebcbce
add to manifest, add example
dfreedm Jul 27, 2013
69a2aa2
bind selectedItem
frankiefu Jul 29, 2013
2ff854e
css tweak
frankiefu Jul 29, 2013
9263dbe
collapsible: add notap to disable tap to open/close behavior
frankiefu Jul 29, 2013
43393e1
Merge branch 'master' of github.com:Polymer/polymer-ui-elements
frankiefu Jul 29, 2013
6fc336e
polymer-ui-menu-button: quick fix for right alignment
Jul 29, 2013
a7e2488
polymer-ui-menu-button: fix styling
Jul 29, 2013
8a356fe
polymer-ui-toolbar: make position:relative
Jul 30, 2013
c01948d
polymer-ui-menu-button: fix narrow mode
Jul 30, 2013
428582e
change polymer-ui-menu-item to be a simple menu-item and create
frankiefu Jul 30, 2013
762ac4d
fire polymer-select immediately to match the fire event in
frankiefu Jul 30, 2013
6f97ed4
adjust background color
frankiefu Jul 31, 2013
8965dd3
adjust styling to match design
frankiefu Jul 31, 2013
6df8ddd
new layered image (Paint.net format)
Jul 31, 2013
11b46e3
remove use of noscript.
sorvell Jul 31, 2013
da919ff
polymer-ui-overlay: simple overlay that targets itself
Jul 30, 2013
39f0fa0
polymer-ui-overlay-menu: deprecated
Jul 30, 2013
6c53637
polymer-ui-overlay: version using <dialog> polyfill
Jul 30, 2013
cbc15f9
polymer-ui-toolbar: add rule for polymer-ui-menu-button
Jul 31, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/docs

/node_modules
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tools"]
path = tools
url = https://github.com/Polymer/tools.git
Binary file modified assets/action-icons.pdn
Binary file not shown.
Binary file modified assets/action-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* 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.exports = function(grunt) {
grunt.initConfig({
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
exclude: 'third_party',
extension: '.js,.html',
paths: '.',
outdir: 'docs',
linkNatives: 'true',
tabtospace: 2,
themedir: 'tools/doc/themes/footstrap'
}
}
},
pkg: grunt.file.readJSON('package.json')
});

// plugins
grunt.loadNpmTasks('grunt-contrib-yuidoc');

// tasks
grunt.registerTask('default', ['yuidoc']);
grunt.registerTask('docs', ['yuidoc']);
};

18 changes: 18 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<meta>
<polymer-element-meta name="polymer-ui-accordion"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-collapsible"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-field"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-icon"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-icon-button"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-menu"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-menu-item"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-nav-arrow"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-ratings"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-sidebar-menu"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-splitter"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-tabs"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-theme-aware"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-toggle-button"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-toolbar"></polymer-element-meta>
</meta>
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "PolymerUIElements",
"version": "0.0.1",
"devDependencies": {
"grunt": "*",
"grunt-contrib-yuidoc": "*"
}
}
3 changes: 3 additions & 0 deletions polymer-ui-accordion/polymer-ui-accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@
<link rel="stylesheet" href="polymer-ui-accordion.css">
<shadow></shadow>
</template>
<script>
Polymer('polymer-ui-accordion');
</script>
</polymer-element>
15 changes: 12 additions & 3 deletions polymer-ui-collapsible/polymer-ui-collapsible.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,30 @@
-->
<link rel="import" href="../../polymer-elements/polymer-collapse/polymer-collapse.html">

<polymer-element name="polymer-ui-collapsible" attributes="active">
<polymer-element name="polymer-ui-collapsible" attributes="active notap">
<template>
<link rel="stylesheet" href="polymer-ui-collapsible.css">
<div on-tap="toggle">
<div on-tap="headerTap">
<content select=".polymer-ui-collapsible-header"></content>
</div>
<div id="collapsibleBody">
<div id="collapsibleBody" on-tap="bodyTap">
<content></content>
</div>
<polymer-collapse targetId="collapsibleBody" closed="{{!active}}"></polymer-collapse>
</template>
<script>
Polymer('polymer-ui-collapsible', {
notap: false,
toggle: function() {
this.active = !this.active;
},
headerTap: function() {
if (!this.notap) {
this.toggle();
}
},
bodyTap: function(e) {
e.cancelBubble = true;
}
});
</script>
Expand Down
22 changes: 22 additions & 0 deletions polymer-ui-field/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Polymer UI Field</title>
<script src="../../polymer/polymer.js" debug></script>
<link rel="import" href="polymer-ui-field.html" />
<link rel="import" href="../polymer-ui-icon-button/polymer-ui-icon-button.html" />
<style>
html {
font-family: 'Helvetica Neue', 'Roboto', 'Arial', sans-serif;
font-size: 14px;
}
</style>
</head>
<body>
<polymer-ui-field>
<polymer-ui-icon-button icon="add"></polymer-ui-icon-button>
<input value="Field input">
</polymer-ui-field>
</body>
</html>
33 changes: 33 additions & 0 deletions polymer-ui-field/polymer-ui-field.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<polymer-element name="polymer-ui-field">
<template>
<style>
@host {
* {
display: block;
padding: 18px;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
}
::-webkit-distributed(input) {
font-size: 14px;
height: 40px;
color: #333;
border: 0;
flex: 1 auto;
}
::-webkit-distributed(input::placeholder) {
color: #b3b3b3;
}
div {
display: flex;
flex-direction: row;
}
</style>
<div>
<content select="*"></content>
</div>
</template>
<script>
Polymer('polymer-ui-field');
</script>
</polymer-element>
6 changes: 3 additions & 3 deletions polymer-ui-icon-button/polymer-ui-icon-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ license that can be found in the LICENSE file.
background: url(btn_light.png) top left no-repeat;
background-size: cover;
}

*:hover {
background-position: 0 -44px;
}

*.selected {
background-position: 0 -88px;
}

*:active, *.selected:active {
background-position: 0 -132px;
}
Expand Down
2 changes: 1 addition & 1 deletion polymer-ui-icon-button/polymer-ui-icon-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<polymer-element name="polymer-ui-icon-button" attributes="src index icon active">
<template>
<link rel="stylesheet" href="polymer-ui-icon-button.css">
<polymer-ui-icon src="{{src}}" index="{{index}}" icon="{{icon}}"></polymer-ui-icon>
<polymer-ui-icon src="{{src}}" index="{{index}}" icon="{{icon}}"><content></content></polymer-ui-icon>
</template>
<script>
Polymer('polymer-ui-icon-button', {
Expand Down
Binary file added polymer-ui-icon/action-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading