Skip to content

Commit

Permalink
pfe-107 Changed styling on cards when default, hover and active
Browse files Browse the repository at this point in the history
  • Loading branch information
PriJoh committed Nov 22, 2024
1 parent 935caf2 commit 4ddf817
Showing 1 changed file with 16 additions and 32 deletions.
48 changes: 16 additions & 32 deletions src/less/components/payex/card.less
Original file line number Diff line number Diff line change
@@ -1,42 +1,26 @@
@import "../card.less";

.cards {
--cards-light-gray: var(--brand-bg-gray);
--cards-dark-gray: var(--brand-secondary);
background-color: var(--white) !important;
border: 1px solid var(--gray) !important;
color: var(--brand-secondary) !important;

&.cards-primary {
.cards-icon {
color: @white;
}
&:hover {
background-color: var(--light-gray) !important;
}

&.cards-secondary {
&:after {
border-bottom: 4px solid @payex-light-blue;
}

> i {
color: @payex-light-blue;
}

.cards-icon {
color: @white;
background-color: @payex-light-blue;
}
&:active,
&:focus {
outline: 3px solid var(--brand-secondary) !important;
outline-offset: -2px;
box-shadow: none !important;
}

&.cards-tertiary {
&:after {
border-bottom: 4px solid @payex-dark-blue;
}

> i {
color: @payex-dark-blue;
}

.cards-icon {
color: @white;
background-color: @payex-dark-blue;
}
.cards-cta:hover .arrow:before {
background-color: var(--brand-secondary) !important;
}
}

.component-preview-content a.cards:hover .cards-cta span {
color: var(--brand-secondary);
}

0 comments on commit 4ddf817

Please sign in to comment.