_wiki.scss 16 KB
Newer Older
Tom Giannattasio committed
1 2 3 4 5 6
section.wiki {
  padding-top: 25px;

  .pull-left {
    float: left;
  }
7

Tom Giannattasio committed
8 9 10 11
  .pull-right {
    float: right;
  }

Tom Giannattasio committed
12 13 14 15 16 17 18 19 20 21 22 23
  .wiki-wrapper {
    @include clearfix;

    > header {
      height: 33px;
      padding: 24px 0 26px;
      border-bottom: 1px solid #ccc;
      border-radius: 3px 3px 0 0;
      background-color: $sidebar-color;
    }
  }

Tom Giannattasio committed
24 25 26 27 28 29 30 31 32 33 34


  /*-----------------

    Breadcrumbs

  -----------------*/

  .breadcrumb {
    list-style: none;
    padding-left: 0;
Tom Giannattasio committed
35
    margin: 0 0 0 40px;
Tom Giannattasio committed
36 37 38 39 40

    li {
      float: left;
      margin-right: 10px;
      font-size: 0.9em;
41 42

      a {
43
        float: left;
44
        display: block;
45
        overflow: hidden;
46 47
        height: 30px;
        line-height: 31px;
48 49
        max-width: 200px;
        height: 100%;
50 51 52
        text-overflow: ellipsis;
        white-space: nowrap;
      }
53

Tom Giannattasio committed
54 55
      &:after {
        content: '›';
56
        display: inline;
Tom Giannattasio committed
57 58
        margin-left: 10px;
        color: $base-font-color;
59
        height: 30px;
60
        line-height: 31px;
61
      }
Tom Giannattasio committed
62 63 64 65 66 67 68 69
    }
  }

  .dropdown-menu {
    display: none;
  }


70

Tom Giannattasio committed
71 72 73 74 75 76 77 78 79
  /*-----------------

    Global Functions

  -----------------*/

  .global-functions {
    display: block;
    width: auto;
Tom Giannattasio committed
80
    margin-right: 20px;
Tom Giannattasio committed
81 82 83 84 85 86 87 88
  }

  .add-article-btn {
    @include button(simple, #eee);
    margin-left: 25px;
    padding: 7px 15px !important;
    font-size: 0.72em;
    font-weight: 600;
Tom Giannattasio committed
89

90
    &:hover, &:focus {
Tom Giannattasio committed
91 92
      text-decoration: none;
    }
Tom Giannattasio committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
  }

  .search-wiki {
    margin-top: 3px;

    input {
      width: 180px;
      height: 27px;
      padding: 0 15px 0 35px;
      background: url(../images/search-icon.png) no-repeat 9px center #f6f6f6;
      border: 1px solid #c8c8c8;
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) inset;
      font-family: $sans-serif;
      font-size: 12px;
108
      @include transition(border-color .1s linear 0s);
Tom Giannattasio committed
109 110 111

      &:-webkit-input-placholder {
        font-style: italic;
112 113
      }

Tom Giannattasio committed
114
      &:focus {
115
        border-color: $link-color;
116 117
      }
    }
Tom Giannattasio committed
118
  }
119 120


Tom Giannattasio committed
121 122 123 124 125 126 127

  /*-----------------

    Article

  -----------------*/

128 129 130 131
  .article-wrapper {

  }

Tom Giannattasio committed
132 133 134 135 136 137 138 139
  h1 {
    font-weight: bold;
    letter-spacing: 0;
  }

  .main-article {
    float: left;
    width: flex-grid(9);
Tom Giannattasio committed
140
    padding: 40px 0 40px 40px;
141
    color: $base-font-color;
Tom Giannattasio committed
142
    @include box-sizing(border-box);
Tom Giannattasio committed
143
  }
Tom Giannattasio committed
144

Tom Giannattasio committed
145
  &.view .main-article {
Tom Giannattasio committed
146
    h2 {
147 148 149
      padding-bottom: 8px;
      margin-bottom: 22px;
      border-bottom: 1px solid $light-gray;
Tom Giannattasio committed
150
      font-size: 1.6em;
Tom Giannattasio committed
151
      font-weight: bold;
152
      color: $base-font-color;
Tom Giannattasio committed
153 154
      text-transform: none;
      letter-spacing: 0;
155 156 157 158 159 160
    }

    h3 {
      margin-top: 40px;
      margin-bottom: 20px;
      font-weight: bold;
Tom Giannattasio committed
161
      font-size: 1.25em;
162 163 164
    }

    h4 {
Tom Giannattasio committed
165 166 167 168
      margin: 30px 0 10px;
      font-size: 1em;
      color: #999;
      font-weight: bold;
169 170 171
    }

    h5 {
Tom Giannattasio committed
172 173 174 175
      margin: 20px 0 10px;
      font-size: .8em;
      font-weight: bold;
      text-transform: uppercase;
176 177 178
    }

    h6 {
Tom Giannattasio committed
179 180 181 182 183
      margin: 20px 0 10px;
      font-size: .8em;
      font-weight: bold;
      color: #999;
      text-transform: uppercase;
184 185 186 187 188 189 190 191
    }

    ul {
      font-size: inherit;
      line-height: inherit;
      color: inherit;
    }

Tom Giannattasio committed
192
    li {
193
      margin-bottom: 15px;
Tom Giannattasio committed
194 195 196 197 198 199 200 201 202 203
      line-height: 1.6em;
    }

    pre {
      padding: 10px;
      border: 1px solid #ddd;
      background: #f8f8f8;
      border-radius: 4px;
      font-size: 0.9em;
      font-family: Monaco, monospace;
204
    }
Kyle Fiedler committed
205 206 207

    .toc {
      background-color: $sidebar-color;
208
      padding: 9px;
Kyle Fiedler committed
209
      margin: 10px 0;
210
      border-radius: 5px;
Kyle Fiedler committed
211 212 213 214 215

      ul {
        margin: 0;
      }
    }
Tom Giannattasio committed
216
  }
217

218 219 220 221 222 223 224 225 226



  /*-----------------

    Sidebar

  -----------------*/

Tom Giannattasio committed
227 228
  .article-functions {
    float: left;
Tom Giannattasio committed
229 230 231
    width: flex-grid(3);
    padding: 40px 40px;
    @include box-sizing(border-box);
232

233
    .timestamp{
Tom Giannattasio committed
234 235
      margin-top: 15px;
      padding: 15px 0 0 10px;
236
      border-top: 1px solid $light-gray;
237 238 239 240 241 242 243 244 245 246

      .label {
        font-size: 0.7em;
        color: #aaa;
        text-transform: uppercase;
      }

      .date {
        font-size: 0.9em;
      }
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261

    }

    .see-children {
      padding: 15px 0 0;
      border-top: 1px solid $light-gray;
      margin-top: 15px;

      a {
        display: block;
        padding: 2px 4px 2px 10px;
        border-radius: 3px;
        font-size: 0.9em;
        line-height: 25px;

262
        &:hover, &:focus {
263 264 265 266
          background-color: #f6f6f6;
          text-decoration: none;
        }
      }
267
    }
Tom Giannattasio committed
268
  }
269

Tom Giannattasio committed
270 271 272 273
  .nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
274

Tom Giannattasio committed
275
    li {
276 277
      &.active {
        a {
278
          color: $link-color;
279
          font-weight: bold;
280

Tom Giannattasio committed
281 282
          .icon-view,
          .icon-home {
283 284 285 286 287 288 289
            background-position: -25px 0;
          }

          .icon-edit {
            background-position: -25px -25px;
          }

Tom Giannattasio committed
290 291
          .icon-changes,
          .icon-time {
292 293 294
            background-position: -25px -49px;
          }

Tom Giannattasio committed
295 296
          .icon-attachments,
          .icon-file {
297 298 299 300 301 302 303
            background-position: -25px -73px;
          }

          .icon-settings {
            background-position: -25px -99px;
          }

304
          &:hover, &:focus {
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
            background: none;
          }
        }
      }
    }

    a {
      display: block;
      padding: 2px 4px;
      border-radius: 3px;
      font-size: 0.9em;
      line-height: 25px;
      color: #8f8f8f;

      .icon {
        float: left;
        display: block;
        width: 25px;
        height: 25px;
        margin-right: 3px;
        background: url(../images/wiki-icons.png) no-repeat;
      }

Tom Giannattasio committed
328 329
      .icon-view,
      .icon-home {
330 331 332 333 334 335 336
        background-position: 0 0;
      }

      .icon-edit {
        background-position: 0 -25px;
      }

Tom Giannattasio committed
337 338
      .icon-changes,
      .icon-time {
339 340 341
        background-position: 0 -49px;
      }

Tom Giannattasio committed
342 343
      .icon-attachments,
      .icon-file {
344 345 346 347 348 349 350
        background-position: 0 -73px;
      }

      .icon-settings {
        background-position: 0 -99px;
      }

351
      &:hover, &:focus {
352 353 354
        background-color: #f6f6f6;
        text-decoration: none;
      }
Tom Giannattasio committed
355 356
    }
  }
