doc.less 36.1 KB
Newer Older
C
Catouse 已提交
1 2 3 4 5 6
// mixins
.chapter-accent(@color; @pale) {
  .chapter-heading {
    color: @color;

    .icon {
C
Catouse 已提交
7
      .opacity(.8);
C
Catouse 已提交
8 9 10
    }
  }

C
Catouse 已提交
11 12 13
  .card {
    &.choosed {
      border-color: @pale;
C
Catouse 已提交
14
      border-color: fade(@color, 60%);
C
Catouse 已提交
15 16 17 18 19 20 21 22
      box-shadow: 0 1px 6px fade(@color, 30%);

      &:before {
        background-color: @color;
      }
    }
  }

C
Catouse 已提交
23 24 25
  .card-heading {
    > .icon {
      color: @color;
C
Catouse 已提交
26
      border-color: @pale;
C
Catouse 已提交
27 28 29 30 31 32 33 34 35 36 37

      &:hover {
        cursor: pointer;
      }
    }

    &.hover {
      background-color: @pale;

      > .icon {
        background-color: @color;
C
Catouse 已提交
38
        border-color: @color;
C
Catouse 已提交
39
        color: #fff;
C
Catouse 已提交
40 41 42 43

        &:before {
          color: #fff;
        }
C
Catouse 已提交
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
      }
    }

    &:hover {
      > h5 > .name {
        color: @color;
      }
    }

    > h5 > .name:hover {
      cursor: pointer;
    }

    > .btn-toggle {
      background-color: @pale;
      color: @color;

      &:hover {
        color: @pale;
        background-color: @color;
        cursor: pointer;
      }
    }
  }

  .card-content {
    > ul {
      > li {
        &:before {
          background-color: @pale;
        }

        &:hover {
          &:before {
            background-color: @color;
          }

          &:after {
            border-color: @color;
          }
        }
85

86 87 88 89 90
        > a[href^='#search/']:before {
          background-color: @pale;
          color: @color;
        }

91 92 93
        &.active > a, > a:hover {
          background-color: @pale;
        }
C
Catouse 已提交
94 95 96
      }
    }
  }
97 98 99 100

  .color-accent {
    color: @color;
  }
101

C
Catouse 已提交
102 103 104
  .card-content > ul > li > a[target="_blank"]:after,
  .card[data-target="external"] > .card-heading > h5 > a:after {
    display: inline-block;
C
Catouse 已提交
105
    display: none\0;
C
Catouse 已提交
106 107 108
    margin-left: 5px;
    .icon-zenicon();
    content: @icon-external-link;
C
Catouse 已提交
109
    .opacity(0);
C
Catouse 已提交
110 111 112 113 114
    .scale(.5);
    left: -10px;
    position: relative;
    .transition-fast(transform; opacity; left);
  }
115

C
Catouse 已提交
116 117 118
  .card-content > ul > li > a[target="_blank"]:hover:after,
  .card[data-target="external"] > .card-heading.hover > h5 > a:after {
    left: 0;
C
Catouse 已提交
119
    .opacity(1);
C
Catouse 已提交
120
    .scale(1);
121
  }
C
Catouse 已提交
122 123
}

C
Catouse 已提交
124
.page-accent(@color; @pale) {
C
Catouse 已提交
125 126 127 128 129 130 131 132 133 134
  .path-zui-36 {
    &:before, &:after {
      border-color: @color;
    }

    .path-1, .path-2, .path-1:before, .path-1:after, .path-2:before {
      background-color: @color;
    }
  }

C
Catouse 已提交
135 136 137
  #header {
    background-color: @color;
    // background-color: fade(darken(@color, 10%), 90%);
C
Catouse 已提交
138 139 140 141 142
  }

  #pageHeader {
    background-color: @pale;

C
Catouse 已提交
143
    > .wrapper > .icon {
C
Catouse 已提交
144 145 146 147
      background-color: @color;
      color: #fff;
    }
  }
C
Catouse 已提交
148 149

  #pageContent {
C
Catouse 已提交
150 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 179 180 181 182
    > section {
      > header:before {
        background-color: @pale;
      }

      &.hover {
        > header {
          &:before {
            background-color: @color;
          }
          &:after {
            border-color: @color;
          }

          > h3 {
            color: @color;
          }
        }

        &:before {
          border-color: @color;
        }
      }
    }
  }

  #pageTogger {
    &:hover {
      border-color: @color;

      &:before, &:after {
        background-color: @color;
      }
C
Catouse 已提交
183 184
    }
  }
C
Catouse 已提交
185 186
}

187 188 189 190
.icon-10x {
  font-size: 140px;
}

C
Catouse 已提交
191
@animation-speed-quickly: .1s;
C
Catouse 已提交
192
.transition-quickly(){
C
Catouse 已提交
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
  .transition(all @animation-speed-quickly @animation-type);
}
.transition-quickly(@target)
{
  .transition(@target @animation-speed-quickly @animation-type);
}
.transition-quickly(@target1; @target2)
{
  .transition(~"@{target1} @{animation-speed-quickly} @{animation-type}, @{target2} @{animation-speed-quickly} @{animation-type}");
}
.transition-quickly(@target1; @target2; @target3)
{
  .transition(~"@{target1} @{animation-speed-quickly} @{animation-type}, @{target2} @{animation-speed-quickly} @{animation-type}, @{target3} @{animation-speed-quickly} @{animation-type}");
}
.transition-quickly(@target1; @target2; @target3; @target4)
{
  .transition(~"@{target1} @{animation-speed-quickly} @{animation-type}, @{target2} @{animation-speed-quickly} @{animation-type}, @{target3} @{animation-speed-quickly} @{animation-type}, @{target4} @{animation-speed-quickly} @{animation-type}");
}
.transition-quickly(@target1; @target2; @target3; @target4; @target5; @target6)
{
  .transition(~"@{target1} @{animation-speed-quickly} @{animation-type}, @{target2} @{animation-speed-quickly} @{animation-type}, @{target3} @{animation-speed-quickly} @{animation-type}, @{target4} @{animation-speed-quickly} @{animation-type}, @{target5} @{animation-speed-quickly} @{animation-type}, @{target6} @{animation-speed-quickly} @{animation-type}");
C
Catouse 已提交
214
}
C
Catouse 已提交
215 216 217 218 219

@media (min-width: 992px) {
  .col-md-d5 {width: 20%;}
}

C
Catouse 已提交
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
.slide-in-up-100 {
  position: relative;
  top: 100px;

  &.in {
    top: 0
  }
}

.slide-in-right-50 {
  position: relative;
  left: 50px;

  &.in {
    left: 0
  }
}

C
Catouse 已提交
238 239 240 241 242 243 244 245 246 247 248
.grow-up-in-height {
  &.show {
    height: 0;
    overflow: hidden;

    &.in {
      height: auto;
    }
  }
}

C
Catouse 已提交
249 250 251 252
.margin-zero {
  margin: 0!important;
}

