open-vault/ui/app/styles/core/message.scss
2018-11-02 11:21:15 -06:00

114 lines
1.7 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;
}
.close-button + .message-title {
padding-right: $spacing-m;
}
.message-body {
border: 0;
margin-top: $spacing-xxs;
}
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: -$spacing-xs 0 $spacing-l;
.icon {
flex: 0;
margin: 0 $spacing-xxs 0 0;
min-width: fit-content;
}
.p {
margin: 0;
}
}