ldc-dam/resources/sass/partials/form.scss

269 lines
3.9 KiB
SCSS
Vendored

/******************************************
FORM
******************************************/
p{
color: $grey2;
margin-bottom: 10px;
}
input[type="text"], input[type="number"], input[type="password"], input[type="date"] , input[type="email"], input[type="url"], select{
border-radius: 3px;
padding: 5px 10px;
border: none;
&.is-invalid{
border: 1px solid #D50C0C;
}
}
textarea{
font-family: "Arial", sans-serif;
border-radius: 3px;
padding: 8px 10px;
font-size: 13px;
border: none;
&.is-invalid{
border: 1px solid #D50C0C;
}
}
input[type="submit"].btn, button.btn, a.btn{
border-radius: 17px;
padding: 9px 19px;
border: none;
color: $white;
background-color: $blue;
transition: background-color 200ms ease-in;
cursor: pointer;
&:hover{
background-color: $lightblue;
}
&.btn-black{
background-color: $dark;
&:hover{
background-color: $lightdark;
}
}
&.btn-red{
background-color: $red;
&:hover{
background-color: $red;
}
}
&.btn-square{
border-radius: 2px;
padding: 8px 14px;
font-weight: bold;
font-size: 12px;
}
}
.ml-10{margin-left: 10px; }
.mr-10{margin-right: 10px; }
.floatr{float: right;}
.floatl{float: left;}
.tright{text-align: right;}
.tleft{text-align: left;}
.tcenter{text-align: center;}
.alert{
color: $white;
padding:10px;
margin-bottom:10px;
display: flex;
align-items: center;
i{
font-size: 26px;
margin-right: 18px;
}
&.alert-danger {
background-color:$red;
}
&.alert-ok {
background-color:$green;
}
}
.invalid-feedback{
color: $red;
margin: 7px 0;
display: block;
}
a{
color: $grey2;
text-decoration: none;
}
.heading{
margin-bottom: 30px;
a{
margin-left: 10px;
display: inline-block;
}
}
h1{
color: $white;
font-size: 24px;
display: inline-block;
}
h3{
color: $white;
font-size: 17px;
display: inline-block;
}
.filter_row{
margin-bottom: 10px;
.right_col{
float: right;
}
.left_col{
float: left;
}
a{
margin-left: 10px;
}
}
table{
width: 100%;
background-color: $grey;
th{
background-color: $grey3;
font-weight: bold;
color: $white;
}
td, th{
padding: 15px 7px;
text-align: left;
a{
color: $lightblue;
text-decoration: underline;
}
}
tr{
border-bottom: 1px solid #505050;
&:nth-child(even){
background-color: $grey3;
}
&:hover{
background-color: rgba(46, 168, 229, 0.2);
}
}
tfoot tr{
background-color: $grey3;
border: none;
&:hover{
background-color: $grey3;
}
}
}
.dataform{
.form-field{
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
margin-top: 10px;
width: 600px;
position: relative;
i.loader{
position: relative;
right: 24px;
color: $blue;
font-size: 19px;
}
input, select, textarea{
width: 255px;
}
label{
min-width: 123px;
}
}
.form-section{
margin-top: 20px;
label{
font-size: 16px;
}
}
.selector_form{
width: 100%;
.selector_filter{
width: 100%;
border: #DFDFDF solid 1px;
border-radius: 0;
padding: 12px 11px;
font-size: 14px;
}
.selector_list{
display: flex;
border: #DFDFDF solid 1px;
.selector_choices{
border-right: #DFDFDF solid 1px;
}
.selector_values{
li:hover:after{
content: "\f056";
font-family: "Font Awesome 5 Pro";
font-weight: 900;
position: absolute;
right: 15px;
font-size: 15px;
}
}
.selector_values, .selector_choices{
background-color: $white;
width: 50%;
height: 152px;
overflow-y: auto;
li{
cursor: pointer;
position: relative;
padding: 6px 5px;
color: $black;
background-color: $white;
&:hover{
background-color: $blue;
color: $white;
}
&.selected{
color: $grey2;
&:hover{
color: $grey2;
background-color: $white;
}
}
}
}
}
}
.button-row{
border-top: 1px solid #505050;
padding: 15px;
width: 100%;
margin-top: 25px;
}
}