C
Catouse 已提交
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
// examples
@-webkit-keyframes glow
{
    0% {
        -webkit-box-shadow: 0 0 12px rgba(71,164,71, 0.1);
        border-color: rgba(71, 164, 71, 0.9);
    }
    100% {
        -webkit-box-shadow: 0 0 18px rgba(26,128,26, 0.8),0 0 12px rgba(71,164,71, 0.5);
        border-color: rgba(26, 128, 26, 1.0);
    }
}
.example
{
  position: relative;
  padding: 20px;
  margin: 0 0 15px;
  border-style: solid;
  border: 1px solid #ddd;
  outline: none;
  transition:all 0.3s;
}
.example:focus
{
  box-shadow:0px 1px 15px rgba(0,0,0,0.5);
  -webkit-animation-name: glow;
  -webkit-animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  -webkit-animation-timing-function: ease-in-out
}
.example.no-padding
{
  padding: 0;
}
.example > *:last-child
{
  margin-bottom: 0;
}
.example + pre, pre + pre
{
  margin: -15px 0 15px;
  padding: 10px 20px;
  border-radius: 0;
  border: 1px solid #DDD;
  border-top: none;
}
pre
{
  border-radius: 0;
}

C
Catouse 已提交
305 306 307 308 309 310 311 312 313 314 315 316 317 318
a.avatar
{
  display: block;
  width: 40px;
  height: 40px;
  text-align: center;
  background-color: #e5e5e5;
  border-radius: 4px;
  margin-top: 5px!important;
  color:#aaa!important;
  font-size: 30px;
  line-height: 40px;
}

C
Catouse 已提交
319 320
body > .tooltip {z-index: 9999}

C
Catouse 已提交
321 322 323 324
a.avatar > i {font-size: 28px}

a.avatar:hover {text-decoration: none}

C
Catouse 已提交
325
.loader {
C
Catouse 已提交
326
  color: @color-gray;
C
Catouse 已提交
327 328 329
  .transition-normal();
  text-align: center;
  padding: 0;
C
Catouse 已提交
330
  .opacity(0);
C
Catouse 已提交
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
  height: 0;
  overflow: hidden;
  .scale(.5);

  > .icon {
    font-size: 42px;
    display: block;
    height: 50px;
    width: 50px;
    line-height: 50px;
    margin: 0 auto;
  }

  &.loading {
    padding: 80px 0;
C
Catouse 已提交
346
    .opacity(1);
C
Catouse 已提交
347 348
    height: auto;
    .scale(1);
C
Catouse 已提交
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373

    > .error-text {
      display: none;
    }
  }

  &.with-error {
    > .icon-spin {
      -moz-animation: none;
      -o-animation: none;
      -webkit-animation: none;
      animation: none;

      &:before {
        content: @icon-exclamation-sign;
      }
    }

    > .error-text {
      display: inline;
    }

    > .loading-text {
      display: none;
    }
C
Catouse 已提交
374 375 376
  }
}

C
Catouse 已提交
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
.template {
  display: none
}

.path-zui-36 {
  display: inline-block;
  background-color: #fff;
  border-radius: 18px;
  height: 36px;
  width: 36px;
  position: relative;
  overflow: hidden;

  &:before, &:after {
    content: ' ';
    display: block;
    position: absolute;
    border: 2px solid @color-primary;
    left: 11px;
    width: 14px;
    height: 4px;
  }
  &:before {
    top: 9px;
    border-bottom: none;
  }

  &:after {
    top: 23px;
    border-top: none;
  }
  .path-1, .path-2, .path-1:before, .path-1:after, .path-2:before {
    display: block;
    content: ' ';
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: @color-primary;
  }
  .path-1 {
    left: 15px;
    top: 19px;
  }
  .path-1:before, .path-2:before {
    left: -2px;
    top: 2px;
  }
  .path-1:after {
    left: 2px;
    top: -2px;
  }
  .path-2 {
    left: 21px;
    top: 13px;
  }
}

C
Catouse 已提交
434
.path-btn {
C
Catouse 已提交
435 436
  border-radius: 0;

C
Catouse 已提交
437
  &:focus, &:active {
C
Catouse 已提交
438
    outline: none;
C
Catouse 已提交
439
    background: none;
C
Catouse 已提交
440 441 442
  }

  &:before, &:after, > .path-1, > .path-1:before, > .path-1:after {
C
Catouse 已提交
443
    .transition-fast();
C
Catouse 已提交
444 445 446 447 448
    position: absolute;
    content: ' ';
    display: block;
    height: 2px;
    width: 10px;
C
Catouse 已提交
449
    border: 2px solid @color-gray;
C
Catouse 已提交
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
    left: 19px;
    top: 18px;
  }

  &:after {
    top: 26px;
  }

  > .path-1 {
    top: 22px;
    left: 23px;
  }

  > .path-1:before, > .path-1:after {
    left: -4px;
    top: -2px;
    width: 6px;
  }

  > .path-1:after {
    top: 2px;
  }

  &:hover {
    background-color: @color-gray-lighter;
    background-color: rgba(0, 0, 0, 0.1);

    &:before, &:after, > .path-1, > .path-1:before, > .path-1:after {
      border-color: @color-fore;
      .rotate(180deg);
    }

    &:before {
      top: 26px;
    }

    &:after {
      top: 18px;
    }

    > .path-1 {
      left: 15px;
    }

    > .path-1:before {
      top: 2px;
      left: -4px;
    }

    > .path-1:after {
      top: -2px;
      left: -4px;
    }
  }
C
Catouse 已提交
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 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 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

  &.path-close-btn {
    &:before, &:after, > .path-1, > .path-1:before, > .path-1:after {
      border-top: 0;
      border-bottom: 0;
    }

    > .path-1 {
      border-right: 0;
    }
  }
}

.path-max-btn {
  &:before, &:after, > .path-1, > .path-1:before, > .path-1:after {
    height: 6px;
    width: 6px;
    left: 12px;
    top: 18px;
  }

  &:before {
    border-right: 0;
    border-bottom: 0;
  }

  &:after {
    left: 16px;
    border-left: 0;
    border-bottom: 0;
  }

  > .path-1 {
    top: 22px;
    border-right: 0;
    border-top: 0;
  }

  > .path-1:before{
    border-top: 0;
    border-left: 0;
    top: 0px;
    left: 2px;
  }

  > .path-1:after {
    width: 10px;
    height: 10px;
    left: -2px;
    top: -4px;
  }

  &:hover {
    &:before, &:after, > .path-1:before, > .path-1 {
      .rotate(0deg);
    }

    &:before {
      top: 16px;
      left: 10px;
    }

    &:after {
      top: 16px;
      left: 18px;
    }

    > .path-1 {
      top: 24px;
      left: 10px;
    }

    > .path-1:before {
      top: 0px;
      left: 6px;
    }

    > .path-1:after {
      width: 4px;
      height: 4px;
      top: -3px;
      left: 3px;
    }
  }
C
Catouse 已提交
588 589
}

C
Catouse 已提交
590
body {
C
Catouse 已提交
591
  .transition-fast(background);
C
Catouse 已提交
592 593
}

