113 lines
2.3 KiB
CSS
113 lines
2.3 KiB
CSS
@import "../fonts/Manrope/font.css";
|
|
|
|
.inputs {
|
|
width: 500px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 40px;
|
|
}
|
|
|
|
/*colors.css*/
|
|
:root {
|
|
--border-gray: #C9C8D3;
|
|
--c-primary: #0A5BFF;
|
|
--text-gray: #8A8894;
|
|
--text-dark: #00133B;
|
|
--input-bg: #fff
|
|
}
|
|
|
|
/*inputs.css*/
|
|
|
|
/* Основные стили для полей ввода */
|
|
.c-input {
|
|
background-color: var(--input-bg);
|
|
border: 2px solid var(--border-gray);
|
|
width: 100%;
|
|
height: 57px;
|
|
border-radius: 8px;
|
|
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 18px;
|
|
color: var(--text-gray);
|
|
padding-left: 16px;
|
|
transition: border 0.3s ease, color 0.3s ease
|
|
}
|
|
|
|
.c-input:focus {
|
|
color: var(--text-dark);
|
|
border: 2px solid var(--c-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.c-label {
|
|
color: var(--text-gray);
|
|
font-size: 14px;
|
|
font-family: Manrope, sans-serif;
|
|
padding: 0 16px 4px 16px;
|
|
transition: color 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.c-labeled-input {
|
|
user-select: none; /* Для современных браузеров */
|
|
-moz-user-select: none; /* Для Firefox */
|
|
-webkit-user-select: none; /* Для Safari */
|
|
-ms-user-select: none; /* Для Internet Explorer/Edge */
|
|
}
|
|
|
|
.c-labeled-input:focus-within .c-label {
|
|
color: var(--c-primary);
|
|
}
|
|
|
|
@keyframes focus-border-animation {
|
|
from {
|
|
border-color: var(--border-gray);
|
|
}
|
|
to {
|
|
border-color: var(--c-primary);
|
|
}
|
|
}
|
|
|
|
.c-input:focus {
|
|
animation: focus-border-animation 0.3s forwards;
|
|
}
|
|
|
|
/*password*/
|
|
|
|
|
|
/*num*/
|
|
input[type="number"] {
|
|
-webkit-appearance: textfield;
|
|
-moz-appearance: textfield;
|
|
appearance: textfield;
|
|
}
|
|
|
|
input[type=number]::-webkit-inner-spin-button,
|
|
input[type=number]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
/*date*/
|
|
.calendar-icon {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
pointer-events: none; /* Иконка не будет мешать кликам по input */
|
|
font-size: 18px; /* Размер иконки */
|
|
color: #555; /* Цвет иконки */
|
|
}
|
|
|
|
.calendar-icon {
|
|
color: #8A8894; /* Цвет иконки - красный */
|
|
}
|
|
|
|
.input-with-icon:focus-within .calendar-icon {
|
|
color: var(--c-primary);
|
|
}
|
|
|
|
.input-with-icon {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|