Skip to content

Commit

Permalink
enhancement(Cards) refinement on styling declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
gselderslaghs committed Dec 15, 2024
1 parent 9d3cd93 commit 9f45985
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions sass/components/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
.card-title {
font-size: 24px;
font-weight: 300;
&.activator {
cursor: pointer;
}
}

// Card Sizes
Expand All @@ -32,13 +29,16 @@
max-height: 60%;
overflow: hidden;
}

.card-image + .card-content {
max-height: 40%;
}

.card-content {
max-height: 100%;
overflow: hidden;
}

.card-action {
position: absolute;
bottom: 0;
Expand Down Expand Up @@ -77,6 +77,7 @@

.card-image {
max-width: 50%;

img {
border-radius: 2px 0 0 2px;
max-width: 100%;
Expand Down Expand Up @@ -108,9 +109,6 @@
}
}




.card-image {
position: relative;

Expand All @@ -134,6 +132,15 @@
max-width: 100%;
padding: 24px;
}

.activator {
position: absolute;
left: 0;
right: 0;
top:0;
bottom: 0;
cursor: pointer;
}
}

.card-content {
Expand All @@ -143,6 +150,7 @@
p {
margin: 0;
}

.card-title {
display: block;
line-height: 32px;
Expand All @@ -151,6 +159,10 @@
i {
line-height: 32px;
}

&.activator {
cursor: pointer;
}
}
}

Expand Down

0 comments on commit 9f45985

Please sign in to comment.