@syncfusion/ej2-inputs
Version:
A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.
300 lines (286 loc) • 8.77 kB
CSS
/* Font Family */
/* border */
/* 0px */
/* 1px */
/* 1.5px */
/* 2px */
/* 3px */
/* 4px */
/* 5px */
/* 6px */
/* 7px */
/* 8px */
/* Radius */
/* 1px */
/* 2px */
/* 3px */
/* 4px */
/* 5px */
/* 6px */
/* 7px */
/* 8px */
/* 9px */
/* 10px */
/* 11px */
/* 12px */
/* 13px */
/* 14px */
/* 15px */
/* 16px */
/* 17px */
/* 18px */
/* 19px */
/* 20px */
/* 21px */
/* 22px */
/* 23px */
/* 24px */
/* 25px */
/* 26px */
/* 27px */
/* 28px */
/* 29px */
/* 30px */
/* 31px */
/* 32px */
/* 33px */
/* 34px */
/* 35px */
/* 36px */
/* 37px */
/* 38px */
/* 39px */
/* 40px */
/* 41px */
/* 42px */
/* 43px */
/* 44px */
/* 45px */
/* 46px */
/* 47px */
/* 48px */
/* 49px */
/* 50px */
/* 5em */
.e-otpinput {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 12px;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.e-otpinput:has(.e-otp-separator):not(:empty) {
gap: 4px;
}
.e-otpinput .e-otp-input-field {
min-width: 32px;
min-height: 32px;
text-align: center;
padding: 0;
font-size: 14px;
font-weight: 400;
line-height: 22px;
border: none;
}
.e-otpinput .e-otp-input-fieldinput[type=password], .e-otpinput .e-otp-input-field[type=password] {
font-size: 18px;
}
.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus {
padding-bottom: 0;
}
.e-otpinput.e-outline .e-otp-input-field {
border-radius: calc(var(--e-radius) * 0.375);
}
.e-otpinput.e-underlined .e-otp-input-field {
border-radius: calc(var(--e-radius) * 0);
}
.e-otpinput.e-filled .e-otp-input-field {
border-radius: calc(var(--e-radius) * 0);
padding: 0;
}
.e-otpinput .e-otp-separator {
font-size: 14px;
font-weight: 400;
line-height: 22px;
}
.e-otpinput input[type=number]::-webkit-inner-spin-button,
.e-otpinput [type=number]::-webkit-outer-spin-button {
/* stylelint-disable property-no-vendor-prefix */
-webkit-appearance: none;
/* stylelint-enable property-no-vendor-prefix */
margin: 0;
}
.e-otpinput input[type=number] {
/* stylelint-disable property-no-vendor-prefix */
-moz-appearance: textfield;
/* stylelint-enable property-no-vendor-prefix */
}
.e-small.e-otpinput,
.e-small .e-otpinput {
gap: 8px;
}
.e-small.e-otpinput:has(.e-otp-separator):not(:empty),
.e-small .e-otpinput:has(.e-otp-separator):not(:empty) {
gap: 4px;
}
.e-small.e-otpinput .e-otp-input-field,
.e-small .e-otpinput .e-otp-input-field {
min-width: 24px;
min-height: 24px;
font-size: 12px;
line-height: 18px;
padding: 0;
}
.e-small.e-otpinput .e-otp-input-fieldinput[type=password], .e-small.e-otpinput .e-otp-input-field[type=password],
.e-small .e-otpinput .e-otp-input-fieldinput[type=password],
.e-small .e-otpinput .e-otp-input-field[type=password] {
font-size: 18px;
}
.e-small.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus,
.e-small .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus {
padding-bottom: 0;
}
.e-small.e-otpinput .e-otp-separator,
.e-small .e-otpinput .e-otp-separator {
font-size: 12px;
line-height: 18px;
}
.e-small.e-otpinput.e-filled .e-otp-input-field,
.e-small .e-otpinput.e-filled .e-otp-input-field {
padding: 0;
}
.e-otpinput .e-otp-input-field {
color: var(--color-sf-content-text-color);
background: var(--color-sf-content-bg-color);
}
.e-otpinput .e-otp-separator {
color: var(--color-sf-border);
}
.e-otpinput.e-outline .e-otp-input-field {
border: 1px solid var(--color-sf-border);
}
.e-otpinput.e-outline .e-otp-input-field, .e-otpinput.e-underlined .e-otp-input-field, .e-otpinput.e-filled .e-otp-input-field {
border-bottom: calc(var(--e-border) * 0.125) solid var(--color-sf-border);
}
.e-otpinput.e-outline .e-otp-input-field:disabled, .e-otpinput.e-underlined .e-otp-input-field:disabled, .e-otpinput.e-filled .e-otp-input-field:disabled {
border-color: var(--color-sf-content-bg-color-alt2);
color: var(--color-sf-content-text-color-disabled);
background: var(--color-sf-content-bg-color-disabled);
}
.e-otpinput.e-filled .e-otp-input-field {
background: var(--color-sf-content-bg-color-alt1);
}
.e-otpinput.e-underlined .e-otp-input-field {
background: var(--color-sf-transparent);
}
.e-otpinput.e-error.e-outline .e-otp-input-field,
.e-otpinput.e-error.e-outline .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-error.e-underlined .e-otp-input-field,
.e-otpinput.e-error.e-underlined .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-error.e-filled .e-otp-input-field,
.e-otpinput.e-error.e-filled .e-otp-input-field.e-otp-input-focus {
border-color: var(--color-sf-danger);
}
.e-otpinput.e-success.e-outline .e-otp-input-field,
.e-otpinput.e-success.e-outline .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-success.e-underlined .e-otp-input-field,
.e-otpinput.e-success.e-underlined .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-success.e-filled .e-otp-input-field,
.e-otpinput.e-success.e-filled .e-otp-input-field.e-otp-input-focus {
border-color: var(--color-sf-success);
}
.e-otpinput.e-warning.e-outline .e-otp-input-field,
.e-otpinput.e-warning.e-outline .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-warning.e-underlined .e-otp-input-field,
.e-otpinput.e-warning.e-underlined .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-warning.e-filled .e-otp-input-field,
.e-otpinput.e-warning.e-filled .e-otp-input-field.e-otp-input-focus {
border-color: var(--color-sf-warning);
}
.e-bigger.e-otpinput,
.e-bigger .e-otpinput {
gap: 16px;
}
.e-bigger.e-otpinput:has(.e-otp-separator):not(:empty),
.e-bigger .e-otpinput:has(.e-otp-separator):not(:empty) {
gap: 8px;
}
.e-bigger.e-otpinput .e-otp-input-field,
.e-bigger .e-otpinput .e-otp-input-field {
min-width: 40px;
min-height: 40px;
font-size: 16px;
line-height: 24px;
padding: 0;
}
.e-bigger.e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger.e-otpinput .e-otp-input-field[type=password],
.e-bigger .e-otpinput .e-otp-input-fieldinput[type=password],
.e-bigger .e-otpinput .e-otp-input-field[type=password] {
font-size: 20px;
}
.e-bigger.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus,
.e-bigger .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus {
padding-bottom: 0;
}
.e-bigger.e-otpinput .e-otp-separator,
.e-bigger .e-otpinput .e-otp-separator {
font-size: 16px;
line-height: 24px;
}
.e-bigger.e-otpinput.e-filled .e-otp-input-field,
.e-bigger .e-otpinput.e-filled .e-otp-input-field {
padding: 0;
}
.e-bigger.e-small.e-otpinput,
.e-bigger.e-small .e-otpinput,
.e-bigger .e-small.e-otpinput,
.e-small .e-bigger.e-otpinput {
gap: 12px;
}
.e-bigger.e-small.e-otpinput:has(.e-otp-separator):not(:empty),
.e-bigger.e-small .e-otpinput:has(.e-otp-separator):not(:empty),
.e-bigger .e-small.e-otpinput:has(.e-otp-separator):not(:empty),
.e-small .e-bigger.e-otpinput:has(.e-otp-separator):not(:empty) {
gap: 6px;
}
.e-bigger.e-small.e-otpinput .e-otp-input-field,
.e-bigger.e-small .e-otpinput .e-otp-input-field,
.e-bigger .e-small.e-otpinput .e-otp-input-field,
.e-small .e-bigger.e-otpinput .e-otp-input-field {
min-width: 36px;
min-height: 36px;
font-size: 16px;
line-height: 22px;
padding: 0;
}
.e-bigger.e-small.e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger.e-small.e-otpinput .e-otp-input-field[type=password],
.e-bigger.e-small .e-otpinput .e-otp-input-fieldinput[type=password],
.e-bigger.e-small .e-otpinput .e-otp-input-field[type=password],
.e-bigger .e-small.e-otpinput .e-otp-input-fieldinput[type=password],
.e-bigger .e-small.e-otpinput .e-otp-input-field[type=password],
.e-small .e-bigger.e-otpinput .e-otp-input-fieldinput[type=password],
.e-small .e-bigger.e-otpinput .e-otp-input-field[type=password] {
font-size: 20px;
}
.e-bigger.e-small.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus,
.e-bigger.e-small .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus,
.e-bigger .e-small.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus,
.e-small .e-bigger.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus {
padding-bottom: 0;
}
.e-bigger.e-small.e-otpinput .e-otp-separator,
.e-bigger.e-small .e-otpinput .e-otp-separator,
.e-bigger .e-small.e-otpinput .e-otp-separator,
.e-small .e-bigger.e-otpinput .e-otp-separator {
font-size: 16px;
line-height: 22px;
}
.e-bigger.e-small.e-otpinput.e-filled .e-otp-input-field,
.e-bigger.e-small .e-otpinput.e-filled .e-otp-input-field,
.e-bigger .e-small.e-otpinput.e-filled .e-otp-input-field,
.e-small .e-bigger.e-otpinput.e-filled .e-otp-input-field {
padding: 0;
}