blob: 2f6c826f4d1d7d4a052973ccc98f45594396e921 [file] [log] [blame]
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
.confirm-wrapper {
position: relative;
overflow: hidden;
border-radius: $radius;
box-shadow: $box-shadow, $box-shadow-middle;
}
.confirm {
transition: transform $speed;
padding-top: 2px;
}
.show-confirm {
transform: translateX(-100%);
transition: transform $speed;
}
.confirm.show-confirm {
visibility: hidden;
}
.confirm-overlay {
position: absolute;
background-color: white;
top: 0;
left: 100%;
width: 100%;
}
.confirm,
.confirm-overlay {
button.link,
a {
background-color: $white;
color: $grey-darkest;
&:hover {
background-color: $ui-gray-050;
color: $ui-gray-900;
}
&.is-active {
background-color: $blue-500;
color: $blue;
}
&.is-destroy {
color: $red;
&:hover {
background-color: $red;
color: $white;
}
}
&.disabled {
opacity: 0.5;
&:hover {
background: transparent;
cursor: default;
}
}
}
}
.confirm-action span .button {
display: block;
margin: 0.25rem auto;
width: 95%;
}
.confirm-action > span {
@include from($mobile) {
align-items: center;
display: flex;
}
* {
margin-left: $size-8;
}
.confirm-action-text:not(.is-block) {
text-align: right;
@include until($mobile) {
display: block;
margin-bottom: $size-8;
text-align: left;
}
}
.confirm-action-text.is-block {
text-align: left;
}
}
.confirm-action-message {
margin: 0;
.message {
border: 0;
font-size: $size-8;
line-height: 1.33;
margin: 0;
}
.message-title {
font-size: 1rem;
}
.hs-icon {
color: $yellow;
}
p {
font-weight: $font-weight-semibold;
margin-left: $spacing-l;
padding-left: $spacing-xxs;
padding-top: 0;
}
.confirm-action-options {
border-top: $light-border;
display: flex;
padding: $spacing-xxs;
.link {
flex: 1;
text-align: center;
width: auto;
padding: $spacing-xs;
}
}
}