_custom.scss 15.8 KB
Newer Older
1 2
// Generic custom css (anything longer than a screen view should have its own component file)

Jen Zajac's avatar
Jen Zajac committed
3 4 5 6 7
#exportgeneration {
    text-align: center;
}

#progress-iframe { // old style progress bars, e.g. portfolio export
8
    border: 1px solid $gray-500;
Jen Zajac's avatar
Jen Zajac committed
9 10 11 12 13 14
    height: 40px;
    width: 100%;
    max-width: 650px;
    margin: 20px 0;
}

15 16
.task-item .complete-task .icon,
.task-item .overdue-task .icon {
17 18 19 20 21
    margin-left: -8px; // correct alignment
}

.task-item .btn-group {
    margin-right: -8px; // correct alignment
22 23 24 25
    a {
        font-size: 10px;
        padding: 2px 8px;
    }
26
}
27

28 29 30 31 32 33 34 35
.no-results {
    @extend .lead;
    clear: both;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

36 37 38 39 40
.no-results-small {
    @extend .no-results;
    padding: 15px 0;
}

41 42 43 44 45 46 47 48 49
.wysiwyg {
    label {
        display:block;
    }
    label  + .mce-tinymce {
        width:100%;
    }
}

50 51 52
.wysiwyg.view-description {
    width: 70%;
}
53 54 55 56 57
.wysiwyg.under-label-help {
    label  + .mce-tinymce {
        width:70%;
    }
}
58

59 60
.toolbar-affix.affix {
    position: fixed;
61
    top: 30px;
62 63 64 65
    z-index: 1;
}

.layoutthumb {
66
    rect.layout1 {
67 68
        fill: scale-color($card-bg, $lightness: -10%);
        stroke: $card-border-color;
69 70 71
    }

    rect.layout0 {
72
        fill: scale-color($card-bg, $lightness: -5.25%);
73

74
        stroke: $card-border-color;
75
    }
76 77

    svg {
78
        @include media-breakpoint-down(md) {
79 80 81
           zoom: 0.8;
       }
    }
82
}
Pat Kira's avatar
Pat Kira committed
83

84 85 86
// Show that layout thumbnails can be clicked (Bug 1543358)
.layoutoption > .thumbnail {
    cursor: pointer;
87 88 89 90 91 92
    // Add border around layout thumbnails
    display: block;
    padding: 4px;
    margin-bottom: 21px;
    line-height: $line-height-base;
    background-color: transparent;
93
    border: 1px solid $card-border-color;
94 95
    border-radius: 2px;
    transition: border .2s ease-in-out;
96
}
97 98 99 100 101 102 103 104
#createcustomlayoutpane .layoutthumb {
    border: 1px solid $card-border-color;
    border-radius: 2px;
    padding: 4px;
    display: table;
    overflow: hidden;
    position: relative;
}
105

Pat Kira's avatar
Pat Kira committed
106 107 108
.blocktype-radio {
    display: none;
}
Naomi Guyer's avatar
Naomi Guyer committed
109 110 111

// see emaillist.tpl
.email-list {
112
    margin-top: 20px;
Naomi Guyer's avatar
Naomi Guyer committed
113
    display: block;
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
    .description:not(.html) {
        padding: 4px 0 0 18px
    }
    .stacked-label {
        width: auto;
        margin-right: 10px;
        vertical-align: super;
    }
    .unvalidated, .unsent, .validated {
        margin-top: 20px;
        &:last-of-type {
            margin-bottom: 20px;
        }
        + .input-group {
            margin: 20px 0;
        }
130
    }
131
    @include media-breakpoint-up(md) {
Naomi Guyer's avatar
Naomi Guyer committed
132
        display: inline-block;
133
        min-width: 400px;
Naomi Guyer's avatar
Naomi Guyer committed
134
    }
135
    @include media-breakpoint-up(xl) {
136
        min-width: 500px;
Naomi Guyer's avatar
Naomi Guyer committed
137 138
    }
}
139 140 141 142 143 144

