structure.less 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * This file provides styles for the general layout structure.
  3. *
  4. * @author Anika Henke <anika@selfthinker.org>
  5. */
  6. body {
  7. margin: 0 auto;
  8. }
  9. #dokuwiki__site {
  10. margin: 0 auto;
  11. max-width: var(--ini-site-width);
  12. }
  13. #dokuwiki__site > .site {
  14. padding: 0 .5em;
  15. }
  16. #dokuwiki__header {
  17. width: 100%;
  18. .headings {
  19. float: left;
  20. }
  21. .tools {
  22. float: right;
  23. text-align: right;
  24. }
  25. }
  26. [dir=rtl] #dokuwiki__header {
  27. .headings {
  28. float: right;
  29. text-align: right;
  30. }
  31. .tools {
  32. float: left;
  33. text-align: left;
  34. }
  35. }
  36. #dokuwiki__site .wrapper {
  37. position: relative;
  38. }
  39. #dokuwiki__aside {
  40. width: var(--ini-sidebar-width);
  41. float: left;
  42. position: relative;
  43. display: block;
  44. > .pad {
  45. margin: 0 1.5em 0 0;
  46. }
  47. }
  48. [dir=rtl] #dokuwiki__aside {
  49. float: right;
  50. > .pad {
  51. margin: 0 0 0 1.5em;
  52. }
  53. }
  54. .showSidebar #dokuwiki__content {
  55. float: right;
  56. margin-left: (-1 * var(--ini-sidebar-width));
  57. width: 100%;
  58. > .pad {
  59. margin-left: var(--ini-sidebar-width);
  60. }
  61. }
  62. [dir=rtl] .showSidebar #dokuwiki__content {
  63. float: left;
  64. margin-left: 0;
  65. margin-right: (-1 * var(--ini-sidebar-width));
  66. > .pad {
  67. margin-left: 0;
  68. margin-right: var(--ini-sidebar-width);
  69. }
  70. }
  71. #dokuwiki__footer {
  72. clear: both;
  73. }