Skip to content

Commit df619a6

Browse files
committed
styled filter
1 parent 9382bfe commit df619a6

File tree

3 files changed

+52
-5
lines changed

3 files changed

+52
-5
lines changed

src/app/features/nfts/screens/discover/components/nfts-filter/nfts-filter.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
</ion-content>
1616
<ion-footer>
17-
<ion-button color="light" expand="block" *ngIf="selectedCategories.length >= 1" (click)="clearSelectedCategories()">Clear Filters</ion-button>
18-
<ion-button color="primary" expand="block" (click)="applyFilters()">Apply Filters</ion-button>
17+
<ion-button class="clearFilters" expand="block" *ngIf="selectedCategories.length >= 1" (click)="clearSelectedCategories()">Clear Filters</ion-button>
18+
<ion-button class="applyFilters" expand="block" (click)="applyFilters()">Apply Filters</ion-button>
1919

2020
</ion-footer>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,47 @@
1-
::ng-deep{
2-
.modal-default
1+
:host
2+
{
3+
ion-header
34
{
5+
background:transparent;
6+
ion-title
7+
{
8+
font-size:35px;
9+
color:#fff;
10+
}
11+
}
12+
ion-list{
13+
background: none;
14+
ion-chip
15+
{
16+
ont-size: 14px;
17+
padding: 20px;
18+
height: 40px;
19+
border-radius: 40px;
20+
border: 3px solid #b57bfe;
21+
font-weight: bold;
422

5-
623
}
724
}
25+
ion-button
26+
{
27+
&.clearFilters{
28+
height:55px;
29+
--background: transparent;
30+
color:#fff;
31+
}
32+
&.applyFilters
33+
{
34+
height:55px;
35+
color:#fff !important;
36+
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#b57bfe+0,7b64e8+100 */
37+
--background: #b57bfe; /* Old browsers */
38+
--background: -moz-linear-gradient(top, #b57bfe 0%, #7b64e8 100%); /* FF3.6-15 */
39+
--background: -webkit-linear-gradient(top, #b57bfe 0%,#7b64e8 100%); /* Chrome10-25,Safari5.1-6 */
40+
--background: linear-gradient(to bottom, #b57bfe 0%,#7b64e8 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
41+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b57bfe', endColorstr='#7b64e8',GradientType=0 ); /* IE6-9 */
42+
}
43+
}
44+
45+
}
46+
47+

src/theme/variables.scss

+7
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,11 @@
109109
--ion-toolbar-border-color: var(--ion-color-step-250);
110110
}
111111

112+
ion-modal
113+
{
114+
backdrop-filter: blur(10px);
115+
--background:transparent;
116+
--ion-background-color: transparent;
117+
}
118+
112119
}

0 commit comments

Comments
 (0)