theme.scss 11.3 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
/* theme.scss */

19 20 21
body {
    font-family: $font_0, $font_1;
    color: $color_ironside_gray_approx;
22
    overflow-x: hidden;
23 24
}

25
header.atlas-header {
26 27 28
    background-color: $white;
    border-bottom: 1px $color_mystic_approx solid;

29 30 31 32
    table {
        width: 100%;
    }

33 34
    .navbar-nav {
        display: table;
35

36 37 38 39
        li {
            float: none;
            display: table-cell;
            padding: 0px 5px;
40 41
        }
    }
42

43
    &>table {
44 45 46 47
        td {
            padding: 3px 2px;
            position: relative;
            transition: width 0.3s !important;
48
        }
49
    }
50

51
    .header-menu {
52
        .dropdown-menu>li>a {
53 54 55 56 57 58 59 60 61
            color: $color_ironside_gray_approx;

            &:hover {
                color: $color_jungle_green_approx;
            }

            i {
                padding-right: 3px;
            }
62
        }
63

64
        td>a {
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
            display: inline-block;
            color: $color_ironside_gray_approx;
            padding: 15px 14px;

            &:hover {
                border-bottom: 2px solid $color_jungle_green_approx;
                padding: 14px 14px;
                color: $color_jungle_green_approx;
            }

            span {
                padding: 5px;
            }

            i {
                font-size: 18px;
            }
82
        }
83 84 85
    }
}

86
.sidebar-brand {
87 88
    padding-left: 6px !important;

89
    .logo {
90
        height: 42px;
91 92 93
        padding: 6px;
    }
}
94

95 96 97
.main-search {
    .form-control {
        border: none;
98 99
        border-left: 1px $color_mystic_approx solid; //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
        border-radius: 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)
100 101 102 103 104
        box-shadow: none;
        height: 60px;
        font-size: 18px;
        font-style: italic;
    }
105

106 107 108 109 110 111 112 113
    .input-group-addon {
        font-size: 20px;
        color: $color_bombay_approx;
        background: none;
        border: none;
    }
}

114 115 116 117
.close {
    font-size: 2em;
}

118 119 120 121 122 123 124 125 126 127 128 129 130
#sidebar-wrapper {
    background: $color_tuna_approx;

    #sideNav-wrapper {
        color: $white;
        font-size: 16px !important;

        .well {
            background: transparent;
            border: 1px solid #666363;
            overflow: hidden;
            @include clearfix();
        }
131 132 133 134

        .tab-content>.tab-pane.active {
            padding: 18px;
        }
135
    }
136 137
}

138
.page-title {
139
    background-color: $color_white_lilac_approx;
140
    padding: 15px 15px 0px 15px;
141

142 143 144 145
    .title {
        padding-top: 0;
        margin-top: 0;
    }
146

147
    h1 {
148 149
        &.title {
            word-break: break-all;
150 151 152
        }

        // margin-top: 50px;
153
        margin-bottom: 10px;
154
        font-weight: 600;
155
        @include ellipsis();
156
        max-width: 91%;
157
        display: inline-block;
158

159 160 161 162 163 164 165 166 167 168 169 170
        small {
            position: relative;
            bottom: 5px;
            margin-left: 15px;
            padding-left: 15px;
            border-left: 1px $color_mystic_approx solid;
            color: $color_bombay_approx;
            font-size: 40%;
            font-weight: 600;
            text-transform: uppercase;
        }
    }
171

172 173 174 175 176
    .sub-title {
        margin-bottom: 40px;
    }
}

177 178 179 180 181 182 183 184 185 186 187 188
.sm-title {
    line-height: 30px;
}

.md-title {
    line-height: 34px;
}

.lg-title {
    line-height: 40px;
}

189 190
a {
    color: $color_jungle_green_approx;
191
    cursor: pointer;
192

193 194 195 196
    &:focus {
        color: $color_puerto_rico_approx;
        text-decoration: none;
        outline: none;
197
        cursor: pointer;
198
    }
199

200 201 202
    &:hover {
        color: $color_puerto_rico_approx;
        text-decoration: none;
203
        cursor: pointer;
204 205 206
    }
}

