UNPKG

wix-style-react

Version:
99 lines (80 loc) 1.78 kB
:import { -st-from: '../Foundation/stylable/colors.st.css'; -st-named: D40; } :import { -st-from: '../Input/Input.st.css'; -st-default: Input; } :import { -st-from: '../Foundation/stylable/colors.st.css'; -st-named: Y10; } :vars { input-height: 54px; status-message-height: 24px; } .root { -st-extends: Input; } .groupIcon { display: flex; align-items: center; padding-left: 12px; padding-right: 12px; height: value(input-height); } .groupIcon:not(:first-of-type) { position: relative; } .groupIcon:not(:first-of-type)::before { content: ''; position: absolute; top: 15px; bottom: 15px; width: 1px; box-sizing: border-box; border-left: 1px solid value(D40); left: 0; } .root:not(:focus-within):border(bottomLine)::before { width: 100%; background: #DFE5EB; } .root:not(:focus-within):not(:disabled):border(bottomLine):not(:status(error)):not(:status(warning)):hover::before { background: #ACAFC4; } .root:border(bottomLine):status(error)::before { background: none; } .root:border(bottomLine):status(error)::before { background: #E62214; } .root:border(bottomLine):status(error):hover::before { background: #F69891; } .root:border(bottomLine):status(error):focus-within::before { background: #E62214; } .statusMessagePlaceholder { padding-bottom: value(status-message-height); } .statusMessage { display: flex; align-items: center; line-height: value(status-message-height) !important; margin-top: 2px; } .statusMessageIcon { -st-states: warning; margin-right: 5px; display: flex; margin-left: -2px; } .statusMessageIcon:warning { color: value(Y10); } .errorMessageContent { line-height: 18px; } /* st-namespace-reference="../../../src/InputWithLabel/InputWithLabel.st.css" */