910a715e60cb939f3c70b32f1a85e5778cc8cd8a.svn-base 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // Automatically style Markdown-based tables like a Bootstrap `.table`.
  3. //
  4. .bd-content {
  5. > table {
  6. display: block;
  7. width: 100%;
  8. max-width: 100%;
  9. overflow-y: auto;
  10. margin-bottom: $spacer;
  11. // Cells
  12. > thead,
  13. > tbody,
  14. > tfoot {
  15. > tr {
  16. > th,
  17. > td {
  18. padding: $table-cell-padding;
  19. line-height: $line-height;
  20. vertical-align: top;
  21. border: 1px solid $table-border-color;
  22. > p:last-child {
  23. margin-bottom: 0;
  24. }
  25. }
  26. }
  27. }
  28. // Prevent breaking of code (e.g., Grunt tasks list)
  29. td:first-child > code {
  30. white-space: nowrap;
  31. }
  32. }
  33. }
  34. //
  35. // Docs sections
  36. //
  37. .bd-content {
  38. > h2:not(:first-child) {
  39. margin-top: 3rem;
  40. }
  41. > h3 {
  42. margin-top: 1.5rem;
  43. }
  44. > ul li,
  45. > ol li {
  46. margin-bottom: .25rem;
  47. }
  48. }
  49. .bd-title {
  50. @include media-breakpoint-up(sm) {
  51. font-size: 3rem;
  52. + p {
  53. font-size: 1.25rem;
  54. font-weight: 300;
  55. }
  56. }
  57. }
  58. //
  59. // Markdown generated ToC
  60. //
  61. #markdown-toc {
  62. // Hide the first child li because it's always going to be "Contents".
  63. > li:first-child {
  64. display: none;
  65. }
  66. ul {
  67. padding-left: 2rem;
  68. margin-top: .25rem;
  69. margin-bottom: .25rem;
  70. }
  71. }