-
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.
Clear button element instead of iron-icon with class (#117)
* Added clear button element * Use clear button instead of iron-icon Currently needed to display the clear button in the filters-dialog (PR #90) without having to include the styles into the template.
- Loading branch information
Showing
7 changed files
with
60 additions
and
38 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
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
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,42 @@ | ||
<link rel="import" href="../../iron-icon/iron-icon.html"> | ||
<link rel="import" href="../../iron-icons/iron-icons.html"> | ||
|
||
<dom-module id="cosmoz-clear-button"> | ||
<template> | ||
<style is="custom-style"> | ||
:host { | ||
position: absolute; | ||
right: 0; | ||
z-index: +1; | ||
} | ||
|
||
iron-icon { | ||
top: 10px; | ||
margin: 2px 7px; | ||
color: #cdcdcd; | ||
background-color: #a6a6a6; | ||
border-radius: 500px; | ||
cursor: pointer; | ||
min-width: 16px; | ||
width: 16px !important; | ||
min-height: 16px; | ||
height: 16px; | ||
padding: 2px; | ||
box-sizing: border-box; | ||
transition: background-color 0.25s, color 0.25s; | ||
float: right; | ||
} | ||
|
||
iron-icon:hover { | ||
background-color: #b0b0b0; | ||
color: #dfdfdf; | ||
} | ||
</style> | ||
<iron-icon icon="clear"></iron-icon> | ||
</template> | ||
<script type="text/javascript"> | ||
Polymer({ | ||
is: 'cosmoz-clear-button' | ||
}); | ||
</script> | ||
</dom-module> |