misc.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // stylelint-disable selector-max-type, selector-no-qualifying-type, declaration-no-important
  2. //
  3. // Misc
  4. //
  5. // For scrollspy
  6. body {
  7. position: relative;
  8. }
  9. // Keep code small in tables on account of limited space
  10. .table code {
  11. font-size: 13px;
  12. font-weight: 400;
  13. }
  14. // Inline code within headings retain the heading's background-color
  15. h2 code,
  16. h3 code,
  17. h4 code {
  18. background-color: inherit;
  19. }
  20. // Space docs sections out
  21. .bs-docs-section {
  22. margin-bottom: 60px;
  23. }
  24. .bs-docs-section:last-child {
  25. margin-bottom: 0;
  26. }
  27. h1[id] {
  28. padding-top: 20px;
  29. margin-top: 0;
  30. }
  31. // Wall of Browser Bugs
  32. .bs-docs-browser-bugs td p {
  33. margin-bottom: 0;
  34. }
  35. .bs-docs-browser-bugs th:first-child {
  36. width: 18%;
  37. }
  38. // Don't wrap event names in Events tables in JS plugin docs
  39. .bs-events-table > thead > tr > th:first-child,
  40. .bs-events-table > tbody > tr > td:first-child {
  41. white-space: nowrap;
  42. }
  43. .bs-events-table > thead > tr > th:first-child {
  44. width: 150px;
  45. }
  46. .js-options-table > thead > tr > th:nth-child(1),
  47. .js-options-table > thead > tr > th:nth-child(2) {
  48. width: 100px;
  49. }
  50. .js-options-table > thead > tr > th:nth-child(3) {
  51. width: 50px;
  52. }
  53. // v4 notice above main navbar
  54. .v4-tease {
  55. display: block;
  56. padding: 15px 20px;
  57. font-weight: 700;
  58. color: #fff;
  59. text-align: center;
  60. background-color: #0275d8;
  61. &:focus,
  62. &:hover {
  63. color: #fff;
  64. text-decoration: none;
  65. background-color: #0269c2;
  66. }
  67. }
  68. /* Nullify ill-advised printing of hrefs; see #18711 */
  69. @media print {
  70. a[href]:after {
  71. content: "" !important;
  72. }
  73. }