C
Catouse 已提交
594 595 596 597
#header {
  background-color: @color-primary;
  color: #fff;
  margin-bottom: 20px;
C
Catouse 已提交
598
  padding-top: 80px;
C
Catouse 已提交
599 600

  small {
C
Catouse 已提交
601
    .opacity(.65);
C
Catouse 已提交
602 603 604
  }
}

C
Catouse 已提交
605 606
#navDownloadLink {
  .transition-fast(opacity);
C
Catouse 已提交
607
  .opacity(0);
C
Catouse 已提交
608 609
}

C
Catouse 已提交
610 611
#navbar {

C
Catouse 已提交
612 613
  > .container {position: relative;}

C
Catouse 已提交
614
  .transition-normal(padding-top);
C
Catouse 已提交
615 616 617 618

  padding: 20px 0;
  border-bottom: none;

C
Catouse 已提交
619 620
  &.navbar-inverse {
    background: none;
C
Catouse 已提交
621 622 623 624 625

    .navbar-toggle {
      border: none;
      border-radius: 0;
    }
C
Catouse 已提交
626 627 628 629 630 631 632 633 634
  }

  .navbar-nav > li > a {
    &:hover, &:focus {
      background-color: rgba(0,0,0,.2);
    }

    line-height: 20px;
    height: 40px;
C
Catouse 已提交
635
    border-radius: 4px;
C
Catouse 已提交
636 637

    > .icon {
C
Catouse 已提交
638
      font-size: 18px;
C
Catouse 已提交
639 640 641
    }
  }

C
Catouse 已提交
642 643 644 645 646 647 648 649 650 651
  .navbar-brand {
    position: relative;
    padding-left: 58px;
  }

  .path-zui-36 {
    position: absolute;
    top: 0;
    left: 10px;
  }
C
Catouse 已提交
652 653 654 655

  .navbar-collapse {
    &.in, &.collapsing {
      #navDownloadLink {
C
Catouse 已提交
656
        .opacity(1);
C
Catouse 已提交
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682
      }

      background-color: #fff;
      margin-top: 10px;
      border: none;
      width: 150px;
      float: right;
      .box-shadow(0 6px 12px rgba(0,0,0,.175));
      position: relative;
      overflow: visible;

      &:before {
        content: ' ';
        display: block;
        position: absolute;
        width: 0;
        height: 0;
        top: -20px;
        right: 20px;
        border-width: 10px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent #fff transparent;
      }

      .navbar-nav > li > a {
        color: @color-fore;
C
Catouse 已提交
683
        .opacity(0);
C
Catouse 已提交
684 685 686 687
      }
    }

    &.in .navbar-nav > li > a {
C
Catouse 已提交
688
      .opacity(1);
C
Catouse 已提交
689 690
    }
  }
C
Catouse 已提交
691 692
}

693 694 695 696
#compactTogger {
  display: none;
}

C
Catouse 已提交
697 698
#heading {
  text-align: center;
C
Catouse 已提交
699 700
  position: relative;
  overflow: hidden;
C
Catouse 已提交
701 702 703 704

  > h1 {
    font-size: 48px;
    font-weight: normal;
C
Catouse 已提交
705
    margin-top: 0;
C
Catouse 已提交
706 707 708
  }

  > p {
C
Catouse 已提交
709
    .opacity(.65);
C
Catouse 已提交
710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729
  }
}

#download {

  > .btn-primary {
    border-color: #e5e5e5;
    border-color: rgba(255, 255, 255, .65);
    margin-bottom: 15px;
  }

  padding-top: 20px;
  text-align: center;
}

#search {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}
C
Catouse 已提交
730

C
Catouse 已提交
731 732 733 734 735 736 737
#searchForm {
  position: relative;

  > .icon {
    position: absolute;
    left: 14px;
    top: 14px;
C
Catouse 已提交
738
    .opacity(.65);
C
Catouse 已提交
739 740 741 742 743 744 745 746
    display: block;
    width: 16px;
    text-align: center;
    height: 16px;
    color: #fff;
  }
}
#searchInput {
C
Catouse 已提交
747
  // .transition-quickly();
C
Catouse 已提交
748 749 750
  background: none;
  border-radius: 21px;
  padding-left: 40px;
C
Catouse 已提交
751
  border: 1px solid #e5e5e5;
C
Catouse 已提交
752 753 754 755 756 757 758 759
  border-color: rgba(255, 255, 255, .6);
  color: #fff;

  .placeholder(#e5e5e5);
  .placeholder(rgba(255, 255, 255, .5));

  &:focus {
    border-color: #fff;
C
Catouse 已提交
760 761 762 763
    background-color: rgba(255, 255, 255, .1);

    @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(rgba(0,0,0,.275), 20%);
    .box-shadow(@shadow);
C
Catouse 已提交
764 765
  }
}
C
Catouse 已提交
766 767 768 769 770 771 772 773 774 775 776
#searchHelpBtn {
  position: absolute;
  right: 4px;
  top: 4px;
  text-align: center;
  border-radius: 20px;
  width: 35px;
  height: 35px;
  line-height: 39px;
  padding: 0;
  color: #fff;
C
Catouse 已提交
777
  .opacity(.65);
C
Catouse 已提交
778 779 780 781 782 783 784 785
  outline: none;

  &:hover, &:active, &:focus {
    background-color: #808080;
    background-color: rgba(0,0,0,.5);
  }

  > .icon {
C
Catouse 已提交
786
    font-size: 18px;
C
Catouse 已提交
787 788 789 790 791 792 793 794
  }
}

#search.with-query-text #searchHelpBtn {
  > .icon:before {
    content: @icon-remove;
  }
}
C
Catouse 已提交
795 796

#grid {
C
Catouse 已提交
797
  // .transition-normal(opacity; background-color; margin);
C
Catouse 已提交
798

