2016-01-08 18:44:35 +05:30
|
|
|
@import '~components/ui/colors.scss';
|
|
|
|
@import '~components/ui/fonts.scss';
|
|
|
|
|
2016-01-09 19:21:55 +05:30
|
|
|
@mixin form-transition() {
|
|
|
|
// Анимация фона должна быть быстрее анимации рамки, т.к. визуально фон заполняется медленнее
|
|
|
|
transition: border-color .25s,
|
|
|
|
background-color .20s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Input
|
|
|
|
*/
|
2016-01-09 19:45:03 +05:30
|
|
|
@mixin input-theme($themeName, $color) {
|
|
|
|
.#{$themeName}TextField {
|
|
|
|
composes: textField;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $color;
|
|
|
|
|
2016-04-17 14:50:41 +05:30
|
|
|
~ .textFieldIcon {
|
2016-01-09 19:45:03 +05:30
|
|
|
background: $color;
|
|
|
|
border-color: $color;
|
|
|
|
}
|
2016-04-17 14:50:41 +05:30
|
|
|
|
|
|
|
&.lightTextField {
|
|
|
|
color: $color;
|
|
|
|
}
|
2016-01-09 19:45:03 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-08 18:44:35 +05:30
|
|
|
.formRow {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formIconRow {
|
|
|
|
composes: formRow;
|
|
|
|
|
|
|
|
.textField {
|
|
|
|
padding-left: 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-02 11:21:47 +05:30
|
|
|
.textFieldContainer {
|
|
|
|
position: relative;
|
|
|
|
height: 50px;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2016-01-08 18:44:35 +05:30
|
|
|
.textField {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
height: 50px;
|
|
|
|
width: 100%;
|
|
|
|
|
2016-04-17 14:50:41 +05:30
|
|
|
border: 2px solid;
|
2016-01-08 18:44:35 +05:30
|
|
|
|
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;
|
|
|
|
|
|
|
|
&:hover {
|
2016-02-13 20:58:47 +05:30
|
|
|
&,
|
2016-04-17 14:50:41 +05:30
|
|
|
~ .textFieldIcon {
|
2016-01-08 18:44:35 +05:30
|
|
|
border-color: #aaa;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: #fff;
|
2016-01-09 15:21:29 +05:30
|
|
|
outline: none;
|
2016-01-08 18:44:35 +05:30
|
|
|
|
2016-04-17 14:50:41 +05:30
|
|
|
~ .textFieldIcon {
|
2016-01-08 18:44:35 +05:30
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-17 14:50:41 +05:30
|
|
|
.textFieldIcon {
|
2016-01-08 18:44:35 +05:30
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
2016-01-09 19:21:55 +05:30
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2016-01-08 18:44:35 +05:30
|
|
|
height: 50px;
|
|
|
|
width: 50px;
|
|
|
|
line-height: 46px;
|
|
|
|
text-align: center;
|
2016-05-01 23:20:55 +05:30
|
|
|
border: 2px solid;
|
2016-01-08 18:44:35 +05:30
|
|
|
color: #444;
|
2016-02-13 20:58:47 +05:30
|
|
|
cursor: default;
|
2016-01-08 18:44:35 +05:30
|
|
|
|
2016-01-09 19:21:55 +05:30
|
|
|
@include form-transition();
|
|
|
|
}
|
|
|
|
|
2016-05-01 23:20:55 +05:30
|
|
|
.darkTextField {
|
|
|
|
background: $black;
|
|
|
|
|
2016-05-02 23:02:03 +05:30
|
|
|
&::placeholder {
|
|
|
|
opacity: 1;
|
|
|
|
color: #444;
|
|
|
|
}
|
|
|
|
|
2016-05-01 23:20:55 +05:30
|
|
|
&,
|
|
|
|
~ .textFieldIcon {
|
|
|
|
border-color: lighter($black);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lightTextField {
|
|
|
|
background: #fff;
|
|
|
|
|
2016-05-02 23:02:03 +05:30
|
|
|
&::placeholder {
|
|
|
|
opacity: 1;
|
|
|
|
color: #aaa;
|
|
|
|
}
|
|
|
|
|
2016-05-01 23:20:55 +05:30
|
|
|
&,
|
|
|
|
~ .textFieldIcon {
|
|
|
|
border-color: #dcd8cd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-17 14:51:37 +05:30
|
|
|
.textFieldLabel {
|
2016-05-02 11:21:47 +05:30
|
|
|
margin: 10px 0;
|
|
|
|
display: block;
|
|
|
|
|
2016-04-17 14:51:37 +05:30
|
|
|
font-family: $font-family-title;
|
|
|
|
color: #666;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
2016-05-02 11:21:47 +05:30
|
|
|
.fieldError {
|
|
|
|
color: $red;
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 3px 0;
|
2016-05-22 13:23:40 +05:30
|
|
|
|
|
|
|
a {
|
|
|
|
border-bottom: 1px dotted rgba($red, 0.75);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: .25s;
|
|
|
|
color: $red;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
2016-05-02 11:21:47 +05:30
|
|
|
}
|
|
|
|
|
2016-05-22 22:55:38 +05:30
|
|
|
.textAreaContainer {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textArea {
|
|
|
|
height: 150px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
resize: vertical;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2016-06-16 18:41:55 +05:30
|
|
|
.textFieldCenter {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2016-01-09 19:45:03 +05:30
|
|
|
@include input-theme('green', $green);
|
|
|
|
@include input-theme('blue', $blue);
|
2016-02-13 20:58:47 +05:30
|
|
|
@include input-theme('red', $red);
|
2016-02-26 04:12:20 +05:30
|
|
|
@include input-theme('darkBlue', $dark_blue);
|
2016-02-28 02:56:13 +05:30
|
|
|
@include input-theme('lightViolet', $light_violet);
|
2016-05-02 23:06:05 +05:30
|
|
|
@include input-theme('violet', $violet);
|
2016-01-09 19:45:03 +05:30
|
|
|
|
2016-01-09 19:21:55 +05:30
|
|
|
/**
|
|
|
|
* Checkbox
|
|
|
|
*/
|
2016-01-09 19:45:03 +05:30
|
|
|
@mixin checkbox-theme($themeName, $color) {
|
|
|
|
.#{$themeName}CheckboxRow {
|
|
|
|
composes: checkboxRow;
|
|
|
|
|
|
|
|
.checkboxContainer {
|
|
|
|
&:hover {
|
|
|
|
.checkbox {
|
|
|
|
border-color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkboxInput {
|
|
|
|
&:checked {
|
|
|
|
+ .checkbox {
|
|
|
|
background: $color;
|
|
|
|
border-color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-09 19:21:55 +05:30
|
|
|
.checkboxRow {
|
|
|
|
height: 22px;
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkboxContainer {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
padding-left: 27px;
|
|
|
|
|
|
|
|
font-family: $font-family-title;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkboxPosition {
|
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkboxInput {
|
|
|
|
composes: checkboxPosition;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
+ .checkbox {
|
|
|
|
&:before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox {
|
|
|
|
composes: checkboxPosition;
|
2016-05-02 12:45:42 +05:30
|
|
|
composes: checkmark from 'components/ui/icons.scss';
|
2016-01-09 19:21:55 +05:30
|
|
|
|
2016-01-10 05:34:44 +05:30
|
|
|
border: 2px #dcd8cd solid;
|
2016-01-09 19:21:55 +05:30
|
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 18px;
|
2016-05-02 00:30:31 +05:30
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
2016-01-09 19:21:55 +05:30
|
|
|
|
|
|
|
@include form-transition();
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
}
|
2016-01-08 18:44:35 +05:30
|
|
|
}
|
2016-01-09 19:45:03 +05:30
|
|
|
|
2016-05-02 00:30:31 +05:30
|
|
|
.lightCheckboxRow {
|
|
|
|
.checkboxContainer {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.darkCheckboxRow {
|
|
|
|
.checkboxContainer {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-09 19:45:03 +05:30
|
|
|
@include checkbox-theme('green', $green);
|
|
|
|
@include checkbox-theme('blue', $blue);
|
2016-02-13 20:58:47 +05:30
|
|
|
@include checkbox-theme('red', $red);
|
|
|
|
|
2016-04-02 16:28:54 +05:30
|
|
|
.isFormLoading {
|
|
|
|
// TODO: надо бы разнести from и input на отдельные модули,
|
|
|
|
// так как в текущем контексте isLoading немного не логичен,
|
|
|
|
// пришлось юзать isFormLoading
|
|
|
|
* {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2016-04-12 09:37:55 +05:30
|
|
|
[type="submit"] {
|
2016-05-20 01:11:43 +05:30
|
|
|
background: url('./images/loader_button.gif') #95a5a6 center center;
|
2016-04-12 09:37:55 +05:30
|
|
|
|
|
|
|
cursor: default;
|
2016-04-15 00:47:46 +05:30
|
|
|
color: #fff;
|
|
|
|
transition: 0.25s;
|
|
|
|
outline: none;
|
2016-04-02 16:28:54 +05:30
|
|
|
}
|
|
|
|
}
|
2016-05-01 16:12:31 +05:30
|
|
|
|
2016-07-31 19:23:16 +05:30
|
|
|
.captcha {
|
|
|
|
width: 302px;
|
|
|
|
height: 76px;
|
|
|
|
// minimum captcha width is 302px, which can not be changed
|
|
|
|
// using transform to scale down to 296px
|
|
|
|
transform-origin: 0;
|
|
|
|
transform: scaleX(0.98);
|
|
|
|
}
|
|
|
|
|
2016-05-01 16:12:31 +05:30
|
|
|
/**
|
|
|
|
* Form validation
|
|
|
|
*/
|
|
|
|
// Disable any visual error indication
|
|
|
|
// .formTouched .textField:invalid {
|
|
|
|
// box-shadow: none;
|
|
|
|
|
|
|
|
// &,
|
|
|
|
// ~ .textFieldIcon {
|
|
|
|
// border-color: #3e2727;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ~ .textFieldIcon {
|
|
|
|
// color: #3e2727;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// &:hover {
|
|
|
|
// &,
|
|
|
|
// ~ .textFieldIcon {
|
|
|
|
// border-color: $red;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// &:focus {
|
|
|
|
// border-color: $red;
|
|
|
|
|
|
|
|
// ~ .textFieldIcon {
|
|
|
|
// background: $red;
|
|
|
|
// border-color: $red;
|
|
|
|
// color: #fff;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// .formTouched .checkboxInput:invalid {
|
|
|
|
// ~ .checkbox {
|
|
|
|
// border-color: $red;
|
|
|
|
// }
|
|
|
|
// }
|