form.scss 11.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// 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.
16

17 18
/* form.scss */

19 20 21 22
.form-horizontal {
    .control-label-sm {
        padding-top: 3px;
    }
23

24 25 26 27
    .control-label-sm-pl {
        @extend .control-label-sm;
        padding-left: 10px;
    }
28

29 30 31 32 33 34 35 36 37 38
    .control-label-sm-pr {
        @extend .control-label-sm;
        padding-right: 10px;
    }
}

.form-group {
    .required:after {
        content: "*";
        padding-left: 1%;
39
        color: $red;
40 41 42 43 44 45
    }

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

47 48 49 50 51 52 53
        &.text-right {
            text-align: right;
        }
    }

    .form-control {
        //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
54
        background-color: $color_white_lilac_approx;
55
        border: 1px $color_mystic_approx solid;
56

57 58 59 60
        &[disabled] {
            background-color: $color_gallery_approx;
        }

61 62 63 64 65 66 67 68 69
        &: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 {
70

71 72
    .form-group span[class^="select2-selection select2-selection--"],
    .form-control {
73
        background-color: $color_form_control !important;
74 75 76
    }
}

77 78
.sidebar-wrapper {
    z-index: 9 !important;
79

80 81 82 83
    .form-control {
        background-color: $white;
        border: 1px $white solid;
    }
84 85 86 87 88 89 90 91 92
}

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

textarea {
    resize: none;
93

94 95 96 97 98
    &:focus {
        outline: none !important;
    }
}

99 100 101 102
label {
    font-weight: 600;
}

103 104 105 106 107 108
button:focus {
    outline: none !important;
}

.btn {
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
109
    border-radius: 4px;
110

111 112 113 114 115 116 117
    &:hover {
        text-decoration: none;
    }
}

[class^="col-md-"],
[class^="col-sm-"] {
118

119 120 121 122
    .btn.checkbox-inline,
    .btn.radio-inline {
        padding-left: 19px;
    }
123 124 125 126 127 128
}

.btn-primary {
    color: $white;
    background-color: $color_blue_bayoux_approx;
    border-color: $color_blue_bayoux_approx;
129

130 131 132 133 134 135 136 137 138 139 140
    &: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;
141

142 143 144 145 146
    &:hover {
        color: $white;
        background-color: $color_jungle_green_approx;
        border-color: $color_jungle_green_approx;
    }
147

148 149 150 151 152
    &:focus {
        color: $white;
        background-color: $color_jungle_green_approx;
        border-color: $color_jungle_green_approx;
    }
153 154 155 156 157 158
}

.btn-info {
    color: $white;
    background-color: $color_picton_blue_approx;
    border-color: $color_picton_blue_approx;
159

160 161 162 163 164
    &:hover {
        color: $white;
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
    }
165

166 167 168 169 170
    &:focus {
        color: $white;
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
    }
171 172 173 174 175 176
}

.btn-warning {
    color: $white;
    background-color: $color_yellow_sea_approx;
    border-color: $color_yellow_sea_approx;
177

178 179 180 181 182
    &:hover {
        color: $white;
        background-color: $color_gamboge_approx;
        border-color: $color_gamboge_approx;
    }
183

184 185 186 187 188
    &:focus {
        color: $white;
        background-color: $color_gamboge_approx;
        border-color: $color_gamboge_approx;
    }
189 190 191 192 193 194
}

.btn-danger {
    color: $white;
    background-color: $color_trinidad_approx;
    border-color: $color_trinidad_approx;
195

196 197 198 199 200
    &:hover {
        color: $white;
        background-color: $color_grenadier_approx;
        border-color: $color_grenadier_approx;
    }
201

202 203 204 205 206
    &:focus {
        color: $white;
        background-color: $color_grenadier_approx;
        border-color: $color_grenadier_approx;
    }
207 208 209 210 211 212
}

.btn-atlas {
    padding: 10px 20px;
    background-color: $color_keppel_approx;
    color: $white;
213 214 215
    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)
216
    transition: all 0.3s ease;
217
    margin: 2px;
218

219 220
    &:hover {
        @include btn-action-effect('default');
221 222
        background-color: $transparent;
    }
223

224
    &:focus {
225 226
        @include btn-action-effect('default');
        background-color: $transparent;
227
    }
228

229 230 231
    &.btn-sm {
        padding: 2px 6px;
    }
232

233
    &.btn-md {
234
        padding: 6px 10px;
235 236 237
    }
}

238 239 240 241
.btn-inline {
    .btn-action {
        margin: 0px 3px 3px 0px;
        display: inline-block;
242 243 244
    }
}

245
.btn-fixed-width {
246 247
    .btn-icon {
        min-width: 100px;
248

249 250 251 252 253
        &.propagte-classification {
            >span {
                width: 98px;
            }
        }
254

255 256 257 258 259 260
        >span {
            @include ellipsis();
            float: left;
            width: 76px;
            padding: 2px 5px !important;
        }
261

262 263 264 265
        >i {
            float: right;
            line-height: 15px;
        }
266 267 268 269 270 271
    }
}