C
Catouse 已提交
799
  > .container {
C
Catouse 已提交
800 801 802 803
    > .row > .col {
      &.hide {
        display: block;
        width: 0;
C
Catouse 已提交
804
        .opacity(0);
C
Catouse 已提交
805 806 807
        padding: 0;
      }
    }
808 809 810 811 812

    > .row + .row {
      padding-top: 10px;
      border-top: 1px solid @color-gray-pale;
    }
C
Catouse 已提交
813 814 815 816 817 818 819 820 821
  }

  .chapter {
    margin-bottom: 30px;
  }

  .chapter-heading {
    > h4 {
      margin-bottom: 15px;
822 823 824 825 826 827 828

      > .name {
        cursor: pointer;

        &:after {
          .icon-zenicon();
          display: inline-block;
C
Catouse 已提交
829
          display: none\0;
830 831 832 833
          margin-left: 5px;
          content: @icon-double-angle-right;
          position: relative;
          left: -10px;
C
Catouse 已提交
834
          .opacity(0);
835 836 837 838 839
          .transition-fast(opacity; left);
        }

        &:hover:after {
          left: 0;
C
Catouse 已提交
840
          .opacity(1);
841 842
        }
      }
C
Catouse 已提交
843 844 845 846
    }
  }

  .card {
C
Catouse 已提交
847
    background-color: #fff;
C
Catouse 已提交
848
    .transition-quickly(border; height; transform; top; left; opcity);
C
Catouse 已提交
849
    display: none;
C
Catouse 已提交
850
    margin-bottom: 0;
C
Catouse 已提交
851 852
    border-color: #fff;
    box-shadow: none;
C
Catouse 已提交
853 854 855 856 857 858 859 860 861

    &.show {
      display: block;
    }

    &.choosed {
      border-color: #808080;

      &:before {
C
Catouse 已提交
862
        .transition-quickly(right);
C
Catouse 已提交
863
        content: 'Enter';
C
Catouse 已提交
864 865 866 867 868 869 870 871
        display: block;
        position: absolute;
        right: -100%;
        top: 0;
        padding: 3px 8px;
        color: #fff;
      }
    }
C
Catouse 已提交
872

873
    &[data-target="external"].choosed:before {
C
Catouse 已提交
874
      content: 'Enter';
875 876 877 878 879 880
    }

    &[data-target=""].choosed:before {
      display: none;
    }

C
Catouse 已提交
881 882 883
    &:hover, &.open {
      border-color: @color-gray-lighter;
    }
C
Catouse 已提交
884 885 886 887

    &.open {
      margin-bottom: 5px;
    }
C
Catouse 已提交
888 889 890
  }

  .card-heading {
C
Catouse 已提交
891
    .transition-quickly(background-color);
C
Catouse 已提交
892
    position: relative;
C
Catouse 已提交
893
    padding: 8px 8px 8px 50px;
C
Catouse 已提交
894 895

    > .icon {
C
Catouse 已提交
896
      .transition-quickly(background-color; color);
C
Catouse 已提交
897
      border: 1px solid @color-gray-pale;
898 899
      background-size: contain;
      background-position: center;
C
Catouse 已提交
900
      position: absolute;
C
Catouse 已提交
901 902 903 904
      width: 30px;
      height: 30px;
      line-height: 30px;
      border-radius: 16px;
C
Catouse 已提交
905
      text-align: center;
C
Catouse 已提交
906 907
      left: 10px;
      top: 5px;
C
Catouse 已提交
908 909
      z-index: 10;
      font-style: normal;
910 911

      &.with-img {
C
Catouse 已提交
912
        .opacity(.8);
913 914 915
        background-color: transparent!important;

        &:hover {
C
Catouse 已提交
916
          .opacity(1);
917 918
        }
      }
C
Catouse 已提交
919 920 921
    }

    > h5 {
C
Catouse 已提交
922
      .transition-quickly(padding; color);
C
Catouse 已提交
923 924 925
      line-height: 15px;
      font-size: 15px;
      font-weight: 500;
C
Catouse 已提交
926
      margin: 0;
C
Catouse 已提交
927
      padding: 5px 0;
C
Catouse 已提交
928 929 930 931

      > a.name {
        color: @color-fore;
      }
C
Catouse 已提交
932 933 934
    }

    > small {
C
Catouse 已提交
935 936
      font-size: 12px;
      display: none;
C
Catouse 已提交
937
      min-height: 18px;
C
Catouse 已提交
938 939 940
      white-space: normal;
      max-height: 48px;
      position: relative;
C
Catouse 已提交
941 942 943 944 945 946 947 948 949
    }

    &:hover {

      > .btn-toggle {
        right: 0;
        width: 64px;
      }
    }
950 951 952 953 954 955 956 957 958

    &.hover {
      background-color: @color-gray-pale;

      > .icon {
        background-color: @color-gray;
        color: #fff;
      }
    }
C
Catouse 已提交
959 960 961 962 963
  }

  .card-content {
    height: 0;
    padding: 0 10px;
C
Catouse 已提交
964
    .transition-quickly(padding; height);
965
    overflow: hidden;
C
Catouse 已提交
966 967 968 969 970 971 972 973

    > ul {
      list-style: none;
      padding: 0;
      margin: 0;
      position: relative;

      &:before {
C
Catouse 已提交
974
        .opacity(0);
C
Catouse 已提交
975 976 977 978
        z-index: 5;
        position: absolute;
        display: block;
        content: ' ';
C
Catouse 已提交
979
        left: 15px;
C
Catouse 已提交
980
        top: -10px;
C
Catouse 已提交
981 982 983 984 985 986
        bottom: 14px;
        border-left: 1px dotted @color-gray-lighter;
      }

      > li {
        position: relative;
987 988 989 990 991
        padding: 0;

        > a {
          color: @color-fore;
          display: block;
C
Catouse 已提交
992
          padding: 5px 0 5px 40px;
C
Catouse 已提交
993
          border-radius: 4px;
994 995 996 997 998 999 1000 1001 1002 1003

          > .icon {
            display: inline-block;
            width: 20px;
            text-align: center;
          }

          &:hover, &:active, &:focus {
            text-decoration: none;
          }
1004 1005 1006 1007 1008 1009 1010 1011 1012

          &[href^='#search/']:before {
            .icon-zenicon();
            display: block;
            content: '\e603';
            background-color: @color-gray-lighter;
            border-radius: 12px;
            width: 24px;
            height: 24px;
C
Catouse 已提交
1013
            left: 3px;
1014 1015 1016 1017 1018 1019 1020
            top: 2px;
            z-index: 100;
            color: @color-gray;
            line-height: 22px;
            text-align: center;
            position: absolute;
          }
1021 1022 1023 1024 1025 1026
        }

        &.active > a, > a:hover {
          background-color: @color-gray-pale;
          color: @color-fore;
        }
C
Catouse 已提交
1027 1028

        &:before {
C
Catouse 已提交
1029
          .transition-quickly(transform; background-color);
C
Catouse 已提交
1030 1031 1032 1033 1034 1035 1036
          position: absolute;
          display: block;
          content: ' ';
          width: 8px;
          height: 8px;
          border-radius: 4px;
          background-color: @color-gray-lighter;
C
Catouse 已提交
1037
          left: 12px;
C
Catouse 已提交
1038 1039 1040 1041 1042 1043 1044 1045 1046
          top: 10px;
          z-index: 12;
        }

        &:after {
          position: absolute;
          display: block;
          content: ' ';
          border-bottom: 1px dotted @color-gray-lighter;
C
Catouse 已提交
1047 1048
          width: 20px;
          left: 15px;
C
Catouse 已提交
1049 1050 1051 1052
          top: 14px;
          z-index: 11;
        }

1053
        &:hover, &.active {
C
Catouse 已提交
1054 1055 1056
          &:before {
            .scale(1.25);
          }
C
Catouse 已提交
1057 1058
        }
      }
1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092

      &[data-view="icons"] {
        .clearfix();
        > li {
          float: left;
          &:before, &:after {display: none}

          > a {
            position: relative;
            text-indent: -999em;
            padding: 5px;
            width: 30px;
            height: 30px;
            overflow: hidden;

            &:hover {
              .scale(2);
              z-index: 1;
            }

            > .icon {
              display: block;
              position: absolute;
              text-indent: 0;
              width: 30px;
              height: 30px;
              line-height: 30px;
              top: 0;
              left: 0;
            }
          }
        }
      }

1093 1094 1095
      // &[data-view="grid"] {
      //   .clearfix();
      //   > li {
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 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140
    }
  }

  .section-search {
    height: 0;
    padding: 0;

    &:before {
      content: "没有找到,请更改关键字重新检索。";
      display: block;
      position: absolute;
      padding: 0 10px;
      top: 0;
      right: 0;
      height: 30px;
      line-height: 30px;
      background-color: @color-red-pale;
      color: @color-red;
    }
  }

  .card.section-preview-show .section-search:before {display: none}

  .section-preview {
    background-color: @color-gray-pale;
    height: 0;
    padding: 0;

    &.icon-preview {
      > .icons > .icon {
        display: inline-block;
        margin: 0 15px;
      }

      > h3 {
        padding: 0 10px;
      }

      > pre {
        margin-left: 10px;
        max-width: 400px;
      }
C
Catouse 已提交
1141 1142 1143 1144
    }
  }

  .card.open {
C
Catouse 已提交
1145 1146 1147 1148 1149 1150 1151 1152
    .card-heading {
      > .icon:after {
        content: ' ';
        display: block;
        position: absolute;
        border-left: 1px dotted @color-gray-lighter;
        height: 999px;
        left: 18px;
C
Catouse 已提交
1153
        top: 36px;
C
Catouse 已提交
1154 1155 1156 1157 1158 1159 1160
      }

      > small {
        max-height: none;
      }
    }

C
Catouse 已提交
1161 1162 1163 1164 1165 1166
    .card-content {
      padding: 10px;
      height: auto;
      border-top: 1px dashed @color-gray-pale;
      box-shadow: inset 0 10px 64px rgba(0, 0, 0, 0.03);

1167 1168 1169 1170 1171
      &.section-search, &.section-preview {
        height: 0;
        padding: 0;
      }

C
Catouse 已提交
1172 1173
      > ul {
        &:before {
C
Catouse 已提交
1174
          .opacity(1);
C
Catouse 已提交
1175 1176 1177
        }
      }
    }
C
Catouse 已提交
1178 1179

    &.without-topics {
C
Catouse 已提交
1180 1181 1182 1183 1184 1185
      .card-heading {
        > .icon:after {
          display: none;
        }
      }

C
Catouse 已提交
1186 1187 1188 1189 1190 1191
      .card-content {
        padding: 0;
        height: 0;
        border-top: none;
      }
    }
C
Catouse 已提交
1192 1193
  }

