ui/app/styles/lacsso/components/_forms.scss

279 lines
5.4 KiB
SCSS

// .form {
// }
// input {
// padding: 12px 20px;
// margin: 8px 0;
// box-sizing: border-box;
// border: solid 2px $mid-grey;
// border-radius: 3px;
// }
select {
// display: block;
// width: 100%;
// height: 50px;
// background-image: none;
// background-color: white;
// border: 1px solid $light-grey;
// font-size: 13px;
// line-height: 1.5;
// border-width: 2px;
// border-color: rgba(204, 209, 211, 0.5);
display: block;
width: 100%;
box-sizing: border-box;
border-width: 2px;
border-color: rgba($mid-grey, .4);
border-radius: 0;
background: rgba($light-grey, .3);
outline: none;
padding: 10px;
font-size: 15px;
transition: all ease-in-out .3s;
-webkit-appearance: none;
position: relative;
background-image: url(images/dropdown-arrow.svg);
background-repeat: no-repeat;
background-size: 15px 10px;
background-position: calc(100% - 10px) center;
}
form {
display: block;
position: relative;
}
label {
color: $mid-grey;
}
input[type='checkbox'] {
cursor: pointer;
}
input[type='text'],
input[type='password'],
input[type='number'],
input[type='date'],
input[type='email'],
input[type='search'],
input[type='tel'],
input[type='url'],
textarea {
display: block;
width: 100%;
box-sizing: border-box;
border-width: 2px;
border-color: $light-grey;
border-radius: 0;
border-style: solid;
background: rgba($light-grey, .2);
outline: none;
padding: 10px;
font-size: 15px;
transition: all ease-in-out .3s;
@include placeholder {
color: $mid-grey;
}
&.error {
border-color: $error;
background: rgba($error, .05);
@include placeholder {
color: $error;
}
}
&.success {
border-color: $success;
background: rgba($success, .05);
@include placeholder {
color: $success;
}
}
&.warning {
border-color: $warning;
background: rgba($warning, .05);
@include placeholder {
color: $warning;
}
}
&:hover {
border-color: $mid-grey;
background: rgba($mid-grey, .2);
@include placeholder {
color: $mid-grey;
}
}
&.disabled {
@extend .bg-disabled;
border-color: $dark-grey;
cursor: not-allowed;
@include placeholder {
color: $dark-grey;
}
}
&:focus {
background: rgba($info, .2);
border-color: $info;
@include placeholder {
color: $info;
}
}
}
///inline forms
.inline-form {
.inline-label {
padding: 15px 0;
}
.btn {
border-radius: 0;
overflow: hidden;
// padding: 16px;
position: relative;
&:after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 3px;
background-color: rgba(0, 0, 0, .3);
}
}
.input-label {
@extend .btn;
// @extend .gutless;
display: block;
&.input-xs {
padding: 2px 3px;
line-height: initial;
font-size: .65em;
}
&.input-sm {
padding: 5px 10px;
font-size: 0.87em;
}
&.input-lg {
padding: 18px 30px;
font-size: 1.25em;
}
}
}
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
.input-group {
position: relative;
display: table;
border-collapse: separate;
}
.input-group .form-control {
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.input-group .form-control:focus {
z-index: 3;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: table-cell;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon,
.input-group-btn {
width: 1%;
white-space: nowrap;
vertical-align: middle;
}
.input-group-addon {
@extend .input-label;
padding: 6px 12px;
font-size: 14px;
font-weight: normal;
line-height: 1;
text-align: center;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0;
}
.input-group-addon:first-child {
border-right: 0;
}
.input-group-addon:last-child {
border-left: 0;
}
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:hover,
.input-group-btn > .btn:focus,
.input-group-btn > .btn:active {
z-index: 2;
}
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group {
margin-right: -1px;
}
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
z-index: 2;
margin-left: -1px;
}
//input sizes
.input-xs,
input.input-xs {
padding: 2px 3px;
line-height: initial;
font-size: .65em;
}
.input-sm,
input.input-sm {
padding: 5px 10px;
font-size: 0.87em;
}
.input-lg,
input.input-lg {
padding: 18px 30px;
font-size: 1.25em;
}