/**
 * Copyright 2019 H-UI [ @author Mac.Manon @email fastapp@139.com ]
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use
 * this file except in compliance with the License.  You may obtain a copy of the
 * License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations under the License.
 *
 */

@import "./variables";

.form-group {
    flex-direction: column;
    margin-bottom: @font-size-base * 0.5;
    &-default {
        flex-direction: column;
        width: 100%;
        padding: 12px 0px;
    }
    &-label-default {
        font-size: @font-size-base;
        line-height: @font-size-base * 1.2;
        font-weight: bold;
        margin-bottom: 12px;
    }
    &-control-default {
        width: 100%;
        height: @font-size-base * 2.5;
        padding: 12px;
        font-size: @font-size-base;
        line-height: @font-size-base * 1.42857143;
    }
    &-horizontal {
        width: 100%;
        padding: 12px 0px;
        align-items: center;
    }
    &-label-horizontal {
        width:100%;
        padding-right: 12px;
        font-size: @font-size-base;
        line-height: @font-size-base * 1.2;
    }
    &-control-horizontal {
        width: 100%;
        height: @font-size-base * 2.5;
        padding: 12px;
        font-size: @font-size-base;
        line-height: @font-size-base * 1.42857143;
    }
    &-control-right {
        text-align: right;
    }
}
.form-error{
    text {
        color: @color-danger;
        line-height: @font-size-base * 1.5;
    }
}
.form-control-no-border{
    border-bottom-color: @color-border;
    border-bottom-width: 2px;
}
.form-control-focus {
    border-width: 2px;
    border-radius: 8px;
    border-color: @color-info;
}
.form-control-border-default {
    border-width: 2px;
    border-radius: 8px;
    border-color: @color-border;
}
.has-success {
    border-width: 2px;
    border-radius: 8px;
    border-color: @color-success;
}
.has-warning {
    border-width: 2px;
    border-radius: 8px;
    border-color: @color-warning;
}
.has-error {
    border-width: 2px;
    border-radius: 8px;
    border-color: @color-danger;
}