2016-01-08 18:44:35 +05:30
|
|
|
@import '~components/ui/colors.scss';
|
|
|
|
@import '~components/ui/fonts.scss';
|
|
|
|
|
|
|
|
.formRow {
|
|
|
|
position: relative;
|
|
|
|
height: 50px;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formIconRow {
|
|
|
|
composes: formRow;
|
|
|
|
|
|
|
|
.textField {
|
|
|
|
padding-left: 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.textField {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
height: 50px;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
border: 2px solid lighter($black);
|
|
|
|
background: $black;
|
|
|
|
|
2016-01-09 15:21:29 +05:30
|
|
|
font-size: 18px;
|
2016-01-08 18:44:35 +05:30
|
|
|
color: #aaa;
|
2016-01-09 15:21:29 +05:30
|
|
|
font-family: $font-family-title;
|
2016-01-08 18:44:35 +05:30
|
|
|
padding: 0 10px;
|
|
|
|
|
|
|
|
transition: border-color .25s;
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
opacity: 1;
|
|
|
|
color: #444;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: #aaa;
|
|
|
|
|
|
|
|
~ .formFieldIcon {
|
|
|
|
border-color: #aaa;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $green;
|
|
|
|
color: #fff;
|
2016-01-09 15:21:29 +05:30
|
|
|
outline: none;
|
2016-01-08 18:44:35 +05:30
|
|
|
|
|
|
|
~ .formFieldIcon {
|
|
|
|
background: $green;
|
|
|
|
border-color: $green;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.formFieldIcon {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
height: 50px;
|
|
|
|
width: 50px;
|
|
|
|
line-height: 46px;
|
|
|
|
text-align: center;
|
|
|
|
border: 2px solid lighter($black);
|
|
|
|
color: #444;
|
|
|
|
|
2016-01-09 15:21:29 +05:30
|
|
|
// Анимация фона должна быть быстрее анимации рамки, т.к. визуально фон заполняется медленнее
|
|
|
|
transition: border-color .25s,
|
|
|
|
background-color .20s;
|
2016-01-08 18:44:35 +05:30
|
|
|
}
|