summaryrefslogtreecommitdiff
path: root/style.scss
blob: 5deee6da6858e3bf1438ae46c1e5e262598d0724 (plain)
  1. @import "toolkit";
  2. @import "compass/typography";
  3. @import "../shared/themes/default/ikiwiki";
  4. // site defaults
  5. @include ikiwiki-images;
  6. @include ikiwiki-pre;
  7. // generic styles
  8. @include ikiwiki-lists;
  9. @include ikiwiki-plugin-img;
  10. @include ikiwiki-feedbutton;
  11. @include ikiwiki-forms;
  12. @include ikiwiki-alignment;
  13. @include ikiwiki-debug;
  14. @include ikiwiki-plugin-highlight;
  15. @include ikiwiki-plugin-color;
  16. // shell
  17. // Content
  18. //
  19. // Light grey underlay
  20. // Max. 45 chars., balanced margins on large viewports
  21. %anycontent {
  22. max-width: 45em;
  23. margin: 0 auto;
  24. padding: .5em 2em;
  25. background-color: lightgrey;
  26. }
  27. // layout - main content
  28. #content {
  29. @extend %anycontent;
  30. }
  31. @include ikiwiki-inlinepage;
  32. @include ikiwiki-inlineheader;
  33. @include ikiwiki-inlinecontent;
  34. @include ikiwiki-plugin-comments;
  35. // layout - header
  36. .pageheader .header {
  37. @extend %anycontent;
  38. & span {
  39. font-size: xx-large;
  40. font-weight: bold;
  41. }
  42. }
  43. @include ikiwiki-plugin-search;
  44. @include ikiwiki-actions;
  45. @include ikiwiki-plugin-po;
  46. // layout - footer
  47. #footer {
  48. @extend %anycontent;
  49. }
  50. @include ikiwiki-footer;
  51. @include ikiwiki-pageinfo;
  52. @include ikiwiki-tags;
  53. @include ikiwiki-backlinks;
  54. @include ikiwiki-authorship;
  55. // layout - aside
  56. @include ikiwiki-plugin-sidebar;
  57. @include ikiwiki-plugin-trail;
  58. // layout - print
  59. @include ikiwiki-site-print;
  60. // modulars
  61. @include ikiwiki-infobox;
  62. @include ikiwiki-notebook;
  63. @include ikiwiki-popup;
  64. @include ikiwiki-plugin-calendar;
  65. @include ikiwiki-plugin-progress;
  66. @include ikiwiki-plugin-map;
  67. @include ikiwiki-plugin-poll;
  68. @include ikiwiki-plugin-pagestats;
  69. @include ikiwiki-plugin-flattr;
  70. @include ikiwiki-blogform;
  71. // section/page specific
  72. @include ikiwiki-archivepage;
  73. @include ikiwiki-plugin-recentchanges;
  74. @include ikiwiki-plugin-editpage;
  75. @include ikiwiki-plugin-attachment;
  76. @include ikiwiki-plugin-openid;
  77. // Action items
  78. //
  79. // Right-aligned horizontal items, hidden unless hovered
  80. .pageheader .actions {
  81. position: absolute;
  82. top: 0;
  83. right: 2em;
  84. background-color: transparent;
  85. ul {
  86. @include inline-block-list;
  87. height: 2em;
  88. }
  89. a {
  90. color: transparent;
  91. &:hover {
  92. color: #3d6a8d;
  93. text-decoration: none;
  94. }
  95. }
  96. }
  97. // Page
  98. //
  99. // Grey underlay, Helvetica text
  100. body {
  101. background-color: grey;
  102. font-family: Helvetica, sans-serif;
  103. }
  104. // Anchors
  105. //
  106. // Underlined only when hovered
  107. a {
  108. @include hover-link;
  109. }
  110. // Definition lists
  111. //
  112. // Full-width horizontal items with definitions right-aligned
  113. dl {
  114. display: inline-block;
  115. width: 100%;
  116. margin: 0;
  117. }
  118. dt {
  119. float: left;
  120. clear: right;
  121. }
  122. dd {
  123. float: right;
  124. clear: right;
  125. }
  126. // Pagedate
  127. //
  128. // very tiny in lower right corner
  129. .pagedate {
  130. text-align: right;
  131. font-size: xx-small;
  132. }