.btn-action {
    @extend .btn-atlas;
    @include btn-action-effect('default');
272
    border-radius: 4px;
273 274
    font-size: 14px;
    background-color: $transparent;
275

276
    &.active {
277
        @include btn-action-hover-effect('default');
278
    }
279

280
    &:hover {
281 282
        @include btn-action-hover-effect('default');
        color: $white !important;
283
    }
284

285
    &:focus {
286 287 288 289 290 291
        @include btn-action-effect('default');
    }

    &.btn-sm {
        padding: 2px 6px;
    }
292

293 294 295 296 297 298
    &.btn-md {
        padding: 5px 10px;
    }

    &.btn-blue {
        @include btn-action-effect('blue');
299

300 301 302
        &.active {
            @include btn-action-hover-effect('blue');
        }
303

304 305 306
        &:hover {
            @include btn-action-hover-effect('blue');
        }
307

308 309 310
        &:focus {
            @include btn-action-effect('blue');
        }
311

312 313 314
        &.btn-icon {
            @include btn-action-effect('blue');
            color: $tag_color !important;
315

316 317 318 319
            &:hover {
                color: $color_havelock_blue_approx;
                background-color: $transparent;
            }
320

321 322 323 324 325
            >span {
                &:hover {
                    @include btn-action-hover-effect('blue');
                }
            }
326

327 328 329 330 331 332 333 334 335 336 337 338
            i.fa {
                &:hover {
                    @include btn-action-hover-effect('blue');
                }
            }
        }
    }

    &.btn-disabled {
        border: 1px $action_gray solid;
        color: $action_gray;
        cursor: default;
339

340 341 342 343
        i.fa {
            position: relative;
            right: -5px;
        }
344

345 346 347 348
        &:hover {
            color: $white;
            background-color: $action_gray;
        }
349
    }
350

351 352 353 354
    &.btn-icon {
        padding: 0px;
        overflow: hidden;
        background-color: $transparent;
355

356 357 358 359
        &:hover {
            color: $color_keppel_approx;
            background-color: $transparent;
        }
360

361 362
        >span {
            padding: 5px;
363

364 365 366 367
            &:hover {
                @include btn-action-hover-effect('default');
            }
        }
368

369 370 371 372
        i.fa {
            position: relative;
            padding: 5px;
            cursor: pointer;
373

374 375 376 377 378
            &:hover {
                @include btn-action-hover-effect('default');
            }
        }
    }
379

380 381 382 383 384 385
    &.btn-icon-pd {
        i.fa {
            padding: 5px;
            cursor: pointer;
        }
    }
386
}
387

388
.btn-group {
389

390 391 392 393 394 395
    .btn-atlas,
    .btn-action {
        margin: 0px;
    }
}

396 397
.pagination>.active {
    >a {
398 399
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
400

401 402 403 404
        &:focus {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
405

406 407 408 409 410
        &:hover {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
    }
411 412

    >span {
413 414
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
415

416 417 418 419
        &:focus {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
420

421 422 423 424 425 426
        &:hover {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
    }
}
427 428 429 430 431

.deleteBtn {
    border-color: $color_mountain_mist_approx;
    color: $color_mountain_mist_approx;
    cursor: default;
432
    margin: 5px 10px;
433

434 435
    &:hover {
        border-color: $color_mountain_mist_approx;
436
        color: $color_mountain_mist_approx !important;
437 438
        background-color: $transparent;
    }
439

440 441 442 443 444 445
    &:focus {
        border-color: $color_mountain_mist_approx;
        color: $color_mountain_mist_approx;
        background-color: $transparent;
    }
}
446 447 448 449

.block {
    display: block !important;
}
450

451 452
.list-style-disc {
    list-style: disc;
453 454
}

455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
.has-feedback.align-left {
    .form-control {
        padding-left: 32.5px;
        padding-right: 12px;
    }

    .form-control-feedback {
        top: 10px;
        left: 0px;
        height: 14px
    }
}

.has-feedback.align-left-right-icon {
    position: relative;

    .form-control {
        padding-left: 32.5px;
        padding-right: 32.5px;
    }
475

476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
    .form-control-feedback {
        top: 10px;
        height: 14px;

        &:first-child {
            left: 0;
        }

        &.clearable:last-child {
            right: 0;
            overflow: hidden;
            padding-left: 33px;
            transition: padding 0.4s;
            pointer-events: all;
            cursor: pointer;

            &.in {
                padding-left: 0;
            }
        }
    }
}

.create-entity-form {
500 501 502 503 504 505 506 507 508 509 510 511 512
    &.all {
        .attribute-dash-box {
            &.alloptional {
                display: block;
            }
        }
    }

    .attribute-dash-box {
        border-style: dashed;
        border-width: 2px;
        border-spacing: 8px;
        border-radius: 12px;
513
        border-color: $attribute-dash-box;
514
        position: relative;
515
        padding: 18px 10px 0px 10px;
516 517 518 519 520
        margin-top: 25px;

        span.required:after {
            content: "*";
            padding-left: 1%;
521
            color: $red;
522 523 524 525 526 527 528 529 530 531 532 533 534
        }

        &.alloptional {
            display: none;
        }

        .attribute-type-label {
            background: $white;
            padding: 5px 10px;
            position: absolute;
            top: -16px;
        }
    }
535
}