_discussion.scss 47.9 KB
Newer Older
Matthew Mongeau committed
1 2
@mixin blue-button {
  display: block;
3
  height: 35px;
Matthew Mongeau committed
4 5
  padding: 0 15px;
  border-radius: 3px;
6
  border: 1px solid #2d81ad;
7
  @include linear-gradient(top, #6dccf1, #38a8e5);
Matthew Mongeau committed
8 9
  font-size: 13px;
  font-weight: 700;
10
  line-height: 32px;
Matthew Mongeau committed
11
  color: #fff;
Tom Giannattasio committed
12
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
Matthew Mongeau committed
13
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
Matthew Mongeau committed
14

Matthew Mongeau committed
15 16
  &:hover {
    border-color: #297095;
17
    @include linear-gradient(top, #4fbbe4, #2090d0);
Matthew Mongeau committed
18 19
  }
}
20

21 22 23 24 25
@mixin white-button {
  display: block;
  height: 35px;
  padding: 0 15px;
  border-radius: 3px;
26
  border: 1px solid #aaa;
27
  @include linear-gradient(top, #eee, #ccc);
28 29 30 31 32 33 34 35
  font-size: 13px;
  font-weight: 700;
  line-height: 32px;
  color: #333;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);

  &:hover {
36
    @include linear-gradient(top, #fff, #ddd);
37 38 39
  }
}

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
@mixin dark-grey-button {
  display: block;
  height: 35px;
  padding: 0 15px;
  border-radius: 3px;
  border: 1px solid #222;
  background: -webkit-linear-gradient(top, #777, #555);
  font-size: 13px;
  font-weight: 700;
  line-height: 32px;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);

  &:hover {
    background: -webkit-linear-gradient(top, #888, #666);
  }
}

59 60 61 62 63
@mixin discussion-wmd-input {
  width: 100%;
  height: 240px;
  margin-top: 0;
  padding: 10px;
64
  @include box-sizing(border-box);
65 66 67 68 69 70 71 72
  border: 1px solid #aaa;
  border-radius: 3px 3px 0 0;
  background: #fff;
  font-family: 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
}
Matthew Mongeau committed
73

74 75 76
@mixin discussion-wmd-preview {
  width: 100%;
  min-height: 40px;
77
  padding: 25px 20px 10px 20px;
78
  @include box-sizing(border-box);
79 80 81
  border: 1px solid #aaa;
  border-top: none;
  border-radius: 0 0 3px 3px;
82
  background: #eee;
83 84 85
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
}
86

Tom Giannattasio committed
87 88 89 90 91 92 93 94 95
@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}





Matthew Mongeau committed
96

97
body.discussion {
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
  .new-post-form-errors {
    display: none;
    background: $error-red;
    padding: 0;
    border: 1px solid #333;
    list-style: none;
    color: #fff;
    line-height: 1.6;
    border-radius: 3px;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.3) inset, 0 1px 0 rgba(255, 255, 255, .2));

    li {
      padding: 10px 20px 12px 45px;
      border-bottom: 1px solid #dc4949;
      background: url(../images/white-error-icon.png) no-repeat 15px 14px;

      &:last-child {
        border-bottom: none;
      }
    }
  }

120 121
  .course-tabs .right {
    float: right;
Matthew Mongeau committed
122

123 124
    .new-post-btn {
      @include blue-button;
Tom Giannattasio committed
125
      font-size: 13px;
Tom Giannattasio committed
126
      margin-right: 4px;
127 128 129 130 131 132 133 134 135 136
    }

    .new-post-icon {
      display: block;
      float: left;
      width: 16px;
      height: 17px;
      margin: 8px 7px 0 0;
      background: url(../images/new-post-icon.png) no-repeat;
    }
Matthew Mongeau committed
137
  }
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152

  .new-post-article {
    display: none;
    margin-top: 20px;

    .inner-wrapper {
      max-width: 1180px;
      min-width: 760px;
      margin: auto;
    }

    .left-column {
      float: left;
      width: 32%;
      padding: 40px;
153
      @include box-sizing(border-box);
154 155 156 157 158 159 160 161

      label {
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        text-shadow: none;
      }

162
      .form-topic-drop {
163 164 165 166 167 168 169 170 171
        position: relative;

        ul {
          list-style: none;
          margin: 0;
          padding: 0;
        }
      }

172 173 174 175 176 177
      .form-group-label {
        display: block;
        padding-top: 5px;
        color:#fff;
      }

Arjun Singh committed
178
      .topic_dropdown_button {
179
        position: relative;
180
        z-index: 1000;
181 182 183
        @include white-button;
        height: 40px;
        margin-top: 15px;
184
        border-color: #444;
185 186 187 188 189
        line-height: 36px;

        .drop-arrow {
          float: right;
          color: #999;
190
          line-height: 37px;
191 192 193
        }
      }

Arjun Singh committed
194
      .topic_menu_wrapper {
195 196 197 198 199 200
        display: none;
        position: absolute;
        top: 40px;
        left: 0;
        z-index: 9999;
        width: 100%;
201
        @include box-sizing(border-box);
202 203 204
        background: #737373;
        border: 1px solid #333;
        box-shadow: 0 2px 50px rgba(0, 0, 0, .4);
205 206
      }

Arjun Singh committed
207
      .topic_menu {
208 209
        max-height: 400px;
        overflow-y: scroll;
210 211 212 213 214 215 216

        a {
          display: block;
          padding: 10px 15px;
          border-top: 1px solid #5f5f5f;
          font-size: 14px;
          font-weight: 700;
217
          line-height: 18px;
218
          color: #eee;
219
          @include transition(none);
220

221 222
          &:hover,
          &.focused {
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
            background-color: #666;
          }
        }

        li li {
          a {
            padding-left: 39px;
            background: url(../images/nested-icon.png) no-repeat 17px 10px;
          }
        }

        li li li {
          a {
            padding-left: 63px;
            background: url(../images/nested-icon.png) no-repeat 41px 10px;
          }
        }
      }
241

Arjun Singh committed
242
      .topic_menu_search {
243
        padding: 10px;
Arjun Singh committed
244
        border-bottom: 1px solid black;
245 246 247 248 249 250
      }

      .form-topic-drop-search-input {
        width: 100%;
        height: 30px;
        padding: 0 15px;
251
        @include box-sizing(border-box);
252 253 254 255 256 257 258 259 260
        border-radius: 30px;
        border: 1px solid #333;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .25) inset;
        background: -webkit-linear-gradient(top, #eee, #fff);
        font-size: 11px;
        line-height: 16px;
        color: #333;
        outline: 0;
      }
261 262 263 264 265 266
    }

    .right-column {
      float: left;
      width: 68%;
      padding: 40px;
267
      @include box-sizing(border-box);
268
    }
269 270 271 272 273 274 275 276

    .wmd-button {
      background: none;
    }

    .wmd-button span {
      background: url(../images/new-post-icons-full.png) no-repeat;
    }
277 278
  }

Arjun Singh committed
279 280
  .edit-post-form {
    width: 100%;
281
    margin-bottom: 40px;
Arjun Singh committed
282
    @include clearfix;
283 284
    @include box-sizing(border-box);

285 286 287 288
    h1 {
      font-size: 20px;
    }

289 290 291 292
    .form-row {
      margin-top: 20px;
    }

Arjun Singh committed
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
    .post-cancel {
      @include white-button;
      float: left;
      margin: 10px 0 0 15px;
    }

    .post-update {
      @include blue-button;
      float: left;
      height: 37px;
      margin-top: 10px;
      padding-bottom: 2px;

      &:hover {
        border-color: #222;
      }
    }

    .edit-post-title, .edit-post-tags {
      width: 100%;
      height: 40px;
      padding: 0 10px;
315
      @include box-sizing(border-box);
Arjun Singh committed
316
      border-radius: 3px;
317
      border: 1px solid #aaa;
Arjun Singh committed
318
      font-size: 16px;
319
      font-family: $sans-serif;
Arjun Singh committed
320
      color: #333;
321
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
Arjun Singh committed
322 323
    }

324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
    .tagsinput {
      padding: 10px;
      @include box-sizing(border-box);
      border: 1px solid #aaa;
      border-radius: 3px;
      background: #fff;
      font-family: 'Monaco', monospace;
      font-size: 13px;
      line-height: 1.6;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;

      span.tag {
        margin-bottom: 0;
      }
    }
Arjun Singh committed
339 340
  }

341 342 343 344 345 346 347 348 349 350 351 352 353
  .new-post-form {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5) inset, 0 1px 0 rgba(255, 255, 255, .5);
    @include clearfix;

    .form-row {
      margin-bottom: 20px;
    }

354 355
    .new-post-body .wmd-input {
      @include discussion-wmd-input;
356 357 358 359 360
      position: relative;
      width: 100%;
      height: 200px;
      z-index: 1;
      padding: 10px;
361
      @include box-sizing(border-box);
362 363 364 365 366 367 368 369 370
      border: 1px solid #333;
      border-radius: 3px 3px 0 0;
      background: #fff;
      font-family: 'Monaco', monospace;
      font-size: 13px;
      line-height: 1.6;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
    }

371 372
    .tagsinput {
      padding: 10px;
373
      @include box-sizing(border-box);
374 375 376 377 378 379 380 381 382 383 384 385 386
      border: 1px solid #333;
      border-radius: 3px;
      background: #fff;
      font-family: 'Monaco', monospace;
      font-size: 13px;
      line-height: 1.6;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;

      span.tag {
        margin-bottom: 0;
      }
    }

387 388
    .new-post-body .wmd-preview {
      @include discussion-wmd-preview;
389 390
      position: relative;
      width: 100%;
391
      //height: 50px;
392
      margin-top: -1px;
393
      padding: 25px 20px 10px 20px;
394
      @include box-sizing(border-box);
395 396
      border: 1px solid #333;
      border-radius: 0 0 3px 3px;
397
      background: #e6e6e6;
398 399 400 401 402 403 404
      color: #333;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
    }

    .new-post-preview-label {
      position: absolute;
      top: 4px;
405
      left: 4px;
406 407
      font-size: 11px;
      color: #aaa;
408
      text-transform: uppercase;
409 410 411 412 413 414 415
    }

    .new-post-title,
    .new-post-tags {
      width: 100%;
      height: 40px;
      padding: 0 10px;
416
      @include box-sizing(border-box);
417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
      border-radius: 3px;
      border: 1px solid #333;
      font-size: 16px;
      font-family: 'Open Sans', sans-serif;
      color: #333;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
    }

    .new-post-title {
      font-weight: 700;
    }

    .submit {
      @include blue-button;
      float: left;
      height: 37px;
      margin-top: 10px;
      padding-bottom: 2px;
      border-color: #333;

      &:hover {
        border-color: #222;
      }
    }

    .new-post-cancel {
      @include white-button;
444
      border-color: #444;
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
      float: left;
      margin: 10px 0 0 15px;
    }

    .options {
      margin-top: 40px;

      label {
        display: inline;
        margin-left: 8px;
        font-size: 15px;
        color: #fff;
        text-shadow: none;
      }
    }
  }
461 462 463



Tom Giannattasio committed
464 465 466 467 468
  .thread-tags {
    margin-top: 20px;
  }

  .thread-tag {
Tom Giannattasio committed
469
    margin-right: 5px;
Tom Giannattasio committed
470 471 472 473 474
    padding: 3px 10px 6px;
    border-radius: 3px;
    color: #333;
    background: #c5eeff;
    border: 1px solid #90c4d7;
475
    font-size: 13px;
Tom Giannattasio committed
476 477 478 479 480 481 482 483 484
  }

  .thread-title {
    display: block;
    margin-bottom: 20px;
    font-size: 21px;
    color: #333;
    font-weight: 700;
  }
485

Tom Giannattasio committed
486 487 488



489 490 491 492 493 494 495 496 497 498 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

  section.user-profile {
    @extend .sidebar;
    display: table-cell;
    @include border-radius(3px 0 0 3px);
    border-right: 1px solid #ddd;
    @include box-shadow(none);
    background-color: $sidebar-color;

    .user-profile {
      padding: 32px 36px;
    }

    .sidebar-username {
      font-size: 18px;
      font-weight: 700;
    }

    .sidebar-user-roles {
      margin-top: 6px;
      font-size: 13px;
      font-style: italic;
    }

    .sidebar-threads-count {
      margin-top: 14px;
    }

    .sidebar-threads-count span,
    .sidebar-comments-count span {
      font-weight: 700;
    }

    .sidebar-toggle-moderator-button {
      @include blue-button;
      text-align: center;
      margin-top: 20px;
    }
  }
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562




  .wmd-panel {
    width: 100%;
    min-width: 500px;
  }

  .wmd-button-bar  {
    width: 100%;
    background-color: Silver;
  }

  .wmd-input {
    height: 150px;
    width: 100%;
    background-color: #e9e9e9;
    border: 1px solid #c8c8c8;
    font-family: Monaco, 'Lucida Console', monospace;
    font-style: normal;
    font-size: 0.8em;
    line-height: 1.6em;
    @include border-radius(3px 3px 0 0);

    &::-webkit-input-placeholder {
      color: #888;
    }
  }

  .wmd-preview {
    position: relative;
    font-family: $sans-serif;
    padding: 25px 20px 10px 20px;
    margin-bottom: 5px;
563
    @include box-sizing(border-box);
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 618 619
    border: 1px solid #c8c8c8;
    border-top-width: 0;
    @include border-radius(0 0 3px 3px);
    overflow: hidden;
    @include transition(all, .2s, easeOut);

    &:before {
      content: 'PREVIEW';
      position: absolute;
      top: 3px;
      left: 5px;
      font-size: 11px;
      color: #bbb;
    }

    p {
      font-family: $sans-serif;
    }
    background-color: #fafafa;
  }

  .wmd-button-row {
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-top: 10px;
    padding: 0px;
    height: 20px;
    overflow: hidden;
    @include transition(all, .2s, easeOut);
  }

  .wmd-spacer {
    width: 1px;
    height: 20px;
    margin-left: 14px;

    position: absolute;
    background-color: Silver;
    display: inline-block;
    list-style: none;
  }

  .wmd-button {
    width: 20px;
    height: 20px;
    padding-left: 2px;
    padding-right: 3px;
    position: absolute;
    display: inline-block;
    list-style: none;
    cursor: pointer;
  }

  .wmd-button > span {
620
    display: inline-block;
621 622 623 624
    background-image: url('/static/images/wmd-buttons.png');
    background-repeat: no-repeat;
    background-position: 0px 0px;
    width: 20px;
625
    height: 20px;
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 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
  }

  .wmd-spacer1 {
    left: 50px;
  }
  .wmd-spacer2 {
    left: 175px;
  }

  .wmd-spacer3 {
    left: 300px;
  }

  .wmd-prompt-background {
    background-color: Black;
  }

  .wmd-prompt-dialog {
    @extend .modal;
    background: #fff;
  }

  .wmd-prompt-dialog {
    padding: 20px;

    > div {
      font-size: 0.8em;
      font-family: arial, helvetica, sans-serif;
    }

    b {
      font-size: 16px;
    }

    > form > input[type="text"] {
      border-radius: 3px;
      color: #333;
    }

    > form > input[type="button"] {
      border: 1px solid #888;
      font-family: $sans-serif;
      font-size: 14px;
    }

    > form > input[type="file"] {
      margin-bottom: 18px;
    }
  }
675
}
Matthew Mongeau committed
676

Tom Giannattasio committed
677 678
.container .discussion-body {
  display: block;
679
  line-height: 1.4;
Tom Giannattasio committed
680 681 682 683
  background: transparent;
  box-shadow: none;
  border: none;
  @include clearfix;
Matthew Mongeau committed
684 685

  .sidebar {
Tom Giannattasio committed
686 687
    float: left;
    @include box-sizing(border-box);
688
    width: 31%;
Tom Giannattasio committed
689 690 691
    height: 550px;
    border: 1px solid #aaa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
Matthew Mongeau committed
692
    background: #f6f6f6;
Tom Giannattasio committed
693
    border-radius: 3px;
Matthew Mongeau committed
694
    border-right: 1px solid #bcbcbc;
Arjun Singh committed
695 696 697 698 699 700 701 702

    &.fixed {
      @include box-sizing(border-box);
      position: fixed;
      top: 0px;
      width: 32%;
    }

703
  }
Matthew Mongeau committed
704

705 706 707 708 709 710
  .browse-search {
    display: block;
    position: relative;
    height: 60px;
    border-bottom: 1px solid #a3a3a3;
    border-radius: 3px 0 0 0;
711

712 713 714 715 716 717 718

    .browse,
    .search {
      position: relative;
      float: left;
      width: 20%;
      height: 100%;
719 720 721
      @include linear-gradient(top, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
      background-color: #dcdcdc;
      @include transition(all .2s ease-out);
722 723 724

      &:hover {
        background-color: #e9e9e9;
Matthew Mongeau committed
725 726
      }

727 728 729 730
      &.is-open {
        width: 80%;
      }
    }
Matthew Mongeau committed
731

732 733 734
    .browse {
      border-radius: 3px 0 0 0;
      box-shadow: -1px 0 0 #aaa inset;
Matthew Mongeau committed
735

736
      &.is-open {
737
        .browse-topic-drop-btn span {
738
          opacity: 1;
Matthew Mongeau committed
739 740
        }

741
        .browse-topic-drop-icon {
742 743
          opacity: 0;
        }
Matthew Mongeau committed
744

745
        &.is-dropped {
746
          .browse-topic-drop-btn {
747 748 749 750 751 752

            span {
              color: #fff;
              text-shadow: none;
            }

753
            border-color: #4b4b4b;
Matthew Mongeau committed
754
          }
755 756
        }
      }
Matthew Mongeau committed
757

758
      &.is-dropped {
759
        .browse-topic-drop-btn {
760 761 762
          background-color: #616161;
        }
      }
Matthew Mongeau committed
763

764
      &.is-dropped {
765
        .browse-topic-drop-icon {
766 767 768 769
          background-position: 0 -16px;
        }
      }
    }
Matthew Mongeau committed
770

771 772
    .search {
      cursor: pointer;
Tom Giannattasio committed
773
      border-radius: 0 3px 0 0;
774 775 776 777 778 779 780 781 782 783 784 785 786

      &.is-open {
        cursor: auto;

        .post-search {
          padding: 0 10px;
          max-width: 1000px;
        }

        .post-search-field {
          cursor: text;
          pointer-events: auto;

787 788 789
          &::-webkit-input-placeholder,
          &:-moz-placeholder,
          &:-ms-input-placeholder {
790
            opacity: 1;
Matthew Mongeau committed
791 792
          }
        }
Matthew Mongeau committed
793
      }
794
    }
Matthew Mongeau committed
795

796
    .browse-topic-drop-btn {
797 798 799 800 801 802 803 804 805 806 807
      display: block;
      position: absolute;
      top: -1px;
      left: -1px;
      z-index: 50;
      width: 100%;
      height: 100%;
      border-radius: 3px 0 0 0;
      border: 1px solid transparent;
      text-align: center;
      overflow: hidden;
808
      @include transition(none);
809 810

      .current-board {
Matthew Mongeau committed
811 812
        white-space: nowrap;
      }
Matthew Mongeau committed
813

814
      span {
815
        font-size: 14px;
Matthew Mongeau committed
816
        font-weight: 700;
817 818 819 820
        line-height: 58px;
        color: #333;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
        opacity: 0;
821
        @include transition(opacity .2s);
Matthew Mongeau committed
822
      }
823 824
    }

825
    .browse-topic-drop-icon {
826 827 828 829 830 831 832 833 834 835
      display: block;
      position: absolute;
      top: 21px;
      left: 50%;
      z-index: 100;
      width: 29px;
      height: 16px;
      margin-left: -12px;
      background: url(../images/browse-icon.png) no-repeat;
      opacity: 1;
836
      @include transition(none);
837
    }
Matthew Mongeau committed
838

839
    .browse-topic-drop-menu-wrapper {
840 841 842 843 844 845 846 847
      display: none;
      position: absolute;
      top: 60px;
      left: -1px;
      z-index: 9999;
      width: 100%;
      background: #737373;
      border: 1px solid #4b4b4b;
848
      border-left: none;
849
      border-radius: 0 0 3px 3px;
850
      @include box-shadow(1px 0 0 #4b4b4b inset);
851

852 853 854 855 856
      .browse-topic-drop-menu {
        max-height: 400px;
        overflow-y: scroll;
      }

857 858 859 860
      ul {
        position: inline;
      }

861 862 863
      > li:first-child a {
        border-top: none;
      }
Matthew Mongeau committed
864

865 866 867 868 869 870
      a {
        display: block;
        padding: 0 20px;
        border-top: 1px solid #5f5f5f;
        font-size: 14px;
        font-weight: 700;
871
        line-height: 22px;
872
        color: #fff;
873
        @include clearfix;
874
        @include transition(none);
875

876 877 878 879 880 881
        &.hidden {
          display: none;
        }

        &:hover,
        &.focused {
882
          background-color: #636363;
Matthew Mongeau committed
883 884
        }

885 886 887 888
        .board-name {
          float: left;
          width: 80%;
          margin: 13px 0;
Arjun Singh committed
889
          color: #fff;
890 891
        }

892 893 894 895 896 897 898
        .unread {
          float: right;
          padding: 0 5px;
          margin-top: 13px;
          font-size: 11px;
          line-height: 22px;
          border-radius: 2px;
899
          @include linear-gradient(top, #4c4c4c, #5a5a5a);
900 901
        }
      }
Matthew Mongeau committed
902

903 904 905 906 907 908 909 910 911 912 913
      li li {
        a {
          padding-left: 44px;
          background: url(../images/nested-icon.png) no-repeat 22px 14px;
        }
      }

      li li li {
        a {
          padding-left: 68px;
          background: url(../images/nested-icon.png) no-repeat 46px 14px;
Matthew Mongeau committed
914
        }
Matthew Mongeau committed
915 916
      }
    }
Brittany Cheng committed
917

918 919 920 921 922 923 924 925
    .browse-topic-drop-search {
      padding: 10px;
    }

    .browse-topic-drop-search-input {
      width: 100%;
      height: 30px;
      padding: 0 15px;
926
      @include box-sizing(border-box);
927 928 929 930 931 932 933 934 935 936
      border-radius: 30px;
      border: 1px solid #333;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .25) inset;
      background: -webkit-linear-gradient(top, #eee, #fff);
      font-size: 11px;
      line-height: 16px;
      color: #333;
      outline: 0;
    }

937 938 939 940
    .post-search {
      width: 100%;
      max-width: 30px;
      margin: auto;
941 942
      @include box-sizing(border-box);
      @include transition(all .2s);
943 944 945 946 947 948
    }

    .post-search-field {
      display: block;
      width: 100%;
      height: 30px;
949
      padding: 0 0 0 30px;
950
      margin: 14px auto;
951
      @include box-sizing(border-box);
952 953 954 955 956 957 958 959 960 961 962 963
      border: 1px solid #acacac;
      border-radius: 30px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .1) inset, 0 1px 0 rgba(255, 255, 255, .5);
      background: url(../images/search-icon.png) no-repeat 7px center #fff;
      font-family: 'Open Sans', sans-serif;
      font-weight: 400;
      font-size: 13px;
      line-height: 20px;
      color: #333;
      outline: 0;
      cursor: pointer;
      pointer-events: none;
964
      @include transition(all .2s ease-out);
965

966 967 968
      &::-webkit-input-placeholder,
      &:-moz-placeholder,
      &:-ms-input-placeholder {
969
        opacity: 0;
970
        @include transition(opacity .2s);
971 972 973 974 975 976
      }

      &:focus {
        border-color: #4697c1;
      }
    }
977 978
  }

Matthew Mongeau committed
979
  .sort-bar {
980
    height: auto;
Your Name committed
981
    min-height: 27px;
Matthew Mongeau committed
982
    border-bottom: 1px solid #a3a3a3;
983 984
    @include linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
    background-color: #aeaeae;
985
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset;
Tom Giannattasio committed
986 987 988 989 990 991 992 993 994 995

    span,
    a {
      font-size: 9px;
      font-weight: bold;
      line-height: 25px;
      color: #333;
      text-transform: uppercase;
      text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    }
996 997 998 999 1000 1001 1002 1003 1004 1005 1006

    .sort-label {
      display: block;
      float: left;
      margin: 0 10px;
    }

    li {
      float: left;
      margin: 4px 4px 0 0;
    }
1007

Matthew Mongeau committed
1008
    a {
1009
      display: block;
1010 1011 1012
      height: 18px;
      padding: 0 9px;
      border-radius: 19px;
Matthew Mongeau committed
1013
      color: #333;
1014
      line-height: 17px;
1015

1016
      &:hover {
1017
        @include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, .2));
Tom Giannattasio committed
1018
        color: #333;
1019 1020 1021
      }

      &.active {
1022 1023
        @include linear-gradient(top, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0));
        background-color: #999;
1024 1025 1026
        color: #fff;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, .2) inset;
1027
      }
Rocky Duan committed
1028

1029
    }
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
    .group-filter-label {
      width: 40px;
      margin-left:10px;
    }

    .group-filter-select {
      margin: 5px 0px 5px 5px;
      width: 80px;
      font-size:10px;
      background: transparent;
      border-color: #ccc;
    }
Brittany Cheng committed
1042
  }
1043

1044 1045
  .post-list-wrapper {
    overflow-y: scroll;
Tom Giannattasio committed
1046
    overflow-x: hidden;
Tom Giannattasio committed
1047
    border-right: 1px solid transparent;
1048 1049
  }

1050 1051
  .post-list {
    background-color: #ddd;
1052

1053 1054
    .loading {
      padding: 15px 0;
1055 1056 1057 1058 1059
      background: #f6f6f6;

      .loading-animation {
        background-image: url(../images/spinner-on-grey.gif);
      }
1060
    }
1061

1062
    .more-pages a {
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073
      background: #eee;
      font-size: 12px;
      line-height: 33px;
      text-align: center;

      &:hover {
        background-image: none;
        background-color: #e6e6e6;
      }
    }

1074 1075
    a {
      display: block;
1076 1077 1078 1079
      position: relative;      
      float: left;
      clear: both;
      width: 100%;
1080
      padding: 0 10px 0 18px;
1081
      margin-bottom: 1px;
Tom Giannattasio committed
1082
      margin-right: -1px;
Tom Giannattasio committed
1083 1084
      @include linear-gradient(top, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
      background-color: #fff;
1085
      @include clearfix;
Tom Giannattasio committed
1086 1087 1088 1089 1090 1091

      &:hover {
        @include linear-gradient(top, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
        background-color: #eee;
      }

1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
      &.staff-post.staff-response {
        .staff-post-icon {
          top: 5px;
        }

        .staff-response-icon {
          top: 18px;
        }
      }

      .staff-post-icon,
      .staff-response-icon {
        position: absolute;
        top: 11px;
        left: 3px;
        width: 13px;
        height: 13px;
        background: url(../images/staff-icons.png) no-repeat;
      }

      .staff-post-icon {
        left: 2px;
        background-position: 0 0;
      }

      .staff-response-icon {
        background-position: -13px 0;
      }

Tom Giannattasio committed
1121
      .title {
1122 1123 1124 1125
        display: block;
        float: left;
        width: 70%;
        margin: 8px 0 10px;
Tom Giannattasio committed
1126 1127
        font-size: 13px;
        font-weight: 700;
1128
        line-height: 1.4;
Tom Giannattasio committed
1129 1130
        color: #333;
      }
1131

1132 1133 1134 1135 1136 1137 1138
      &.read {
        background: #f2f2f2;

        .title {
          font-weight: 400;
          color: #737373;
        }
1139
      }
1140

1141 1142 1143 1144 1145 1146 1147 1148 1149
      &.resolved:before {
        content: '';
        position: absolute;
        top: 12px;
        right: 75px;
        width: 9px;
        height: 8px;
        background: url(../images/sidebar-resolved-icons.png) no-repeat;
      }
1150

1151
      &.followed:after {
Tom Giannattasio committed
1152
        content: '';
1153
        position: absolute;
Tom Giannattasio committed
1154
        top: 0;
1155
        right: 0;
Tom Giannattasio committed
1156
        width: 10px;
Tom Giannattasio committed
1157 1158
        height: 12px;
        background: url(../images/following-flag.png) no-repeat;
1159
      }
1160

1161
      &.active {
1162
        @include linear-gradient(top, #96e0fd, #61c7fc);
1163 1164
        border-color: #4697c1;
        box-shadow: 0 1px 0 #4697c1, 0 -1px 0 #4697c1;
Brittany Cheng committed
1165

1166
        .title {
1167
          color: #333;
1168
        }
1169

1170 1171 1172 1173 1174 1175 1176 1177
        .staff-post-icon {
          background-position: 0 -13px;
        }

        .staff-response-icon {
          background-position: -13px -13px;
        }

1178 1179
        .votes-count,
        .comments-count {
1180
          @include linear-gradient(top, #3994c7, #4da7d3);
1181
          color: #fff;
1182

1183
          &:after {
Tom Giannattasio committed
1184
            background-position: 0 0;
1185 1186
          }
        }
1187

1188
        &.followed:after {
Tom Giannattasio committed
1189
          background-position: 0 -12px;
1190
        }
1191

1192 1193 1194 1195 1196
        &.resolved:before {
          background-position: 0 -8px;
        }
      }
    }
1197

1198 1199 1200 1201 1202 1203
    .votes-count,
    .comments-count {
      display: block;
      float: right;
      width: 32px;
      height: 16px;
1204
      margin-top: 8px;
1205
      border-radius: 2px;
1206
      @include linear-gradient(top, #d4d4d4, #dfdfdf);
1207
      font-size: 11px;
1208 1209 1210 1211 1212
      font-weight: 700;
      line-height: 16px;
      text-align: center;
      color: #767676;
    }
1213

1214 1215 1216 1217
    .comments-count {
      position: relative;
      width: 25px;
      margin-left: 4px;
1218

1219
      &:after {
Tom Giannattasio committed
1220
        content: '';
1221 1222
        display: block;
        position: absolute;
Tom Giannattasio committed
1223
        top: 16px;
1224
        right: 3px;
Tom Giannattasio committed
1225 1226 1227 1228
        width: 5px;
        height: 5px;
        background: url(../images/comment-icon-bottoms.png) no-repeat;
        background-position: 0 -5px;
1229
      }
1230

1231 1232
      &.unread {
        @include linear-gradient(top, #84d7fe, #60a8d6);
1233
        color: #333;
1234

1235 1236
        &:after {
          color: #99e0fe;
1237
          background-position: 0 0px;
1238 1239 1240 1241
        }
      }
    }
  }
1242 1243 1244



1245

1246 1247 1248 1249 1250 1251 1252 1253 1254 1255
  .bottom-post-status {
    padding: 30px;
    font-size: 20px;
    font-weight: 700;
    color: #ccc;
    text-align: center;
  }



1256

1257
  .discussion-column {
Tom Giannattasio committed
1258
    float: right;
Tom Giannattasio committed
1259
    @include box-sizing(border-box);
Tom Giannattasio committed
1260 1261 1262
    width: 68%;
    max-width: 800px;
    min-height: 500px;
Tom Giannattasio committed
1263
    border: 1px solid #aaa;
1264
    border-radius: 3px;
Tom Giannattasio committed
1265 1266
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
Arjun Singh committed
1267 1268 1269 1270

    &.sidebar-fixed {
      margin-left: 32%;
    }
1271
  }
1272

1273 1274 1275 1276 1277 1278 1279
  .blank-slate h1 {
    margin-top: 195px;
    text-align: center;
    color: #ccc;
  }

  .blank-slate,
1280 1281 1282
  .discussion-article {
    position: relative;
    padding: 40px;
1283 1284
    min-height: 468px;

1285 1286 1287 1288
    a {
      word-wrap: break-word;
    }

1289 1290 1291 1292
    h1 {
      margin-bottom: 10px;
      font-size: 28px;
      font-weight: 700;
1293
      letter-spacing: 0;
1294 1295 1296 1297 1298 1299 1300
      line-height: 1.2;
    }

    .posted-details {
      font-size: 12px;
      font-style: italic;
      color: #888;
1301

1302 1303 1304 1305 1306 1307
      .username {
        display: block;
        font-size: 16px;
        font-weight: 700;
      }

1308 1309 1310
      span {
        font-style: italic;
      }
1311 1312
    }

1313 1314 1315 1316 1317 1318
    .post-context{
      margin-top: 20px;
      font-size: 12px;
      color: #888;
    }

1319 1320 1321 1322 1323 1324 1325 1326
    p + p {
      margin-top: 20px;
    }

    .dogear {
      display: block;
      position: absolute;
      top: -1px;
Tom Giannattasio committed
1327
      right: -1px;
1328 1329 1330 1331 1332 1333 1334 1335 1336
      width: 52px;
      height: 51px;
      background: url(../images/follow-dog-ear.png) 0 -52px no-repeat;
      @include transition(none);

      &.is-followed {
        background-position: 0 0;
      }
    }
Brittany Cheng committed
1337
  }
1338

1339 1340 1341 1342
  .discussion-post {
    padding: 10px 20px;

    > header .vote-btn {
1343 1344
      position: relative;
      z-index: 100;
1345
      margin-top: 5px;
1346
      margin-left: 40px;
1347
    }
1348

1349 1350


1351
    .post-tools {
1352 1353 1354
      @include clearfix;
      margin-top: 15px;

1355 1356 1357
      .ui-icon {
        display: inline;
        float: left;
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371
        width: 13px;
        height: 13px;
        margin-right: 4px;
        background: url(../images/small-grey-arrows.png) no-repeat;

        &.expand {
          margin-top: 5px;
          background-position: 0 0;
        }

        &.collapse {
          margin-top: 6px;
          background-position: -13px 0;
        }
1372 1373
      }
    }
1374 1375
  }

1376 1377 1378 1379 1380
  .discussion-post header,
  .responses li header {
    margin-bottom: 20px;
  }

1381 1382
  

1383 1384 1385
  .responses {
    list-style: none;
    margin-top: 40px;
1386
    padding: 0;
1387 1388 1389 1390

    > li {
      position: relative;
      margin: 0 -10px 30px;
1391
      padding: 26px 30px 20px;
1392 1393 1394
      border-radius: 3px;
      border: 1px solid #b2b2b2;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
Tom Giannattasio committed
1395
      @include animation(fadeIn .3s);
1396 1397 1398 1399 1400 1401

      &.staff {
        padding-top: 38px;
        border-color: #009fe2;
      }

1402 1403 1404 1405 1406
      &.community-ta{
        padding-top: 38px;
        border-color: #449944;
      }

1407 1408 1409 1410 1411 1412 1413
      .staff-banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 14px;
        padding: 1px 5px;
1414
        @include box-sizing(border-box);
1415 1416 1417 1418 1419 1420 1421
        border-radius: 2px 2px 0 0;
        background: #009fe2;
        font-size: 9px;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
      }
Tom Giannattasio committed
1422

1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439
      .community-ta-banner{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 14px;
        padding: 1px 5px;
        @include box-sizing(border-box);
        border-radius: 2px 2px 0 0;
        background: #449944;
        font-size: 9px;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
      }


Tom Giannattasio committed
1440
      &.loading {
1441 1442 1443
        height: 0;
        margin: 0;
        padding: 0;
Tom Giannattasio committed
1444 1445 1446
        border: none;
        box-shadow: none;
      }
1447 1448 1449 1450 1451
    }

    .posted-by {
      font-weight: 700;
    }
Brittany Cheng committed
1452
  }
1453

1454
  .vote-btn {
1455 1456
    position: relative;
    z-index: 100;
1457
    float: right;
Brittany Cheng committed
1458
    display: block;
1459 1460 1461 1462
    height: 27px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid #b2b2b2;
1463
    @include linear-gradient(top, #fff 35%, #ebebeb);
1464 1465 1466 1467 1468 1469 1470
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
    font-size: 12px;
    font-weight: 700;
    line-height: 25px;
    color: #333;

    .plus-icon {
1471
      display: inline-block;
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483
      width: 10px;
      height: 10px;
      margin: 8px 6px 0 0;
      background: url(../images/vote-plus-icon.png) no-repeat;
      font-size: 18px;
      text-indent: -9999px;
      color: #17b429;
      overflow: hidden;
    }

    &.is-cast {
      border-color: #379a42;
1484
      @include linear-gradient(top, #50cc5e, #3db84b);
1485 1486 1487
      color: #fff;
      text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
      box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 2px rgba(0, 0, 0, .2);
1488

1489 1490 1491 1492 1493
      .plus-icon {
        background-position: 0 -10px;
        color: #336a39;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
      }
Brittany Cheng committed
1494
    }
1495
  }
Brittany Cheng committed
1496

1497 1498 1499 1500 1501 1502 1503 1504
  .endorse-btn {
    display: block;
    float: right;
    width: 27px;
    height: 27px;
    margin-right: 10px;
    border-radius: 27px;
    border: 1px solid #a0a0a0;
1505
    @include linear-gradient(top, #fff 35%, #ebebeb);
1506 1507 1508 1509 1510 1511 1512 1513 1514
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);

    .check-icon {
      display: block;
      width: 13px;
      height: 12px;
      margin: 8px auto;
      background: url(../images/endorse-icon.png) no-repeat;
    }
Tom Giannattasio committed
1515

1516 1517
    &.is-endorsed {
      border: 1px solid #4697c1;
1518
      @include linear-gradient(top, #6dccf1, #38a8e5);
1519
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, .4) inset;
Brittany Cheng committed
1520

1521 1522 1523 1524
      .check-icon {
        background-position: 0 -12px;
      }
    }
Brittany Cheng committed
1525 1526
  }

1527 1528 1529 1530 1531 1532 1533
  blockquote {
    background: #f6f6f6;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
  }

1534 1535 1536 1537 1538 1539
  .comments {
    list-style: none;
    margin-top: 20px;
    padding: 0;
    border-top: 1px solid #ddd;

1540
    > li {
1541 1542
      background: #f6f6f6;
      border-bottom: 1px solid #ddd;
1543 1544
    }

1545 1546 1547 1548 1549 1550 1551
    blockquote {
      background: #e6e6e6;
      border-radius: 3px;
      padding: 5px 10px;
      font-size: 14px;
    }

1552 1553
    .comment-form {
      background: #eee;
Arjun Singh committed
1554
      @include clearfix;
1555

1556 1557 1558 1559
      .comment-form-input {
        padding: 5px 10px;
        background-color: #fff;
        font-size: 14px;
1560
      }
Arjun Singh committed
1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574

      .discussion-submit-comment {
        @include blue-button;
        float: left;
        margin-top: 8px;
      }

      .wmd-input {
        height: 40px;
      }

      .discussion-errors {
        margin: 0px;
      }
1575 1576
    }

1577
    .response-body {
1578 1579 1580
      font-size: 13px;
      padding: 10px 20px;

1581 1582
      p + p {
        margin-top: 12px;
1583 1584 1585
      }
    }

1586 1587 1588 1589 1590
    .posted-details {
      margin: 0 20px 10px;
      font-size: 11px;
    }

1591 1592 1593 1594 1595 1596 1597
    .staff-label {
      margin-left: 2px;
      padding: 0 4px;
      border-radius: 2px;
      background: #009FE2;
      font-size: 9px;
      font-weight: 700;
1598 1599
      font-style: normal;
      color: white;
1600 1601
      text-transform: uppercase;
    }
Rocky Duan committed
1602
  }
1603

1604
  .community-ta-label{
1605 1606 1607
    margin-left: 2px;
    padding: 0 4px;
    border-radius: 2px;
1608
    background: #449944;
1609 1610 1611 1612 1613 1614 1615
    font-size: 9px;
    font-weight: 700;
    font-style: normal;   
    color: white;   
    text-transform: uppercase;
  }

1616 1617
  .comment-form {
    padding: 8px 20px;
1618

1619 1620 1621 1622
    .wmd-input {
      @include transition(all .2s);
    }

1623 1624 1625 1626 1627 1628 1629
    .wmd-button {
      background: transparent;

      span {
        background-image: url(../images/wmd-buttons-transparent.png);
      }
    }
Brittany Cheng committed
1630
  }
Brittany Cheng committed
1631

1632 1633 1634 1635
  .comment-form-input {
    width: 100%;
    height: 31px;
    padding: 0 10px;
1636
    @include box-sizing(border-box);
1637 1638 1639
    border: 1px solid #b2b2b2;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1) inset;
1640
    @include transition(border-color .1s);
1641
    outline: 0;
1642

1643 1644
    &:focus {
      border-color: #4697c1;
1645 1646 1647
    }
  }

1648
  .moderator-actions {
1649
    margin: 0;
1650
    margin-top: 20px;
1651
    padding: 0;
1652
    @include clearfix;
1653

1654 1655 1656
    li {
      float: left;
      margin-right: 8px;
1657
      list-style: none;
1658 1659 1660 1661 1662 1663 1664 1665
    }

    a {
      display: block;
      height: 26px;
      padding: 0 12px;
      border-radius: 3px;
      border: 1px solid #b2b2b2;
1666
      @include linear-gradient(top, #fff 35%, #ebebeb);
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689
      font-size: 13px;
      line-height: 24px;
      color: #737373;
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);

      .delete-icon {
        display: block;
        float: left;
        width: 10px;
        height: 10px;
        margin: 8px 4px 0 0;
        background: url(../images/moderator-delete-icon.png) no-repeat;
      }

      .edit-icon {
        display: block;
        float: left;
        width: 10px;
        height: 10px;
        margin: 7px 4px 0 0;
        background: url(../images/moderator-edit-icon.png) no-repeat;
      }
    }
Rocky Duan committed
1690
  }
1691 1692


1693 1694 1695 1696 1697


  .main-article.new {
    display: none;
    padding: 50px;
1698
  }
Rocky Duan committed
1699

1700 1701 1702 1703
  .new-post-form {
    margin-top: 20px;
    @include clearfix;
  }
Rocky Duan committed
1704

1705 1706
  .new-post-form .submit {
    @include blue-button;
Matthew Mongeau committed
1707
    float: left;
1708 1709
    margin-top: 10px;
    padding-bottom: 2px;
Matthew Mongeau committed
1710
  }
Rocky Duan committed
1711

1712 1713 1714 1715
  .new-post-form .options {
    float: right;
    margin-top: 20px;
    font-size: 14px;
Rocky Duan committed
1716

1717 1718
    label {
      margin-left: 4px;
Matthew Mongeau committed
1719 1720
    }
  }
Tom Giannattasio committed
1721 1722 1723 1724 1725 1726 1727 1728





  .discussion-reply-new {
    padding: 20px;
    @include clearfix;
1729
    @include transition(opacity .2s);
Tom Giannattasio committed
1730 1731

    h4 {
1732
      font-size: 16px;
Tom Giannattasio committed
1733 1734 1735 1736
      font-weight: 700;
    }
  }

1737
  .wmd-button-bar {
Tom Giannattasio committed
1738 1739 1740
    border: none;
  }

1741
  .wmd-input {
1742
    @include discussion-wmd-input;
Tom Giannattasio committed
1743 1744
  }

1745
  .wmd-preview {
1746
    @include discussion-wmd-preview;
Tom Giannattasio committed
1747 1748 1749 1750 1751 1752 1753 1754 1755 1756
  }

  .reply-post-control {
    margin-top: 20px;
  }

  .discussion-submit-post {
    @include blue-button;
    float: left;
  }
1757 1758 1759 1760

  .wmd-button {
    width: 15px;
  }
Rocky Duan committed
1761
}
1762 1763 1764 1765 1766



.global-discussion-actions {
  height: 60px;
1767
  @include linear-gradient(top, #ebebeb, #d9d9d9);
1768 1769 1770 1771
  border-radius: 0 3px 0 0;
  border-bottom: 1px solid #bcbcbc;
}

1772 1773


1774
.discussion-module {
1775
  @extend .discussion-body;
1776
  position: relative;
1777
  margin: 20px 0;
1778
  padding: 20px;
1779
  background: #f6f6f6 !important;
1780 1781
  border-radius: 3px;

Arjun Singh committed
1782 1783 1784 1785 1786 1787
  header {
    .anonymous{
      font-size: 15px;
    }
  }

1788 1789 1790 1791 1792 1793 1794 1795
  .responses {
    margin-top: 40px;

    > li {
      margin: 0 20px 20px !important;
      padding: 26px 30px 20px !important;
    }
  }
1796

1797 1798 1799 1800
  .loading-animation {
    background-image: url(../images/spinner-on-grey.gif);
  }

1801
  .discussion-show {
1802 1803
    position: relative;
    top: 3px;
1804
    font-size: 14px;
1805
    text-align: center;
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822

    &.shown {
      .show-hide-discussion-icon {
        background-position: 0 0;
      }
    }

    .show-hide-discussion-icon {
      display: inline-block;
      position: relative;
      top: 5px;
      margin-right: 6px;
      width: 21px;
      height: 19px;
      background: url(../images/show-hide-discussion-icon.png) no-repeat;
      background-position: -21px 0;
    }
1823
  }
1824 1825 1826

  .new-post-btn {
    display: inline-block;
1827
    float: right;
1828 1829
  }

1830
  section.discussion {
1831
    margin-top: 30px;
1832

1833 1834 1835 1836
    .threads {
      margin-top: 20px;
    }

1837
    /* Course content p has a default margin-bottom of 1.416em, this is just to reset that */
1838
    .discussion-thread {
1839 1840 1841
      padding: 0;
      @include transition(all .25s);

1842
      .dogear {
1843 1844 1845 1846 1847 1848
        display: none;
      }

      &.expanded {
        padding: 20px 0;

1849
        .dogear{
1850 1851 1852 1853 1854 1855 1856 1857 1858
          display: block;
        }

        .discussion-article {
          border: 1px solid #b2b2b2;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
          border-radius: 3px;
        }
      }
1859 1860 1861 1862

      p {
        margin-bottom: 0em;
      }
1863

1864
      .discussion-article {
1865 1866 1867
        border: 1px solid #ddd;
        border-bottom-width: 0;
        background: #fff;
1868
        min-height: 0;
1869 1870 1871
        padding: 10px 10px 15px 10px;
        box-shadow: 0 1px 0 #ddd;
        @include transition(all .2s);
1872

1873
        .discussion-post {
1874
          padding: 12px 20px 0 20px;
1875 1876
          @include clearfix;

1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892
          .inline-comment-count {
            position: relative;
            z-index: 100;
            float: right;
            display: block;
            height: 27px;
            margin-top: 6px;
            margin-right: 8px;
            padding: 0 8px;
            border-radius: 5px;
            font-size: 12px;
            font-weight: 400;
            line-height: 25px;
            color: #888;
          }

1893
          header {
1894 1895
            padding-bottom: 0;
            margin-bottom: 15px;
1896

1897 1898 1899 1900 1901 1902 1903 1904 1905 1906
            .posted-details {
              margin-top: 4px;

              .username {
                display: inline;
                font-size: 14px;
                font-weight: 700;
              }
            }

1907
            h3 {
1908
              font-size: 19px;
1909 1910 1911
              font-weight: 700;
              margin-bottom: 0px;
            }
1912 1913 1914 1915

            h4 {
              font-size: 16px;
            }
1916
          }
1917

1918 1919
          .post-body {
            font-size: 14px;
1920
            clear: both;
1921 1922 1923
          }
        }

1924
        .post-tools {
1925
          margin-left: 20px;
1926
          margin-top: 5px;
1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946

          a {
            display: block;
            font-size: 12px;
            line-height: 30px;

            &.expand-post:before {
              content: '▾ ';
            }

            &.collapse-post:before {
              content: '▴ ';
            }

            &.collapse-post {
              display: none;
            }
          }
        }

1947 1948 1949 1950
        .responses {
          margin-top: 10px;

          header {
1951 1952
            padding-bottom: 0;
            margin-bottom: 15px;
1953

1954
            .posted-by {
1955 1956 1957
              float: left;
              margin-right: 5px;
              font-size: 16px;
1958 1959
            }
          }
1960

1961 1962 1963 1964 1965
          .response-body {
            margin-bottom: 0.2em;
            font-size: 14px;
          }
        }
1966

1967 1968 1969 1970 1971
        .discussion-reply-new {
          .wmd-input {
            height: 120px;
          }
        }
1972

1973 1974 1975 1976
        // Content that is hidden by default in the inline view
        .post-extended-content{
          display: none;
        }
1977

1978

1979 1980 1981 1982
      }
    }
  }

1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995
  .new-post-article {
    display: none;
    margin-top: 20px;

    .inner-wrapper {
      max-width: 1180px;
      min-width: 760px;
      margin: auto;
    }

    .new-post-form {
      width: 100%;
      margin-bottom: 20px;
1996
      padding: 30px;
1997 1998 1999
      border-radius: 3px;
      background: rgba(0, 0, 0, .55);
      color: #fff;
2000
      box-shadow: none;
2001
      @include clearfix;
2002
      @include box-sizing(border-box);
2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014

      .form-row {
        margin-bottom: 20px;
      }

      .new-post-body .wmd-input {
        @include discussion-wmd-input;
        position: relative;
        width: 100%;
        height: 200px;
        z-index: 1;
        padding: 10px;
2015
        @include box-sizing(border-box);
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031
        border: 1px solid #333;
        border-radius: 3px 3px 0 0;
        background: #fff;
        font-family: 'Monaco', monospace;
        font-size: 13px;
        line-height: 1.6;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
      }

      .new-post-body .wmd-preview {
        @include discussion-wmd-preview;
        position: relative;
        width: 100%;
        //height: 50px;
        margin-top: -1px;
        padding: 25px 20px 10px 20px;
2032
        @include box-sizing(border-box);
2033 2034 2035 2036 2037 2038
        border: 1px solid #333;
        border-radius: 0 0 3px 3px;
        background: #e6e6e6;
        color: #333;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
      }
2039

2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053
      .new-post-preview-label {
        position: absolute;
        top: 4px;
        left: 4px;
        font-size: 11px;
        color: #aaa;
        text-transform: uppercase;
      }

      .new-post-title,
      .new-post-tags {
        width: 100%;
        height: 40px;
        padding: 0 10px;
2054
        @include box-sizing(border-box);
2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066
        border-radius: 3px;
        border: 1px solid #333;
        font-size: 16px;
        font-family: 'Open Sans', sans-serif;
        color: #333;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
      }

      .new-post-title {
        font-weight: 700;
      }

2067 2068
      .tagsinput {
        padding: 10px;
2069
        @include box-sizing(border-box);
2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082
        border: 1px solid #333;
        border-radius: 3px;
        background: #fff;
        font-family: 'Monaco', monospace;
        font-size: 13px;
        line-height: 1.6;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;

        span.tag {
          margin-bottom: 0;
        }
      }

2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099
      .submit {
        @include blue-button;
        float: left;
        height: 37px;
        margin-top: 10px;
        padding-bottom: 2px;
        border-color: #333;

        &:hover {
          border-color: #222;
        }
      }

      .new-post-cancel {
        @include white-button;
        float: left;
        margin: 10px 0 0 15px;
2100
        border-color: #444;
2101 2102 2103
      }

      .options {
2104
        margin-top: 5px;
2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116

        label {
          display: inline;
          margin-left: 8px;
          font-size: 15px;
          color: #fff;
          text-shadow: none;
        }
      }
    }

    .thread-tags {
2117
      margin: 20px 0;
2118 2119 2120 2121
    }

    .thread-tag {
      padding: 3px 10px 6px;
2122
      margin-right: 5px;
2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140
      border-radius: 3px;
      color: #333;
      background: #c5eeff;
      border: 1px solid #90c4d7;
      font-size: 13px;
    }

    .thread-title {
      display: block;
      margin-bottom: 20px;
      font-size: 21px;
      color: #333;
      font-weight: 700;
    }
  }

  .new-post-btn {
    @include blue-button;
2141
    display: inline-block;
2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153
    font-size: 13px;
    margin-right: 4px;
  }

  .new-post-icon {
    display: block;
    float: left;
    width: 16px;
    height: 17px;
    margin: 8px 7px 0 0;
    background: url(../images/new-post-icon.png) no-repeat;
  }
2154 2155 2156 2157 2158

  .moderator-actions {
    padding-left: 0 !important;
  }

2159
  section.pagination {
2160 2161
    margin-top: 30px;

2162
    nav.discussion-paginator {
2163 2164
      float: right;

2165 2166
      ol {
        li {
2167 2168 2169 2170
          list-style: none;
          display: inline-block;
          padding-right: 0.5em;
          a {
2171
            @include white-button;
2172 2173
          }
        }
2174

2175 2176
        li.current-page{
          height: 35px;
2177 2178 2179
          padding: 0 15px;
          border: 1px solid #ccc;
          border-radius: 3px;
2180 2181 2182 2183 2184 2185 2186 2187 2188
          font-size: 13px;
          font-weight: 700;
          line-height: 32px;
          color: #333;
          text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
        }
      }
    }
  }
2189

2190 2191 2192 2193 2194
  .new-post-body {
    .wmd-panel {
      width: 100%;
      min-width: 500px;
    }
2195

2196 2197 2198
    .wmd-button-bar  {
      width: 100%;
    }
2199

2200 2201 2202 2203 2204 2205 2206 2207 2208 2209
    .wmd-input {
      height: 150px;
      width: 100%;
      background-color: #e9e9e9;
      border: 1px solid #c8c8c8;
      font-family: Monaco, 'Lucida Console', monospace;
      font-style: normal;
      font-size: 0.8em;
      line-height: 1.6em;
      @include border-radius(3px 3px 0 0);
2210

2211 2212 2213
      &::-webkit-input-placeholder {
        color: #888;
      }
2214 2215
    }

2216 2217 2218 2219 2220
    .wmd-preview {
      position: relative;
      font-family: $sans-serif;
      padding: 25px 20px 10px 20px;
      margin-bottom: 5px;
2221
      @include box-sizing(border-box);
2222 2223 2224 2225 2226
      border: 1px solid #c8c8c8;
      border-top-width: 0;
      @include border-radius(0 0 3px 3px);
      overflow: hidden;
      @include transition(all, .2s, easeOut);
2227

2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240
      &:before {
        content: 'PREVIEW';
        position: absolute;
        top: 3px;
        left: 5px;
        font-size: 11px;
        color: #bbb;
      }

      p {
        font-family: $sans-serif;
      }
      background-color: #fafafa;
2241 2242
    }

2243 2244 2245 2246 2247 2248 2249 2250 2251 2252
    .wmd-button-row {
      position: relative;
      margin-left: 5px;
      margin-right: 5px;
      margin-bottom: 5px;
      margin-top: 10px;
      padding: 0px;
      height: 20px;
      overflow: hidden;
      @include transition(all, .2s, easeOut);
2253 2254
    }

2255 2256 2257 2258
    .wmd-spacer {
      width: 1px;
      height: 20px;
      margin-left: 14px;
2259

2260 2261 2262 2263 2264
      position: absolute;
      background-color: Silver;
      display: inline-block;
      list-style: none;
    }
2265

2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276
    .wmd-button {
      width: 20px;
      height: 20px;
      padding-left: 2px;
      padding-right: 3px;
      position: absolute;
      display: inline-block;
      list-style: none;
      cursor: pointer;
      background: none;
    }
2277

2278 2279 2280 2281 2282 2283
    .wmd-button > span {
      display: inline-block;
      background-image: url(../images/new-post-icons-full.png);
      background-repeat: no-repeat;
      background-position: 0px 0px;
      width: 20px;
2284
      height: 20px;
2285
    }
2286

2287 2288 2289 2290 2291 2292
    .wmd-spacer1 {
      left: 50px;
    }
    .wmd-spacer2 {
      left: 175px;
    }
2293

2294 2295 2296
    .wmd-spacer3 {
      left: 300px;
    }
2297

2298 2299 2300
    .wmd-prompt-background {
      background-color: Black;
    }
2301

2302 2303 2304 2305
    .wmd-prompt-dialog {
      @extend .modal;
      background: #fff;
    }
2306

2307 2308
    .wmd-prompt-dialog {
      padding: 20px;
2309

2310 2311 2312 2313
      > div {
        font-size: 0.8em;
        font-family: arial, helvetica, sans-serif;
      }
2314

2315 2316 2317
      b {
        font-size: 16px;
      }
2318

2319 2320 2321 2322
      > form > input[type="text"] {
        border-radius: 3px;
        color: #333;
      }
2323

2324 2325 2326 2327 2328
      > form > input[type="button"] {
        border: 1px solid #888;
        font-family: $sans-serif;
        font-size: 14px;
      }
2329

2330 2331 2332
      > form > input[type="file"] {
        margin-bottom: 18px;
      }
2333
    }
2334
  }
2335

2336 2337 2338
  .wmd-button-row {
    // this is being hidden now because the inline styles to position the icons are not being written
    position: relative;
2339
    height: 12px;
2340 2341 2342 2343
  }

  .wmd-button {
    span {
2344 2345
      width: 20px;
      height: 20px;
2346 2347
      background-image: url("/static/images/wmd-buttons.png");
      display: inline-block;
2348 2349
    }
  }
2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361

  .wmd-spacer1 {
    left: 50px;
  }

  .wmd-spacer2 {
    left: 175px;
  }

  .wmd-spacer3 {
    left: 300px;
  }
2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393
  .edit-post-form {
    width: 100%;
    margin-bottom: 20px;
    @include clearfix;
    @include box-sizing(border-box);

    .form-row {
      margin-top: 20px;
    }

    .post-cancel {
      @include white-button;
      float: left;
      margin: 10px 0 0 15px;
    }

    .post-update {
      @include blue-button;
      float: left;
      height: 37px;
      margin-top: 10px;
      padding-bottom: 2px;

      &:hover {
        border-color: #222;
      }
    }

    .edit-post-title, .edit-post-tags {
      width: 100%;
      height: 40px;
      padding: 0 10px;
2394
      @include box-sizing(border-box);
2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418
      border-radius: 3px;
      border: 1px solid #aaa;
      font-size: 16px;
      font-family: $sans-serif;
      color: #333;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
    }

    .tagsinput {
      padding: 10px;
      @include box-sizing(border-box);
      border: 1px solid #aaa;
      border-radius: 3px;
      background: #fff;
      font-family: 'Monaco', monospace;
      font-size: 13px;
      line-height: 1.6;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;

      span.tag {
        margin-bottom: 0;
      }
    }
  }
2419

2420
  .thread-tags {
2421
    margin: 20px 0;
2422 2423 2424 2425
  }

  .thread-tag {
    padding: 3px 10px 6px;
2426
    margin-right: 5px;
2427 2428 2429 2430 2431 2432
    border-radius: 3px;
    color: #333;
    background: #c5eeff;
    border: 1px solid #90c4d7;
    font-size: 13px;
  }
2433
}
2434 2435 2436

.discussion-user-threads {
  @extend .discussion-module
2437
}
2438

2439

2440 2441 2442 2443 2444
.group-visibility-label {
    font-size: 12px;
    color:#000;
    font-style: italic;
    background-color:#fff;
Kevin Chugh committed
2445 2446
  }

Your Name committed
2447
.discussion-pin {
Kevin Chugh committed
2448 2449 2450 2451 2452
      font-size: 12px;
      float:right;
      padding-right: 5px;
      font-style: italic; 
    }  
Your Name committed
2453 2454 2455 2456

.discussion-pin-inline {
      font-size: 12px;
      float:right;
2457 2458 2459 2460
      font-style: italic;
      position: relative;
      right:-20px;
      top:-13px;
Your Name committed
2461
    }  
Kevin Chugh committed
2462 2463 2464 2465 2466 2467 2468
    
.notpinned .icon
{
  display: inline-block; 
  width: 10px; 
  height: 14px;
  padding-right: 3px;
Your Name committed
2469
  background: transparent url('../images/unpinned.png') no-repeat 0 0; 
Kevin Chugh committed
2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488
}

.pinned .icon
{
  display: inline-block; 
  width: 10px; 
  height: 14px; 
  padding-right: 3px;
  background: transparent url('../images/pinned.png') no-repeat 0 0; 
}

.pinned span {
  color: #B82066;
  font-style: italic;
}

.notpinned span {
  color: #888;
  font-style: italic;
Your Name committed
2489 2490 2491 2492 2493
}

.pinned-false
{
display:none;
Kevin Chugh committed
2494
}