@spectrum-css/textfield
Version:
The Spectrum CSS textfield component
30 lines (28 loc) • 1.77 kB
CSS
/*!
* Copyright 2024 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.
*/
.spectrum.spectrum--express {
--system-textfield-background-color: var(--spectrum-gray-50);
--system-textfield-background-color-disabled: var(--spectrum-disabled-background-color);
--system-textfield-border-color: var(--spectrum-gray-400);
--system-textfield-border-color-hover: var(--spectrum-gray-500);
--system-textfield-border-color-focus: var(--spectrum-gray-800);
--system-textfield-border-color-focus-hover: var(--spectrum-gray-900);
--system-textfield-border-color-keyboard-focus: var(--spectrum-gray-900);
--system-textfield-border-color-disabled: var(--spectrum-gray-200);
--system-textfield-border-width: var(--spectrum-border-width-200);
--system-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-medium);
--system-textfield-size-s-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-small);
--system-textfield-size-l-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-large);
--system-textfield-size-xl-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-extra-large);
--system-textfield-quiet-border-color-disabled: var(--spectrum-gray-300);
}