Skip to content

Commit

Permalink
Fix widgets for subscriptions in creator landing (#593)
Browse files Browse the repository at this point in the history
* fix hover on widgets

* add new breakpoint to reward slider in creator landing

* fix content of articles in reward slider
  • Loading branch information
davidbeig authored Dec 20, 2023
1 parent 18f73be commit 9f7a9f7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
7 changes: 7 additions & 0 deletions public/assets/js/creator/creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ $(function(){
settings: {
slidesToShow: 1.5,
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
}
}

]
});

Expand Down
24 changes: 17 additions & 7 deletions public/assets/sass/creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,25 @@ body.creator {
border: 1px solid $color-light-grey;
border-radius: 1rem;
width: 300px;
padding: 2rem;
font-size: 1.5rem;
transition: all 0.5s ease-in-out;

&:hover > .card-body {
height: fit-content;
min-height: 20rem;
}

&:only-child {
grid-column-start: 1;
}

[class^="card-"] {
width: inherit;
}

.card-header {
padding: 1rem;

h2 {
overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -70,7 +80,8 @@ body.creator {
height: 20rem;
overflow: hidden;
text-overflow: ellipsis;
padding-bottom: 1rem;
padding: 1rem;
text-wrap: balance;

.amount-box {
color: $color-dark-green;
Expand All @@ -82,10 +93,10 @@ body.creator {
width: 100%;
}

&:hover {
height: fit-content;
min-height: 20rem;
}
}

.card-footer {
margin: 1em;
}

&:hover {
Expand All @@ -96,7 +107,6 @@ body.creator {
section.channel {
article.channel {
margin-top: unset;

}
}

Expand Down

0 comments on commit 9f7a9f7

Please sign in to comment.