Skip to content
Snippets Groups Projects
Commit 2c3b52fe authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Merge branch 'master' into sprint-4-winter-2019

parents ca4132c0 3187b9d2
No related branches found
No related tags found
No related merge requests found
...@@ -298,7 +298,9 @@ class UploadableMediaBlock(OptionalFormFieldBlock): ...@@ -298,7 +298,9 @@ class UploadableMediaBlock(OptionalFormFieldBlock):
def prepare_data(self, value, data, serialize): def prepare_data(self, value, data, serialize):
if serialize: if serialize:
return data.serialize() if data:
return data.serialize()
return None
return data return data
......
.messages { .messages {
position: relative; position: fixed;
right: 50%; top: 0;
left: 50%; left: 0;
width: 100vw; right: 0;
margin-right: -50vw; z-index: 20;
margin-left: -50vw; pointer-events: none;
&__text { &__text {
position: relative; position: relative;
padding: 15px 20px;
color: $color--white;
font-size: 14px;
opacity: 1;
transition: opacity, max-height, $transition;
pointer-events: all;
max-height: 1000px; max-height: 1000px;
padding: 15px;
padding-right: 35px; @include media-query(desktop) {
border: solid 1px; padding: 15px 30px;
}
&--info, &--info,
&--success { &--success {
background: $color--mint; background: $color--dark-blue;
border-color: darken($color--mint, 20%);
} }
&--error, &--error,
&--warning { &--warning {
font-weight: bold; background: darken($color--error, 20%);
color: $color--white; }
background: $color--error;
border-color: darken($color--error, 20%); &--debug {
background: darken($color--pink, 30%);
} }
&--hide { &--hide {
opacity: 0;
pointer-events: none;
max-height: 0; max-height: 0;
padding-top: 0; padding: 0;
padding-bottom: 0;
border: 0 none;
transition: all $transition; // sass-lint:disable-line no-transition-all
transform-origin: top;
} }
} }
&__close { &__inner {
position: absolute; display: flex;
top: 15px; align-items: center;
right: 15px; max-width: $site-width;
margin: 0 auto;
}
&__copy {
padding-right: 20px;
margin: 0;
flex: 1;
}
&__button {
margin-left: auto;
color: $color--dark-blue;
background-color: $color--white;
display: inline-block;
font-weight: $weight--bold;
padding: 2px 20px;
}
&__icon {
width: 25px;
height: 25px;
fill: $color--white;
margin-right: 10px;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment