Skip to content

Commit

Permalink
Fix #971 - Add border-radius and box shadow to error message (#980)
Browse files Browse the repository at this point in the history
* Fix #971 - Add border-radius and drop shadow to error message

* Clean up .messages code
  • Loading branch information
codemist authored Aug 4, 2021
1 parent 54ce4cc commit 87b50b8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions privaterelay/templates/includes/messages.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if messages %}
{% for message in messages %}
<div class="messages home-messages">
<div{% if message.tags %} class="{{ message.tags }}" {% else %} class="" {% endif %}>
<div class="messages">
<div{% if message.tags %} class="message-wrapper {{ message.tags }}" {% else %} class="" {% endif %}>
<div class="js-notification">
<span>{{ message }}</span>
<button class="flx center-value dismiss js-dismiss">
Expand Down
46 changes: 23 additions & 23 deletions static/scss/partials/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2288,20 +2288,31 @@ input:focus::placeholder {
width: 100%;
padding: $spacing-lg $spacing-md 0 $spacing-md;
margin: 0 auto;
}

.messages > div {
background-color: $color-grey-50
}
span {
color: $color-white;
text-align: center;
width: 100%;
font-weight: 600;
}

.messages .success {
background-color: $color-success;
border-radius: $border-radius-md;
box-shadow: var(--dropShadowLight);
}
path {
fill: $color-white;
}

.message-wrapper {
border-radius: $border-radius-md;
box-shadow: var(--dropShadowLight);
}

.success {
background-color: $color-success;
}

.error {
background-color: $color-error;
}

.messages .error {
background-color: $color-error;
}

ul.messages {
Expand Down Expand Up @@ -2339,15 +2350,4 @@ ul.messages {
fill: $color-white !important;
}

}

.home-messages span {
color: $color-white;
text-align: center;
width: 100%;
font-weight: 600;
}

.home-messages path {
fill: $color-white;
}
}

0 comments on commit 87b50b8

Please sign in to comment.