form.scss 9.63 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */


20 21
/* form.scss */

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
.form-horizontal {
    .control-label-sm {
        padding-top: 3px;
    }
    .control-label-sm-pl {
        @extend .control-label-sm;
        padding-left: 10px;
    }
    .control-label-sm-pr {
        @extend .control-label-sm;
        padding-right: 10px;
    }
}

.form-group {
    .required:after {
        content: "*";
        padding-left: 1%;
        color: $red
    }

    .control-label {
        &.text-left {
            text-align: left;
        }
        &.text-right {
            text-align: right;
        }
    }

    .form-control {
        //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
        background-color: $color_mystic_approx;
        border: 1px $color_mystic_approx solid;
        &:focus {
            border-color: $color_bali_hai_approx;
            outline: 0; //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
            box-shadow: inset 0 1px 1px $black_7_5, 0 0 2px $color_bali_hai_approx;
        }
    }
}

.form-color {
    .form-group span[class^="select2-selection select2-selection--"],
    .form-control {
        background-color: #e8e8e8 !important;
68 69 70
    }
}

71 72 73 74 75 76
.sidebar-wrapper {
    z-index: 9 !important;
    .form-control {
        background-color: $white;
        border: 1px $white solid;
    }
77 78 79 80 81 82 83 84 85 86 87 88 89 90
}

.well {
    background-color: $color_whisper_approx;
    border: 1px solid $color_mystic_approx;
}

textarea {
    resize: none;
    &:focus {
        outline: none !important;
    }
}

91 92 93 94
label {
    font-weight: 600;
}

95 96 97 98 99 100
button:focus {
    outline: none !important;
}

.btn {
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
101 102 103 104 105 106 107 108 109 110 111 112
    border-radius: 4px;
    &:hover {
        text-decoration: none;
    }
}

[class^="col-md-"],
[class^="col-sm-"] {
    .btn.checkbox-inline,
    .btn.radio-inline {
        padding-left: 19px;
    }
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
}

.btn-primary {
    color: $white;
    background-color: $color_blue_bayoux_approx;
    border-color: $color_blue_bayoux_approx;
    &:hover {
        color: $white;
        background-color: $color_pickled_bluewood_approx;
        border-color: $color_pickled_bluewood_approx;
    }
}

.btn-success {
    color: $white;
    background-color: $color_jungle_green_approx;
    border-color: $color_jungle_green_approx;
    &:hover {
        color: $white;
        background-color: $color_jungle_green_approx;
        border-color: $color_jungle_green_approx;
    }
135 136 137 138 139
    &:focus {
        color: $white;
        background-color: $color_jungle_green_approx;
        border-color: $color_jungle_green_approx;
    }
140 141 142 143 144 145 146 147 148 149 150
}

.btn-info {
    color: $white;
    background-color: $color_picton_blue_approx;
    border-color: $color_picton_blue_approx;
    &:hover {
        color: $white;
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
    }
151 152 153 154 155
    &:focus {
        color: $white;
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
    }
156 157 158 159 160 161 162 163 164 165 166
}

.btn-warning {
    color: $white;
    background-color: $color_yellow_sea_approx;
    border-color: $color_yellow_sea_approx;
    &:hover {
        color: $white;
        background-color: $color_gamboge_approx;
        border-color: $color_gamboge_approx;
    }
167 168 169 170 171
    &:focus {
        color: $white;
        background-color: $color_gamboge_approx;
        border-color: $color_gamboge_approx;
    }
172 173 174 175 176 177 178 179 180 181 182
}

.btn-danger {
    color: $white;
    background-color: $color_trinidad_approx;
    border-color: $color_trinidad_approx;
    &:hover {
        color: $white;
        background-color: $color_grenadier_approx;
        border-color: $color_grenadier_approx;
    }
183 184 185 186 187
    &:focus {
        color: $white;
        background-color: $color_grenadier_approx;
        border-color: $color_grenadier_approx;
    }
188 189 190 191 192 193
}