// Styles for select2 in forms
// overriding select2 default styles
.select2-container-multi {
    max-width: 85% !important;
    display: inline-block;
145
    @include media-breakpoint-up(md) {
146 147
        width: 420px !important;
    }
148
    @include media-breakpoint-up(xl) {
149 150 151 152 153 154 155 156 157 158
        width: 500px !important;
    }
    &.select2-dropdown-open {
        .select2-choices {
            border-radius: 4px 4px 0 0;
        }
    }
    .select2-choices {
        @include box-shadow(0 1px 1px rgba(0, 0, 0, 0.075) inset);
        border-radius: 4px;
159
        background-color: $body-bg;
160
        border: 1px solid $input-border-color;
161 162 163 164 165 166 167
        background-image: none;
        width: 100%;
        .select2-search-choice {
            border: none;
        }
    }
}
Pat Kira's avatar
Pat Kira committed
168

169 170
// Specific card-secondary styling for the edit page layout
.card-secondary.blockinstance > .card-header > .blockinstance-header {
171 172 173 174 175 176
    display: block;
    padding-left: 10px;
    padding-right: 80px;
    word-break: normal;
}

177 178
// Style label institution selection
.institutionselector {
179 180 181 182 183 184
    .select {
        margin-bottom: 15px;
    }
    label {
        font-weight: bold;
    }
185
    @include media-breakpoint-up(md) {
186 187 188 189 190
        float: right;
        width: 50%;
        .form-group {
            float: right;
        }
191
        label {
192 193 194 195 196 197
            display: table-cell;
            width: auto;
        }
        .picker {
            width: auto;
            display: table-cell;
198
        }
199
    }
Liam's avatar
Liam committed
200 201 202
    > form {
        justify-content: flex-end;
    }
203
}
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222

// Reset checkout boxes inside col in portfolio export page
.portfolio-export {
    .heading {
        margin-top: 15px;
    }
    .heading-exportable-pages {
        margin-top: 0;
        float: left;
    }
    .btn-group {
        float: right;
    }
}
.exportable-artefacts {
    .row {
        :first-child {
            clear: both;
        }
223
        border-bottom: 1px solid $list-group-border-color;
224 225 226 227 228 229 230 231 232 233
    }
    .checkbox input[type=checkbox] {
        margin-left: 0;
    }
    label {
        margin-bottom: 10px;
    }
}
.exportable-artefact-container {
    padding: 15px 15px 0;
234
    background-color: rgba($gray-100, 0.2);
235
}
236

Liam Sharpe's avatar
Liam Sharpe committed
237 238 239 240 241
// reset the padding when the individual font file is collapsed in font install
.individualfiles.form-group {
    padding: 0;
    border-bottom: 0 none;
}
242

243
// Login card
244 245 246
.login-externallink {
    display: inline-block;
}
247

248 249 250 251 252 253 254 255 256
.login-related-links {
  .register-link{
    padding-right: 2px;
  }
  .forgotpass-link {
    padding-left: 5px;
  }
}

257 258
.progress-bar {
    position: relative;
259
    height: 100%;
260 261 262 263 264 265 266
    &.small-progress span {
        display: block;
        left: 100%;
        padding-left: 5px;
        position: absolute;
    }
}
267

268 269 270 271 272 273 274
.progress-bar .decompress-link {
    color: $progress-bar-color;
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
}

275 276
// Admin user search page (advanced options)
// limit the size of dynamic to match select box above
277 278 279 280 281 282 283 284
.userserach-filter {
    margin-bottom: 15px;
    .loggedindate-container {
        margin-top: 10px;
        max-width: 250px;
    }
    .duplicateemail-filter {
        margin-top: 10px;
285
        justify-content: flex-start;
286
    }
287 288
}

289 290 291 292 293 294 295 296
// Puts the date picker in form-condensed fields on the next line
.form-condensed {
    .picker {
        &.first {
            margin-left: 270px;
        }
    }
}
297

298 299 300 301 302
// Gallery thumbnails
// override bootstrap thumbnails styling
.thumbnails {
    padding-top: 20px;
    .thumb {
303
        margin: 5px 0px 10px 5px;
304 305 306 307
    }
}
.thumbnail {
    margin: 0 15px 0 0;
308
    .card-body & {
309
        margin-bottom: 10px;
310 311
    }
}
312 313 314 315 316 317 318
.bt-gallery,
.bt-gallery-editor {
    img.frame {
        padding: 3px;
        margin: 0;
        border: 1px solid #ccc;
        background: #fff;
Evonne Cheung's avatar
Evonne Cheung committed
319
        box-shadow: 0 0 3px 5px #f8f8f8;
320
    }
321 322 323 324
    &.card.card-secondary > .block > .card-body {
        overflow: hidden;
        padding: 15px 20px;
    }
325
}
326 327 328 329 330 331 332 333 334 335

