_docs.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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 .docs-toc-item a.active, // Book layout sidebar links
  93. .docs-sidebar .nav>.active:hover>a,
  94. .docs-sidebar .nav>.active>a {
  95. font-weight: bold;
  96. color: $sta-primary;
  97. background-color: transparent;
  98. }
  99. /* Docs links. */
  100. .docs-toggle {
  101. line-height: 1;
  102. font-size: 1.2rem;
  103. color: $sta-primary;
  104. background-color: transparent;
  105. }
  106. .docs-links {
  107. padding-top: 1rem;
  108. padding-bottom: 1rem;
  109. margin-right: -15px;
  110. margin-left: -15px;
  111. }
  112. @media (min-width:768px) {
  113. @supports ((position:-webkit-sticky) or (position:sticky)) {
  114. .docs-links {
  115. max-height: calc(100vh - 5rem - 70px);
  116. overflow-y: auto;
  117. }
  118. }
  119. }
  120. @media (min-width:768px) {
  121. .docs-links {
  122. display: block!important;
  123. }
  124. }
  125. /* Docs TOC. */
  126. .docs-toc {
  127. order: 2;
  128. padding-top: 1.5rem;
  129. padding-bottom: 1.5rem;
  130. font-size: .875rem
  131. }
  132. @supports ((position:-webkit-sticky) or (position:sticky)) {
  133. .docs-toc {
  134. position: -webkit-sticky;
  135. position: sticky;
  136. top: 70px;
  137. height: calc(100vh - 70px);
  138. overflow-y: auto
  139. }
  140. }
  141. /* Docs TOC item links. */
  142. .docs-toc-link {
  143. display: block;
  144. padding: .25rem 1.5rem;
  145. font-weight: bold;
  146. color: rgba(0, 0, 0, .65);
  147. }
  148. .docs-toc-link:hover {
  149. color: rgba(0, 0, 0, .85);
  150. text-decoration: none;
  151. }
  152. .docs-toc-item.active {
  153. margin-bottom: 1rem;
  154. }
  155. .docs-toc-item.active:not(:first-child) {
  156. margin-top: 1rem;
  157. }
  158. .docs-toc-item.active>.docs-toc-link {
  159. color: rgba(0, 0, 0, .85);
  160. }
  161. .docs-toc-item.active>.docs-toc-link:hover {
  162. background-color: transparent;
  163. }
  164. .docs-sidenav {
  165. display: block;
  166. }
  167. /* Docs TOC nav. */
  168. .docs-toc-title {
  169. color: #b5b5b5;
  170. font-size: .875rem;
  171. font-weight: 600;
  172. padding-left: calc(1.5rem + 1px);
  173. }
  174. #TableOfContents {
  175. padding-left: 0;
  176. border-left: 1px solid #eee;
  177. }
  178. #TableOfContents ul,
  179. ul.toc-top {
  180. padding-left: 0;
  181. }
  182. // TOC indentation for each level.
  183. #TableOfContents ul ul {
  184. padding-left: 0.8rem;
  185. }
  186. #TableOfContents li {
  187. display: block;
  188. }
  189. #TableOfContents li a,
  190. .toc-top li a {
  191. display: block;
  192. padding: .125rem 1.5rem;
  193. color: #99979c;
  194. font-size: 0.7rem;
  195. }
  196. #TableOfContents li a:hover,
  197. .toc-top li a:hover {
  198. color: $sta-primary;
  199. text-decoration: none;
  200. }
  201. /* ScrollSpy active link style. */
  202. #TableOfContents li a.active {
  203. color: $sta-primary;
  204. font-weight: 700;
  205. }
  206. /* Docs achnorjs links. */
  207. .anchorjs-link {
  208. font-weight: 400;
  209. color: $sta-primary-dark;
  210. transition: color .16s linear;
  211. }
  212. .anchorjs-link:hover {
  213. color: $sta-primary;
  214. text-decoration: none;
  215. }