From 8dbb08403ae40b16dd16d5b923af934535d652a1 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Thu, 1 Aug 2013 15:01:08 -0700 Subject: [PATCH 01/20] use shadows for icon-button. --- .../polymer-ui-icon-button.css | 47 +++++++++++++++---- .../polymer-ui-icon-button.html | 2 +- 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/polymer-ui-icon-button/polymer-ui-icon-button.css b/polymer-ui-icon-button/polymer-ui-icon-button.css index 88e91b5..a0e7b2c 100644 --- a/polymer-ui-icon-button/polymer-ui-icon-button.css +++ b/polymer-ui-icon-button/polymer-ui-icon-button.css @@ -8,25 +8,52 @@ license that can be found in the LICENSE file. display: inline-block; box-sizing: border-box; -moz-box-sizing: border-box; - width: 44px; - height: 44px; - padding: 10px; + width: 38px; + height: 38px; + background-image: none; + border-radius: 2px; + padding: 7px; + margin: 2px; vertical-align: middle; cursor: pointer; - background: url(btn_light.png) top left no-repeat; - background-size: cover; + } + + .outline { + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); } - *:hover { - background-position: 0 -44px; + *:hover, .hover { + box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.1); } - *.selected { - background-position: 0 -88px; + .selected { + background-color: rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.12); } *:active, *.selected:active { - background-position: 0 -132px; + background-color: rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.12); + } + + .polymer-ui-dark-theme.outline { + background-color: rgba(200, 200, 200, 0.05); + box-shadow: 0 0 0 1px rgba(200, 200, 200, 0.1); + } + + .polymer-ui-dark-theme:hover, .polymer-ui-dark-theme.hover { + background-color: rgba(200, 200, 200, 0.05); + box-shadow: 0 1px 0 0 rgba(200, 200, 200, 0.12), 0 0 0 1px rgba(200, 200, 200, 0.1); + } + + .polymer-ui-dark-theme.selected { + background-color: rgba(220, 220, 220, 0.05); + box-shadow: inset 0 1px 0 0 rgba(200, 200, 200, 0.05), 0 0 0 1px rgba(200, 200, 200, 0.12); + } + + .polymer-ui-dark-theme:active, .polymer-ui-dark-theme.selected:active { + background-color: rgba(200, 200, 200, 0.05); + box-shadow: inset 0 1px 0 0 rgba(200, 200, 200, 0.1), 0 0 0 1px rgba(200, 200, 200, 0.12); } } diff --git a/polymer-ui-icon-button/polymer-ui-icon-button.html b/polymer-ui-icon-button/polymer-ui-icon-button.html index 0ebbee2..446873c 100644 --- a/polymer-ui-icon-button/polymer-ui-icon-button.html +++ b/polymer-ui-icon-button/polymer-ui-icon-button.html @@ -27,7 +27,7 @@ - + From 9e85a5eab01a2dad995ad84f41d6d032e998bad8 Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Fri, 2 Aug 2013 16:25:41 -0700 Subject: [PATCH 05/20] polymer-ui-menu-button: tweak style --- polymer-ui-menu-button/polymer-ui-menu-button.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer-ui-menu-button/polymer-ui-menu-button.css b/polymer-ui-menu-button/polymer-ui-menu-button.css index d3886ab..29cb79d 100644 --- a/polymer-ui-menu-button/polymer-ui-menu-button.css +++ b/polymer-ui-menu-button/polymer-ui-menu-button.css @@ -8,6 +8,7 @@ } #menuOverlay { + position: absolute; box-sizing: border-box; -moz-box-sizing: border-box; background: white; @@ -38,7 +39,7 @@ #arrow { position: absolute; - bottom: -8px; + bottom: -10px; } .arrow { From 41e7997c9943c5364fbac374664011087e9052b1 Mon Sep 17 00:00:00 2001 From: frankiefu Date: Fri, 2 Aug 2013 16:50:49 -0700 Subject: [PATCH 06/20] simple arrow ui --- polymer-ui-arrow/index.html | 26 +++++++++ polymer-ui-arrow/polymer-ui-arrow.css | 20 +++++++ polymer-ui-arrow/polymer-ui-arrow.html | 79 ++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 polymer-ui-arrow/index.html create mode 100644 polymer-ui-arrow/polymer-ui-arrow.css create mode 100644 polymer-ui-arrow/polymer-ui-arrow.html diff --git a/polymer-ui-arrow/index.html b/polymer-ui-arrow/index.html new file mode 100644 index 0000000..2b03da0 --- /dev/null +++ b/polymer-ui-arrow/index.html @@ -0,0 +1,26 @@ + + + + + + polymer-ui-arrow + + + + + + + + + + + + diff --git a/polymer-ui-arrow/polymer-ui-arrow.css b/polymer-ui-arrow/polymer-ui-arrow.css new file mode 100644 index 0000000..b358bd7 --- /dev/null +++ b/polymer-ui-arrow/polymer-ui-arrow.css @@ -0,0 +1,20 @@ +@host { + * { + display: inline-block; + position: relative; + overflow: hidden; + } + + [hidden] { + display: none; + } +} + +.arrow { + border-color: transparent; + border-style: solid; +} + +.arrow-inner { + position: absolute; +} diff --git a/polymer-ui-arrow/polymer-ui-arrow.html b/polymer-ui-arrow/polymer-ui-arrow.html new file mode 100644 index 0000000..aa7e8bb --- /dev/null +++ b/polymer-ui-arrow/polymer-ui-arrow.html @@ -0,0 +1,79 @@ + + + + + + From f91bfc820c2babd01d1113a07d7a4354025cb750 Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Fri, 2 Aug 2013 21:25:02 -0700 Subject: [PATCH 07/20] fix gruntfile for docs --- gruntfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 16c32c2..75570eb 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -5,6 +5,7 @@ */ module.exports = function(grunt) { grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), yuidoc: { compile: { name: '<%= pkg.name %>', @@ -12,13 +13,13 @@ module.exports = function(grunt) { version: '<%= pkg.version %>', url: '<%= pkg.homepage %>', options: { - exclude: 'third_party', + exclude: 'docs', extension: '.js,.html', paths: '.', outdir: 'docs', linkNatives: 'true', tabtospace: 2, - themedir: 'tools/doc/themes/footstrap' + themedir: 'tools/doc/themes/polymerase' } } }, From 685ef588c469c6a24753c38167cb4af96f5bb4bb Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Sun, 4 Aug 2013 17:51:25 -0700 Subject: [PATCH 08/20] add 'item' as generic published property on ui-menu-item --- .gitignore | 1 + polymer-ui-menu-item/polymer-ui-menu-item.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 268eba2..c342af4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /docs /node_modules +build.bat diff --git a/polymer-ui-menu-item/polymer-ui-menu-item.html b/polymer-ui-menu-item/polymer-ui-menu-item.html index 0d2190d..26f284a 100644 --- a/polymer-ui-menu-item/polymer-ui-menu-item.html +++ b/polymer-ui-menu-item/polymer-ui-menu-item.html @@ -14,7 +14,7 @@ - + - +

