Skip to content

Commit

Permalink
closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Apr 29, 2024
1 parent 1b7e57a commit 2eb20b5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 57 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

:host {
--size-grid-small: 100px;
--size-grid-large: 135px;
Expand All @@ -14,6 +13,9 @@

--card-width: var(--size-normal-small);
--card-height: var(--size-normal-large);

display: inline-block;
width: var(--card-width);
}

.card-image-container {
Expand All @@ -22,7 +24,6 @@
justify-content: center;

.card-image {

width: var(--card-width);
height: var(--card-height);

Expand Down Expand Up @@ -62,45 +63,3 @@
}
}
}

.card-text-container {

.card-info {

&.color-B {
--color-bar-color-start: #0099d9;
--color-bar-color-end: #00587c;
}

&.color-R {
--color-bar-color-start: #e63028;
--color-bar-color-end: #6a111b;
}

&.color-G {
--color-bar-color-start: #3db554;
--color-bar-color-end: #21613d;
}

&.color-Y {
--color-bar-color-start: #faed00;
--color-bar-color-end: #7d700c;
}

.ability, .flavortext {
font-size: 0.75em;
}

.color-bar {
z-index: 0;
min-height: 22px;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
right: 0;

background: linear-gradient(to right, var(--color-bar-color-start), var(--color-bar-color-end));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ <h2>No results found</h2>
<ion-grid class="cards">
<ion-row>
@for(card of searchService.visibleCards(); track card.id) {
<ion-col class="card-container" [sizeMd]="3" [sizeSm]="6" [sizeXs]="12">
<a [routerLink]="['/card', card.id]">
<app-card-display class="card" [cardCode]="card.id"
[display]="searchService.queryDisplayValue"></app-card-display>
</a>
<ion-col [sizeMd]="3" [sizeSm]="6" [sizeXs]="12">
<div class="card-container">
<a [routerLink]="['/card', card.id]">
<app-card-display class="card" [cardCode]="card.id"
[display]="searchService.queryDisplayValue"></app-card-display>
</a>
</div>
</ion-col>
}
</ion-row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
margin-top: 1em;
margin-bottom: 1em;

display: flex;
justify-content: center;

.card {
cursor: pointer;
}
Expand Down Expand Up @@ -84,15 +87,7 @@ a {
text-decoration: none;
}

.table-container {
margin-top: 2em;
}

.cell {
padding-left: 10px;
border-left: 6px solid var(--cell-border, transparent);
}

.ability:not(:last-child) {
margin-bottom: 1em;
}

0 comments on commit 2eb20b5

Please sign in to comment.