Skip to content

Commit

Permalink
refactor(card):adjust to volto theming
Browse files Browse the repository at this point in the history
  • Loading branch information
g-stamatis committed Feb 3, 2022
1 parent 213eb11 commit 2ab6f91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/customizations/components/theme/Card/Card.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
};

const Template = (args) => (
<Card fluid={args.fluid} className="eea-card">
<Card fluid={args.fluid}>
{args.hasImage && (
<Image
src="https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large"
Expand Down
18 changes: 0 additions & 18 deletions theme/themes/eea/views/card.overrides
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*******************************
Theme Overrides
*******************************/

div.ui.card,
.ui.card.eea-card {
border: @cardBorder;
background: @background;
border-radius: @defaultBorderRadius;
box-shadow: @eeaGlobalShadow;
font-family: @pageFont;
font-size: @fontSize;

.meta {
color: @metaColor;
}

.extra.content a {
color: @extraColor;
}
}
9 changes: 3 additions & 6 deletions theme/themes/eea/views/card.variables
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
@width: 290px;
@borderWidth: 1px;
@borderShadow: 0px 0px 0px @borderWidth @solidBorderColor;
@boxShadow:
@shadowBoxShadow,
@borderShadow
;
@border: none;
@boxShadow: @eeaGlobalShadow;
@border: 1px solid @midGray;
@zIndex: '';
@transition:
box-shadow @defaultDuration @defaultEasing,
Expand Down Expand Up @@ -138,7 +135,7 @@
@extraTransition: color @defaultDuration @defaultEasing;

/* Extra Links */
@extraLinkColor: @unselectedTextColor;
@extraLinkColor: @linkColor;
@extraLinkHoverColor: @linkHoverColor;

/* Buttons */
Expand Down

0 comments on commit 2ab6f91

Please sign in to comment.