//Google apps
.google-app {
    font-style: normal;
    img {
        height: 20px;
    }
    a {
        color: #245dc1;
    }
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
}

// Choose skin
.layoutoptions-container {
    @extend .clearfix;
    margin-top: 15px;
}
.layoutoption,
.skin {
    float: left;
    margin-bottom: 10px;
}

.objectionable-message {
    padding: 0 0 10px 0;
}
Pat Kira's avatar
Pat Kira committed
352 353 354 355 356 357

// Other social media input
#editprofileform_profiletype_other {
    @extend .form-control;
    width: 250px !important;
    margin-top: 10px;
358
    @include media-breakpoint-up(sm) {
Pat Kira's avatar
Pat Kira committed
359 360
        margin-left: 10px;
    }
361
    @include media-breakpoint-up(md) {
Pat Kira's avatar
Pat Kira committed
362 363 364
        margin-top: 0;
    }
}
365 366 367 368 369 370 371 372 373 374 375 376 377 378

// Editgroup membership modal
// see editgroupmemship.tpl
.editgroup-container {
    padding-bottom: 20px;
    margin-bottom: 20px;
    &:last-child {
        border-bottom-width: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .heading {
        margin: 0;
    }
379 380 381
    .checkbox {
        display: inline-block;
    }
382
}
383 384

// Used to make the forum settings look like it should
385
@include media-breakpoint-up(md) {
386 387 388 389 390 391 392
    #edit_interaction_weight_container {
        padding-left: 265px;
        label, span.description {
            margin-left: -265px;
        }
    }
}
393

394
.card > .card-header {
395
    font-size: $font-size-base * 1.14285;
396
}
397 398 399 400 401 402 403

.table thead {
    a::after {
        font-family: 'FontAwesome';
        position: relative;
        top: -3px;
        margin-left: 3px;
404
        color: $gray-300;
405
    }
406
    .asc > a::after {
407 408
        content: '\f0dd';
    }
409 410
    .desc > a::after,
    .sorted > a::after {
411 412 413 414
        content: '\f0de';
        top: 2px;
    }
}
415

416
.containobjectionable {
417
    background-color: $state-danger-bg;
418
}
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435

.permissions-table {
    display: inline-block;
    .editpermissions.table {
        width: auto;
        background-color: rgba(255,255,255,0);
        thead tr th {
            font-weight: 400;
            font-size: 12px;
            padding: 2px 8px 8px;
        }
        thead tr,
        tbody td {
            min-width: 50px;
        }
    }
}
436

437 438 439 440 441
#needprotocolspro {
    padding-left: 10px;
}

#needprotocolsreq {
442 443
    padding-left: 10px;
}
444

445 446
.secreturls .list-group-item,
.iframesources .buttonscell {
447 448 449 450 451 452 453
    .collapse-indicator.open .icon-chevron-down {
        transform: rotate(-180deg);
        transition-duration: 0.3s;
    }
    .collapse-indicator.closed .icon-chevron-down {
        transform: rotate(0deg);
        transition-duration: 0.3s;
454 455
    }
}
456

457
.secreturls .list-group-item {
458 459
    .secret-url {
        word-wrap: break-word;
460 461
    }
}
462 463 464
.iframesources .buttonscell a {
    font-size: 12px;
}
465 466

// Remove the link colour from a comment that has an attachement
467
@include media-breakpoint-up(lg) {
468
    .viewfooter .comment-item .comment-attachment .card.collapsible h4 a.collapsed {
469
        color: $theme-text-color;
470 471
    }
}
472 473 474

#inboxblock .link-block.unread {
    font-weight: bold;
475 476 477 478 479 480 481
}

// Preview image in popup modal
#previewimg {
    display: block;
    margin: 0 auto;
}
482 483 484 485 486 487 488 489 490 491 492 493

