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