base.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. html {
  2. /* The nav header is 4.40625rem high, plus 20px for the margin-top of the
  3. main container. */
  4. scroll-padding-top: calc(4.40625rem + 20px);
  5. }
  6. body > .container {
  7. margin-top: 20px;
  8. }
  9. .navbar.fixed-top {
  10. position: -webkit-sticky;
  11. position: sticky;
  12. }
  13. .source-links {
  14. float: right;
  15. }
  16. .col-md-9 img {
  17. max-width: 100%;
  18. }
  19. pre, code {
  20. background: #444;
  21. color: #e0e2e4;
  22. border: 1px solid rgba(0,0,0,0.125);
  23. border-radius: 0.25rem;
  24. }
  25. pre {
  26. padding: 0.5em;
  27. }
  28. code {
  29. padding: 1px 3px;
  30. }
  31. pre code {
  32. border: none;
  33. /* Override styles from hljs theme */
  34. background: transparent !important;
  35. padding: 0 !important;
  36. }
  37. a code {
  38. color: #00bc8c;
  39. }
  40. a:hover code {
  41. color: #007053;
  42. }
  43. kbd {
  44. padding: 2px 4px;
  45. font-size: 90%;
  46. color: #fff;
  47. background-color: #333;
  48. border-radius: 3px;
  49. -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
  50. box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
  51. }
  52. footer {
  53. margin-top: 30px;
  54. margin-bottom: 10px;
  55. text-align: center;
  56. font-weight: 200;
  57. }
  58. .modal-dialog {
  59. margin-top: 60px;
  60. }
  61. /* Style the admonitions. */
  62. .admonition {
  63. margin-bottom: 1rem;
  64. border: 1px solid rgba(0, 0, 0, 0.125);
  65. border-radius: 0.25rem;
  66. color: #fff;
  67. }
  68. .admonition > .admonition-title {
  69. margin: 0;
  70. padding: 0.75rem 1rem;
  71. background: #444;
  72. border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  73. border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
  74. font-size: 1rem;
  75. }
  76. .admonition > * {
  77. margin-left: 1rem;
  78. margin-right: 1rem;
  79. }
  80. .admonition > *:not(.admonition-title):first-of-type,
  81. .admonition > .admonition-title + * {
  82. margin-top: 1rem;
  83. }
  84. .admonition > *:last-child {
  85. margin-bottom: 1rem;
  86. }
  87. /* Style each kind of admonition. */
  88. .admonition.note, .admonition.note > .admonition-title {
  89. border-color: #304f6f;
  90. }
  91. .admonition.note > .admonition-title {
  92. background: #375a7f;
  93. }
  94. .admonition.warning, .admonition.warning > .admonition-title {
  95. border-color: #d58910;
  96. }
  97. .admonition.warning > .admonition-title {
  98. background: #f39c12;
  99. }
  100. .admonition.danger, .admonition.danger > .admonition-title {
  101. border-color: #ca4335;
  102. }
  103. .admonition.danger > .admonition-title {
  104. background: #e74c3c;
  105. }
  106. /*
  107. * Side navigation
  108. *
  109. * Scrollspy and affixed enhanced navigation to highlight sections and secondary
  110. * sections of docs content.
  111. */
  112. .bs-sidebar.affix {
  113. position: -webkit-sticky;
  114. position: sticky;
  115. /* The nav header is 4.40625rem high, plus 20px for the margin-top of the
  116. main container. */
  117. top: calc(4.40625rem + 20px);
  118. }
  119. .bs-sidebar.card {
  120. padding: 0;
  121. }
  122. /* Toggle (vertically flip) sidebar collapse icon */
  123. .bs-sidebar .navbar-toggler span {
  124. -moz-transform: scale(1, -1);
  125. -webkit-transform: scale(1, -1);
  126. -o-transform: scale(1, -1);
  127. -ms-transform: scale(1, -1);
  128. transform: scale(1, -1);
  129. }
  130. .bs-sidebar .navbar-toggler.collapsed span {
  131. -moz-transform: scale(1, 1);
  132. -webkit-transform: scale(1, 1);
  133. -o-transform: scale(1, 1);
  134. -ms-transform: scale(1, 1);
  135. transform: scale(1, 1);
  136. }
  137. /* First level of nav */
  138. .bs-sidebar > .navbar-collapse > .nav {
  139. padding-top: 10px;
  140. padding-bottom: 10px;
  141. border-radius: 5px;
  142. width: 100%;
  143. }
  144. /* All levels of nav */
  145. .bs-sidebar .nav > li > a {
  146. display: block;
  147. padding: 5px 20px;
  148. z-index: 1;
  149. }
  150. .bs-sidebar .nav > li > a:hover,
  151. .bs-sidebar .nav > li > a:focus {
  152. text-decoration: none;
  153. border-right: 1px solid;
  154. }
  155. .bs-sidebar .nav > li > a.active,
  156. .bs-sidebar .nav > li > a.active:hover,
  157. .bs-sidebar .nav > li > a.active:focus {
  158. font-weight: bold;
  159. background-color: transparent;
  160. border-right: 1px solid;
  161. }
  162. .bs-sidebar .nav .nav .nav {
  163. margin-left: 1em;
  164. }
  165. .bs-sidebar .nav > li > a {
  166. font-weight: bold;
  167. }
  168. .bs-sidebar .nav .nav > li > a {
  169. font-weight: normal;
  170. }
  171. .headerlink {
  172. display: none;
  173. padding-left: .5em;
  174. }
  175. h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
  176. display:inline-block;
  177. }
  178. @media (max-width: 991.98px) {
  179. .navbar-collapse.show {
  180. overflow-y: auto;
  181. max-height: calc(100vh - 4.40625rem);
  182. }
  183. }
  184. .dropdown-item.open {
  185. color: #fff;
  186. background-color: #375a7f;
  187. }
  188. .dropdown-submenu > .dropdown-menu {
  189. margin: 0 0 0 1.5rem;
  190. padding: 0;
  191. border-width: 0;
  192. }
  193. .dropdown-submenu > a::after {
  194. display: block;
  195. content: " ";
  196. float: right;
  197. width: 0;
  198. height: 0;
  199. border-color: transparent;
  200. border-style: solid;
  201. border-width: 5px 0 5px 5px;
  202. border-left-color: #ccc;
  203. margin-top: 5px;
  204. margin-right: -10px;
  205. }
  206. .dropdown-submenu:hover > a::after {
  207. border-left-color: #404040;
  208. }
  209. @media (min-width: 992px) {
  210. .dropdown-menu {
  211. overflow-y: auto;
  212. max-height: calc(100vh - 4.40625rem);
  213. }
  214. .dropdown-submenu {
  215. position: relative;
  216. }
  217. .dropdown-submenu > .dropdown-menu {
  218. position: fixed !important;
  219. margin-top: -9px;
  220. margin-left: -2px;
  221. border-width: 1px;
  222. padding: 0.5rem 0;
  223. }
  224. }