448 lines
9.5 KiB
SCSS
448 lines
9.5 KiB
SCSS
.form {
|
|
.formRow {
|
|
width: 100%;
|
|
display: block;
|
|
margin-bottom: 20px;
|
|
|
|
&.center-align {
|
|
flex-basis: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
&.err {
|
|
input,
|
|
textarea,
|
|
select {
|
|
@include boxShadow(0 0 5px rgba(red, 0.3));
|
|
border: 2px solid rgba(red, 0.2);
|
|
|
|
&::placeholder {
|
|
color: red;
|
|
}
|
|
}
|
|
|
|
p {
|
|
color: red;
|
|
padding-right: 1%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btnRow {
|
|
text-align: center;
|
|
|
|
button {
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
|
|
.msgBox {
|
|
margin: 20px 0;
|
|
|
|
.inner {
|
|
background: gray;
|
|
@include borderRadius(15px);
|
|
width: 95%;
|
|
padding: 20px;
|
|
margin: 0 auto;
|
|
|
|
&.success {
|
|
background: $green;
|
|
}
|
|
|
|
&.success-link {
|
|
background: $theme;
|
|
@extend %defaultTransition;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
&.error {
|
|
background: $red;
|
|
}
|
|
}
|
|
|
|
p,
|
|
a {
|
|
display: block;
|
|
color: #fff;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
&.form_1 {
|
|
width: 100%;
|
|
background: #fff;
|
|
@include borderRadius(15px);
|
|
padding: 40px 20px;
|
|
|
|
.formRow {
|
|
select {
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
border: 2px solid transparent;
|
|
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
|
|
outline: none;
|
|
padding: 10px 10px 10px 30px;
|
|
position: relative;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512' fill='rgba(0,0,0,0.4)'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
|
|
background-size: 10px;
|
|
-webkit-background-size: 10px;
|
|
background-repeat: no-repeat;
|
|
background-position: 0 50%;
|
|
cursor: pointer;
|
|
color: rgba(#000, 0.5);
|
|
|
|
option {
|
|
padding: 10px;
|
|
|
|
&:disabled {
|
|
color: rgba(#000, 0.4);
|
|
}
|
|
}
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
width: 95%;
|
|
display: block;
|
|
margin: 0 auto;
|
|
border: 2px solid transparent;
|
|
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
|
|
outline: none;
|
|
padding: 10px;
|
|
background: transparent;
|
|
|
|
&:focus {
|
|
@include boxShadow(0 0 3px rgba($theme, 0.2));
|
|
border: 2px solid rgba($theme, 0.1);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: rgba(#000, 1);
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
max-width: 95%;
|
|
min-width: 95%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.form_2 {
|
|
width: 100%;
|
|
background: #fff;
|
|
padding: 40px 20px;
|
|
|
|
@media (max-width: 575px) {
|
|
padding: 40px 0;
|
|
}
|
|
|
|
.title {
|
|
padding-right: 15px;
|
|
}
|
|
|
|
.formRow {
|
|
width: 100%;
|
|
display: block;
|
|
margin-bottom: 20px;
|
|
|
|
select {
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
border: 2px solid transparent;
|
|
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
|
|
outline: none;
|
|
padding: 10px 10px 10px 30px;
|
|
position: relative;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512' fill='rgba(0,0,0,0.4)'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
|
|
background-size: 10px;
|
|
-webkit-background-size: 10px;
|
|
background-repeat: no-repeat;
|
|
background-position: 0 50%;
|
|
cursor: pointer;
|
|
color: rgba(#000, 0.5);
|
|
|
|
option {
|
|
padding: 10px;
|
|
|
|
&:disabled {
|
|
color: rgba(#000, 0.4);
|
|
}
|
|
}
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
width: 95%;
|
|
display: block;
|
|
margin: 0 auto;
|
|
border: 1px solid transparent;
|
|
outline: none;
|
|
padding: 10px;
|
|
background: rgba(0, 0, 0, 0.05);
|
|
@include borderRadius(25px);
|
|
@include boxSizing(border-box);
|
|
|
|
&:focus {
|
|
@include boxShadow(0 0 3px rgba($theme, 0.2));
|
|
border: 1px solid rgba($theme, 0.1);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: rgba(#000, 0.5);
|
|
}
|
|
|
|
&[type='checkbox'] {
|
|
display: inline-block;
|
|
width: 15px;
|
|
height: 15px;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
@include borderRadius(0);
|
|
@include transform(translateY(3px));
|
|
border: 1px solid transparent;
|
|
|
|
&:checked {
|
|
background: $theme;
|
|
border: 1px solid #000;
|
|
}
|
|
}
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
label {
|
|
cursor: pointer;
|
|
padding-right: 2.5%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.form_3 {
|
|
width: 100%;
|
|
background: #fff;
|
|
padding: 40px 20px;
|
|
border: 1px solid rgba(#000, 0.2);
|
|
|
|
.formRow {
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
select {
|
|
width: 100%;
|
|
display: block;
|
|
margin: 0 auto;
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
border: 1px solid transparent;
|
|
outline: none;
|
|
padding: 10px 10px 10px 30px;
|
|
position: relative;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512' fill='rgba(0,0,0,0.4)'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
|
|
background-size: 10px;
|
|
-webkit-background-size: 10px;
|
|
background-repeat: no-repeat;
|
|
background-position: 5px 50%;
|
|
background-color: #e0e6ed;
|
|
cursor: pointer;
|
|
color: rgba(#000, 0.5);
|
|
|
|
option {
|
|
padding: 10px;
|
|
|
|
&:disabled {
|
|
color: rgba(#000, 0.4);
|
|
}
|
|
}
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
@extend %appearance;
|
|
@extend %defaultTransition;
|
|
width: 100%;
|
|
display: block;
|
|
margin: 0 auto;
|
|
border: 1px solid transparent;
|
|
outline: none;
|
|
padding: 10px;
|
|
background-color: #e0e6ed;
|
|
@include boxSizing(border-box);
|
|
|
|
&:focus {
|
|
@include boxShadow(0 0 3px rgba($theme, 0.2));
|
|
border: 1px solid rgba($theme, 0.1);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: rgba(#000, 0.5);
|
|
}
|
|
|
|
&[type='checkbox'] {
|
|
display: inline-block;
|
|
width: 15px;
|
|
height: 15px;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
@include transform(translateY(3px));
|
|
border: 1px solid transparent;
|
|
|
|
&:checked {
|
|
background: $theme;
|
|
border: 1px solid #000;
|
|
}
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
max-width: 100%;
|
|
min-width: 100%;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
label {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.form_4 {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.formRow {
|
|
border-top: 1px solid #000;
|
|
border-bottom: 1px solid #000;
|
|
padding: 5px 10px;
|
|
margin-bottom: 0;
|
|
flex-basis: 50%;
|
|
flex-wrap: wrap;
|
|
|
|
@media (max-width: 768px) {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
&:nth-child(odd) {
|
|
border-left: 1px solid #000;
|
|
|
|
@media (max-width: 768px) {
|
|
border-left: none;
|
|
}
|
|
}
|
|
|
|
&.full {
|
|
flex-basis: 100%;
|
|
border-left: none;
|
|
}
|
|
|
|
&.textarea {
|
|
label {
|
|
flex-wrap: wrap;
|
|
span {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
textarea {
|
|
display: block;
|
|
flex-basis: 100%;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.selectable {
|
|
display: flex;
|
|
|
|
span {
|
|
display: block;
|
|
font-weight: bold;
|
|
color: #000;
|
|
flex-grow: 0;
|
|
}
|
|
|
|
.options {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding-right: 10px;
|
|
|
|
label {
|
|
flex-direction: row-reverse;
|
|
align-items: center;
|
|
margin-left: 20px;
|
|
direction: rtl;
|
|
cursor: pointer;
|
|
|
|
input {
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
label {
|
|
display: flex;
|
|
|
|
span {
|
|
display: block;
|
|
font-weight: bold;
|
|
color: #000;
|
|
flex-grow: 0;
|
|
}
|
|
|
|
input {
|
|
display: block;
|
|
flex-grow: 1;
|
|
padding-right: 10px;
|
|
border: none;
|
|
background-color: transparent;
|
|
|
|
&:disabled {
|
|
color: green;
|
|
font-weight: bold;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.err {
|
|
input {
|
|
@include boxShadow(none);
|
|
border-bottom: 1px solid rgba(red, 0.2);
|
|
}
|
|
|
|
label {
|
|
span {
|
|
color: red;
|
|
}
|
|
}
|
|
|
|
p {
|
|
font-size: 12px;
|
|
flex-basis: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|