Skip to content

Commit

Permalink
Merge branch 'alert_block_colors' into slate
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Jan 9, 2024
2 parents e9addee + 77bf2d1 commit 339a9f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
19 changes: 12 additions & 7 deletions src/theme/ItaliaTheme/Blocks/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
background-color: $alert-info;
}
}

.ui.button.warning {
&,
&.active {
background-color: $alert-warning;
}
}

.ui.button.danger {
&,
&.active {
Expand Down Expand Up @@ -40,51 +42,54 @@

.bg-alert-danger {
background-color: $alert-danger;
color: $white;
color: $alert-danger-text;

h1,
h2,
h3,
h4,
h5,
h6 {
color: $white;
color: $alert-danger-text;
}

a {
color: $white;
color: $alert-danger-text;
}
}

.bg-alert-warning {
background-color: $alert-warning;

h1,
h2,
h3,
h4,
h5,
h6 {
color: $black;
color: $alert-warning-text;
}

a {
color: $body-color;
color: $alert-warning-text;
}
}

.bg-alert-info {
background-color: $alert-info;
color: $alert-info-text;

h1,
h2,
h3,
h4,
h5,
h6 {
color: $body-color;
color: $alert-info-text;
}

a {
color: $body-color;
color: $alert-info-text;
}
}

Expand Down
9 changes: 6 additions & 3 deletions src/theme/_site-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ $caption-text: #455b71 !default;
$primary-a0: hsl($primary-h, 62%, 97%) !default;

// ALERT-BLOCK CUSTOM COLORS
$alert-danger: #a32219;
$alert-warning: #eb973f;
$alert-info: #f0c250;
$alert-danger: #a32219 !default;
$alert-danger-text: $white !default;
$alert-warning: #eb973f !default;
$alert-warning-text: $body-color !default;
$alert-info: #f0c250 !default;
$alert-info-text: $body-color !default;

$argument-icon-color: $tertiary !default;
$argument-icon-bg: #f5f6f7 !default;
Expand Down

0 comments on commit 339a9f4

Please sign in to comment.