From 33431ae1b345b9f2c9a2a5f23afd3d938215cee3 Mon Sep 17 00:00:00 2001 From: Brent Hosie Date: Thu, 16 Jul 2015 22:07:12 -0600 Subject: [PATCH 1/4] polymer 1 brought in. changed out core-icons for iron-icons. most attributes set up. css broken out in to its own stylesheet. --- bower.json | 8 +++- clearable-input.css | 16 +++++++ clearable-input.html | 108 +++++++++++++++++++++++++++---------------- demo.html | 2 +- 4 files changed, 91 insertions(+), 43 deletions(-) create mode 100644 clearable-input.css diff --git a/bower.json b/bower.json index 5a56fad..a6e1f21 100644 --- a/bower.json +++ b/bower.json @@ -17,7 +17,11 @@ "tests" ], "dependencies": { - "polymer": "Polymer/polymer#^0.5", - "core-icons": "Polymer/core-icons#0.5" + "polymer": "Polymer/polymer#^1.0.0", + "iron-icons": "PolymerElements/iron-icons#~1.0.3" + }, + "resolutions": { + "polymer": "^1.0.0", + "webcomponentsjs": "^0.7.2" } } diff --git a/clearable-input.css b/clearable-input.css new file mode 100644 index 0000000..73e3248 --- /dev/null +++ b/clearable-input.css @@ -0,0 +1,16 @@ +span.wrapper { + position: relative; +} +#iconWrapper { + position: absolute; + display: block; + right: 5px; + top: 0px; + cursor: pointer; + width: 12px; + height: 12px; +} +#iconWrapper core-icon { + width: 12px; + height: 12px; +} \ No newline at end of file diff --git a/clearable-input.html b/clearable-input.html index 3fa1689..7a42e24 100644 --- a/clearable-input.html +++ b/clearable-input.html @@ -9,32 +9,15 @@ --> - - - -