-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pfe-107 Changed styling on cards when default, hover and active
- Loading branch information
Showing
1 changed file
with
16 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |