Skip to content

Commit

Permalink
fix: styles in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
flobarreto committed Aug 1, 2023
1 parent 78a7492 commit 965208e
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions src/components/AssetCard/AssetCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
height: 209px;
}

.AssetCard .extraInformation {
display: flex;
visibility: hidden;
height: 0px;
opacity: 0;
transition: height 0.1s, opacity 0.6s;
}

.AssetCard .badge {
display: inline-flex;
Expand Down Expand Up @@ -135,6 +128,16 @@

/* Responsive styles */

@media(min-width: 119px) {
.AssetCard .extraInformation {
display: flex;
visibility: hidden;
height: 0px;
opacity: 0;
transition: height 0.1s, opacity 0.6s;
}
}

@media (min-width: 768px) and (max-width: 992px) {
.AssetCard .header .title {
margin-right: 0;
Expand All @@ -146,6 +149,16 @@
overflow: hidden;
display: block;
}

.AssetCard .extraInformation {
margin-top: 6px;
visibility: visible;
height: unset;
font-size: 12px;
font-weight: normal;
opacity: 1;
}

}

@media (max-width: 768px) {
Expand Down Expand Up @@ -178,6 +191,7 @@
height: unset;
font-size: 12px;
font-weight: normal;
opacity: 1;
}

.AssetCard.ui.card>.content,
Expand Down

0 comments on commit 965208e

Please sign in to comment.