357

Tom Giannattasio committed
358 359


Tom Giannattasio committed
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386

  /*-----------------

    Edit

  -----------------*/

  label {
    font-family: $sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
    color: #aaa;
  }

  input {
    font-family: $sans-serif;
    font-style: normal;
    font-weight: normal;
  }

  #id_title,
  #id_content {
    width: 100%;
  }

387 388
  #id_content,
  .CodeMirror {
Tom Giannattasio committed
389
    font-family: $monospace;
390 391 392 393
    font-size: 0.8em;
    line-height: 1.4em;
  }

394 395 396 397 398 399
  #div_id_content {
    position: relative;
  }

  #hint_id_content {
    position: absolute;
400
    top: 10px;
401 402 403 404 405
    right: 0%;
    font-size: 12px;
    text-align:right;
  }

406 407 408
  .CodeMirror {
    background: #fafafa;
    border: 1px solid #c8c8c8;
409
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6), inset 0 0 3px 0 rgba(0, 0, 0, 0.1);
410 411 412 413
  }

  .CodeMirror-scroll {
    padding: 7px;
Tom Giannattasio committed
414 415
  }

416 417 418 419
  .schematic_container {
    position: relative;

    canvas {
420
      box-shadow: 0 0 1px 1px rgba(0, 0, 0, .1), 0 1px 6px rgba(0, 0, 0, .2);
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
    }

    &:before {
      content: 'click to edit schematic';
      position: absolute;
      top: 10px;
      left: 7px;
      z-index: 9999;
      font-family: $sans-serif;
      font-size: 0.75em;
      color: #aaa;
      pointer-events: none;
    }
  }

