_base.scss 14.5 KB
Newer Older
1
// studio - base styling
2
// ====================
3

4
// basic setup
5 6
html {
  font-size: 62.5%;
7
  overflow-y: scroll;
8 9
}

10
body {
Brian Talbot committed
11
  @extend .t-copy-base;
12
  min-width: $fg-min-width;
13
  background: $gray-l5;
Brian Talbot committed
14
  color: $gray-d2;
15 16
}

17 18
body, input {
  font-family: 'Open Sans', sans-serif;
19 20
}

21
a {
22 23
  text-decoration: none;
  color: $blue;
24
  @include transition(color 0.25s ease-in-out);
25

26
  &:hover {
27
    color: $orange-d1;
28
  }
29 30 31
}

h1 {
Brian Talbot committed
32
  @extend .t-title4;
33
  font-weight: 300;
34 35
}

36
.waiting {
37
  opacity: 0.1;
38 39
}

Tom Giannattasio committed
40
.page-actions {
41
  margin-bottom: 30px;
Tom Giannattasio committed
42 43
}

44 45 46 47 48 49
.wrapper {
  @include clearfix();
  @include box-sizing(border-box);
  width: 100%;
}

50 51
// ====================

52
// typography - basic
Brian Talbot committed
53 54 55
.page-header {
  @extend .t-title3;
  display: block;
56 57
  font-weight: 600;
  color: $gray-d3;
Brian Talbot committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166

  .subtitle {
    @extend .t-title7;
    position: relative;
    top: ($baseline/4);
    display: block;
    color: $gray-l2;
    font-weight: 400;
  }
}

.section-header {
  @extend .t-title4;
  font-weight: 600;

  .subtitle {
    @extend .t-title7;
  }
}

.area-header {
  @extend .t-title6;
  font-weight: 600;

  .subtitle {
    @extend .t-title8;
  }
}

.area-subheader {
  @extend .t-title7;
  font-weight: 600;

  .subtitle {
    @extend .t-title9;
  }
}

// ====================

// typography - primary content
.content-primary {

  .section-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .content-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .area-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .area-subheader {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }
}

// typography - primary content
.content-secondary {

  .section-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .content-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .content-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }
}

// ====================

// typography - loose headings (BT: needs to be removed once html is clean)
.title-1, .title-2, .title-3, .title-4, .title-5, .title-6 {
  font-weight: 600;
167 168
}

169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
// typography - primary content
.content-secondary {

  .section-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .content-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }

  .content-header {
    color: $gray-d3;

    .subtitle {
      color: $gray-l2;
    }
  }
}

// ====================

// typography - loose headings (BT: needs to be removed once html is clean)
200
.title-1 {
Brian Talbot committed
201
  @extend .t-title3;
202 203 204 205
  margin-bottom: ($baseline*1.5);
}

.title-2 {
Brian Talbot committed
206
  @extend .t-title4;
207 208 209 210
  margin-bottom: $baseline;
}

.title-3 {
Brian Talbot committed
211
  @extend .t-title5;
212 213 214 215
  margin-bottom: ($baseline/2);
}

.title-4 {
Brian Talbot committed
216
  @extend .t-title7;
217 218 219 220 221
  margin-bottom: $baseline;
  font-weight: 500
}

.title-5 {
Brian Talbot committed
222
  @extend .t-title7;
223 224 225 226 227 228
  color: $gray-l1;
  margin-bottom: $baseline;
  font-weight: 500
}

.title-6 {
Brian Talbot committed
229
  @extend .t-title7;
230 231 232 233 234
  color: $gray-l2;
  margin-bottom: $baseline;
  font-weight: 500
}

235 236 237 238 239 240 241 242
p, ul, ol, dl {
  margin-bottom: ($baseline/2);

  &:last-child {
    margin-bottom: 0;
  }
}

243 244
// ====================

245 246 247 248 249 250 251
// layout - basic
.wrapper-view {

}

// ====================

