docs.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. body {
  2. position: relative;
  3. padding-top: 50px;
  4. }
  5. .bs-docs-nav {
  6. text-shadow: 0 -1px 0 rgba(0,0,0,.15);
  7. background-color: #563d7c;
  8. border-color: #463265;
  9. box-shadow: 0 1px 0 rgba(255,255,255,.1);
  10. }
  11. .bs-header {
  12. font-size: 21px;
  13. text-align: left;
  14. padding: 30px 15px 40px;
  15. text-shadow: 0 1px 0 rgba(0,0,0,.15);
  16. color: #cdbfe3;
  17. background-color: #563d7c;
  18. }
  19. .bs-docs-nav .navbar-nav > .active > a,
  20. .bs-docs-nav .navbar-nav > .active > a:hover {
  21. color: #fff;
  22. background-color: #463265;
  23. }
  24. .bs-sidenav {
  25. margin-top: 30px;
  26. margin-bottom: 30px;
  27. padding-top: 10px;
  28. padding-bottom: 10px;
  29. text-shadow: 0 1px 0 #fff;
  30. background-color: #f7f5fa;
  31. border-radius: 5px;
  32. }
  33. h1[id] {
  34. padding-top: 80px;
  35. margin-top: -45px;
  36. }
  37. /*
  38. * Side navigation
  39. *
  40. * Scrollspy and affixed enhanced navigation to highlight sections and secondary
  41. * sections of docs content.
  42. */
  43. /* By default it's not affixed in mobile views, so undo that */
  44. .bs-sidebar.affix {
  45. position: static;
  46. }
  47. /* First level of nav */
  48. .bs-sidenav {
  49. margin-top: 30px;
  50. margin-bottom: 30px;
  51. padding-top: 10px;
  52. padding-bottom: 10px;
  53. text-shadow: 0 1px 0 #fff;
  54. background-color: #f7f5fa;
  55. border-radius: 5px;
  56. }
  57. /* All levels of nav */
  58. .bs-sidebar .nav > li > a {
  59. display: block;
  60. color: #716b7a;
  61. padding: 5px 20px;
  62. }
  63. .bs-sidebar .nav > li > a:hover,
  64. .bs-sidebar .nav > li > a:focus {
  65. text-decoration: none;
  66. background-color: #e5e3e9;
  67. border-right: 1px solid #dbd8e0;
  68. }
  69. .bs-sidebar .nav > .active > a,
  70. .bs-sidebar .nav > .active:hover > a,
  71. .bs-sidebar .nav > .active:focus > a {
  72. font-weight: bold;
  73. color: #563d7c;
  74. background-color: transparent;
  75. border-right: 1px solid #563d7c;
  76. }
  77. /* Nav: second level (shown on .active) */
  78. .bs-sidebar .nav .nav {
  79. display: none; /* Hide by default, but at >768px, show it */
  80. margin-bottom: 8px;
  81. }
  82. .bs-sidebar .nav .nav > li > a {
  83. padding-top: 3px;
  84. padding-bottom: 3px;
  85. padding-left: 30px;
  86. font-size: 90%;
  87. }
  88. .footer {
  89. border-top: 1px solid #ddd;
  90. padding: 40px 0;
  91. text-align: center;
  92. margin-top: 40px;
  93. color: #777;
  94. }
  95. /* Show and affix the side nav when space allows it */
  96. @media (min-width: 992px) {
  97. .bs-sidebar .nav > .active > ul {
  98. display: block;
  99. }
  100. /* Widen the fixed sidebar */
  101. .bs-sidebar.affix,
  102. .bs-sidebar.affix-bottom {
  103. width: 213px;
  104. }
  105. .bs-sidebar.affix {
  106. position: fixed; /* Undo the static from mobile first approach */
  107. top: 80px;
  108. }
  109. .bs-sidebar.affix-bottom {
  110. position: absolute; /* Undo the static from mobile first approach */
  111. }
  112. .bs-sidebar.affix-bottom .bs-sidenav,
  113. .bs-sidebar.affix .bs-sidenav {
  114. margin-top: 0;
  115. margin-bottom: 0;
  116. }
  117. }
  118. @media (min-width: 1200px) {
  119. /* Widen the fixed sidebar again */
  120. .bs-sidebar.affix-bottom,
  121. .bs-sidebar.affix {
  122. width: 263px;
  123. }
  124. }