Tom Giannattasio committed
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
  .markItUpContainer {
    margin-right: 0;
  }

  .control-group {
    margin-bottom: 20px;
  }

  #hint_id_summary {
    display: inline-block;
    font-size: 0.9em;
    line-height: 32px;
    margin-left: 15px;
  }

  .asteriskField {
    display: none;
  }

455 456 457 458
  button {
    font-family: $sans-serif;
  }

Tom Giannattasio committed
459 460 461
  .btn {
    @include button(simple, #eee);
    font-size: 0.8em;
462 463
    margin-right: 5px;
    line-height: 1.2em;
464 465
    text-transform: none !important;
    letter-spacing: 0 !important;
Tom Giannattasio committed
466

467
    &:hover, &:focus {
468
      color: $base-font-color;
Tom Giannattasio committed
469 470 471 472 473 474 475 476 477 478 479 480
      text-decoration: none;
    }

    &.btn-primary {
      @include button;
      font-size: 0.8em;
    }

    &.btn-danger {
      @include button(simple, $pink);
      font-size: 0.8em;
    }
481 482 483 484 485 486 487 488 489

    &.btn-info {
      @include button(simple, #ccc);
      font-size: 0.8em;
    }
  }

  a.btn {
    padding: 7px 18px 8px !important;
Tom Giannattasio committed
490 491
  }

492
  .modal {
Tom Giannattasio committed
493 494 495 496
    width: 960px;
    z-index: 9999;
    min-height: 500px;
    margin-left: -480px;
497 498
    top: 150px;

499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
    &.upload-modal,
    &.search-file-modal {
      width: 400px;
      min-height: 0;
      margin-left: -200px;

      h4 {
        margin-bottom: 20px;
        font-weight: bold;
      }

      .help-block {
        font-size: 0.8em;
      }
    }

    &.search-file-modal {
      width: 500px;
      margin-left: -250px;

      p {
        font-size: 0.8em;
        line-height: 1.4em;
      }

      .form-search {
        margin: 30px 0 15px;

        input {
          width: 350px;
        }

        button {
          height: 35px;
        }
      }
    }

537
    .modal-header {
538 539 540 541
      border: 1px solid $danger-red;
      padding: ($baseline/2) ($baseline/2) 0 ($baseline/2);
      margin-bottom: ($baseline/2);

542
      h1, p {
543
        color: $base-font-color;
544 545 546 547 548
      }

      h1 {
        margin: 3px 12px 8px;
        font-size: 1.1em;
549
      }
550 551 552 553 554 555 556

      p {
        font-size: 0.9em;
        margin: 5px 12px 20px;
        line-height: 1em;
      }
    }
Tom Giannattasio committed
557 558 559 560 561 562 563 564 565 566 567

    .modal-body {
      padding-bottom: 8px;
    }

    iframe {
      width: 100%;
      min-height: 450px;
      border: 0;
    }

568 569 570 571
    .modal-footer {
      margin: 12px;
    }

Tom Giannattasio committed
572 573 574 575 576
    .modal-footer .btn {
      margin-right: 10px;
    }
  }

577 578 579 580 581
  .modal-inner-wrapper {
    background: #fff;
    padding: 20px;
  }

Tom Giannattasio committed
582 583 584 585
  #previewWindow body {
    background: #f00 !important;
  }

586
  #cheatsheetLink {
587 588
    text-align: right;
    display: float;
589
  }