// Edit/add skin page
// See templates/skin/index.tpl
.row.skins {
    margin-top: 30px;
    .skin {
        position: relative;
        min-height: 1px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        float: none;
494
        @include media-breakpoint-up(sm) {
495 496 497
            float: left;
            width: 50%;
        }
498
        @include media-breakpoint-up(md) {
499 500 501 502
            width: 33.333333%;
        }
    }
}
503
.manage-skins-btn {
504 505 506
  margin-top: 10px;
  margin-bottom: 20px;
}
507 508 509 510

#auth_config_institutionidp {
    width: 90%;
}
511

512 513 514 515 516
.defaultskin {
    margin-top: 10px;
    margin-bottom: 20px;
}

517 518 519 520 521 522 523 524
.authInstance .authitem {
    padding:5px;
    &.inactive {
        background: $state-warning-bg;
        color: $state-warning-text;
    }
}

525 526
.btn-search.btn.btn-primary.admin-groups.button.btn {
    margin-left: -13px;
527
    margin-top: 2px;
528 529
    vertical-align: text-top;
}
530 531 532 533

.connections button {
    margin-top: 10px;
}
Robert Lyon's avatar
Robert Lyon committed
534 535 536 537 538

.emptybtnspace {
    display: inline-block;
    width: 30px;
}
539 540 541 542

// Make the other license text box align correctly on files page
.fileuploadlicense input[type=text].secondary-textbox,
.fileedittable input[type=text].secondary-textbox {
543
    @include media-breakpoint-up(xl) {
544 545 546
        margin-left: 100px;
    }
}
547 548 549 550 551 552 553

// fix responsive layout for pages and collections grid where sidebar overlaps
.grouppageswrap.view-container:after {
  clear: both;
  content: "";
  display: table;
}
554

555
.notification-parent .bulk-actions label.btn-secondary {
556 557
  padding-bottom: 3px;
}
558 559 560 561

.forassessment label {
  display: inline-block !important;
  margin-top: -25px;
562 563
}

564 565
.accessurl-button {
    margin-bottom: 15px;
566
}
567

568 569 570
#reportconfigform {
    fieldset {
        margin-top: 10px;
571
    }
572 573
    .checkbox.form-group {
        padding: 10px 0;
574
        label {
575 576
            padding-left: 28px;
            display: block;
577 578
        }
        input[type=checkbox] {
579 580
            position: absolute;
            top: 9px;
581
        }
582 583
    }
}
584

585 586 587
.reportsettings {
    margin-top: -5px;
}
588 589 590

.statinfoblock {
    width: 360px;
Evonne Cheung's avatar
Evonne Cheung committed
591 592
    float: left;
    margin-right: 15px;
593 594 595 596

    h3 {
        margin-top: 0;
    }
Evonne Cheung's avatar
Evonne Cheung committed
597 598 599 600 601
    h4 {
        padding: 0 1rem;
        margon: 0;
        font-size: $font-size-base;
    }
602

Evonne Cheung's avatar
Evonne Cheung committed
603 604 605
    table {
        padding: 10px;
    }
606 607 608 609
}

.ownersubtab {
    padding: 4px 0;
610 611 612 613 614 615 616 617
}

.deletion-message {
    float: right;
    position: relative;
    padding: 5px;
    clear: right;
}
618 619

// Used to remove the second border around the legal information
620
#agreetoprivacy .card {
621 622
    border: 0;
}
623 624 625 626 627 628 629 630 631 632 633

.image-rotator {
    height: 110px;
    line-height: 75px;

    .image-rotator-inner {
        display: inline-block;
        text-align: center;
        width: 110px;
    }
}
634 635 636

#searchviews_matchalltags_container {
    width: 300px;
637
    margin-left: 5px;
Evonne Cheung's avatar
Evonne Cheung committed
638
    margin-top: 21px;
639 640 641 642 643
    label {
        margin-left: 28px;
    }
    input {
        margin-left: 3px;
644
        margin-top: -20px;
645
        float: left;
Evonne Cheung's avatar
Evonne Cheung committed
646 647
        width: auto;
        height: auto;
648 649 650 651 652 653 654 655
    }
    div {
        margin-left: 3px;
        padding-top: 0;
        span {
            padding-top: 0;
        }
    }
656 657
}

