_form.scss 2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
legend {
    border-bottom: 0;
}

input + label {
    font-weight: normal;
}

input[type=text],
input[type=password],
textarea,
select {
    .modal & {
        width: auto;
    }
}

label,
.pseudolabel {
    @extend .control-label;
    min-width: 265px;
    max-width: 100%;
    padding-right: 10px;
    font-weight: normal;
    .form-condensed & {
        min-width: 100px;
        &.pseudolabel {
            min-width: 265px;
        }
    }
    &.input-inline {
        display: inline;
    }
    &.sr-only {
        min-width: 0;
        width:0;
    }
    .form-inline & {
        min-width: 0;
    }
    &.btn,
    .col-md-2 {
        min-width: 0;
    }

    .column-layout &,
    .column &{
        min-width: 0;
    }
}

.pseudolabel {
    vertical-align: top;
    padding-right: 10px;
    display: inline-block;
}

.checkbox .with-label {
    padding-left: 17px;
}

.stacked-label {
    display: inline-block;
    @media (min-width: $screen-sm-min) {
        width:200px;
    }
}

.pieform-fieldset {
    .html {
        @include clearfix;
    }
}

.as-panel form {
    margin-top:0;
}

.main table form {
    margin:0;
}

.wysiwyg label,
.textarea label {
    vertical-align: top;
}
.radio label,
.checkbox label {
    margin-top: 0;
}

.radio-aligned {
    display: inline-block;
}
.no-radio {
    margin-left: 16px;
}

// for multiselect buttons
.select-col {
    width : 100px;
}

.align-with-input {
    display: inline-block;
    margin-left: 0;
    @media (min-width: $screen-sm-min) {
        margin-left: 265px;
    }
}

.form-inline {
    position: relative;
    label {
        display: block;
    }
    .form-group {
        padding: 0;
Liam Sharpe's avatar
Liam Sharpe committed
119
        border-bottom: 0px none;
120
    }
121
122
123
    &.form-inline-align-bottom .form-group{
        vertical-align: bottom;
    }
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
    &.form-short {
        select, input:not(.submit) {
            max-width:100%;
        }
        .form-group:not(.submit) {
            width: 60%;
        }
    }
}

.form-control:disabled {
    color: #aaa;
}

.form-message-inline  {
    vertical-align: top;
}