7012aab272
* initial setup * add delay and modify message * test * changing to different style because unable to interrupt the yield of authentication * cleanup * more consitency in messssage placement * fix test * clean up test notification * clean up * remove click * changelog * Update 11442.txt * revert changes so a message is delayed by not calling yield * amend test * remove padding-bottom as no longer needed with reposition of message location
135 lines
2 KiB
SCSS
135 lines
2 KiB
SCSS
.message {
|
|
background: $blue-010;
|
|
border: 1px solid $blue-100;
|
|
margin-bottom: $spacing-s;
|
|
padding: $spacing-s $spacing-m $spacing-m $spacing-s;
|
|
position: relative;
|
|
|
|
.message-icon {
|
|
color: $blue;
|
|
margin-right: $spacing-xs;
|
|
}
|
|
|
|
.close-button {
|
|
background: transparent;
|
|
border: 0;
|
|
color: $grey;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
right: $spacing-s;
|
|
top: $spacing-m;
|
|
}
|
|
|
|
.message-title {
|
|
color: $blue-500;
|
|
font-size: 16px;
|
|
font-weight: $font-weight-bold;
|
|
line-height: 1.25;
|
|
|
|
.progress {
|
|
margin-left: $spacing-xs;
|
|
}
|
|
}
|
|
|
|
.close-button + .message-title {
|
|
padding-right: $spacing-m;
|
|
}
|
|
|
|
.message-body {
|
|
border: 0;
|
|
margin-top: $spacing-xxs;
|
|
}
|
|
.message-body.pre {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
p {
|
|
font-size: $size-8;
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.message-actions {
|
|
margin-top: $spacing-xs;
|
|
|
|
a,
|
|
a:not(.button):not(.file-delete-button):not(.tag) {
|
|
color: $blue;
|
|
font-weight: $font-weight-semibold;
|
|
text-decoration: none;
|
|
}
|
|
|
|
> * + * {
|
|
margin-left: $spacing-xs;
|
|
}
|
|
}
|
|
|
|
&.is-highlight {
|
|
background: $yellow-010;
|
|
border: 1px solid $yellow-100;
|
|
|
|
.message-icon {
|
|
color: $yellow-500;
|
|
}
|
|
|
|
.message-title {
|
|
color: $orange-700;
|
|
}
|
|
}
|
|
|
|
&.is-success {
|
|
background: $green-010;
|
|
border: 1px solid $green-100;
|
|
|
|
.message-icon {
|
|
color: $green-500;
|
|
}
|
|
|
|
.message-title {
|
|
color: $green-700;
|
|
}
|
|
}
|
|
|
|
&.is-danger {
|
|
background: $red-010;
|
|
border: 1px solid $red-050;
|
|
|
|
.message-icon {
|
|
color: $red-500;
|
|
}
|
|
|
|
.message-title {
|
|
color: $red-700;
|
|
}
|
|
}
|
|
}
|
|
|
|
.message-inline {
|
|
display: flex;
|
|
margin: 0 0 $spacing-l;
|
|
|
|
.hs-icon {
|
|
margin: 0 $spacing-xxs 0 0;
|
|
}
|
|
|
|
.p {
|
|
margin: 0;
|
|
}
|
|
|
|
&.has-top {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
&.size-small {
|
|
font-size: $size-7;
|
|
}
|
|
|
|
&.padding-top {
|
|
padding-top: $size-8;
|
|
}
|
|
}
|
|
|
|
.has-text-highlight {
|
|
color: $yellow-500;
|
|
}
|