@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.
226 lines (222 loc) • 7.69 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: 26px;
min-height: 26px;
font-size: 12px;
line-height: 16px;
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: 16px;
}
.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: #fff;
background: #1f2937;
}
.e-otpinput .e-otp-separator {
color: #6b7280;
}
.e-otpinput.e-outline .e-otp-input-field {
border: 1px solid #6b7280;
}
.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 #6b7280;
}
.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: #374151;
color: #6b7280;
background: #374151;
}
.e-otpinput.e-filled .e-otp-input-field {
background: #374151;
}
.e-otpinput.e-underlined .e-otp-input-field {
background: 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: #f87171;
}
.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: #22c55e;
}
.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: #f97316;
}
.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: 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: 14px;
line-height: 22px;
}
.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: 34px;
min-height: 34px;
font-size: 14px;
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: 14px;
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;
}