storybookdesignpack
Version:
React components library project for censa Design System
205 lines (172 loc) • 4.26 kB
CSS
/* 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-l);
padding-top: 6px;
padding-bottom: 6px;
}
.Input--large {
height: 40px;
padding-top: var(--spacing);
padding-bottom: var(--spacing);
}
.Input:hover {
background: transparent;
border-color: var(--hover);
cursor: text;
}
.Input:focus-within {
background: var(--white);
border-color: var(--input-primary);
box-shadow: var(--shadow-spread) var(--primary-shadow);
}
.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 ;
}
.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(--input-placeholder);
}
.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--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 ;
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 ;
}
.InlineMessage-text--alert{
color: var(--alert) ;
}