252
// layout - basic page header
253
.wrapper-mast {
254
  margin: ($baseline*1.5) 0 0 0;
255 256
  padding: 0 $baseline;
  position: relative;
257

258
  .mast, .metadata {
259 260 261 262 263
    @include clearfix();
    position: relative;
    max-width: $fg-max-width;
    min-width: $fg-min-width;
    width: flex-grid(12);
264
    margin: 0 auto $baseline auto;
265 266 267 268
    color: $gray-d2;
  }

  .mast {
269 270 271
    border-bottom: 1px solid $gray-l4;
    padding-bottom: ($baseline/2);

272
    // layout with actions
Brian Talbot committed
273
    .page-header {
274 275 276 277 278 279 280
      width: flex-grid(12);
    }

    // layout with actions
    &.has-actions {
      @include clearfix();

Brian Talbot committed
281
      .page-header {
282
        float: left;
283
        width: flex-grid(6,12);
284 285 286 287 288
        margin-right: flex-gutter();
      }

      .nav-actions {
        position: relative;
289
        bottom: -($baseline*0.75);
290
        float: right;
291
        width: flex-grid(6,12);
292 293 294 295 296 297 298 299 300 301 302 303 304 305
        text-align: right;

        .nav-item {
          display: inline-block;
          vertical-align: top;
          margin-right: ($baseline/2);

          &:last-child {
            margin-right: 0;
          }
        }

        // buttons
        .button {
Brian Talbot committed
306
          padding: ($baseline/4) ($baseline/2) ($baseline/3) ($baseline/2);
307 308 309
        }

        .new-button {
Brian Talbot committed
310

311 312
        }

313 314 315 316
        .view-button {

        }

317
        .upload-button .icon-create {
Brian Talbot committed
318 319
          @extend .t-action2;
          line-height: 0 !important;
320 321 322
        }
      }
    }
323 324 325 326 327 328 329 330

    // layout with actions
    &.has-subtitle {

      .nav-actions {
        bottom: -($baseline*1.5);
      }
    }
331
  }
332 333 334 335 336

  // page metadata/action bar
  .metadata {

  }
337 338
}

339
// layout - basic page content
340 341 342 343
.wrapper-content {
  margin: 0;
  padding: 0 $baseline;
  position: relative;
344 345
}

346 347
.content {
  @include clearfix();
Brian Talbot committed
348
  @extend .t-copy-base;
349 350 351 352 353 354 355
  max-width: $fg-max-width;
  min-width: $fg-min-width;
  width: flex-grid(12);
  margin: 0 auto;
  color: $gray-d2;

  header {
Calen Pennington committed
356
    position: relative;
357 358 359 360 361
    margin-bottom: $baseline;
    border-bottom: 1px solid $gray-l4;
    padding-bottom: ($baseline/2);

    .title-sub {
Brian Talbot committed
362
      @extend .t-copy-sub1;
363 364 365 366 367
      display: block;
      margin: 0;
      color: $gray-l2;
    }

368
    .title-1 {
Brian Talbot committed
369
      @extend .t-title3;
370 371 372 373 374 375 376 377
      margin: 0;
      padding: 0;
      font-weight: 600;
      color: $gray-d3;
    }
  }

  .introduction {
378
    @include box-sizing(border-box);
Brian Talbot committed
379
    @extend .t-copy-sub1;
380
    width: flex-grid(12);
381
    margin: 0 0 $baseline 0;
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396

    .copy strong {
      font-weight: 600;
    }

    &.has-links {
      @include clearfix();

      .copy {
        float: left;
        width: flex-grid(8,12);
        margin-right: flex-gutter();
      }

      .nav-introduction-supplementary {
Brian Talbot committed
397
        @extend .t-copy-sub2;
398 399 400 401
        float: right;
        width: flex-grid(4,12);
        display: block;
        text-align: right;
402 403

        .icon {
Brian Talbot committed
404
          @extend .t-action3;
405 406 407 408
          display: inline-block;
          vertical-align: middle;
          margin-right: ($baseline/4);
        }
409 410
      }
    }
411 412 413 414 415 416 417
  }
}

.content-primary, .content-supplementary {
  @include box-sizing(border-box);
}

418
// layout - primary content
419 420 421
.content-primary {

  .title-1 {
Brian Talbot committed
422
    @extend .t-title3;
423
  }
424

425
  .title-2 {
Brian Talbot committed
426
    @extend .t-title4;
427 428
    margin: 0 0 ($baseline/2) 0;
  }
429

430
  .title-3 {
Brian Talbot committed
431
    @extend .t-title6;
432
    margin: 0 0 ($baseline/2) 0;
433
  }
434

435 436
  header {
    @include clearfix();
437

438 439 440 441 442
    .title-2 {
      width: flex-grid(5, 12);
      margin: 0 flex-gutter() 0 0;
      float: left;
    }
443

444
    .tip {
Brian Talbot committed
445
      @extend .t-copy-sub2;
446 447 448 449 450
      width: flex-grid(7, 12);
      float: right;
      margin-top: ($baseline/2);
      text-align: right;
      color: $gray-l2;
451 452
    }
  }
453 454
}

