open-vault/ui/app/styles/core/message.scss

123 lines
1.8 KiB
SCSS
Raw Normal View History

2018-04-03 14:16:57 +00:00
.message {
2018-11-02 05:27:39 +00:00
background: $blue-010;
border: 1px solid $blue-100;
2018-10-31 22:08:25 +00:00
margin-bottom: $spacing-s;
2018-11-02 05:27:39 +00:00
padding: $spacing-s $spacing-m $spacing-m $spacing-s;
2018-10-31 22:08:25 +00:00
position: relative;
.message-icon {
2018-11-02 05:27:39 +00:00
color: $blue;
2018-10-31 22:08:25 +00:00
margin-right: $spacing-xs;
2018-04-03 14:16:57 +00:00
}
2018-11-02 05:27:39 +00:00
.close-button {
background: transparent;
border: 0;
color: $grey;
cursor: pointer;
position: absolute;
right: $spacing-s;
top: $spacing-m;
}
2018-10-31 22:08:25 +00:00
.message-title {
2018-11-02 05:27:39 +00:00
color: $blue-500;
2018-10-31 22:08:25 +00:00
font-size: 16px;
font-weight: $font-weight-bold;
2018-11-02 05:27:39 +00:00
line-height: 1.25;
}
.close-button + .message-title {
padding-right: $spacing-m;
2018-10-31 22:08:25 +00:00
}
.message-body {
border: 0;
margin-top: $spacing-xxs;
}
.message-body.pre {
white-space: pre-wrap;
}
2018-10-31 22:08:25 +00:00
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;
2018-04-03 14:16:57 +00:00
}
2018-10-31 22:08:25 +00:00
> * + * {
margin-left: $spacing-xs;
2018-04-03 14:16:57 +00:00
}
2018-10-31 22:08:25 +00:00
}
&.is-highlight {
background: $yellow-010;
border: 1px solid $yellow-100;
.message-icon {
color: $yellow-500;
2018-04-03 14:16:57 +00:00
}
2018-10-31 22:08:25 +00:00
.message-title {
color: $orange-700;
2018-04-03 14:16:57 +00:00
}
}
2018-11-02 05:27:39 +00:00
&.is-success {
background: $green-010;
border: 1px solid $green-100;
.message-icon {
color: $green-500;
}
.message-title {
color: $green-700;
}
}
2018-10-31 22:08:25 +00:00
&.is-danger {
background: $red-010;
border: 1px solid $red-050;
.message-icon {
color: $red-500;
}
.message-title {
color: $red-700;
}
2018-04-03 14:16:57 +00:00
}
}
2018-11-02 16:02:45 +00:00
.message-inline {
display: flex;
UI - jwt auth (#6188) * fix default rendering of svg and allow plugins access to mount tune form * add auth-jwt component * add callback route, and allow it to be navigated to on load * add jwt as a supported auth method * use auth-jwt component and implement intial oidc flow * allow wrapping un-authed requests * pass redirect_url and properly redirect with the wrapped token * popup for login * center popup window and move to localStorage events for cross window communication because of IE11 * access window via a getter on the auth-form component * show OIDC provider name on the button * fetch default role on render of the auth-jwt component * simplify auth-form template * style callback page * refetch auth_url when path changes for auth-jwt component * fix glimmer error on alias metadata, and add back popup-metadata component * fix link in metadata page * add logo-edition component and remove use of partial for logo svg * render oidc callback template on the loading page if we're going there * add docs icon and change timeout on the auth form * move OIDC auth specific things to auth-jwt component * start to add branded buttons for OIDC providers * add google button * finish branded buttons * update glyph for error messages * update tests for auth screen not showing tabs, add adapter tests and new auth jwt tests * start auth-jwt tests * simplify auth-jwt * remove negative top margin on AlertInline * only preventDefault if there's an event * fill out tests * sort out some naming * feedback on templates and styles * clear error when starting OIDC auth and call for new auth_url * also allow 'oidc' as the auth method type * handle namespaces with OIDC auth * review feedback * use new getters in popup-metadata
2019-02-14 15:39:19 +00:00
margin: 0 0 $spacing-l;
2018-11-02 16:02:45 +00:00
.hs-icon {
2018-11-02 16:02:45 +00:00
margin: 0 $spacing-xxs 0 0;
}
.p {
margin: 0;
}
&.has-top {
margin-top: 1rem;
}
}
.has-text-highlight {
color: $yellow-500;
2018-11-02 16:02:45 +00:00
}