_docs.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. /*************************************************
  2. * Documentation layout
  3. **************************************************/
  4. .docs-article-container {
  5. max-width: 760px;
  6. }
  7. /* Documentation: article footer. */
  8. .docs .body-footer {
  9. border-top: 1px solid #e8e8e8;
  10. margin-top: 30px;
  11. padding-top: 10px;
  12. font-size: 14px;
  13. color: #707070;
  14. }
  15. /* Docs content. */
  16. .docs-content {
  17. order: 1;
  18. position: relative;
  19. }
  20. .docs-content>h2[id],
  21. .docs-content>h3[id],
  22. .docs-content>h4[id] {
  23. pointer-events: none;
  24. }
  25. .docs-content>ol li,
  26. .docs-content>ul li {
  27. margin-bottom: .25rem;
  28. }
  29. /* Docs search. */
  30. .docs-search {
  31. position: relative;
  32. padding: 1rem 15px;
  33. margin-right: -15px;
  34. margin-left: -15px;
  35. border-bottom: 1px solid rgba(0, 0, 0, .05);
  36. }
  37. .docs-search .form-control:focus {
  38. border-color: $sta-primary;
  39. box-shadow: 0 0 0 3px $sta-primary-light;
  40. }
  41. /* Docs sidebar. */
  42. .docs-sidebar {
  43. order: 0;
  44. border-bottom: 1px solid rgba(0, 0, 0, .1)
  45. }
  46. @media (min-width:768px) {
  47. .docs-sidebar {
  48. border-right: 1px solid rgba(0, 0, 0, .1)
  49. }
  50. @supports ((position:-webkit-sticky) or (position:sticky)) {
  51. .docs-sidebar {
  52. position: -webkit-sticky;
  53. position: sticky;
  54. top: 50px;
  55. z-index: 10;
  56. height: calc(100vh - 50px)
  57. }
  58. }
  59. }
  60. @media (min-width:1200px) {
  61. .docs-sidebar {
  62. border-right: 1px solid rgba(0, 0, 0, .1)
  63. }
  64. @supports ((position:-webkit-sticky) or (position:sticky)) {
  65. .docs-sidebar {
  66. position: -webkit-sticky;
  67. position: sticky;
  68. top: 70px;
  69. z-index: 10;
  70. height: calc(100vh - 70px)
  71. }
  72. }
  73. }
  74. @media (min-width:1200px) {
  75. .docs-sidebar {
  76. flex: 0 1 320px
  77. }
  78. }
  79. /* Docs sidebar li>a. */
  80. .docs-sidebar .nav>li>a {
  81. display: block;
  82. padding: .25rem 1.5rem;
  83. font-size: 0.8rem;
  84. color: rgba(0, 0, 0, .65);
  85. }
  86. .docs-sidebar .nav>li>a:hover {
  87. color: rgba(0, 0, 0, .85);
  88. text-decoration: none;
  89. background-color: transparent;
  90. }
  91. .docs-sidebar .docs-toc-item.active a,
  92. .docs-sidebar .nav>.active:hover>a,
  93. .docs-sidebar .nav>.active>a {
  94. font-weight: bold;
  95. color: $sta-primary;
  96. background-color: transparent;
  97. }
  98. /* Docs links. */
  99. .docs-toggle {
  100. line-height: 1;
  101. font-size: 1.2rem;
  102. color: $sta-primary;
  103. background-color: transparent;
  104. }
  105. .docs-links {
  106. padding-top: 1rem;
  107. padding-bottom: 1rem;
  108. margin-right: -15px;
  109. margin-left: -15px;
  110. }
  111. @media (min-width:768px) {
  112. @supports ((position:-webkit-sticky) or (position:sticky)) {
  113. .docs-links {
  114. max-height: calc(100vh - 5rem - 70px);
  115. overflow-y: auto;
  116. }
  117. }
  118. }
  119. @media (min-width:768px) {
  120. .docs-links {
  121. display: block!important;
  122. }
  123. }
  124. /* Docs TOC. */
  125. .docs-toc {
  126. order: 2;
  127. padding-top: 1.5rem;
  128. padding-bottom: 1.5rem;
  129. font-size: .875rem
  130. }
  131. @supports ((position:-webkit-sticky) or (position:sticky)) {
  132. .docs-toc {
  133. position: -webkit-sticky;
  134. position: sticky;
  135. top: 70px;
  136. height: calc(100vh - 70px);
  137. overflow-y: auto
  138. }
  139. }
  140. /* Docs TOC item links. */
  141. .docs-toc-link {
  142. display: block;
  143. padding: .25rem 1.5rem;
  144. font-weight: bold;
  145. color: rgba(0, 0, 0, .65);
  146. }
  147. .docs-toc-link:hover {
  148. color: rgba(0, 0, 0, .85);
  149. text-decoration: none;
  150. }
  151. .docs-toc-item.active {
  152. margin-bottom: 1rem;
  153. }
  154. .docs-toc-item.active:not(:first-child) {
  155. margin-top: 1rem;
  156. }
  157. .docs-toc-item.active>.docs-toc-link {
  158. color: rgba(0, 0, 0, .85);
  159. }
  160. .docs-toc-item.active>.docs-toc-link:hover {
  161. background-color: transparent;
  162. }
  163. .docs-sidenav {
  164. display: block;
  165. }
  166. /* Docs TOC nav. */
  167. .docs-toc-title {
  168. color: #b5b5b5;
  169. font-size: .875rem;
  170. font-weight: 600;
  171. padding-left: calc(1.5rem + 1px);
  172. }
  173. #TableOfContents {
  174. padding-left: 0;
  175. border-left: 1px solid #eee;
  176. }
  177. #TableOfContents ul,
  178. ul.toc-top {
  179. padding-left: 0;
  180. }
  181. #TableOfContents ul ul {
  182. display: none;
  183. }
  184. #TableOfContents li {
  185. display: block;
  186. }
  187. #TableOfContents li a,
  188. .toc-top li a {
  189. display: block;
  190. padding: .125rem 1.5rem;
  191. color: #99979c;
  192. font-size: 0.7rem;
  193. }
  194. #TableOfContents li a:hover,
  195. .toc-top li a:hover {
  196. color: $sta-primary;
  197. text-decoration: none;
  198. }
  199. /* ScrollSpy active link style. */
  200. #TableOfContents li a.active {
  201. color: $sta-primary;
  202. font-weight: 700;
  203. }
  204. /* Docs achnorjs links. */
  205. .anchorjs-link {
  206. font-weight: 400;
  207. color: $sta-primary-dark;
  208. transition: color .16s linear;
  209. }
  210. .anchorjs-link:hover {
  211. color: $sta-primary;
  212. text-decoration: none;
  213. }