app/react/App/scss/elements/_controls.scss
.btn,
.form-control,
.input-group-addon {
transition: all 100ms;
}
@mixin btn($color, $colorHover) {
background: $color;
border-color: $color;
&:hover,
&:focus {
background: $colorHover;
}
}
.btn-primary {
@include btn($c-primary, $c-primary-dark);
}
.btn-default.btn-disabled {
&,
&:hover,
&:focus,
&:active {
pointer-events: none;
cursor: default;
background: $c-white;
border-color: $c-grey;
color: $c-grey-dark;
}
}
.btn-outline-success {
color: $c-success;
border-color: $c-success;
}
.btn-outline-danger {
color: $c-danger;
border-color: $c-danger;
}
.btn-outline-primary {
color: $c-primary;
border-color: $c-primary;
}
.btn-outline-secondary {
color: $c-black;
border-color: $c-black;
}
.btn-outline-warning {
color: $c-warning;
border-color: $c-warning;
}
.btn-hover-success:hover {
background-color: $c-success;
border-color: $c-success-dark;
color: $c-white;
}
.btn-hover-danger:hover {
background-color: $c-danger;
border-color: $c-danger-dark;
color: $c-white;
}
.btn-color {
font-size: $f-size-sm;
color: $c-white;
padding: 1px 5px;
line-height: 1.5;
border-radius: 3px;
border: 1px solid rgba(0, 0, 0, 0.2);
//cursor: pointer;
}
.btn-color-0 {
background-color: $c-type-0;
}
.btn-color-1 {
background-color: $c-type-1;
}
.btn-color-2 {
background-color: $c-type-2;
}
.btn-color-3 {
background-color: $c-type-3;
}
.btn-color-4 {
background-color: $c-type-4;
}
.btn-color-5 {
background-color: $c-type-5;
}
.btn-color-6 {
background-color: $c-type-6;
}
.btn-color-7 {
background-color: $c-type-7;
}
.btn-color-8 {
background-color: $c-type-8;
}
.btn-color-9 {
background-color: $c-type-9;
}
.btn-color-10 {
background-color: $c-type-10;
}
.btn-color-11 {
background-color: $c-type-11;
}
.btn-color-12 {
background-color: $c-type-12;
}
.btn-color-13 {
background-color: $c-type-13;
}
.btn-color-14 {
background-color: $c-type-14;
}
.btn-color-15 {
background-color: $c-type-15;
}
.btn-color-16 {
background-color: $c-type-16;
}
.btn-color-17 {
background-color: $c-type-17;
}
.btn-color-18 {
background-color: $c-type-18;
}
.color-0 {
color: $c-type-0;
}
.color-1 {
color: $c-type-1;
}
.color-2 {
color: $c-type-2;
}
.color-3 {
color: $c-type-3;
}
.color-4 {
color: $c-type-4;
}
.color-5 {
color: $c-type-5;
}
.color-6 {
color: $c-type-6;
}
.color-7 {
color: $c-type-7;
}
.color-8 {
color: $c-type-8;
}
.color-9 {
color: $c-type-9;
}
.color-10 {
color: $c-type-10;
}
.color-11 {
color: $c-type-11;
}
.color-12 {
color: $c-type-12;
}
.color-13 {
color: $c-type-13;
}
.color-14 {
color: $c-type-14;
}
.color-15 {
color: $c-type-15;
}
.color-16 {
color: $c-type-16;
}
.color-17 {
color: $c-type-17;
}
.color-18 {
color: $c-type-18;
}
.btn-header {
position: absolute;
right: 40px;
top: 9px;
height: 30px;
}
.form-control {
height: 32px;
border-color: $c-grey;
box-shadow: none;
}
input[type='number'].form-control {
&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button {
margin: 0;
appearance: none;
}
}
.form-group {
&.has-error .required {
color: $c-danger;
}
div.alert {
border: 0;
}
&.image,
&.media {
img,
.video-container {
margin-top: auto;
margin-bottom: auto;
margin-left: 0px;
margin-right: 0px;
display: block;
}
}
}
.form-group-label {
font-size: $f-size-sm;
text-transform: uppercase;
letter-spacing: 0.1em;
color: $c-grey-dark;
margin-bottom: 5px;
}
.input-group {
label {
padding-left: 0;
background-color: $c-grey-light;
border-left: 0;
box-shadow: none;
cursor: pointer;
}
}
.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-right: 0;
}
.error {
display: none;
}
.form-group-radio.has-error {
color: $c-danger;
}
.has-error {
background: #fff1f1;
.input-group-addon {
position: relative;
background-color: $c-danger-light;
color: $c-danger;
border-color: $c-danger;
}
.form-control {
border-color: $c-danger;
}
.error-message {
color: $c-danger;
}
.error {
display: block;
position: absolute;
top: 115%;
left: 0%;
font-size: $f-size-sm;
color: $c-danger;
.fa {
margin-right: 3px;
}
}
}
.validation-error {
color: $c-danger;
position: relative;
top: 1px;
height: 0;
font-weight: bold;
font-size: $f-size-sm;
&-centered {
width: 100%;
text-align: center;
}
}
.error {
display: inherit;
}
.btn {
outline: none !important;
a {
color: $c-grey-dark;
text-decoration: none;
}
&:hover .tab-link-tooltip {
display: block;
}
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
background: $c-white;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
.input-group-addon[disabled],
input[type='radio'][disabled] ~ label,
input[type='checkbox'][disabled] ~ label {
opacity: 0.3;
cursor: not-allowed;
}
.icon-selector,
.clear-field-button {
button {
background: none;
border: none;
font-size: $f-size-xs;
color: $c-primary;
display: block;
margin: 0.2em 0 0 auto;
}
svg {
margin-left: 5px;
}
}
.form-group .icon-selector ul.search__filter {
list-style: none;
border: none;
padding: 0;
}