Skip to content

Commit

Permalink
style: add clear icon to channels search field
Browse files Browse the repository at this point in the history
this commit closes #75
  • Loading branch information
4gray committed Sep 5, 2021
1 parent 61142ba commit 3dd2789
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<mat-list-item>
<input
class="full-width search-bar"
type="search"
#search
placeholder="{{ 'CHANNELS.SEARCH_CHANNEL' | translate }} ({{
_channelList?.length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,14 @@
font-size: 0.9em;
width: 290px;
}

[type='search']::-webkit-search-cancel-button {
-webkit-appearance: none;
cursor: pointer;
appearance: none;
height: 10px;
width: 10px;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCA5NiA5NiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOTYgOTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBvbHlnb24gZmlsbD0iI2VlZSIgcG9pbnRzPSI5NiwxNCA4MiwwIDQ4LDM0IDE0LDAgMCwxNCAzNCw0OCAwLDgyIDE0LDk2IDQ4LDYyIDgyLDk2IDk2LDgyIDYyLDQ4ICIvPg0KPC9zdmc+DQo=);
background-size: 10px 10px;
color: #fff;
}

0 comments on commit 3dd2789

Please sign in to comment.