_base.scss 13.8 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 {
11
  @include font-size(16);
12
  min-width: $fg-min-width;
13 14 15
  background: $gray-l5;
  line-height: 1.6;
  color: $baseFontColor;
16 17
}

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

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

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

h1 {
33 34
  @include font-size(28);
  font-weight: 300;
35 36
}

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

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

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

51 52
// ====================

53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
// typography - basic
.title-1, .title-2, .title-3, .title-4, .title-5, .title-6 {
  font-weight: 600;
  color: $gray-d3;
  margin: 0;
  padding: 0;
}

.title-1 {
  @include font-size(32);
  margin-bottom: ($baseline*1.5);
}

.title-2 {
  @include font-size(24);
  margin-bottom: $baseline;
}

.title-3 {
72
  @include font-size(18);
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
  margin-bottom: ($baseline/2);
}

.title-4 {
  @include font-size(14);
  margin-bottom: $baseline;
  font-weight: 500
}

.title-5 {
  @include font-size(14);
  color: $gray-l1;
  margin-bottom: $baseline;
  font-weight: 500
}

.title-6 {
  @include font-size(14);
  color: $gray-l2;
  margin-bottom: $baseline;
  font-weight: 500
}

96 97 98 99 100 101 102 103
p, ul, ol, dl {
  margin-bottom: ($baseline/2);

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

104 105
// ====================

106 107 108 109 110 111 112
// layout - basic
.wrapper-view {

}

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

113
// layout - basic page header
114
.wrapper-mast {
115
  margin: ($baseline*1.5) 0 0 0;
116 117
  padding: 0 $baseline;
  position: relative;
118

119
  .mast, .metadata {
120 121 122 123 124 125
    @include clearfix();
    @include font-size(16);
    position: relative;
    max-width: $fg-max-width;
    min-width: $fg-min-width;
    width: flex-grid(12);
126
    margin: 0 auto $baseline auto;
127 128 129 130
    color: $gray-d2;
  }

  .mast {
131 132 133 134 135
    border-bottom: 1px solid $gray-l4;
    padding-bottom: ($baseline/2);

    .title-sub {
      @include font-size(14);
136 137
      position: relative;
      top: ($baseline/4);
138 139 140
      display: block;
      margin: 0;
      color: $gray-l2;
141
      font-weight: 400;
142
    }
143 144 145 146 147 148 149 150

    .title, .title-1 {
      @include font-size(32);
      margin: 0;
      padding: 0;
      font-weight: 600;
      color: $gray-d3;
    }
151

152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
    .nav-hierarchy {
      @include font-size(14);
      display: block;
      margin: 0;
      color: $gray-l2;
      font-weight: 400;

      .nav-item {
        display: inline;
        vertical-align: middle;
        margin-right: ($baseline/4);

        &:after {
          content: ">>";
          margin-left: ($baseline/4);
        }

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

          &:after {
            content: none;
          }
        }
      }
    }

179 180 181 182 183 184 185 186 187 188 189
    // layout with actions
    .title {
      width: flex-grid(12);
    }

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

      .title {
        float: left;
190
        width: flex-grid(6,12);
191 192 193 194 195
        margin-right: flex-gutter();
      }

      .nav-actions {
        position: relative;
196
        bottom: -($baseline*0.75);
197
        float: right;
198
        width: flex-grid(6,12);
199 200 201 202 203 204 205 206 207 208 209 210 211 212
        text-align: right;

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

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

        // buttons
        .button {
213 214 215 216 217 218
          padding: ($baseline/4) ($baseline/2) ($baseline/3) ($baseline/2) !important;
          font-weight: 400 !important;
        }

        .new-button {
          font-weight: 700 !important;
219 220
        }

221 222 223 224 225
        .view-button {

          font-weight: 700 !important;
        }

226 227 228 229 230 231
        .upload-button .icon-create {
          @include font-size(18);
          margin-top: ($baseline/4);
        }
      }
    }
232 233 234 235 236 237 238 239

    // layout with actions
    &.has-subtitle {

      .nav-actions {
        bottom: -($baseline*1.5);
      }
    }
240
  }