1194 1195
  .chapter[data-accent="blue"] {
    .chapter-accent(@color-blue; @color-blue-pale);
C
Catouse 已提交
1196
  }
1197
  .chapter[data-accent="primary"] {
C
Catouse 已提交
1198 1199
    .chapter-accent(@color-primary; @color-pale);
  }
1200 1201
  .chapter[data-accent="yellow"] {
    .chapter-accent(@color-yellow; @color-yellow-pale);
C
Catouse 已提交
1202
  }
1203 1204
  .chapter[data-accent="green"] {
    .chapter-accent(@color-green; @color-green-pale);
C
Catouse 已提交
1205
  }
1206 1207
  .chapter[data-accent="red"] {
    .chapter-accent(@color-red; @color-red-pale);
C
Catouse 已提交
1208
  }
1209 1210
  .chapter[data-accent="brown"] {
    .chapter-accent(@color-brown; @color-brown-pale);
C
Catouse 已提交
1211
  }
1212 1213
  .chapter[data-accent="purple"] {
    .chapter-accent(@color-purple; @color-purple-pale);
C
Catouse 已提交
1214 1215
  }
}
C
Catouse 已提交
1216

C
Catouse 已提交
1217 1218 1219 1220 1221 1222
body.input-query-focus {
  #grid .card.choosed:before {
    right: 0;
  }
}

1223 1224 1225 1226 1227
body.query-enabled {
  #grid > .container > .row + .row {
    padding-top: 0;
    border-top: none;
  }
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244

  &[data-query='icons'] {
    #section-control-icons {
      .card-heading > .icon:before {content: @icon-search}
    }

    #grid .card.open {
      &.section-preview-show .card-content.section-preview, .card-content.section-search {
        height: auto;
        padding: 10px;
      }

      &.section-preview-show .section-preview.icon-preview {
        padding: 20px 10px 10px;
      }
    }
  }
1245 1246
}

C
Catouse 已提交
1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265
@media (min-width: 768px) {
  body.query-enabled {
    #grid {
      &[data-show-col='1'] {
        > .container > .row > .col {
          float: none;
          // min-width: 780px;
          width: 100%;
          margin: 0 auto;

          &.hide {
            width: 0;
          }
        }
      }
    }
  }
}

C
Catouse 已提交
1266 1267 1268 1269 1270 1271
@media (min-width: 992px) {
  body.query-enabled {
    #grid {
      &[data-show-col='1'] {
        > .container > .row > .col {
          float: none;
C
Catouse 已提交
1272
          max-width: 780px;
C
Catouse 已提交
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
          margin: 0 auto;

          &.hide {
            width: 0;
          }
        }
      }
      &[data-show-col='2'] {
        > .container > .row > .col {
          width: 50%;

C
Catouse 已提交
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301
          &.hide {
            width: 0;
          }
        }
      }
      &[data-show-col='3'] {
        > .container > .row > .col {
          width: 33.333333333333%;

          &.hide {
            width: 0;
          }
        }
      }
      &[data-show-col='4'] {
        > .container > .row > .col {
          width: 25%;

C
Catouse 已提交
1302 1303 1304 1305 1306 1307 1308 1309 1310
          &.hide {
            width: 0;
          }
        }
      }
    }
  }
}

C
Catouse 已提交
1311 1312 1313 1314 1315 1316 1317
#pageContainer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
C
Catouse 已提交
1318
  z-index: 1035;
C
Catouse 已提交
1319
  top: 60px;
C
Catouse 已提交
1320 1321 1322 1323

  > .container {
    padding: 0;
  }
C
Catouse 已提交
1324 1325
}
#page {
C
Catouse 已提交
1326
  border-radius: 4px;
C
Catouse 已提交
1327
  position: relative;
C
Catouse 已提交
1328
  background-color: fade(#fff, 80%);
C
Catouse 已提交
1329
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), 0 120px 220px @color-gray-pale;
C
Catouse 已提交
1330 1331 1332 1333

  &.with-shadow #pageHeader {
    .box-shadow(0 2px 6px 0 rgba(0,0,0,.2));
  }
C
Catouse 已提交
1334 1335
}
#pageHeader {
C
Catouse 已提交
1336
  border-radius: 4px 4px 0 0;
C
Catouse 已提交
1337 1338
  background-color: #fafafa;
  position: relative;
C
Catouse 已提交
1339
  padding: 0;
C
Catouse 已提交
1340 1341 1342
  height: 90px;
  .opacity(0);
  .transition-fast(opacity);
C
Catouse 已提交
1343

