Skip to content

Commit

Permalink
Added hover effect
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed May 11, 2021
1 parent ebf633a commit a3f2943
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions website/macos-big-sur-icons/src/components/NativeAd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ export default {
if (attempts >= 4) return;
if (adExists == 0) {
try {
getAd()
console.log("attempts: ", attempts);
attempts++
getAd()
adExist()
} catch (error) {
getAd()
Expand Down
6 changes: 6 additions & 0 deletions website/macos-big-sur-icons/src/components/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,12 @@ option[value=""][disabled] {
max-width: 150px;
width: 100%;
margin: auto;
transition: 0.2s;
}

.card-hover:hover .card-img-wrapper img{
transform: translate3d(0px, -3px, 0px);
// transform: translate3d(0px, 4px, 0px);
}

.absolute-center-vertical{
Expand Down
5 changes: 3 additions & 2 deletions website/macos-big-sur-icons/src/components/carbon.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,12 @@
}

.icon-list-area #carbonads:hover img {
transform: translateY(-3px);
transform: translateY(-5px);
}

.icon-list-area #carbonads > span {
height: calc(100% - 20px) !important;
height: fit-content;
/* height: calc(100% - 20px) !important; */
padding: 7px 7px 5px 7px;
grid-template-rows: auto 19px;
gap: 5px;
Expand Down

1 comment on commit a3f2943

@vercel
Copy link

@vercel vercel bot commented on a3f2943 May 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.