Tom Giannattasio committed
590

591
  #cheatsheetModal {
592
    width: 972px;
593 594 595 596 597 598 599 600 601 602 603

    .left-column {
      margin-right: 10px;
    }

    .left-column,
    .right-column {
      float: left;
      width: 450px;
    }
  }
Tom Giannattasio committed
604

605
  #cheatsheet-body {
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
    background: #fff;
    text-align: left;
    padding: 20px;
    font-size: 14px;
    @include clearfix;

    h3 {
      font-weight: bold;
    }

    ul {
      list-style: circle;
      line-height: 1.4;
      color: #333;
    }
  }

  #cheatsheet-body section + section {
    margin-top: 40px;
625
  }
Tom Giannattasio committed
626

627
  #cheatsheet-body pre{
628 629 630 631 632
    color: #000;
    text-align: left;
    background: #eee;
    padding: 10px;
    font-size: 12px;
633
  }
Tom Giannattasio committed
634 635 636 637 638 639 640 641 642 643 644 645 646 647

  /*-----------------

    Changes

  -----------------*/

  &.history {
    .accordion {
      margin-bottom: 15px;
      padding: 15px;
      border: 1px solid $light-gray;
      background: #f9f9f9;
      border-radius: 5px;
648

649
      a:hover, a:focus {
650 651
        text-decoration: none;
      }
Tom Giannattasio committed
652
    }
653
  }
Tom Giannattasio committed
654

655 656 657 658 659 660 661 662 663
  .accordion small {
    font-size: 0.8em;
    color: #aaa;
  }

  .accordion-toggle div {
    margin-top: 8px;
  }

664 665
  .collapse {
    display: none;
Tom Giannattasio committed
666

667 668
    &.in {
      display: block;
Tom Giannattasio committed
669 670 671
    }
  }

672 673 674 675
  .diff-container {
    overflow-x: scroll;

    table {
676
      min-width: 100%;
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693
    }

    th {
      font-family: $sans-serif;
      font-size: 0.7em;
    }

    td {
      font-family: $monospace;
    }

    .linenumber,
    .data {
      font-size: 0.75em;
    }
  }

Tom Giannattasio committed
694 695 696



697 698
  /*-----------------

Tom Giannattasio committed
699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733
    Settings

  -----------------*/

  #settings_form {
    .well {
      margin-bottom: 15px;
      @include clearfix;
    }

    .control-group {
      float: left;
      margin-bottom: 0;
      clear: both;
    }

    label {
      margin-left: 15px;
    }

    .controls {
      padding-top: 4px;
    }

    label,
    .controls {
      float: right;
    }
  }




  /*-----------------

734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754
    New

  -----------------*/

  .new-article {
    margin: auto;
    float: none;

    .add-on {
      line-height: 34px;
      margin-right: 6px;
    }
  }

  #hint_id_slug {
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.3em;
    margin-top: 9px;
  }

755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776
  .error {
    font-size: 1em;
    color: $pink;

    .help-block {
      margin-top: 10px;
    }

    input {
      border-color: $pink;
    }
  }

  .back {
    float: right;
  }






777 778 779 780 781 782 783 784 785
  /*-----------------

    Directory

  -----------------*/
  .directory-toolbar {
    background-color: $sidebar-color;
    padding: 9px;
    margin: 0 -9px 20px;
786
    border-radius: 5px;
787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809

    .well-small {
      @include clearfix;

      a {
        @include inline-block;
      }
    }

    + p {
      font-size: 0.9em;
      color: #aaa;
    }
  }

  .filter-clear {
    margin-right: 10px;
    margin-top: 10px;
    font-size: .9em;

    a {
      color: #aaa;

810
      &:hover, &:focus {
811 812 813 814 815 816 817 818 819 820 821 822
        color: #777;
      }
    }
  }

  .table.table-striped {
    width: 100%;
    margin-top: 20px;

    th, td {
      border-bottom: 1px solid $light-gray;
      padding: 8px;
823
      overflow: hidden;
824
    }
825

826 827 828
    a.list-children {
      margin-left: 3px;
    }
829 830 831 832 833 834

    tr:nth-child(even) {
      background: #F6F6F6;
    }
  }

835 836 837