C
Catouse 已提交
1344
  > .container {
C
Catouse 已提交
1345
    position: relative;
C
Catouse 已提交
1346
    padding: 15px 20px 20px 76px;
C
Catouse 已提交
1347

C
Catouse 已提交
1348 1349 1350 1351 1352 1353 1354
    > .icon {
      position: absolute;
      width: 36px;
      height: 36px;
      line-height: 36px;
      border-radius: 18px;
      text-align: center;
C
Catouse 已提交
1355
      left: 20px;
C
Catouse 已提交
1356
      top: 25px;
C
Catouse 已提交
1357 1358 1359 1360 1361 1362 1363
      z-index: 10;
      font-style: normal;
      color: @color-gray;
      background-color: @color-gray-lighter;
    }

    > h2 {
C
Catouse 已提交
1364
      padding: 10px 0;
C
Catouse 已提交
1365
      line-height: 16px;
C
Catouse 已提交
1366
      font-size: 20px;
C
Catouse 已提交
1367
      margin: 0;
C
Catouse 已提交
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377

      > a.name {
        color: @color-fore;

        &:hover {
          text-decoration: none;
          color: @color-fore;
          cursor: normal;
        }
      }
C
Catouse 已提交
1378 1379
    }
  }
C
Catouse 已提交
1380

C
Catouse 已提交
1381
  > .path-btn {
C
Catouse 已提交
1382 1383 1384 1385 1386 1387 1388
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 48px;
  }

C
Catouse 已提交
1389 1390 1391 1392
  > .path-max-btn {
    right: 48px;
    width: 36px;
  }
C
Catouse 已提交
1393 1394
}
#pageBody {
C
Catouse 已提交
1395
  padding: 20px 0;
C
Catouse 已提交
1396 1397 1398 1399 1400
  position: absolute;
  top: 110px;
  bottom: 0;
  width: 100%;
  overflow-y: auto;
C
Catouse 已提交
1401
}
C
Catouse 已提交
1402 1403 1404
#pageAttrs {
  padding: 0 0 10px 34px;
  // background-color: @color-gray-pale;
C
Catouse 已提交
1405
  margin: 0 0 20px 29px;
C
Catouse 已提交
1406 1407 1408 1409 1410 1411 1412 1413 1414 1415
  border-bottom: 4px double @color-gray-pale;

  > .badge {
    float: left;
    background-color: @color-gray-pale;
    margin-right: 10px;
    padding: 6px 10px;
    min-width: 40px;
    text-align: center;
    border-radius: 3px;
C
Catouse 已提交
1416
    .opacity(.8);
C
Catouse 已提交
1417 1418 1419 1420 1421 1422 1423 1424 1425
    line-height: 20px;
    .transition-fast();

    &.pull-right {
      margin-right: 0;
      margin-left: 10px;
    }

    &:hover {
C
Catouse 已提交
1426
      .opacity(1);
C
Catouse 已提交
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472
      background-color: @color-gray-lighter;
      text-decoration: none;
    }

    &.badge-zui {
      background-color: @color-pale;
      color: @color-primary;

      &:hover {
        background-color: darken(@color-pale, 5%);
      }
    }
    &.badge-lite {
      background-color: @color-blue-pale;
      color: @color-blue;

      &:hover, &:active, &:focus {
        background-color: darken(@color-blue-pale, 5%);
      }
    }
    &.badge-lib {
      background-color: @color-green-pale;
      color: @color-green;

      &:hover {
        background-color: darken(@color-green-pale, 5%);
      }
    }
    &.badge-party {
      background-color: @color-red-pale;
      color: @color-red;

      &:hover {
        background-color: darken(@color-red-pale, 5%);
      }
    }
    &.badge-custom {
      background-color: @color-brown-pale;
      color: @color-brown;

      &:hover {
        background-color: darken(@color-brown-pale, 5%);
      }
    }
  }
}
C
Catouse 已提交
1473
#pageContent {
C
Catouse 已提交
1474
  padding-left: 56px;
C
Catouse 已提交
1475 1476 1477 1478 1479 1480 1481
  position: relative;

  &:before {
    position: absolute;
    content: ' ';
    display: block;
    border-left: 1px dotted @color-gray-lighter;
C
Catouse 已提交
1482
    left: 28px;
1483
    top: -250px;
C
Catouse 已提交
1484
    bottom: 0;
C
Catouse 已提交
1485 1486
  }

C
Catouse 已提交
1487 1488 1489 1490
  // > section > article, > section > header, > article {
  //   padding-left: 10px;
  //   padding-right: 10px;
  // }
C
Catouse 已提交
1491

C
Catouse 已提交
1492
  > section {
C
Catouse 已提交
1493 1494 1495 1496 1497 1498
    position: relative;

    &:before {
      position: absolute;
      content: ' ';
      display: block;
C
Catouse 已提交
1499
      border-left: 1px dotted transparent;
C
Catouse 已提交
1500
      left: -28px;
C
Catouse 已提交
1501 1502
      top: 28px;
      bottom: -25px;
C
Catouse 已提交
1503
    }
C
Catouse 已提交
1504

C
Catouse 已提交
1505 1506 1507 1508
    &:last-child:before {
      bottom: 0;
    }

C
Catouse 已提交
1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521
    > header {
      position: relative;
      padding-top: 20px;
      padding-bottom: 10px;

      > h3 {
        margin: 0;
        display: inline-block;
        cursor: pointer;

        &:before, &:after {
          position: absolute;
          content: ' ';
C
Catouse 已提交
1522
          left: -28px;
C
Catouse 已提交
1523
          top: 25px;
C
Catouse 已提交
1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535
          .transition-fast(background-color);
        }

        &:before {
          display: none;
          width: 1px;
          height: 7px;
        }

        &:after {
          width: 7px;
          height: 1px;
C
Catouse 已提交
1536
          top: 28px;
C
Catouse 已提交
1537
          left: -31px;
C
Catouse 已提交
1538 1539 1540 1541 1542 1543 1544
        }
      }

      &:before {
        position: absolute;
        content: ' ';
        display: block;
C
Catouse 已提交
1545
        left: -33px;
C
Catouse 已提交
1546
        top: 23px;
C
Catouse 已提交
1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557
        width: 11px;
        height: 11px;
        background-color: @color-gray-light;
        border-radius: 5px;
        .transition-fast(background-color);
      }

      &:after {
        position: absolute;
        content: ' ';
        display: block;
C
Catouse 已提交
1558
        width: 20px;
C
Catouse 已提交
1559
        border-bottom: 1px dotted @color-gray-lighter;
C
Catouse 已提交
1560
        left: -22px;
C
Catouse 已提交
1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590
        top: 28px;
      }
    }

    &.hover {
      > header {
        h3 {
          &:before, &:after {
            background-color: #fff;
          }
        }
      }

      &.collapsed > header > h3:before {
        display: block;
      }
    }

    > article {
      height: auto;
      .transition-fast(opacity; height);
    }

    &.collapsed {
      &:before {
        display: none;
      }

      > article {
        height: 0;
C
Catouse 已提交
1591
        .opacity(0);
C
Catouse 已提交
1592 1593 1594 1595
        overflow: hidden;
      }
    }
  }
