base.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. body {
  2. padding-top: 56px;
  3. }
  4. h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before, h6[id]:before {
  5. content: "";
  6. display: block;
  7. margin-top: -75px;
  8. height: 75px;
  9. }
  10. h2 code, h3 code, h4 code {
  11. background-color: inherit;
  12. }
  13. ul.nav li.main {
  14. font-weight: bold;
  15. width: 100%;
  16. }
  17. .container > .row > .col-lg-3 {
  18. padding-left: 0;
  19. }
  20. .container > .row > .col-lg-9 {
  21. padding-bottom: 100px;
  22. }
  23. div.source-links {
  24. float: right;
  25. }
  26. /*
  27. * Side navigation
  28. *
  29. * Scrollspy and affixed enhanced navigation to highlight sections and secondary
  30. * sections of docs content.
  31. */
  32. /* By default it's not affixed in mobile views, so undo that */
  33. .bs-sidebar {
  34. position: static;
  35. }
  36. .bs-sidebar.well {
  37. padding: 0;
  38. }
  39. /* First level of nav */
  40. .bs-sidenav {
  41. margin-top: 30px;
  42. margin-bottom: 30px;
  43. padding-top: 10px;
  44. padding-bottom: 10px;
  45. border-radius: 5px;
  46. }
  47. /* All levels of nav */
  48. .bs-sidebar .nav > li > a {
  49. display: block;
  50. padding: 5px 20px;
  51. z-index: 1;
  52. }
  53. .bs-sidebar .nav > li > a:hover,
  54. .bs-sidebar .nav > li > a:focus {
  55. text-decoration: none;
  56. border-right: 1px solid;
  57. }
  58. .bs-sidebar .nav .nav-link.active,
  59. .bs-sidebar .nav .nav-link.active:hover,
  60. .bs-sidebar .nav .nav-link.active:focus {
  61. font-weight: bold;
  62. background-color: transparent;
  63. border-right: 1px solid;
  64. }
  65. /* Nav: second level (shown on .active) */
  66. .bs-sidebar .nav .nav {
  67. display: none; /* Hide by default, but at >768px, show it */
  68. margin-bottom: 8px;
  69. }
  70. .bs-sidebar .nav .nav > li > a {
  71. padding-top: 3px;
  72. padding-bottom: 3px;
  73. padding-left: 30px;
  74. font-size: 90%;
  75. }
  76. /* Show and affix the side nav when space allows it */
  77. @media (min-width: 992px) {
  78. .bs-sidebar .nav-link.active + .nav {
  79. display: block;
  80. }
  81. /* Widen the fixed sidebar */
  82. .bs-sidebar {
  83. position: sticky; /* Undo the static from mobile first approach */
  84. top: 80px;
  85. }
  86. }