Skip to content

Commit

Permalink
Update card color variant styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Oct 17, 2023
1 parent 3883537 commit 52814e9
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/webpack-assets.json

This file was deleted.

70 changes: 70 additions & 0 deletions src/scss/components/card/_card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@charset "UTF-8";

// Card color variants
.irsr-cards-color--red,
.irsr-cards-color--grey {
.su-card {
.su-link {
color: $su-color-white;

&::after {
background-color: $su-color-white;
}
}

.su-card__contents {
color: $su-color-white;

a {
color: $su-color-white !important;
}
}

// Event card
.su-event-start-month,
.su-event-start-date,
.su-event-list-item__date__seperator,
.su-event-end-month,
.su-event-end-date {
color: $su-color-white;
}

.su-event-list-item__details {
color: $su-color-white;

.event-list-item__type a {
color: $su-color-white;
}

h2 a {
color: $su-color-white;
}

.date-icon::before,
.map-icon::before {
color: $su-color-white;
}

}


}
}

.irsr-cards-color--red {
.su-card {
background-color: $su-color-digital-red;
}
}

.irsr-cards-color--grey {
.su-card {
background-color: $su-color-black;
}

.su-list-button {
.su-button {
background-color: $su-color-black;
}
}
}
3 changes: 3 additions & 0 deletions src/scss/components/card/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@charset "UTF-8";

@import 'card';
1 change: 1 addition & 0 deletions src/scss/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
// @import 'component-name/index';

@import 'banner/index.scss';
@import 'card/index.scss';

0 comments on commit 52814e9

Please sign in to comment.