_jquery.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. ._jquery {
  2. //
  3. // Index page
  4. //
  5. h2.entry-title {
  6. margin: 0 0 1.5rem;
  7. font-size: 1rem;
  8. font-weight: normal;
  9. }
  10. .entry-summary {
  11. margin: -1rem 0 1.5rem;
  12. padding-right: 1.5rem;
  13. }
  14. .post:not(:only-of-type),
  15. .page:not(:only-of-type) {
  16. width: 50%;
  17. float: left;
  18. &:nth-of-type(2n+1) { clear: both; }
  19. }
  20. //
  21. // Article page
  22. //
  23. // Table of contents
  24. .toc > h4 { font-size: inherit; }
  25. .toc-list {
  26. margin-top: 0;
  27. font-weight: var(--boldFontWeight);
  28. > li + li { margin-top: 1em; }
  29. > li > ul { font-weight: normal; }
  30. > li > ul > li + li { margin-top: 0; }
  31. }
  32. // Headings
  33. .section-title, .entry-wrapper > h3, .underline { @extend %block-heading; }
  34. .name > .version-details,
  35. .section-title > .version-details,
  36. .returns,
  37. .option-type {
  38. float: right;
  39. font-weight: var(--boldFontWeight);
  40. margin-left: 1em;
  41. }
  42. // Method signatures
  43. .signatures {
  44. padding: 0;
  45. list-style: none;
  46. }
  47. .signature {
  48. + .signature { margin-top: 1em; }
  49. > .name {
  50. margin-top: 1em;
  51. @extend %block-label, %label-blue;
  52. }
  53. > ul {
  54. padding-left: 1em;
  55. list-style: none;
  56. > li + li { margin-top: 1em; }
  57. > li > ul { list-style-type: disc; }
  58. }
  59. }
  60. // Examples
  61. .entry-example {
  62. > h4 {
  63. margin: 2em 0 1.5em;
  64. line-height: inherit;
  65. font-size: inherit;
  66. font-weight: normal;
  67. }
  68. }
  69. // Quick nav (jQuery UI)
  70. #quick-nav {
  71. margin-bottom: 2em;
  72. max-width: 38em;
  73. overflow: hidden;
  74. @extend %note, %note-blue;
  75. > h2 {
  76. margin: .25rem 0 1rem;
  77. font-size: 1rem;
  78. > a { float: right; }
  79. }
  80. }
  81. .quick-nav-section {
  82. width: 33%;
  83. float: left;
  84. > h3 {
  85. margin: 0 0 .5em;
  86. font-size: inherit;
  87. }
  88. }
  89. // Options (jQuery UI)
  90. .api-item {
  91. padding-left: 1rem;
  92. > h3 {
  93. margin-left: -1rem;
  94. @extend %block-label, %label-blue;
  95. }
  96. }
  97. // Misc
  98. p > code, li > code { @extend %label; }
  99. .warning { @extend %note; }
  100. .name > a,
  101. .version-details > a {
  102. color: inherit;
  103. @extend %internal-link;
  104. }
  105. }