base.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. html {
  2. /* csslint ignore:start */
  3. /* The nav header is 3.5rem high, plus 20px for the margin-top of the
  4. main container. */
  5. scroll-padding-top: calc(3.5rem + 20px);
  6. /* csslint ignore:end */
  7. }
  8. /* Replacement for `body { background-attachment: fixed; }`, which has
  9. performance issues when scrolling on large displays. See #1394. */
  10. body::before {
  11. content: ' ';
  12. position: fixed;
  13. width: 100%;
  14. height: 100%;
  15. top: 0;
  16. left: 0;
  17. background-color: #f8f8f8;
  18. background: url(../img/grid.png) repeat-x;
  19. will-change: transform;
  20. z-index: -1;
  21. }
  22. body > .container {
  23. margin-top: 20px;
  24. min-height: 400px;
  25. }
  26. .navbar.fixed-top { /* csslint allow: adjoining-classes */
  27. /* csslint ignore:start */
  28. position: -webkit-sticky;
  29. position: sticky;
  30. /* csslint ignore:end */
  31. }
  32. .source-links {
  33. float: right;
  34. }
  35. .col-md-9 img {
  36. max-width: 100%;
  37. display: inline-block;
  38. padding: 4px;
  39. line-height: 1.428571429;
  40. background-color: #fff;
  41. border: 1px solid #ddd;
  42. border-radius: 4px;
  43. margin: 20px auto 30px auto;
  44. }
  45. h1 {
  46. color: #444;
  47. font-weight: 400;
  48. font-size: 42px;
  49. }
  50. h2, h3, h4, h5, h6 {
  51. color: #444;
  52. font-weight: 300;
  53. }
  54. hr {
  55. border-top: 1px solid #aaa;
  56. }
  57. pre, .rst-content tt {
  58. max-width: 100%;
  59. background: #fff;
  60. border: solid 1px #e1e4e5;
  61. color: #333;
  62. overflow-x: auto;
  63. }
  64. code.code-large, .rst-content tt.code-large {
  65. font-size: 90%;
  66. }
  67. code {
  68. padding: 2px 5px;
  69. background: #fff;
  70. border: solid 1px #e1e4e5;
  71. color: #333;
  72. white-space: pre-wrap;
  73. word-wrap: break-word;
  74. }
  75. pre code {
  76. display: block;
  77. background: transparent;
  78. border: none;
  79. white-space: pre;
  80. word-wrap: normal;
  81. font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  82. font-size: 12px;
  83. }
  84. kbd {
  85. padding: 2px 4px;
  86. font-size: 90%;
  87. color: #fff;
  88. background-color: #333;
  89. border-radius: 3px;
  90. -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
  91. box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
  92. }
  93. a code {
  94. color: #2FA4E7;
  95. }
  96. a:hover code, a:focus code {
  97. color: #157AB5;
  98. }
  99. footer {
  100. margin-top: 30px;
  101. margin-bottom: 10px;
  102. text-align: center;
  103. font-weight: 200;
  104. }
  105. .modal-dialog {
  106. margin-top: 60px;
  107. }
  108. /*
  109. * Side navigation
  110. *
  111. * Scrollspy and affixed enhanced navigation to highlight sections and secondary
  112. * sections of docs content.
  113. */
  114. .bs-sidebar.affix { /* csslint allow: adjoining-classes */
  115. /* csslint ignore:start */
  116. position: -webkit-sticky;
  117. position: sticky;
  118. /* csslint ignore:end */
  119. /* The nav header is 3.5rem high, plus 20px for the margin-top of the
  120. main container. */
  121. top: calc(3.5rem + 20px);
  122. }
  123. .bs-sidebar.card { /* csslint allow: adjoining-classes */
  124. padding: 0;
  125. max-height: 90%;
  126. overflow-y: auto;
  127. }
  128. /* Toggle (vertically flip) sidebar collapse icon */
  129. .bs-sidebar .navbar-toggler span {
  130. -moz-transform: scale(1, -1);
  131. -webkit-transform: scale(1, -1);
  132. -o-transform: scale(1, -1);
  133. -ms-transform: scale(1, -1);
  134. transform: scale(1, -1);
  135. }
  136. .bs-sidebar .navbar-toggler.collapsed span { /* csslint allow: adjoining-classes */
  137. -moz-transform: scale(1, 1);
  138. -webkit-transform: scale(1, 1);
  139. -o-transform: scale(1, 1);
  140. -ms-transform: scale(1, 1);
  141. transform: scale(1, 1);
  142. }
  143. /* First level of nav */
  144. .bs-sidebar > .navbar-collapse > .nav {
  145. padding-top: 10px;
  146. padding-bottom: 10px;
  147. border-radius: 5px;
  148. width: 100%;
  149. }
  150. /* All levels of nav */
  151. .bs-sidebar .nav > li > a {
  152. display: block;
  153. padding: 5px 20px;
  154. z-index: 1;
  155. }
  156. .bs-sidebar .nav > li > a:hover,
  157. .bs-sidebar .nav > li > a:focus {
  158. text-decoration: none;
  159. border-right: 1px solid;
  160. }
  161. .bs-sidebar .nav > li > a.active,
  162. .bs-sidebar .nav > li > a.active:hover,
  163. .bs-sidebar .nav > li > a.active:focus {
  164. font-weight: bold;
  165. background-color: transparent;
  166. border-right: 1px solid;
  167. }
  168. .bs-sidebar .nav .nav .nav {
  169. margin-left: 1em;
  170. }
  171. .bs-sidebar .nav > li > a {
  172. font-weight: bold;
  173. }
  174. .bs-sidebar .nav .nav > li > a {
  175. font-weight: normal;
  176. }
  177. .headerlink {
  178. font-family: FontAwesome;
  179. font-size: 14px;
  180. display: none;
  181. padding-left: .5em;
  182. }
  183. h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
  184. display:inline-block;
  185. }
  186. .admonition, details {
  187. padding: 15px;
  188. margin-bottom: 20px;
  189. border: 1px solid transparent;
  190. border-radius: 4px;
  191. text-align: left;
  192. }
  193. .admonition.note, details.note { /* csslint allow: adjoining-classes */
  194. color: #2e6b89;
  195. background-color: #e2f0f7;
  196. border-color: #bce8f1;
  197. }
  198. .admonition.warning, details.warning { /* csslint allow: adjoining-classes */
  199. color: #7a6032;
  200. background-color: #fffae5;
  201. border-color: #fbeed5;
  202. }
  203. .admonition.danger, details.danger { /* csslint allow: adjoining-classes */
  204. color: #7f3130;
  205. background-color: #fde3e3;
  206. border-color: #eed3d7;
  207. }
  208. .admonition-title, summary {
  209. font-weight: bold;
  210. text-align: left;
  211. }
  212. .admonition>p:last-child, details>p:last-child {
  213. margin-bottom: 0;
  214. }
  215. @media (max-width: 991.98px) {
  216. .navbar-collapse.show { /* csslint allow: adjoining-classes */
  217. overflow-y: auto;
  218. max-height: calc(100vh - 3.5rem);
  219. }
  220. }
  221. .dropdown-item.open { /* csslint allow: adjoining-classes */
  222. color: #fff;
  223. background-color: #2FA4E7;
  224. }
  225. .dropdown-submenu > .dropdown-menu {
  226. margin: 0 0 0 1.5rem;
  227. padding: 0;
  228. border-width: 0;
  229. }
  230. .dropdown-submenu > a::after {
  231. display: block;
  232. content: " ";
  233. float: right;
  234. width: 0;
  235. height: 0;
  236. border-color: transparent;
  237. border-style: solid;
  238. border-width: 5px 0 5px 5px;
  239. border-left-color: #ccc;
  240. margin-top: 5px;
  241. margin-right: -10px;
  242. }
  243. .dropdown-submenu:hover > a::after {
  244. border-left-color: #fff;
  245. }
  246. @media (min-width: 992px) {
  247. .dropdown-menu {
  248. overflow-y: auto;
  249. max-height: calc(100vh - 3.5rem);
  250. }
  251. .dropdown-submenu {
  252. position: relative;
  253. }
  254. .dropdown-submenu > .dropdown-menu {
  255. /* csslint ignore:start */
  256. position: fixed !important;
  257. /* csslint ignore:end */
  258. margin-top: -9px;
  259. margin-left: -2px;
  260. border-width: 1px;
  261. padding: 0.5rem 0;
  262. }
  263. .dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */
  264. float: none;
  265. }
  266. .dropdown-submenu.pull-left > .dropdown-menu { /* csslint allow: adjoining-classes */
  267. left: -100%;
  268. margin-left: 10px;
  269. }
  270. }
  271. @media print {
  272. /* Remove sidebar when print */
  273. .col-md-3 { display: none; }
  274. }