455
// layout - supplemental content
456
.content-supplementary {
Tom Giannattasio committed
457

458 459 460 461
  > section {
    margin: 0 0 $baseline 0;
  }

462
  .bit {
Brian Talbot committed
463
    @extend .t-copy-sub1;
464 465 466 467 468 469 470 471 472
    margin: 0 0 $baseline 0;
    border-bottom: 1px solid $gray-l4;
    padding: 0 0 $baseline 0;
    color: $gray-l1;

    &:last-child {
      margin-bottom: 0;
      border: none;
      padding-bottom: 0;
Tom Giannattasio committed
473
    }
474 475

    h3 {
Brian Talbot committed
476
      @extend .t-title7;
477 478 479 480
      margin: 0 0 ($baseline/4) 0;
      color: $gray-d2;
      font-weight: 600;
    }
481 482 483 484 485 486 487 488

    p {
      margin: 0 0 $baseline 0;

      &:last-child {
        margin-bottom: 0;
      }
    }
489

490 491
    // navigation
    .nav-related, .nav-page {
492 493 494 495 496 497 498 499 500 501 502 503 504 505

      .nav-item {
        margin-bottom: ($baseline/4);
        border-bottom: 1px dotted $gray-l4;
        padding-bottom: ($baseline/4);


        &:last-child {
          margin-bottom: 0;
          border: none;
          padding-bottom: 0;
        }
      }
    }
506 507 508 509 510 511 512 513
  }
}

// ====================

// layout - grandfathered
.main-wrapper {
  position: relative;
514
  margin: 0 ($baseline*2);
515 516 517
}

.inner-wrapper {
518
  @include clearfix();
519 520 521 522 523 524 525
  position: relative;
  max-width: 1280px;
  margin: auto;

  > article {
    clear: both;
  }
526 527
}

528 529 530 531 532 533
.main-column {
  clear: both;
  float: left;
  width: 70%;
}

534
.sidebar {
535 536
  float: right;
  width: 28%;
537 538
}

539
.left {
540
  float: left;
541 542
}

543
.right {
544
  float: right;
545 546
}

547 548 549
// ====================

// UI - actions
550
.new-unit-item,
551 552
.new-subsection-item,
.new-policy-item {
553 554 555 556 557 558 559 560 561 562 563
  @include grey-button;
  margin: 5px 8px;
  padding: 3px 10px 4px 10px;
  font-size: 10px;

  .new-folder-icon,
  .new-policy-icon,
  .new-unit-icon {
    position: relative;
    top: 2px;
  }
564 565
}

566
.item-actions {
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
  position: absolute;
  top: 5px;
  right: 5px;

  .edit-button,
  .delete-button,
  .visibility-toggle {
    float: left;
    margin-right: 13px;
    color: #a4aab7;
  }
}

// ====================

// misc
hr.divide {
584
  @extend .text-sr;
585 586 587
}

.item-details {
Calen Pennington committed
588 589
    float: left;
    padding: 10px 0;
590 591
}

592 593 594 595 596 597
.details {
    display: none;
    margin-bottom: 30px;
    font-size: 14px;
}

598
.window {
599 600 601 602 603 604 605 606 607
  // @include border-radius(3px);
  // @include box-shadow(0 1px 1px $shadow-l1);
  // margin-bottom: $baseline;
  // border: 1px solid $gray-l2;
  // background: $white;

  .window-contents {
    padding: 20px;
  }
Calen Pennington committed
608

609 610 611 612 613 614 615 616 617 618
  .header {
    padding: 6px 14px;
    border-bottom: 1px solid $mediumGrey;
    border-radius: 2px 2px 0 0;
    @include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0));
    background-color: $lightBluishGrey;
    @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.2) inset);
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  }
Calen Pennington committed
619

620 621 622 623
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
Calen Pennington committed
624

625 626
    &.inline-label {
      display: inline;
627 628
    }

629 630 631 632 633 634 635
    .description {
      display: block;
      font-size: 11px;
      font-weight: 400;
      font-style: italic;
      line-height: 1.3;
      color: #999;
Calen Pennington committed
636
    }
637
  }
Calen Pennington committed
638

639 640 641 642 643
  .row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cbd1db;
  }
644 645
}

646 647 648
// ====================

// system notifications
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704
.toast-notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 350px;
  padding: 15px 20px 17px;
  border-radius: 3px;
  border: 1px solid #333;
  @include linear-gradient(top, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
  background-color: rgba(30, 30, 30, .92);
  @include box-shadow(0 1px 3px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .1) inset);
  font-size: 13px;
  text-align: center;
  color: #fff;
  @include transition(all .2s);

  p, span {
    color: #fff;
  }

  strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .close-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 27px;
    height: 27px;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #aaa;
    text-align: center;

    .close-icon {
      font-size: 16px;
      font-weight: 700;
    }
  }

  .action-button {
    @include blue-button;
    @include box-sizing(border-box);
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
  }
