mirror of https://github.com/status-im/consul.git
84 lines
1.5 KiB
SCSS
84 lines
1.5 KiB
SCSS
%button {
|
|
position: relative;
|
|
}
|
|
%button .progress.indeterminate {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
margin-left: -12px;
|
|
margin-top: -12px;
|
|
}
|
|
%button:disabled .progress + * {
|
|
visibility: hidden;
|
|
}
|
|
%button:empty {
|
|
padding-right: 0 !important;
|
|
padding-left: 18px !important;
|
|
margin-right: 5px;
|
|
}
|
|
%button:empty::before {
|
|
left: 1px;
|
|
}
|
|
%button:not(:empty) {
|
|
display: inline-flex;
|
|
text-align: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: calc(0.5em - 1px) calc(2.2em - 1px);
|
|
min-width: 100px;
|
|
}
|
|
%button:not(:last-child) {
|
|
margin-right: 8px;
|
|
}
|
|
%button-compact {
|
|
padding-top: calc(0.4em - 1px) !important;
|
|
padding-bottom: calc(0.4em - 1px) !important;
|
|
}
|
|
%copy-button:empty {
|
|
padding: 0px !important;
|
|
margin-right: 0;
|
|
top: -1px;
|
|
}
|
|
%copy-button:empty::after {
|
|
content: '';
|
|
display: none;
|
|
position: absolute;
|
|
top: -2px;
|
|
left: -3px;
|
|
width: 20px;
|
|
height: 22px;
|
|
}
|
|
%copy-button:empty:hover::after {
|
|
display: block;
|
|
}
|
|
%copy-button:empty::before {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
%copy-button:not(:empty)::before {
|
|
margin-right: 4px;
|
|
}
|
|
%internal-button {
|
|
padding: 0.9em 1em;
|
|
text-align: center;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
}
|
|
%split-button {
|
|
@extend %secondary-button;
|
|
padding: 0 8px !important;
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
%split-button::after {
|
|
margin-left: 16px;
|
|
}
|
|
%split-button::before {
|
|
@extend %as-pseudo;
|
|
height: 16px;
|
|
}
|
|
%sort-button {
|
|
@extend %button;
|
|
height: 35px !important;
|
|
}
|