form.scss 10.6 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
.form-horizontal {
    .control-label-sm {
        padding-top: 3px;
    }
26

27 28 29 30
    .control-label-sm-pl {
        @extend .control-label-sm;
        padding-left: 10px;
    }
31

32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    .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;
        }
49

50 51 52 53 54 55 56
        &.text-right {
            text-align: right;
        }
    }

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

60 61 62 63
        &[disabled] {
            background-color: $color_gallery_approx;
        }

64 65 66 67 68 69 70 71 72
        &: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 {
73

74 75 76
    .form-group span[class^="select2-selection select2-selection--"],
    .form-control {
        background-color: #e8e8e8 !important;
77 78 79
    }
}

80 81
.sidebar-wrapper {
    z-index: 9 !important;
82

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

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

textarea {
    resize: none;
96

97 98 99 100 101
    &:focus {
        outline: none !important;
    }
}

102 103 104 105
label {
    font-weight: 600;
}

106 107 108 109 110 111
button:focus {
    outline: none !important;
}

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

114 115 116 117 118 119 120
    &:hover {
        text-decoration: none;
    }
}

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

122 123 124 125
    .btn.checkbox-inline,
    .btn.radio-inline {
        padding-left: 19px;
    }
126 127 128 129 130 131
}

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

133 134 135 136 137 138 139 140 141 142 143
    &: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;
144

145 146 147 148 149
    &:hover {
        color: $white;
        background-color: $color_jungle_green_approx;
        border-color: $color_jungle_green_approx;
    }
150

151 152 153 154 155
    &:focus {
        color: $white;
        background-color: $color_jungle_green_approx;
        border-color: $color_jungle_green_approx;
    }
156 157 158 159 160 161
}

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

163 164 165 166 167
    &:hover {
        color: $white;
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
    }
168

169 170 171 172 173
    &:focus {
        color: $white;
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
    }
174 175 176 177 178 179
}

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

181 182 183 184 185
    &:hover {
        color: $white;
        background-color: $color_gamboge_approx;
        border-color: $color_gamboge_approx;
    }
186

187 188 189 190 191
    &:focus {
        color: $white;
        background-color: $color_gamboge_approx;
        border-color: $color_gamboge_approx;
    }
192 193 194 195 196 197
}

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

199 200 201 202 203
    &:hover {
        color: $white;
        background-color: $color_grenadier_approx;
        border-color: $color_grenadier_approx;
    }
204

205 206 207 208 209
    &:focus {
        color: $white;
        background-color: $color_grenadier_approx;
        border-color: $color_grenadier_approx;
    }
210 211 212 213 214 215
}

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

222 223
    &:hover {
        @include btn-action-effect('default');
224 225
        background-color: $transparent;
    }
226

227
    &:focus {
228 229
        @include btn-action-effect('default');
        background-color: $transparent;
230
    }
231

232 233 234
    &.btn-sm {
        padding: 2px 6px;
    }
235

236
    &.btn-md {
237
        padding: 6px 10px;
238 239 240
    }
}

241 242 243 244
.btn-inline {
    .btn-action {
        margin: 0px 3px 3px 0px;
        display: inline-block;
245 246 247
    }
}

248
.btn-fixed-width {
249 250
    .btn-icon {
        min-width: 100px;
251

252 253 254 255 256
        &.propagte-classification {
            >span {
                width: 98px;
            }
        }
257

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

265 266 267 268
        >i {
            float: right;
            line-height: 15px;
        }
269 270 271 272 273 274
    }
}

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

279
    &.active {
280
        @include btn-action-hover-effect('default');
281
    }
282

283
    &:hover {
284 285
        @include btn-action-hover-effect('default');
        color: $white !important;
286
    }
287

288
    &:focus {
289 290 291 292 293 294
        @include btn-action-effect('default');
    }

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

296 297 298 299 300 301
    &.btn-md {
        padding: 5px 10px;
    }

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

303 304 305
        &.active {
            @include btn-action-hover-effect('blue');
        }
306

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

311 312 313
        &:focus {
            @include btn-action-effect('blue');
        }
314

315 316 317
        &.btn-icon {
            @include btn-action-effect('blue');
            color: $tag_color !important;
318

319 320 321 322
            &:hover {
                color: $color_havelock_blue_approx;
                background-color: $transparent;
            }
323

324 325 326 327 328
            >span {
                &:hover {
                    @include btn-action-hover-effect('blue');
                }
            }
329

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

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

343 344 345 346
        i.fa {
            position: relative;
            right: -5px;
        }
347

348 349 350 351
        &:hover {
            color: $white;
            background-color: $action_gray;
        }
352
    }
353

354 355 356 357
    &.btn-icon {
        padding: 0px;
        overflow: hidden;
        background-color: $transparent;
358

359 360 361 362
        &:hover {
            color: $color_keppel_approx;
            background-color: $transparent;
        }
363

364 365
        >span {
            padding: 5px;
366

367 368 369 370
            &:hover {
                @include btn-action-hover-effect('default');
            }
        }
371

372 373 374 375
        i.fa {
            position: relative;
            padding: 5px;
            cursor: pointer;
376

377 378 379 380 381
            &:hover {
                @include btn-action-hover-effect('default');
            }
        }
    }
382

383 384 385 386 387 388
    &.btn-icon-pd {
        i.fa {
            padding: 5px;
            cursor: pointer;
        }
    }
389
}
390

391
.btn-group {
392

393 394 395 396 397 398
    .btn-atlas,
    .btn-action {
        margin: 0px;
    }
}

399 400
.pagination>.active {
    >a {
401 402
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
403

404 405 406 407
        &:focus {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
408

409 410 411 412 413
        &:hover {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
    }
414 415

    >span {
416 417
        background-color: $color_curious_blue_approx;
        border-color: $color_curious_blue_approx;
418

419 420 421 422
        &:focus {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
423

424 425 426 427 428 429
        &:hover {
            background-color: $color_curious_blue_approx;
            border-color: $color_curious_blue_approx;
        }
    }
}
430 431 432 433 434

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

437 438
    &:hover {
        border-color: $color_mountain_mist_approx;
439
        color: $color_mountain_mist_approx !important;
440 441
        background-color: $transparent;
    }
442

443 444 445 446 447 448
    &:focus {
        border-color: $color_mountain_mist_approx;
        color: $color_mountain_mist_approx;
        background-color: $transparent;
    }
}
449 450 451 452

.block {
    display: block !important;
}
453

454 455
.list-style-disc {
    list-style: disc;
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
}

.create-entity-form {

    &.all {
        .attribute-dash-box {
            &.alloptional {
                display: block;
            }
        }
    }

    .attribute-dash-box {
        border-style: dashed;
        border-width: 2px;
        border-spacing: 8px;
        border-radius: 12px;
        border-color: #cbcbcb;
        position: relative;
475
        padding: 18px 10px 0px 10px;
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
        margin-top: 25px;

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

        &.alloptional {
            display: none;
        }

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