838 839 840 841 842 843 844 845
  /*-----------------

    Attachments

  -----------------*/

  .attachment-options {
    height: 40px;
846
    margin: 40px 0 30px;
847 848 849
  }

  .attachment-list {
850 851 852 853 854 855 856 857 858
    ul {
      list-style: none;
      padding: 0;
    }

    li {
      margin-bottom: 15px;
      border: 1px solid #DDD;
      background: #F9F9F9;
859
      border-radius: 5px;
860 861 862 863 864 865 866 867 868
    }

    header,
    .attachment-details {
      padding: 12px 15px;
    }

    .attachment-details {
      background: #eee;
869
      border-radius: 0 0 5px 5px;
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894
    }

    h3 {
      a {
        font-weight: bold;
        font-size: 0.9em;
      }

      .badge {
        float: right;
        font-size: 0.6em;
        line-height: 20px;
        color: #aaa;
      }
    }

    .attachment-description {
      font-size: 0.8em;
    }

    table {
      width: 100%;
      font-size: 0.8em;
    }

Tom Giannattasio committed
895 896 897 898
    .attachment-actions {
      width: 175px;
    }

899 900 901
    .attachment-actions .btn {
      float: right;
    }
902 903 904 905 906
  }




907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930

  /*-----------------

    Delete

  -----------------*/

  #div_id_confirm {
    position: relative;
    height: 30px;
    margin: 40px 0;

    #id_confirm {
      position: absolute;
      top: 6px;
    }

    label {
      position: absolute;
      left: 25px;
      font-size: 1.4em;
    }
  }

931
  div.delete {
932 933 934
    padding: 40px;
  }

935 936 937



Tom Giannattasio committed
938

Tom Giannattasio committed
939 940 941 942 943 944 945 946
  /*-----------------

    Alerts

  -----------------*/

  .alert {
    position: relative;
Kyle Fiedler committed
947
    margin: 24px 40px;
Tom Giannattasio committed
948 949 950 951 952 953 954 955 956 957 958 959 960
    padding: 8px 12px;
    border: 1px solid #EBE8BF;
    border-radius: 3px;
    background: $yellow;
    font-size: 0.9em;

    .close {
      position: absolute;
      right: 12px;
      font-size: 1.3em;
      top: 6px;
      color: #999;
      text-decoration: none;
961 962
    }
  }
963

Kyle Fiedler committed
964 965 966 967
  .main-article .alert {
    margin: 0 0 24px;
  }

968 969 970 971 972 973 974
  .missing {
    max-width: 400px;
    margin: lh(2) auto;
    display: block;
    overflow: hidden;
    background: $pink;
    padding: lh();
975
    box-shadow: inset 0 0 0 1px lighten($pink, 10%);
976 977 978 979 980 981 982 983 984 985 986 987 988 989
    border: 1px solid darken($pink, 15%);

    p {
      color: #fff;

      a {
        display: block;
        background: darken($pink, 8%);
        margin: lh() (-(lh())) (-(lh()));
        padding: lh();
        border-top: 1px solid darken($pink, 15%);
        color: #fff;
        font-weight: bold;
        font-size: em(18);
990
        @include transition(none);
991 992 993
        text-align: center;
        -webkit-font-smoothing: antialiased;

994
        &:hover, &:focus {
995 996 997 998 999
          background: darken($pink, 12%);
        }
      }
    }
  }
Tom Giannattasio committed
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
}

.modal-preview {
  min-width: 0;
}

.modal-preview .container {
  padding: 50px;
}

.modal-preview .main-article {
  width: 100% !important;
  margin-left: 0;
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033
}


#circuit_editor_modal.modal {
  width: 648px;
  z-index: 9999;
  margin-left: -325px;
  top: 150px;

  .modal-header {
    h1, p {
1034
      color: #fff;
1035 1036 1037 1038 1039
    }

    h1 {
      margin: 3px 12px 8px;
      font-size: 1.1em;
1040
    }
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064

    p {
      font-size: 0.9em;
      margin: 5px 12px 20px;
      line-height: 1em;
    }
  }

  .modal-body {
    padding-bottom: 8px;
  }

  .modal-footer {
    margin: 12px;
  }

  .modal-footer .btn {
    @include button(simple, #eee);
    font-size: 0.8em;
    margin-right: 5px;
    line-height: 1.2em;
    text-transform: none !important;
    letter-spacing: 0 !important;

1065
    &:hover, &:focus {
1066 1067 1068 1069 1070 1071 1072 1073
      color: $base-font-color;
      text-decoration: none;
    }

    &.btn-primary {
      @include button;
      font-size: 0.8em;
    }
1074

1075 1076 1077
    margin-right: 10px;
  }
}