@adobe/spectrum-css
Version:
The Spectrum CSS top-level backwards compatible package
276 lines (241 loc) • 5.67 kB
CSS
.spectrum-Button,
.spectrum-ActionButton,
.spectrum-LogicButton,
.spectrum-FieldButton,
.spectrum-ClearButton,
.spectrum-Tool {
display: -ms-inline-flexbox;
display: inline-flex;
box-sizing: border-box;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
overflow: visible;
margin: 0;
border-style: solid;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-appearance: button;
vertical-align: top;
transition: background 130ms ease-out,
border-color 130ms ease-out,
color 130ms ease-out,
box-shadow 130ms ease-out;
text-decoration: none;
font-family: 'adobe-clean-ux', 'adobe-clean', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.3;
cursor: pointer;
}
.spectrum-Button:focus,
.spectrum-ActionButton:focus,
.spectrum-LogicButton:focus,
.spectrum-FieldButton:focus,
.spectrum-ClearButton:focus,
.spectrum-Tool:focus {
outline: none;
}
.spectrum-Button::-moz-focus-inner,
.spectrum-ActionButton::-moz-focus-inner,
.spectrum-LogicButton::-moz-focus-inner,
.spectrum-FieldButton::-moz-focus-inner,
.spectrum-ClearButton::-moz-focus-inner,
.spectrum-Tool::-moz-focus-inner {
border: 0;
border-style: none;
padding: 0;
margin-top: -2PX;
margin-bottom: -2PX;
}
.spectrum-Button:disabled,
.spectrum-ActionButton:disabled,
.spectrum-LogicButton:disabled,
.spectrum-FieldButton:disabled,
.spectrum-ClearButton:disabled,
.spectrum-Tool:disabled {
cursor: default;
}
.spectrum-Button .spectrum-Icon,
.spectrum-ActionButton .spectrum-Icon,
.spectrum-LogicButton .spectrum-Icon,
.spectrum-FieldButton .spectrum-Icon,
.spectrum-ClearButton .spectrum-Icon,
.spectrum-Tool .spectrum-Icon {
max-height: 100%;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.spectrum-Button {
border-width: 2px;
border-style: solid;
border-radius: 16px;
min-height: 32px;
height: auto;
min-width: 72px;
padding: 4px 14px;
padding-bottom: 4.5px;
padding-top: 3.5px;
font-size: 14px;
font-weight: 700;
}
.spectrum-Button:hover,
.spectrum-Button:active {
box-shadow: none;
}
.spectrum-Button .spectrum-Icon + .spectrum-Button-label {
margin-left: 8px;
}
.spectrum-Button .spectrum-Button-label + .spectrum-Icon {
margin-left: 4px;
}
a.spectrum-Button,
a.spectrum-ActionButton {
-webkit-appearance: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.spectrum-ActionButton,
.spectrum-Tool {
position: relative;
height: 32px;
min-width: 32px;
padding: 0 6px;
border-width: 1px;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
}
.spectrum-ActionButton .spectrum-Icon + .spectrum-ActionButton-label,
.spectrum-Tool .spectrum-Icon + .spectrum-ActionButton-label {
padding-left: 7px;
padding-right: 5px;
}
.spectrum-ActionButton .spectrum-Icon--sizeS:only-child,
.spectrum-Tool .spectrum-Icon--sizeS:only-child {
position: absolute;
top: calc(50% - 9px);
left: calc(50% - 9px);
}
.spectrum-ActionButton .spectrum-ActionButton-label:only-child,
.spectrum-Tool .spectrum-ActionButton-label:only-child {
padding: 0 5px;
}
.spectrum-ActionButton-hold {
position: absolute;
right: 3px;
bottom: 3px;
}
.spectrum-ActionButton-label,
.spectrum-Button-label {
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
justify-self: center;
text-align: center;
width: 100%;
}
.spectrum-ActionButton-label:empty, .spectrum-Button-label:empty {
display: none;
}
.spectrum-ActionButton-label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.spectrum-ActionButton--quiet,
.spectrum-Tool {
border-width: 1px;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
}
.spectrum-LogicButton {
height: 24px;
padding: 8px;
border-width: 2px;
border-radius: 4px;
font-size: 14px;
font-weight: 700;
line-height: 0;
}
.spectrum-FieldButton {
height: 32px;
padding: 0 12px;
font-family: inherit;
font-weight: normal;
font-size: 14px;
line-height: normal;
-webkit-font-smoothing: initial;
cursor: pointer;
outline: none;
}
.spectrum-FieldButton {
margin: 0;
padding: 0 12px;
border-width: 1px;
border-style: solid;
border-radius: 4px;
transition: background-color 130ms,
box-shadow 130ms,
border-color 130ms;
}
.spectrum-FieldButton:disabled,
.spectrum-FieldButton.is-disabled {
border-width: 0;
cursor: default;
}
.spectrum-FieldButton.is-open {
border-width: 1px;
}
.spectrum-FieldButton--quiet {
margin: 0;
padding: 0;
border-width: 0;
border-radius: 0px;
}
.spectrum-ClearButton {
width: 32px;
height: 32px;
border-radius: 100%;
padding: 0;
margin: 0;
border: none;
}
.spectrum-ClearButton > .spectrum-Icon {
margin: 0 auto;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.spectrum-ClearButton > .spectrum-Icon {
margin: 0
}
}
.spectrum-ClearButton--small {
width: 24px;
height: 24px;
}
.spectrum-Tool {
position: relative;
-ms-flex-pack: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
}
.spectrum-Tool-hold {
position: absolute;
right: 3px;
bottom: 3px;
}
.spectrum-Button + .spectrum-Button {
margin-left: 16px;
}
.spectrum-ActionButton + .spectrum-ActionButton,
.spectrum-Tool + .spectrum-Tool {
margin-left: 8px;
}
.spectrum-Tool + .spectrum-Tool {
margin-left: 8px;
}