summaryrefslogtreecommitdiff
path: root/style.scss
blob: acbad3061ea310901b6e6a27ef1563c91a69a55e (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. // Definition lists
  112. //
  113. // Full-width horizontal items with definitions right-aligned
  114. dl {
  115. display: inline-block;
  116. width: 100%;
  117. margin: 0;
  118. }
  119. dt {
  120. float: left;
  121. clear: right;
  122. }
  123. dd {
  124. float: right;
  125. clear: right;
  126. }
  127. // Pagedate
  128. //
  129. // very tiny in lower right corner
  130. .pagedate {
  131. text-align: right;
  132. font-size: xx-small;
  133. }