241 242 243 244 245

  // page metadata/action bar
  .metadata {

  }
246 247
}

248
// layout - basic page content
249 250 251 252
.wrapper-content {
  margin: 0;
  padding: 0 $baseline;
  position: relative;
253 254
}

255 256 257 258 259 260 261 262 263 264
.content {
  @include clearfix();
  @include font-size(16);
  max-width: $fg-max-width;
  min-width: $fg-min-width;
  width: flex-grid(12);
  margin: 0 auto;
  color: $gray-d2;

  header {
Calen Pennington committed
265
    position: relative;
266 267 268 269 270 271 272 273 274 275 276
    margin-bottom: $baseline;
    border-bottom: 1px solid $gray-l4;
    padding-bottom: ($baseline/2);

    .title-sub {
      @include font-size(14);
      display: block;
      margin: 0;
      color: $gray-l2;
    }

277
    .title-1 {
278 279 280 281 282 283 284 285 286
      @include font-size(32);
      margin: 0;
      padding: 0;
      font-weight: 600;
      color: $gray-d3;
    }
  }

  .introduction {
287
    @include box-sizing(border-box);
288
    @include font-size(14);
289
    width: flex-grid(12);
290
    margin: 0 0 $baseline 0;
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310

    .copy strong {
      font-weight: 600;
    }

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

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

      .nav-introduction-supplementary {
        @include font-size(13);
        float: right;
        width: flex-grid(4,12);
        display: block;
        text-align: right;
311 312 313 314 315 316 317

        .icon {
          @include font-size(14);
          display: inline-block;
          vertical-align: middle;
          margin-right: ($baseline/4);
        }
318 319
      }
    }
320 321 322 323 324 325 326
  }
}

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

327
// layout - primary content
328 329 330 331 332 333 334
.content-primary {

  .title-1, .title-2, .title-3, .title-4, .title-5, .title-5 {
    color: $gray-d3;
  }

  .title-1 {
335
    @extend .t-title-1;
336
  }
337

338
  .title-2 {
339
    @extend .t-title-2;
340 341
    margin: 0 0 ($baseline/2) 0;
  }
342

343
  .title-3 {
344
    @extend .t-title-3;
345
    margin: 0 0 ($baseline/2) 0;
346
  }
347

348 349
  header {
    @include clearfix();
350

351 352 353 354 355
    .title-2 {
      width: flex-grid(5, 12);
      margin: 0 flex-gutter() 0 0;
      float: left;
    }
356

357 358 359 360 361 362 363
    .tip {
      @include font-size(13);
      width: flex-grid(7, 12);
      float: right;
      margin-top: ($baseline/2);
      text-align: right;
      color: $gray-l2;
364 365
    }
  }
366 367
}

368
// layout - supplemental content
369
.content-supplementary {
Tom Giannattasio committed
370

371 372 373 374
  > section {
    margin: 0 0 $baseline 0;
  }

375 376 377 378 379 380 381 382 383 384 385
  .bit {
    @include font-size(13);
    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
386
    }
387 388 389 390 391 392 393

    h3 {
      @include font-size(14);
      margin: 0 0 ($baseline/4) 0;
      color: $gray-d2;
      font-weight: 600;
    }
394 395 396 397 398 399 400 401

    p {
      margin: 0 0 $baseline 0;

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

403 404
    // navigation
    .nav-related, .nav-page {
405 406 407 408 409 410 411 412 413 414 415 416 417 418

      .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;
        }
      }
    }
419 420 421 422 423 424 425 426
  }
}

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

// layout - grandfathered
.main-wrapper {
  position: relative;
427
  margin: 0 ($baseline*2);
428 429 430
}

.inner-wrapper {
431
  @include clearfix();
432 433 434 435 436 437 438
  position: relative;
  max-width: 1280px;
  margin: auto;

  > article {
    clear: both;
  }
439 440
}

