@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.
230 lines (222 loc) • 7.84 kB
CSS
.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: 30px;
min-height: 30px;
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: 4px;
}
.e-otpinput.e-underlined .e-otp-input-field {
border-radius: 4px 4px 0 0;
}
.e-otpinput.e-filled .e-otp-input-field {
border-radius: 4px 4px 0 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: rgb(28, 27, 31);
background: rgba(255, 255, 255, 0);
}
.e-otpinput .e-otp-separator {
color: rgb(121, 116, 126);
}
.e-otpinput.e-outline .e-otp-input-field {
border: 1px solid rgb(121, 116, 126);
}
.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: 2px solid rgb(121, 116, 126);
}
.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: rgb(121, 116, 126);
color: rgb(28, 27, 31);
background: rgba(255, 255, 255, 0);
}
.e-otpinput.e-filled .e-otp-input-field {
background: rgb(231, 224, 236);
}
.e-otpinput.e-underlined .e-otp-input-field {
background: rgba(255, 255, 255, 0);
}
.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: rgb(179, 38, 30);
}
.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: rgb(32, 81, 7);
}
.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: rgb(145, 76, 0);
}
.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: 6px;
}
.e-bigger.e-otpinput .e-otp-input-field,
.e-bigger .e-otpinput .e-otp-input-field {
min-width: 38px;
min-height: 38px;
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: 14px;
}
.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: 24px;
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: 24px;
}
.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;
}