open-vault/ui/app/styles/core/message.scss
Matthew Irish 311cc49c61
UI - Vault API explorer engine (#7044)
* open-api-explorer engine with embedded swagger-ui

* move swagger config to a component, rely directly on swagger-ui

* filter operations by endpoint, hook up filter to query param, add namespace handling

* fix namespace handling

* update ember-engines so that we can app.import in a lazy engine

* use engine's included hook to move swagger-ui to engine-vendor.* files

* show flash message about this being a live vault server

* show a namespace reminder and override some styles from swagger-ui

* switch filter to use includes instead of startsWith

* move flash-message to alert-banner and fix namespace reminder with a block

* adds explore web-cli command to navigate to the api-explorer engine

* allow passing a preformatted string to flash messages

* add multi-line flash-message to api explorer

* invert control and trigger events on react app so we can control the layout more and use our components

* tweak styling some more and adjust message on the flash

* change web cli command from 'explore' to 'api'

* shorten namespace warning

* fix console

* fix comments
2019-07-02 17:41:23 -05:00

123 lines
1.8 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;
}
.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;
}
}
.has-text-highlight {
color: $yellow-500;
}