ss14.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* Custom styles for SS14 docs
  2. /* allow wider content since no navvybar buttons */
  3. :root {
  4. --content-max-width: 850px;
  5. --sidebar-active: #e23229;
  6. }
  7. /* title text on top of every page */
  8. .menu-title {
  9. color: #e23229;
  10. }
  11. @media only screen and (min-width: 1366px) {
  12. .content>main {
  13. /* navbar button was basically a margin left but dont have that no more so */
  14. margin-left: 200px;
  15. }
  16. }
  17. /* Mostly stolen from the Rhai book (rhai.rs) theme */
  18. .part-title {
  19. font-size: 150%;
  20. font-variant-caps: small-caps;
  21. }
  22. /* lets get a little more compact */
  23. .chapter li.chapter-item {
  24. margin-top: 0.45em;
  25. }
  26. .chapter>.chapter-item {
  27. padding-left: 10px;
  28. }
  29. .chapter>.chapter-item:first-child {
  30. font-weight: bold;
  31. font-size: 200%;
  32. font-variant-caps: small-caps;
  33. padding-left: 0px;
  34. }
  35. /* bigger buttons for discoverability */
  36. .right-buttons > a > i {
  37. font-size: 200%;
  38. }
  39. .left-buttons > button > i {
  40. font-size: 200%;
  41. }
  42. td>ol,
  43. td>ul {
  44. margin: 0;
  45. padding: 0;
  46. padding-left: inherit;
  47. }
  48. main h2, h3 {
  49. margin-top: 1.25em;
  50. border-bottom: 1px solid var(--sidebar-spacer);
  51. padding-bottom: 5px;
  52. }
  53. main h1 {
  54. border-bottom: 3px solid var(--sidebar-spacer);
  55. padding-bottom: 7px;
  56. }
  57. main>section,
  58. main>pre,
  59. main h1,
  60. main h2,
  61. main h3 {
  62. clear: both;
  63. }
  64. .navy code {
  65. background: #0f0f12 !important;
  66. }