removed uneeded bg file and cleaned up card layout for breakpoints sm, md, lg, xl
This commit is contained in:
@@ -1,61 +1,130 @@
|
||||
@import '_bootstrap';
|
||||
@import "_bootstrap";
|
||||
|
||||
// ----------------------
|
||||
// Container
|
||||
// ----------------------
|
||||
.container {
|
||||
max-width: 100vw;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
max-width: 95vw;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------
|
||||
// Typography
|
||||
// ----------------------
|
||||
.copy-small {
|
||||
font-size: 0.75rem;
|
||||
opacity: .87;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.copy-small {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.87;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@media (min-width: 1400px) {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------
|
||||
// Card
|
||||
// ----------------------
|
||||
.card-image {
|
||||
aspect-ratio: 23/32;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.sticky {
|
||||
background-color: hsl(195, 4%, 22%);
|
||||
position: sticky;
|
||||
z-index: 1000;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.rotate-90 {
|
||||
transform: rotate(90deg);
|
||||
aspect-ratio: 23/32;
|
||||
object-fit: cover;
|
||||
z-index: 998;
|
||||
}
|
||||
|
||||
.rarity-icon svg {
|
||||
height: .8rem;
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-height: 16px;
|
||||
margin-top: -0.25rem;
|
||||
}
|
||||
|
||||
// ----------------------
|
||||
// Pricing
|
||||
// ----------------------
|
||||
.price-row {
|
||||
position: relative;
|
||||
z-index: 999;
|
||||
margin-top: -1.25rem;
|
||||
border-radius: 0.33rem;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(156, 204, 102, 1) 21%,
|
||||
rgba(211, 225, 86, 1) 42%,
|
||||
rgba(255, 238, 87, 1) 63%,
|
||||
rgba(255, 201, 41, 1) 74%,
|
||||
rgba(255, 167, 36, 1) 85%
|
||||
);
|
||||
}
|
||||
|
||||
// Base label style
|
||||
.price-label {
|
||||
color: hsl(122, 39%, 49%);
|
||||
font-size: 0.65rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
background-color: hsl(88, 50%, 60%);
|
||||
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 10px;
|
||||
border-top-left-radius: 0.33rem;
|
||||
border-bottom-left-radius: 0.33rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
@media (min-width: 996px) {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
@media (min-width: 1600px) {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.price-label {
|
||||
font-size: 0.825rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
// Your palette tiers
|
||||
.price-label:nth-of-type(n + 2) {
|
||||
background-color: hsl(66, 70%, 61%);
|
||||
}
|
||||
|
||||
.price-label:nth-of-type(n+2) {
|
||||
color: hsl(66, 70%, 54%);
|
||||
.price-label:nth-of-type(n + 3) {
|
||||
background-color: hsl(54, 100%, 67%);
|
||||
}
|
||||
|
||||
.price-label:nth-of-type(n+3) {
|
||||
color: hsl(54, 100%, 62%);
|
||||
}
|
||||
|
||||
.price-label:nth-of-type(n+4) {
|
||||
color: hsl(45, 100%, 51%);
|
||||
.price-label:nth-of-type(n + 4) {
|
||||
background-color: hsl(45, 100%, 58%);
|
||||
}
|
||||
|
||||
.price-label:last-of-type {
|
||||
color: hsl(36, 100%, 50%);
|
||||
background-color: hsl(36, 100%, 57%);
|
||||
border-radius: 0.33rem;
|
||||
}
|
||||
|
||||
|
||||
// ----------------------
|
||||
// Search Elements
|
||||
// ----------------------
|
||||
@media (max-width: 768px) {
|
||||
.search-box,
|
||||
.search-button {
|
||||
min-height: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------
|
||||
// Sticky Bar
|
||||
// ----------------------
|
||||
.sticky {
|
||||
background-color: hsl(195, 4%, 22%);
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user