441 442 443 444 445 446
.main-column {
  clear: both;
  float: left;
  width: 70%;
}

447
.sidebar {
448 449
  float: right;
  width: 28%;
450 451
}

452
.left {
453
  float: left;
454 455
}

456
.right {
457
  float: right;
458 459
}

460 461 462
// ====================

// UI - actions
463
.new-unit-item,
464 465
.new-subsection-item,
.new-policy-item {
466 467 468 469 470 471 472 473 474 475 476
  @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;
  }
477 478
}

479
.item-actions {
480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
  position: absolute;
  top: 5px;
  right: 5px;

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

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

// misc
hr.divide {
  @include text-sr();
498 499 500
}

.item-details {
Calen Pennington committed
501 502
    float: left;
    padding: 10px 0;
503 504
}

505 506 507 508 509 510
.details {
    display: none;
    margin-bottom: 30px;
    font-size: 14px;
}

511
.window {
512 513 514 515 516 517 518 519 520
  // @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
521

522 523 524 525 526 527 528 529 530 531
  .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
532

533 534 535 536
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
Calen Pennington committed
537

538 539
    &.inline-label {
      display: inline;
540 541
    }

542 543 544 545 546 547 548
    .description {
      display: block;
      font-size: 11px;
      font-weight: 400;
      font-style: italic;
      line-height: 1.3;
      color: #999;
Calen Pennington committed
549
    }
550
  }
Calen Pennington committed
551

552 553 554 555 556
  .row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cbd1db;
  }
557 558
}

559 560 561
// ====================

// system notifications
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 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 611 612 613 614 615 616 617
.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;
  }
618 619 620
}

.waiting {
621
  position: relative;
622

623 624 625 626 627 628 629 630 631 632 633 634
  &: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);
  }
635

636 637 638 639 640 641 642 643 644 645 646
  &:after {
    content: '';
    @extend .spinner-icon;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    z-index: 999999;
  }
647 648 649
}

.waiting-inline {
650 651 652 653
  &:after {
    content: '';
    @extend .spinner-icon;
  }
654 655 656
}

.new-button {
657
  @include green-button;
658
  @include font-size(13);
659 660
  padding: 8px 20px 10px;
  text-align: center;
661

662 663 664
  &.big {
    display: block;
  }
665 666 667 668 669 670 671 672

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

675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693
.view-button {
  @include blue-button;
  @include font-size(13);
  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;
  }
}

694 695
.edit-button.standard,
.delete-button.standard {
696
  @include font-size(12);
697
  @include white-button;
698
  float: left;
699 700 701 702 703 704 705 706
  padding: 3px 10px 4px;
  margin-left: 7px;
  font-weight: 400;

  .edit-icon,
  .delete-icon {
    margin-right: 4px;
  }
707 708
}

709 710
.delete-button.standard {

711 712 713
  &:hover {
    background-color: tint($orange, 75%);
  }
714 715
}

716 717 718 719
.tooltip {
  position: absolute;
  top: 0;
  left: 0;
720
  z-index: 10000;
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
  padding: 0 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  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);
  }
742 743
}

744 745
// ====================

746 747 748
// basic utility
.sr {
  @include text-sr();
749 750
}

751 752 753 754
.fake-link {
  cursor: pointer;
}

755 756 757 758 759 760 761 762 763 764 765
.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;
766 767
}

768 769 770 771
hr.divider {
  @extend .sr;
}

772 773
// ====================

774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839
// 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 {
        @include text-sr();
      }

      .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 {
      @include font-size(18);
      margin: 0 0 ($baseline/2) 0;
      font-weight: 600;
      color: $gray-d3;
    }

    .description {
      @include font-size(13);
      margin-top: ($baseline/2);
      color: $gray-l1;
    }
  }
}

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

840
// works in progress & testing
841 842 843 844 845
body.hide-wip {

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