@adobe/coral-spectrum
Version:
Coral Spectrum is a JavaScript library of Web Components following Spectrum design patterns.
49 lines (47 loc) • 1.43 kB
CSS
/**
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
.coral-DecoratedTextfield {
position: relative;
box-sizing: border-box;
margin: 0;
vertical-align: top;
display: inline-block;
}
.coral-DecoratedTextfield > .coral-DecoratedTextfield-button._coral-Button {
margin-right: 0;
max-width: 32px;
position: absolute;
}
.coral-DecoratedTextfield > .coral-DecoratedTextfield-input {
padding-right: 32px;
}
.coral-DecoratedTextfield-icon {
position: absolute;
top: 10px;
left: 0;
margin-left: 10px;
height: 18px;
pointer-events: none;
}
.coral-DecoratedTextfield-icon:not([hidden]) + .coral-DecoratedTextfield-input {
padding-left: 25px;
text-indent: 0;
}
.coral-DecoratedTextfield-button {
box-sizing: border-box;
position: absolute;
top: 0;
right: 0;
}
.coral-DecoratedTextfield-button.is-hidden {
visibility: hidden;
}