UNPKG

@adobe/spectrum-css

Version:

The Spectrum CSS top-level backwards compatible package

276 lines (241 loc) 5.68 kB
.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: 20px; min-height: 40px; height: auto; min-width: 90px; padding: 5px 18px; padding-bottom: 5.5px; padding-top: 4.5px; font-size: 17px; font-weight: 700; } .spectrum-Button:hover, .spectrum-Button:active { box-shadow: none; } .spectrum-Button .spectrum-Icon + .spectrum-Button-label { margin-left: 10px; } .spectrum-Button .spectrum-Button-label + .spectrum-Icon { margin-left: 5px; } 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: 40px; min-width: 40px; padding: 0 8px; border-width: 1px; border-radius: 5px; font-size: 17px; font-weight: 400; } .spectrum-ActionButton .spectrum-Icon + .spectrum-ActionButton-label, .spectrum-Tool .spectrum-Icon + .spectrum-ActionButton-label { padding-left: 9px; padding-right: 6px; } .spectrum-ActionButton .spectrum-Icon--sizeS:only-child, .spectrum-Tool .spectrum-Icon--sizeS:only-child { position: absolute; top: calc(50% - 11px); left: calc(50% - 11px); } .spectrum-ActionButton .spectrum-ActionButton-label:only-child, .spectrum-Tool .spectrum-ActionButton-label:only-child { padding: 0 6px; } .spectrum-ActionButton-hold { position: absolute; right: 4px; bottom: 4px; } .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: 5px; font-size: 17px; font-weight: 400; } .spectrum-LogicButton { height: 24px; padding: 10px; border-width: 2px; border-radius: 5px; font-size: 17px; font-weight: 700; line-height: 0; } .spectrum-FieldButton { height: 40px; padding: 0 15px; font-family: inherit; font-weight: normal; font-size: 17px; line-height: normal; -webkit-font-smoothing: initial; cursor: pointer; outline: none; } .spectrum-FieldButton { margin: 0; padding: 0 15px; border-width: 1px; border-style: solid; border-radius: 5px; 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: 40px; height: 40px; 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: 30px; height: 30px; } .spectrum-Tool { position: relative; -ms-flex-pack: center; justify-content: center; width: 40px; height: 40px; padding: 0; } .spectrum-Tool-hold { position: absolute; right: 4px; bottom: 4px; } .spectrum-Button + .spectrum-Button { margin-left: 16px; } .spectrum-ActionButton + .spectrum-ActionButton, .spectrum-Tool + .spectrum-Tool { margin-left: 10px; } .spectrum-Tool + .spectrum-Tool { margin-left: 10px; }