UNPKG

censa_front_end_library

Version:

React components library project for censa Design System

279 lines (243 loc) 5.51 kB
/* input */ .Input-input::-ms-clear { display: none; } .Input { display: flex; flex-grow: 1; flex-direction: row; align-items: center; box-sizing: border-box; border-radius: var(--spacing); border: var(--border); padding-right: var(--spacing-l); padding-left: var(--spacing-l); background: var(--white); transition: var(--duration--fast-01) var(--standard-productive-curve); } .Input--tiny { height: var(--font-height-m); padding-top: var(--spacing-m); padding-bottom: var(--spacing-m); } .Input--regular { height: var(--font-height-xl); padding-top: 6px; padding-bottom: 6px; } .Input--large { height: 40px; padding-top: var(--spacing); padding-bottom: var(--spacing); } .Input:hover { background: transparent; border-color: #9b9a9d; cursor: text; } .Input:focus-within { background: var(--white); border-color: var(--input-primary); box-shadow: var(--shadow-spread) var(--primary-shadow); } .Input:focus-within::placeholder { color: #0a080c !important; } .Input:focus-within .Input-icon--left { color: var(--input-primary); } .Input--error:focus-within { border-color: var(--alert); box-shadow: var(--shadow-spread) var(--alert-shadow); } .Input--error:focus-within .Input-icon--left { color: var(--alert); } .Input--disabled { background: var(--secondary-lightest); border-color: var(--secondary-lighter); pointer-events: none; } .Input--disabled .Input-icon--left { color: var(--inverse-lightest); } .Input--error, .Input--error:hover { background: var(--white); border-color: var(--alert); } .Input--error .Input-icon--right { color: var(--alert); } .Input--success, .Input--success:hover { background: var(--white); border-color: var(--success); } .Input--success .Input-icon--right { color: var(--success); } .Input i { font-variation-settings: normal !important; } .Input-input { display: flex; width: 100%; font-family: var(--font-family); font-weight: var(--font-weight-normal); font-size: var(--font-size); line-height: var(--font-height-s); color: var(--night); padding: 0; border: none; background: transparent; } .Input-input::placeholder { color: var(--night-lighter); } .Input-input:focus { outline: 0; } .Input-input:disabled .Input-input::placeholder { color: var(--inverse-lighter); } .Input-input--regular { line-height: var(--font-height); } .Input-input--large { line-height: var(--font-height-m); font-size: var(--font-size-m); } .Input-icon { display: flex; align-content: center; font-size: var(--font-size-m); } .Input-icon--left { margin-right: var(--spacing); color: var(--inverse); } .Input-icon--inputBlank { color: var(--inverse-lighter); } .Input-icon--error { color: var(--alert); } .Input-icon--right { cursor: pointer; color: var(--inverse-lighter); border-radius: 10px; } .Input-iconWrapper--right:focus-visible .Input-icon--right { outline: var(--spacing-s) solid var(--secondary-shadow); } .Input-icon--success i { border: 1.5px solid var(--success); border-radius: 50%; color: var(--success); font-size: 14px !important; width: 14px !important; } .Input-icon-left-success { color: var(--success); } .Input-icon--right:focus-visible { outline: var(--spacing-s) solid var(--secondary-shadow); border-radius: 10px; } .Input-iconWrapper--right:hover .Input-icon--right { background-color: transparent; } .Input-iconWrapper--right:active .Input-icon--right { background-color: var(--secondary-dark); } .Input-inlineLabel { margin-right: var(--spacing); } .Input-iconWrapper--right:focus-visible { outline: none; } .countrysearch .Input--regular { padding: 19.4px; border-left: 0; border-radius: 0; border-color: #cbcacb; } .countrysearch { border-color: #cbcacb; } .countrysearch .Input:focus-within { border-color: #cbcacb; } .countrysearch .Input--regular:hover { border-color: #cbcacb; } .countrysearch .Input--regular:focus { border-color: #cbcacb; } .countrysearch .Input--regular.error { border: 1px solid #f10114; } .d-flex.countrysearch.error { border: 1px solid #f10114; border-radius: 5px; } .d-flex.countrysearch.success { border: 1px solid #2fa843; border-radius: 5px; } .countrysearch .Dropdown.w-25.bg-white button { background-color: #fff !important; border: 1px solid #cbcacb; border-radius: 0; border-right: 0; border-bottom-left-radius: 5px; border-top-left-radius: 5px; } .pwd-icon .Input i { font-size: 14px !important; } .InlineMessage-text--alert { color: var(--alert) !important; } .charlimit { margin-top: 5px; } .charlimit label { font-size: 12px; color: #59565c; } .charlimit div { font-size: 12px; } .currencyinput { position: relative; } .currencyinput span { position: absolute; top: 50%; transform: translateY(-50%); left: 15px; } .currencyinput input { padding-left: 20px !important; } .Input-suggestions { position: absolute; background: white; border: 1px solid #ccc; width: 100%; max-height: 150px; overflow-y: auto; z-index: 1000; top: 42px; left: 0px; border-radius: 8px; } .Input-suggestion { padding: 8px; cursor: pointer; } .Input-suggestion:hover { background: #f0f0f0; }