C
Catouse 已提交
1596 1597

  > article > .alert, > section > article > .alert {
1598
    border: none;
C
Catouse 已提交
1599 1600 1601 1602 1603 1604 1605
    border-radius: 0;

    code {
      background-color: rgba(255,255,255,.2);
      border-color: rgba(0,0,0,.1);
    }
  }
C
Catouse 已提交
1606 1607 1608
}
#pageTogger {
  position: absolute;
C
Catouse 已提交
1609
  bottom: -36px;
C
Catouse 已提交
1610
  left: 29px;
C
Catouse 已提交
1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 10px;
  background-color: #fff;
  color: @color-gray-light;
  z-index: 10;
  border: 1px solid @color-gray-lighter;
  outline: none;

  &:before, &:after {
    .transition-normal(background-color);
    position: absolute;
    display: block;
    content: ' ';
    left: 4px;
    top: 4px;
    background-color: @color-gray-light;
  }

  &:before {
    height: 9px;
    width: 1px;
    left: 8px;
    display: none;
  }

  &:after {
    width: 9px;
    top: 8px;
    height: 1px;
  }
}
C
Catouse 已提交
1644
#page.page-collapsed {
C
Catouse 已提交
1645 1646
  #pageTogger:before {
    display: block;
C
Catouse 已提交
1647 1648
  }
}
C
Catouse 已提交
1649 1650
#page.loading {
  #pageTogger {display: none}
C
Catouse 已提交
1651
  #pageContent {.opacity(0);}
C
Catouse 已提交
1652
}
C
Catouse 已提交
1653

C
Catouse 已提交
1654
body.compact-mode {
C
Catouse 已提交
1655 1656 1657 1658 1659 1660 1661
  #compactTogger {
    display: inline-block;
    margin-left: 8px;
    .transition-fast(top;);
    .opacity(0);
    position: relative;
    top: -60px;
C
Catouse 已提交
1662 1663
  }

C
Catouse 已提交
1664 1665
  #heading {
    .transition-fast(height; opcity;);
1666 1667
  }

C
Catouse 已提交
1668
  #search {
C
Catouse 已提交
1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700
    .transition-fast(opacity);
    .opacity(0);
    padding: 0;
    position: absolute;
    left: 180px;
    top: 12px;
    z-index: 1050;
    max-width: 500px;
    right: 150px;
  }

  #searchInput {
    border-width: 1px;
    height: 36px;
    font-size: 14px;
  }

  #searchForm {
    .opacity(0);
    .scale(.75);
  }

  #searchForm > .icon {
    top: 10px;
  }

  #searchHelpBtn {
    width: 30px;
    height: 30px;
    line-height: 34px;
    top: 3px;
    right: 3px;
C
Catouse 已提交
1701 1702 1703 1704 1705 1706 1707 1708 1709
  }

  #header {
    z-index: 1025;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 483px;
C
Catouse 已提交
1710
    .transition-fast(padding; height; background-color);
C
Catouse 已提交
1711 1712
  }

C
Catouse 已提交
1713 1714
  #headContainer > .container {position: relative;}

C
Catouse 已提交
1715
  #grid {
C
Catouse 已提交
1716
    .transition-fast(opacity; background-color; margin);
C
Catouse 已提交
1717 1718 1719 1720
    margin-top: 503px;
  }

  &.compact-mode-in {
C
Catouse 已提交
1721 1722 1723 1724 1725 1726
    #navbar {
      padding-top: 10px;

      .navbar-nav > li > a {
        width: 40px;
        padding: 10px;
C
Catouse 已提交
1727
        text-align: center;
C
Catouse 已提交
1728 1729 1730 1731 1732

        > span {
          display: none;
        }
      }
C
Catouse 已提交
1733 1734 1735 1736 1737 1738

      .navbar-collapse {
        &.in, &.collapsing {
          .navbar-nav > li > a {
            padding: 10px 15px;
            width: auto;
1739
            text-align: left;
C
Catouse 已提交
1740 1741 1742 1743 1744 1745 1746 1747 1748 1749

            > span {
              display: inline;
            }
          }
        }
      }
    }

    #navDownloadLink {
C
Catouse 已提交
1750
      .opacity(1);
C
Catouse 已提交
1751 1752
    }

1753
    #compactTogger {
C
Catouse 已提交
1754 1755
      .opacity(1);
      top: 0;
1756 1757
    }

C
Catouse 已提交
1758
    #header {
C
Catouse 已提交
1759 1760
      height: 60px;
      padding: 0;
C
Catouse 已提交
1761 1762 1763 1764 1765 1766 1767

      &.with-shadow {
        .box-shadow(0 2px 6px 0 rgba(0,0,0,.2));
      }
    }

    #heading {
C
Catouse 已提交
1768
      .opacity(0);
C
Catouse 已提交
1769 1770 1771 1772
      height: 0;
    }

    #search {
C
Catouse 已提交
1773 1774 1775 1776 1777 1778
      .opacity(1);
    }

    #searchForm {
      .opacity(1);
      .scale(1);
C
Catouse 已提交
1779 1780 1781
    }

    #grid {
C
Catouse 已提交
1782
      margin-top: 70px;
C
Catouse 已提交
1783 1784 1785 1786
    }
  }
}

C
Catouse 已提交
1787 1788 1789 1790 1791 1792
body.page-show {
  background-color: #f1f1f1;
  overflow: hidden;

  #pageContainer {
    display: block;
C
Catouse 已提交
1793
    .transition-fast(top);
C
Catouse 已提交
1794 1795
  }

C
Catouse 已提交
1796 1797
  #page {
    overflow: hidden;
C
Catouse 已提交
1798
    .transition-fast(box-shadow; opacity; left; width; top; height);
C
Catouse 已提交
1799
    // .transition-fast();
C
Catouse 已提交
1800
    // transition: all 8s;
C
Catouse 已提交
1801 1802
  }

C
Catouse 已提交
1803
  #grid {
C
Catouse 已提交
1804
    .opacity(.5);
C
Catouse 已提交
1805 1806
  }

C
Catouse 已提交
1807
  #pageBody {
C
Catouse 已提交
1808
    .transition-normal(left; top);
C
Catouse 已提交
1809
    top: 190px;
C
Catouse 已提交
1810 1811 1812
    left: 100px;
  }

C
Catouse 已提交
1813 1814
  &.page-show-in {

C
Catouse 已提交
1815
    #pageBody {
C
Catouse 已提交
1816
      top: 90px;
C
Catouse 已提交
1817 1818 1819
      left: 0;
    }

C
Catouse 已提交
1820
    #page {
C
Catouse 已提交
1821
      background-color: #fff;
C
Catouse 已提交
1822
      .opacity(1);
C
Catouse 已提交
1823 1824 1825
      left: 0!important;
      top: 0!important;
      width: 100%!important;
C
Catouse 已提交
1826
      max-height: none!important;
