theme.scss 9.84 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
    .navbar-nav {
        display: table;
31

32 33 34 35
        li {
            float: none;
            display: table-cell;
            padding: 0px 5px;
36 37
        }
    }
38

39
    &>table {
40 41 42 43
        td {
            padding: 3px 2px;
            position: relative;
            transition: width 0.3s !important;
44
        }
45
    }
46

47
    .header-menu {
48
        .dropdown-menu>li>a {
49 50 51 52 53 54 55 56 57
            color: $color_ironside_gray_approx;

            &:hover {
                color: $color_jungle_green_approx;
            }

            i {
                padding-right: 3px;
            }
58
        }
59

60
        td>a {
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
            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;
            }
78
        }
79 80 81
    }
}

82
.sidebar-brand {
83 84
    padding-left: 6px !important;

85
    .logo {
86
        height: 42px;
87 88 89
        padding: 6px;
    }
}
90

91 92 93
.main-search {
    .form-control {
        border: none;
94 95
        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)
96 97 98 99 100
        box-shadow: none;
        height: 60px;
        font-size: 18px;
        font-style: italic;
    }
101

102 103 104 105 106 107 108 109
    .input-group-addon {
        font-size: 20px;
        color: $color_bombay_approx;
        background: none;
        border: none;
    }
}

110 111 112 113
.close {
    font-size: 2em;
}

114 115 116 117 118 119 120 121 122 123 124 125 126
#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();
        }
127
    }
128 129
}

130
.page-title {
131
    background-color: $color_white_lilac_approx;
132
    padding: 15px 15px 0px 15px;
133

134 135 136 137
    .title {
        padding-top: 0;
        margin-top: 0;
    }
138

139
    h1 {
140 141
        &.title {
            word-break: break-all;
142 143 144
        }

        // margin-top: 50px;
145
        margin-bottom: 10px;
146
        font-weight: 600;
147
        @include ellipsis();
148
        max-width: 91%;
149
        display: inline-block;
150

151 152 153 154 155 156 157 158 159 160 161 162
        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;
        }
    }
163

164 165 166 167 168
    .sub-title {
        margin-bottom: 40px;
    }
}

169 170 171 172 173 174 175 176 177 178 179 180
.sm-title {
    line-height: 30px;
}

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

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

181 182
a {
    color: $color_jungle_green_approx;
183
    cursor: pointer;
184

185 186 187 188
    &:focus {
        color: $color_puerto_rico_approx;
        text-decoration: none;
        outline: none;
189
        cursor: pointer;
190
    }
191

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

199 200 201 202 203
.cursor-default,
.cursor-default a {
    cursor: default;
}

204
.blue-link {
205
    color: $color_havelock_blue_approx;
206

207 208 209 210 211
    &:focus {
        color: $color_havelock_blue_approx;
        text-decoration: none;
        outline: none;
    }
212

213 214 215 216 217 218
    &:hover {
        color: $color_havelock_blue_approx;
        text-decoration: underline;
    }
}

219 220 221 222
a[href^="#!/"]:not(.btn, .not-blue-link) {
    @extend .blue-link;
}

223 224
th {
    text-transform: capitalize;
225 226
}

227 228 229 230 231 232 233 234 235 236 237
ul {
    list-style: none;
}

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

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

240 241 242 243 244 245 246 247 248 249 250 251
    .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
252 253 254 255 256
.white-bg {
    background-color: $white;
    padding: 30px 0;
}

257 258 259 260 261
.gray-text {
    color: $color_star_dust_approx;
}

.gray-bg {
262
    background-color: $color_white_lilac_approx;
263 264
}

265 266 267 268 269 270 271 272 273 274 275
.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;
276

277 278 279
    .comment {
        margin-bottom: 25px;
    }
280

281 282 283 284
    .author {
        color: $color_keppel_approx;
        margin-bottom: 0;
    }
285

286 287 288 289 290
    .date {
        color: $color_star_dust_approx;
    }
}

291 292 293 294 295 296 297 298 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
@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;
}

339 340 341 342
.no-border {
    border: none !important;
}

343 344 345
.position-relative {
    position: relative;
}
346 347 348 349 350

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

351
.ellipsis-with-margin {
352 353 354 355
    @include ellipsis();
    margin-bottom: 10px;
}

356 357 358 359
.ellipsis {
    @include ellipsis();
}

360 361
.readOnlyLink {
    @include ellipsis();
362

363 364 365
    .deleteBtn {
        padding: 0px 5px;
    }
366

367 368 369 370 371 372 373
    a {
        color: $delete_link !important;
    }
}

.add-seperator {
    margin-bottom: 10px;
374 375
    border-bottom: 1px solid $color_mirage_approx;
    padding-bottom: 10px;
376 377 378 379 380 381 382 383 384 385 386 387
}

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

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

.inline-content {
388
    >.inline {
389
        display: inline-block;
390

391
        &+.inline {
392 393 394 395 396 397 398
            margin-left: 5px;
        }
    }
}

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

400
    >.inline {
401 402 403 404 405 406 407
        display: block;
        float: left;
    }
}

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

409
    >.inline {
410
        float: right;
411

412
        &+.inline {
413 414 415 416 417 418
            margin-right: 5px;
        }
    }
}

.has-error {
419

420 421 422 423
    .select2-selection--single,
    .select2-selection--multiple {
        border-color: $color_apple_blossom_approx;
    }
424 425
}

426 427 428 429 430 431 432 433 434 435 436 437 438
.search-entity-icon-box {
    padding: 10px;
    border-radius: 50%;
    width: 25px;
    height: 25px;

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

439 440 441 442 443 444 445 446 447 448 449 450 451 452 453
.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;
    }
454 455 456 457 458
}

.ui-menu.ui-widget-content.ui-autocomplete {
    box-shadow: 0px 11px 30px -8px grey;
    max-width: 60% !important;
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477
    max-height: 70vh;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;

    .ui-autocomplete-category {
        padding: 10px;
        color: #acacac;
        text-transform: capitalize;
    }

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

        span.empty-message {
            padding: 10px;
        }
    }
478 479 480 481 482 483 484 485 486 487 488 489 490 491

    .ui-menu-item {
        padding: 5px 2px;
        color: $color_ironside_gray_approx;

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

492 493 494 495 496 497 498
        span.searched-term {
            display: inline-block;
            padding: 0;
            font-weight: bold;
            color: $black !important;
        }

499 500 501 502 503 504 505 506 507 508 509 510 511 512
        .ui-state-active {
            margin: 0px;
            border: none;
            background: #cee0fa;
            color: $black !important;
        }

        a,
        span {
            padding: 10px;
            display: block;
            color: inherit !important;
        }
    }
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
}

.entityDetail {
    .isIncomplete {
        &.show {
            img {
                opacity: .2;
                animation: blink 2.5s infinite;
            }

            i.fa.fa-refresh {
                display: block;
            }
        }

        i.fa.fa-refresh {
            display: none;
            text-align: center;
            font-size: 20px;
            top: 0;
            position: absolute;
            z-index: 999;
            left: calc(50% - 8px);
        }
    }
538
}