658 659 660 661 662 663 664 665 666
div.toolbarhtml {
    margin-top: 5px;
    clear: both;
    float: right;
    div {
        text-align: right;
    }
}

667 668 669 670 671 672 673
.assessment-item-buttons {
    .assessbtn + .assessbtn {
        button {
            @include border-left-radius(0);
        }
    }
}
674

675 676 677 678 679 680
#viewinstructions,
.peerinstructions {
    &.with-toolbar {
        margin-right: 20px;
    }
    div.fieldset-body {
681
        background-color: $gray-100 !important;
682
    }
683
}
684 685 686 687 688 689
.viewinstruction-export {
    border: 1px solid $card-border-color;
    padding: 10px 15px;
    margin-bottom: -1px; //remove double border
    background-color: $gray-100 !important;
}
690 691 692 693
.releaseviewform {
    position: relative;
    top: 15px;
}
694 695 696 697 698 699

.field-label-bold {
    label {
        font-weight: bold;
    }
}
700 701
#pendinglist {
    margin-bottom: 0;
702
}
703 704
// Stop btn links displaying as buttons
[type="button"].btn-link,
Liam's avatar
Liam committed
705
a[type="submit"],
706 707
.card-header a[type="button"] {
    -webkit-appearance: none;
708
}
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723

// Used when you really only need flex on an item
.flexbox {
    display: flex;
}

// Add space when there are 2 selects next to each other
.select {
    + .select {
        margin-left: 5px;
    }
    + .submit:not(.input-group-append) {
        margin-left: 5px;
    }
}
724 725 726 727 728

// Removes weird text node between buttons on admin/users/suspended.php
.pieform-fieldset.btn-group {
    font-size: 0;
}
729 730

.elasticsearch-filters {
731
    border-bottom: 1px solid $card-border-color;
732
    background-color: $card-header-bg;
733
}
734 735 736 737 738

// Mostly used to make the table matrix popups work
.d-none.popover {
    visibility: hidden;
}
Evonne Cheung's avatar
Evonne Cheung committed
739 740 741 742 743

// Notifications search and bulk action select alignment
.form-inline {
    input {
        @extend .form-control;
744 745 746
        &.btn-primary {
            @extend .btn-primary;
        }
Evonne Cheung's avatar
Evonne Cheung committed
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791
    }
}
.notification-parent {
    .bulk-actions {
        input {
            margin-top: 1px;
        }
        button {
            height: calc(2.0625rem + 2px);
        }
    }
}

// Share with me search filter
#search_share_container {
    label {
        margin-top: 13px;
    }
}

// Find groups search
#search_searchfield {
    color: $btn-primary-color;
    background-color: $btn-primary-bg;
    border: $btn-primary-border;
    border-radius: $border-radius;
    width: auto;
    margin-top: 12px;
}

// Find people results approve request alignment
.approvefriend .pieform {
    display: inline-block;
    margin-left: 3px;
    button {
        font-size: $font-size-sm;
    }
}

// Manage collections
.collection-pages {
    button.btn-sm {
        border: 0;
    }
}
Evonne Cheung's avatar
Evonne Cheung committed
792 793 794 795 796 797 798 799 800 801 802 803 804 805

// Networking delete btn
.secondary #networkingform_submit {
    background-color: $state-danger-bg;
    color: $state-danger-text;
    border-color: $state-danger-border;
    margin-left: .5rem;
}

// Web services add service groups btn
#webservices_function_groups_add_submit,
#webservices_token_generate_submit {
    width: auto;
}
806 807 808 809

// Backup for libraries that still need hidden class instead of bootstrap 4s new .d-none
.hidden {
    display: none;
810
}
811
//used for Smart Evidence json-editor
812 813
#editor_holder .bg-light {
    background-color: #FFF !important;
814 815
}

816
div.form-group .form-control-label {
817 818 819
    vertical-align: top;
}

820
.btn-group {
821
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
822
}
823 824 825 826 827

.json_editor_btn_add .btn-group > .btn-group:not(:last-child) > .btn, .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
828 829 830 831 832 833 834 835 836 837

// table cells that need to be fixed 70px width
.width-70 {
    width: 70px;
}

// Forum select wrap too close to text
.forumselectwrap {
    margin-left: 10px;
}