C
Catouse 已提交
1827 1828 1829
    }

    #pageHeader {
C
Catouse 已提交
1830
      .opacity(1);
C
Catouse 已提交
1831 1832 1833
    }
  }

C
Catouse 已提交
1834 1835
  &.page-show-full {
    #page {
C
Catouse 已提交
1836
      border-radius: 0;
C
Catouse 已提交
1837
      .opacity(0);
C
Catouse 已提交
1838 1839 1840 1841
    }

    &.page-show-in {
       #page {
C
Catouse 已提交
1842
         .opacity(1);
C
Catouse 已提交
1843 1844 1845
       }
    }

C
Catouse 已提交
1846 1847 1848 1849 1850 1851 1852 1853 1854
    #pageContainer {
      top: 0;

       > .container {
        width: 100%;
        max-width: none;
      }
    }

C
Catouse 已提交
1855
    #pageContent {
C
Catouse 已提交
1856 1857 1858
      // padding: 0 20px 0 70px;
      // max-width: 1160px;
      // margin: 0 auto;
C
Catouse 已提交
1859 1860

      &:before {
C
Catouse 已提交
1861
        // left: 44px;
C
Catouse 已提交
1862 1863 1864
      }
    }

C
Catouse 已提交
1865 1866 1867 1868
    #pageHeader {
      border-radius: 0;
    }

C
Catouse 已提交
1869
    #pageBody {
C
Catouse 已提交
1870
      // padding: 20px 0;
C
Catouse 已提交
1871 1872 1873 1874 1875 1876

      &.with-scrollbar {
        padding-left: 11px;
      }
    }

C
Catouse 已提交
1877
    #pageAttrs {
C
Catouse 已提交
1878
      // margin-left: 30px;
C
Catouse 已提交
1879 1880
    }

C
Catouse 已提交
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941
    .path-max-btn {
      &:before, &:after, > .path-1:before, > .path-1 {
        .rotate(0deg);
      }

      &:before {
        top: 16px;
        left: 10px;
      }

      &:after {
        top: 16px;
        left: 18px;
      }

      > .path-1 {
        top: 24px;
        left: 10px;
      }

      > .path-1:before {
        top: 0px;
        left: 6px;
      }

      > .path-1:after {
        width: 4px;
        height: 4px;
        top: -3px;
        left: 3px;
      }

      &:hover {
        &:before, &:after, > .path-1, > .path-1:before, > .path-1:after {
          left: 12px;
          top: 18px;
        }

        &:after {
          left: 16px;
        }

        > .path-1 {
          top: 22px;
        }

        > .path-1:before{
          top: 0px;
          left: 2px;
        }

        > .path-1:after {
          width: 10px;
          height: 10px;
          left: -2px;
          top: -4px;
        }
      }
    }
  }

1942 1943
  &[data-page-accent="blue"] {
    .page-accent(@color-blue; @color-blue-pale);
C
Catouse 已提交
1944
  }
1945
  &[data-page-accent="primary"] {
C
Catouse 已提交
1946 1947
    .page-accent(@color-primary; @color-pale);
  }
1948 1949
  &[data-page-accent="yellow"] {
    .page-accent(@color-yellow; @color-yellow-pale);
C
Catouse 已提交
1950
  }
1951 1952
  &[data-page-accent="green"] {
    .page-accent(@color-green; @color-green-pale);
C
Catouse 已提交
1953
  }
1954 1955
  &[data-page-accent="red"] {
    .page-accent(@color-red; @color-red-pale);
C
Catouse 已提交
1956
  }
1957 1958
  &[data-page-accent="brown"] {
    .page-accent(@color-brown; @color-brown-pale);
C
Catouse 已提交
1959
  }
1960 1961
  &[data-page-accent="purple"] {
    .page-accent(@color-purple; @color-purple-pale);
C
Catouse 已提交
1962 1963
  }
}
C
Catouse 已提交
1964 1965

@media (max-width: 767px) {
1966 1967 1968
  #search {
    padding: 30px 10px 40px;
  }
C
Catouse 已提交
1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
  #pageTogger {
    bottom: -72px;
    left: 8px;
  }

  #pageAttrs {
    margin-left: 20px;
    padding-left: 0;
  }

  #pageContent {
    padding-left: 20px;
    &:before {
      left: 0;
      display: none;
    }
  }

  #pageContent > section:before {
    left: -15px;
  }

  #pageContent > section > header {
    &:before {
      left: -20px;
    }
    &:after {
      display: none;
    }

    > h3 {
      &:before {left: -15px}
      &:after {left: -18px}
    }
  }

2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022
  body.compact-mode {
    #header {
      height: 413px;
    }
    #grid {
      margin-top: 433px;
    }

    #navbar .navbar-brand {
      .zui-version, .brand-title {display: none}

      #compactTogger {margin-left: 0; left: -12px;}
    }

    #search {
      left: 70px;
      right: 60px;
    }
C
Catouse 已提交
2023 2024 2025 2026

    #searchInput{
      .placeholder(transparent);
    }
2027 2028 2029 2030 2031

  }

  body.page-show {
    #navbar .navbar-toggle {margin-right: 0;}
C
Catouse 已提交
2032 2033
  }

2034
  body.input-query-focus {
C
Catouse 已提交
2035
    #search {
2036 2037
      left: 10px;
      right: 10px;
C
Catouse 已提交
2038
    }
2039
    
C
Catouse 已提交
2040 2041 2042 2043 2044
    #searchInput{
      .placeholder(#e5e5e5);
      .placeholder(rgba(255, 255, 255, .5));
    }

2045
    #navbar .navbar-brand, #navbar .navbar-toggle {display: none}
C
Catouse 已提交
2046 2047
  }
}
C
Catouse 已提交
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096

body.layout-classic
{
  #heading {display: none}

  #navbar {
    width: 400px;
    left: 0;
    top: 0;
    padding: 10px 0;
    margin-bottom: 0;

    .navbar-header {
      float: none;
    }

    .navbar-toggle {
      display: block;
      float: right;
      margin-right: 0;
    }

    .navbar-collapse {
      display: none!important;

      &.in, &.collapsing {
        &:before {
          right: 10px;
        }

        > .navbar-right {
          float: none!important;
        }

        display: block!important;
        width: 140px;

        > .navbar-nav > li {
          float: none;
        }
      }
    }
  }

  #search {
    padding: 0;
  }

  #header {
C
Catouse 已提交
2097 2098 2099
    position: fixed;
    left: 0;
    top: 0;
C
Catouse 已提交
2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116
    height: 200px;
    width: 400px;
    padding-top: 60px;
  }

  #searchInput {

  }

  #grid {
    position: fixed;
    top: 100px;
    left: 0;
    bottom: 0;
    width: 400px;
  }
}
C
Catouse 已提交
2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134

body.layout-page {
  padding-top: 60px;
  overflow-y: auto;

  #header {height: auto!important}

  #page {
    // .transition-fast();
    box-shadow: none;

    &.loading {
      #pageAttrs {display: none}
    }
  }

  #pageBody {position: relative; top: auto!important; bottom: auto!important}
}