.btn-atlas {
    padding: 10px 20px;
    background-color: $color_keppel_approx;
    color: $white;
194 195 196
    margin-bottom: 10px;
    border: 1px $color_keppel_approx solid; //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 4px; //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
197
    transition: all .3s ease;
198
    margin: 2px;
199 200
    &:hover {
        @include btn-action-effect('default');
201 202 203
        background-color: $transparent;
    }
    &:focus {
204 205
        @include btn-action-effect('default');
        background-color: $transparent;
206
    }
207 208 209 210
    &.btn-sm {
        padding: 2px 6px;
    }
    &.btn-md {
211
        padding: 6px 10px;
212 213 214
    }
}

215 216 217 218
.btn-inline {
    .btn-action {
        margin: 0px 3px 3px 0px;
        display: inline-block;
219 220 221
    }
}

222
.btn-fixed-width {
223 224
    .btn-icon {
        min-width: 100px;
225 226 227 228 229
        &.propagte-classification {
            >span {
                width: 98px;
            }
        }
230 231 232 233 234 235 236 237 238 239
        >span {
            @include ellipsis();
            float: left;
            width: 76px;
            padding: 2px 5px !important;
        }
        >i {
            float: right;
            line-height: 15px;
        }
240 241 242 243 244 245
    }
}

.btn-action {
    @extend .btn-atlas;
    @include btn-action-effect('default');
246
    border-radius: 4px;
247 248
    font-size: 14px;
    background-color: $transparent;
249
    &.active {
250
        @include btn-action-hover-effect('default');
251
    }
252

253
    &:hover {
254 255
        @include btn-action-hover-effect('default');
        color: $white !important;
256
    }
257

258
    &:focus {
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
        @include btn-action-effect('default');
    }

    &.btn-sm {
        padding: 2px 6px;
    }
    &.btn-md {
        padding: 5px 10px;
    }

    &.btn-blue {
        @include btn-action-effect('blue');
        &.active {
            @include btn-action-hover-effect('blue');
        }
        &:hover {
            @include btn-action-hover-effect('blue');
        }
        &:focus {
            @include btn-action-effect('blue');
        }
        &.btn-icon {
            @include btn-action-effect('blue');
            color: $tag_color !important;
            &:hover {
                color: $color_havelock_blue_approx;
                background-color: $transparent;
            }
            >span {
                &:hover {
                    @include btn-action-hover-effect('blue');
                }
            }
            i.fa {
                &:hover {
                    @include btn-action-hover-effect('blue');
                }
            }
        }
    }

    &.btn-disabled {
        border: 1px $action_gray solid;
        color: $action_gray;
        cursor: default;
        i.fa {
            position: relative;
            right: -5px;
        }
        &:hover {
            color: $white;
            background-color: $action_gray;
        }
312
    }
313

314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
    &.btn-icon {
        padding: 0px;
        overflow: hidden;
        background-color: $transparent;
        &:hover {
            color: $color_keppel_approx;
            background-color: $transparent;
        }
        >span {
            padding: 5px;
            &:hover {
                @include btn-action-hover-effect('default');
            }
        }
        i.fa {
            position: relative;
            padding: 5px;
            cursor: pointer;
            &:hover {
                @include btn-action-hover-effect('default');
            }
        }
    }
    &.btn-icon-pd {
        i.fa {
            padding: 5px;
            cursor: pointer;
        }
    }
343
}
344

345 346
.pagination>.active {
    >a {
347 348 349 350 351 352 353 354 355 356 357
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
        &:focus {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
        &:hover {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
    }
358 359

    >span {
360 361 362 363 364 365 366 367 368 369 370 371
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
        &:focus {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
        &:hover {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
    }
}
372 373 374 375 376

.deleteBtn {
    border-color: $color_mountain_mist_approx;
    color: $color_mountain_mist_approx;
    cursor: default;
377
    margin: 5px 10px;
378 379
    &:hover {
        border-color: $color_mountain_mist_approx;
380
        color: $color_mountain_mist_approx !important;
381 382
        background-color: $transparent;
    }
383

384 385 386 387 388 389
    &:focus {
        border-color: $color_mountain_mist_approx;
        color: $color_mountain_mist_approx;
        background-color: $transparent;
    }
}
390 391 392 393

.block {
    display: block !important;
}
394

395 396 397
.list-style-disc {
    list-style: disc;
}