open-consul/ui-v2/app/styles/base/components/buttons/layout.scss
John Cowen efdae83a87
ui: Use structure-icons as much as possible (#6851)
* ui: Delete a bunch of CSS that we recently moved elsewhere

* ui: Add some masking placeholders

* Switch out hashicorp logo for one from structure-icons

* Change copy-button to use new copy-action icon

* Change secret-button to use new visibility-hide/show icons

* New folder icon for KVs

* Cleanup some of the icons we no longer use

* Switch from %with-exit to standard-like %with-exit-icon

* Move all chevrons to use structure-icons properly

* Use star-fill as much as possible

* Remove the remaining icons from icons/index plus the file itself
2020-01-16 09:10:32 +00:00

51 lines
974 B
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: 5px !important;
margin-right: 0;
margin-top: -5px;
}
%copy-button:not(:empty)::before {
margin-right: 10px;
}
%internal-button {
padding: 0.9em 1em;
text-align: center;
display: inline-block;
box-sizing: border-box;
}