207 208 209 210 211
.cursor-default,
.cursor-default a {
    cursor: default;
}

212
.blue-link {
213
    color: $color_havelock_blue_approx;
214

215 216 217 218 219
    &:focus {
        color: $color_havelock_blue_approx;
        text-decoration: none;
        outline: none;
    }
220

221 222 223 224 225 226
    &:hover {
        color: $color_havelock_blue_approx;
        text-decoration: underline;
    }
}

227 228 229 230
a[href^="#!/"]:not(.btn, .not-blue-link) {
    @extend .blue-link;
}

231 232
th {
    text-transform: capitalize;
233 234
}

235 236 237 238 239 240 241 242 243 244 245
ul {
    list-style: none;
}

hr[size="10"] {
    margin: 10px 0px;
}

.table {
    margin-bottom: 2px;
    background-color: $white;
246
    max-width: none;
247

248 249 250 251 252 253 254 255 256 257 258 259
    .table {
        width: auto;
    }
}

.card {
    background: $white none repeat scroll 0 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: 0 1px 3px $black_30;
    margin-bottom: 30px;
}

// Colors Class
260 261 262 263 264
.white-bg {
    background-color: $white;
    padding: 30px 0;
}

265 266 267 268 269
.gray-text {
    color: $color_star_dust_approx;
}

.gray-bg {
270
    background-color: $color_white_lilac_approx;
271 272
}

273 274 275 276 277 278 279 280 281 282 283
.comment-input {
    background-color: $color_white_lilac_approx;
    padding: 20px;
    font-size: 16px;
    margin-bottom: 20px;
}

.comment-box {
    padding: 25px 0;
    margin-top: 25px;
    border-top: 1px $color_mystic_approx solid;
284

285 286 287
    .comment {
        margin-bottom: 25px;
    }
288

289 290 291 292
    .author {
        color: $color_keppel_approx;
        margin-bottom: 0;
    }
293

294 295 296 297 298
    .date {
        color: $color_star_dust_approx;
    }
}

299 300 301 302 303 304 305 306 307 308 309 310 311 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 343 344 345 346
@media (min-width: 768px) {
    .col-sm-custom {
        //width: 92%;
        margin: 25px 25px 0px;
        position: relative;
    }
}

.no-padding {
    padding: 0px !important;
}

.no-padding-bottom {
    padding-bottom: 0px !important;
}

.no-padding-top {
    padding-top: 0px !important;
}

.no-padding-left {
    padding-left: 0px !important;
}

.no-padding-right {
    padding-right: 0px !important;
}

.no-margin {
    margin: 0px !important;
}

.no-margin-bottom {
    margin-bottom: 0px !important;
}

.no-margin-top {
    margin-top: 0px !important;
}

.no-margin-left {
    margin-left: 0px !important;
}

.no-margin-right {
    margin-right: 0px !important;
}

347 348 349 350
.no-border {
    border: none !important;
}

351 352 353 354
.no-pointer {
    pointer-events: none;
}

355 356 357
.position-relative {
    position: relative;
}
358 359 360 361 362

.pagination-box {
    margin-top: 15px;
}

363
.ellipsis-with-margin {
364 365 366 367
    @include ellipsis();
    margin-bottom: 10px;
}

368 369 370 371
.ellipsis {
    @include ellipsis();
}

372 373
.readOnlyLink {
    @include ellipsis();
374

375 376 377
    .deleteBtn {
        padding: 0px 5px;
    }
378

379 380 381 382 383 384 385
    a {
        color: $delete_link !important;
    }
}

.add-seperator {
    margin-bottom: 10px;
386 387
    border-bottom: 1px solid $color_mirage_approx;
    padding-bottom: 10px;
388 389 390 391 392 393 394 395 396 397 398 399
}

.legend-sm {
    font-size: 17px;
}

.errorClass {
    border: 1px solid red !important;
    box-shadow: none !important;
}

.inline-content {
400
    >.inline {
401
        display: inline-block;
402

403
        &+.inline {
404 405 406 407 408 409 410
            margin-left: 5px;
        }
    }
}

.inline-content-fl {
    @extend .inline-content;
411

412
    >.inline {
413 414 415 416 417 418 419
        display: block;
        float: left;
    }
}