+

+
+ +
diff --git a/polymer-ui-ratings/polymer-ui-ratings.css b/polymer-ui-ratings/polymer-ui-ratings.css index bba8420..3725990 100644 --- a/polymer-ui-ratings/polymer-ui-ratings.css +++ b/polymer-ui-ratings/polymer-ui-ratings.css @@ -20,10 +20,18 @@ license that can be found in the LICENSE file. height: 24px; margin: 0 5px; background-size: 100% 100%; - background-image: url('star_blank.png'); + background-image: url('assets/ic_star_rate_darkalt.png'); cursor: pointer; } #star.full { - background-image: url('star_full.png'); + background-image: url('assets/ic_star_rate_darkreg.png'); +} + +#star.polymer-ui-dark-theme { + background-image: url('assets/ic_star_rate_lightalt.png'); +} + +#star.full.polymer-ui-dark-theme { + background-image: url('assets/ic_star_rate_lightreg.png'); } diff --git a/polymer-ui-ratings/polymer-ui-ratings.html b/polymer-ui-ratings/polymer-ui-ratings.html index 39e4ecb..c6d7fba 100644 --- a/polymer-ui-ratings/polymer-ui-ratings.html +++ b/polymer-ui-ratings/polymer-ui-ratings.html @@ -18,18 +18,21 @@ * * * - * By default g-ratings shows 5 stars but can be configured using "count" attribute: + * By default polymer-ui-ratings shows 5 stars but can be configured using + * "count" attribute: * * * * @class polymer-ui-ratings */ --> - + + + From ebea89157af86610d27746be2de40e9f20e914ef Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Thu, 8 Aug 2013 10:13:43 -0700 Subject: [PATCH 19/20] polymer-ui-menu-button: fix z-order? --- polymer-ui-menu-button/polymer-ui-menu-button.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer-ui-menu-button/polymer-ui-menu-button.html b/polymer-ui-menu-button/polymer-ui-menu-button.html index 850cf0d..85035d3 100644 --- a/polymer-ui-menu-button/polymer-ui-menu-button.html +++ b/polymer-ui-menu-button/polymer-ui-menu-button.html @@ -29,8 +29,8 @@ - +