Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2148 from ec-europa/ISAICP-5943
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea authored Jun 10, 2020
2 parents 7bfcfc7 + cf3b029 commit f15ee20
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"drupal/search_api_solr": "2.2",
"drupal/simple_sitemap": "~3.6",
"drupal/simplenews": "^1.0-beta1",
"drupal/site_alert": "dev-1.x",
"drupal/site_alert": "~1.1",
"drupal/smart_trim": "~1.2",
"drupal/social_media_links": "^2.6",
"drupal/spdx": "^1.0.0-alpha5",
Expand Down
31 changes: 16 additions & 15 deletions composer.lock

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

39 changes: 39 additions & 0 deletions web/themes/joinup/prototype/scss/components/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,42 @@
}
}
}

// Moderator site alerts
// --------------------------------------------------
.site-alert {
& > div {
@extend .alert;

&:before {
@extend .icon;
content: "";
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: #fff;
@include icon-size(30px);
}

&.severity-high {
background-color: $color-error;
}
&.severity-medium {
background-color: $color-warning;
}
&.severity-low {
background-color: $color-info;
}

.text {
color: #fff;
a {
color: #fff;
}
p:last-child {
margin-bottom: 0;
}
}
}
}

0 comments on commit f15ee20

Please sign in to comment.