.inline-content-fr {
    @extend .inline-content-fl;
420

421
    >.inline {
422
        float: right;
423

424
        &+.inline {
425 426 427 428 429 430
            margin-right: 5px;
        }
    }
}

.has-error {
431

432 433 434 435
    .select2-selection--single,
    .select2-selection--multiple {
        border-color: $color_apple_blossom_approx;
    }
436 437
}

438 439 440 441 442 443 444 445 446 447 448 449 450
.search-entity-icon-box {
    padding: 10px;
    border-radius: 50%;
    width: 25px;
    height: 25px;

    img {
        width: 25px;
        height: 25px;
        cursor: default;
    }
}

451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
.entity-icon-box {
    display: inline-block;
    background: #cee0fa;
    padding: 10px;
    border-radius: 50%;
    min-width: 76.25px;
    min-height: 70px;

    &.disabled {
        background: #e3e3e3;
    }

    img {
        height: 50px;
    }
466 467 468 469 470
}

.ui-menu.ui-widget-content.ui-autocomplete {
    box-shadow: 0px 11px 30px -8px grey;
    max-width: 60% !important;
471 472 473 474 475 476
    max-height: 70vh;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;

    .ui-autocomplete-category {
477
        padding: 5px 15px;
478 479 480 481 482 483 484 485 486 487 488 489
        color: #acacac;
        text-transform: capitalize;
    }

    li.empty {
        padding: 5px 2px;
        line-height: 45px;

        span.empty-message {
            padding: 10px;
        }
    }
490 491

    .ui-menu-item {
492
        padding: 2px 2px;
493 494 495 496 497 498 499 500 501 502 503
        color: $color_ironside_gray_approx;

        &.with-icon {
            img {
                height: 25px;
                width: 30px;
                margin-right: 10px;
                background: none;
            }
        }

504 505 506 507 508 509 510
        span.searched-term {
            display: inline-block;
            padding: 0;
            font-weight: bold;
            color: $black !important;
        }

511 512 513 514 515 516 517 518 519
        .ui-state-active {
            margin: 0px;
            border: none;
            background: #cee0fa;
            color: $black !important;
        }

        a,
        span {
520
            padding: 6px 10px;
521 522 523 524
            display: block;
            color: inherit !important;
        }
    }
525 526
}

527
td.searchTableName:hover {
528
    .isIncomplete {
529 530 531
        &.show.search-result-page {
            i {
                left: 7px;
532
            }
533 534 535 536
        }
    }
}

537 538 539 540 541 542 543 544 545 546 547
.globalsearchImgItem.isIncomplete {
    display: inline-block !important;
    position: relative;

    i.fa {
        left: 10px;
        top: 7px;
        font-size: 12px;
    }
}

548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
.isIncomplete {
    &.show {
        img {
            opacity: .2;
            //animation: blink 2.5s infinite;
        }

        i.fa {
            display: block;
        }

        .entity-icon-box {
            background: none;

            i.fa {
                top: 27px;
                font-size: 18px;
            }
        }
567

568 569 570 571 572 573 574 575

        foreignObject {
            display: block;

            i.fa {
                font-size: 15px;
                top: 17px;
                left: 18.5px;
576 577 578
            }
        }

579 580
        image,
        circle {
581 582
            opacity: 0.2;
            //animation: blink 2.5s infinite;
583
        }
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610

        &.search-result-page {
            position: relative;

            i {
                left: 13px;
                font-size: 9px;
                top: 5px;
            }

        }

    }

    foreignObject {
        display: none;
    }

    i.fa {
        color: #898989;
        display: none;
        text-align: center;
        font-size: 16px;
        top: 0;
        position: absolute;
        z-index: 1;
        left: calc(50% - 8px);
611
    }
612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
}

.dropzone {
    border-radius: 10px;
    border: 2px dashed $color_havelock_blue_approx;

    .dz-default.dz-message {
        font-weight: 500;
        font-size: 20px;
    }

    &.single-file-center {
        .dz-file-preview {
            margin-left: calc(50% - 68px);
        }
    }
}

.dropzone-modal {
    .modal-body {
        background: $color_white_lilac_approx;
    }
634
}