You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_docs.scss 1.6KB

7 years ago
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .documentation {
  2. padding: 3rem;
  3. display: flex;
  4. &__sidebar {
  5. margin-right: 2rem;
  6. ul {
  7. padding-left: 0;
  8. list-style: none;
  9. }
  10. > ul {
  11. > li {
  12. margin-bottom: 1rem;
  13. }
  14. .documentation__sidebar__title {
  15. font-size: 1.25rem;
  16. font-weight: bold;
  17. }
  18. ul {
  19. margin-top: 0.25rem;
  20. li {
  21. border-left: 1px solid $background;
  22. padding-left: 0.75rem;
  23. padding-top: 0.25rem;
  24. padding-bottom: 0.25rem;
  25. }
  26. li.active a {
  27. font-weight: bold;
  28. border-bottom: 1px solid $background;
  29. }
  30. }
  31. }
  32. a {
  33. color: $background;
  34. padding-bottom: 2px;
  35. border-bottom: 1px solid rgba(25, 25, 25, 0.25);
  36. text-decoration: none;
  37. &:hover {
  38. border-bottom: 1px solid $background;
  39. }
  40. }
  41. }
  42. &__content {
  43. width: 60%;
  44. // Same as the anchor absolute left to not overlap
  45. margin-left: 2rem;
  46. h1, h2, h3, h4, h5, h6 {
  47. .gutenberg-anchor {
  48. font-size: 1.25rem;
  49. visibility: hidden;
  50. margin-left: -2rem;
  51. text-decoration: none;
  52. border-bottom-color: transparent;
  53. cursor: pointer;
  54. }
  55. &:hover {
  56. .gutenberg-anchor {
  57. visibility: visible;
  58. }
  59. }
  60. }
  61. a {
  62. color: $background;
  63. padding-bottom: 2px;
  64. border-bottom: 1px solid $background;
  65. cursor: pointer;
  66. &:hover {
  67. text-decoration: none;
  68. }
  69. &:visited {
  70. color: $background;
  71. }
  72. }
  73. }
  74. iframe {
  75. width: 100%;
  76. min-height: 400px;
  77. }
  78. }