open-nomad/ui/app/styles/components/two-step-button.scss
Buck Doyle f462d7d1c2
Add button to fail running deployments (#9831)
This closes #8744 and #9826.

It necessitated some customisation options for TwoStepButton. One is inlineText, which puts the confirmation text in the same line as the buttons. Also, there was a single-use configuration option named isInfoAction that I removed in favour of passing a set of class configuration options like this:

                @classes={{hash
                  idleButton="is-warning"
                  confirmationMessage="inherit-color"
                  cancelButton="is-danger is-important"
                  confirmButton="is-warning"}}
2021-02-10 08:38:37 -06:00

42 lines
689 B
SCSS

.two-step-button {
display: inline-block;
vertical-align: middle;
position: relative;
font-size: $body-size;
line-height: 1;
&.has-inline-text {
display: inline-flex;
align-items: center;
button {
margin-left: 0.5ch;
}
.confirmation-text {
position: static;
margin-right: 0.5ch;
}
}
.confirmation-text {
position: absolute;
left: 0;
top: -1.5em;
font-size: $body-size;
line-height: 1;
font-weight: $weight-normal;
color: darken($grey-blue, 20%);
white-space: nowrap;
&.is-right-aligned {
left: auto;
right: 0;
}
&.inherit-color {
color: currentColor;
}
}
}