705 706 707
}

.waiting {
708
  position: relative;
709

710 711 712 713 714 715 716 717 718 719 720 721
  &:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999998;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, .9);
  }
722

723 724 725 726 727 728 729 730 731 732 733
  &:after {
    content: '';
    @extend .spinner-icon;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    z-index: 999999;
  }
734 735 736
}

.waiting-inline {
737 738 739 740
  &:after {
    content: '';
    @extend .spinner-icon;
  }
741 742 743
}

.new-button {
744
  @include green-button;
Brian Talbot committed
745
  @extend .t-action4;
746 747
  padding: 8px 20px 10px;
  text-align: center;
748

749 750 751
  &.big {
    display: block;
  }
752 753 754 755 756 757 758 759

  .icon-create {
    display: inline-block;
    vertical-align: middle;
    margin-right: ($baseline/4);
    margin-top: ($baseline/10);
    line-height: 0;
  }
760 761
}

762 763
.view-button {
  @include blue-button;
Brian Talbot committed
764
  @extend .t-copy-base;
765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780
  text-align: center;

  &.big {
    display: block;
  }

  .icon-view {
    @include font-size(15);
    display: inline-block;
    vertical-align: middle;
    margin-right: ($baseline/2);
    margin-top: ($baseline/5);
    line-height: 0;
  }
}

781 782
.edit-button.standard,
.delete-button.standard {
Brian Talbot committed
783
  @extend .t-action4;
784
  @include white-button;
785
  float: left;
786 787 788 789 790 791 792 793
  padding: 3px 10px 4px;
  margin-left: 7px;
  font-weight: 400;

  .edit-icon,
  .delete-icon {
    margin-right: 4px;
  }
794 795
}

796 797
.delete-button.standard {

798 799 800
  &:hover {
    background-color: tint($orange, 75%);
  }
801 802
}

803
.tooltip {
Brian Talbot committed
804
  @extend .t-copy-sub2;
805 806 807
  position: absolute;
  top: 0;
  left: 0;
808
  z-index: 10000;
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828
  padding: 0 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.85);
  font-weight: normal;
  line-height: 26px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  @include transition(opacity 0.1s ease-out);

  &:after {
    content: '▾';
    display: block;
    position: absolute;
    bottom: -14px;
    left: 50%;
    margin-left: -7px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.85);
  }
829 830
}

831 832
// ====================

833 834
// basic utility
.sr {
835
  @extend .text-sr;
836 837
}

838 839 840 841
.fake-link {
  cursor: pointer;
}

842 843 844 845 846 847 848 849 850 851 852
.non-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrap {
  text-wrap: wrap;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  word-wrap: break-word;
853 854
}

855 856 857 858
hr.divider {
  @extend .sr;
}

859 860
// ====================

861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887
// js dependant
body.js {

  // lean/simple modal window
  .content-modal {
    @include border-bottom-radius(2px);
    @include box-sizing(border-box);
    @include box-shadow(0 2px 4px $shadow-d1);
    position: relative;
    display: none;
    width: 700px;
    overflow: hidden;
    border: 1px solid $gray-d1;
    padding: ($baseline);
    background: $white;

    .action-modal-close {
      @include transition(top .25s ease-in-out);
      @include border-bottom-radius(3px);
      position: absolute;
      top: -3px;
      right: $baseline;
      padding: ($baseline/4) ($baseline/2) 0 ($baseline/2);
      background: $gray-l3;
      text-align: center;

      .label {
888
        @extend .text-sr;
889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910
      }

      .ss-icon {
        @include font-size(18);
        color: $white;
      }

      &:hover {
        background: $blue;
        top: 0;
      }
    }

    img {
      @include box-sizing(border-box);
      width: 100%;
      overflow-y: scroll;
      padding: ($baseline/10);
      border: 1px solid $gray-l4;
    }

    .title {
Brian Talbot committed
911
      @extend .t-title5;
912 913 914 915 916 917
      margin: 0 0 ($baseline/2) 0;
      font-weight: 600;
      color: $gray-d3;
    }

    .description {
Brian Talbot committed
918
      @extend .t-copy-sub2;
919 920 921 922 923 924 925 926
      margin-top: ($baseline/2);
      color: $gray-l1;
    }
  }
}

// ====================

927
// works in progress & testing
928 929 930 931 932
body.hide-wip {

  .wip-box {
    display: none;
  }
933
}