summaryrefslogtreecommitdiff
path: root/local.scss
blob: 9b8d5db4ede741142fee47cdf95fae683b86ea04 (plain)
  1. @import "partials/base";
  2. @import "compass/reset/utilities";
  3. @import "compass/typography";
  4. @import "blueprint";
  5. @import "breakpoint";
  6. @include blueprint-typography;
  7. h1 {
  8. font-size: 2.75em;
  9. }
  10. .branding {
  11. z-index: -1;
  12. position: fixed;
  13. bottom: 0; // full height isn't enough on Replicant browser
  14. height: 100%;
  15. width: 100%;
  16. background-color: transparent;
  17. background-image: url("sr_logo.png");
  18. background-repeat: no-repeat;
  19. background-position: right bottom;
  20. }
  21. p {
  22. clear: both;
  23. }
  24. h1, h2, h3, .header {
  25. color: $headerColor;
  26. clear: both;
  27. }
  28. a {
  29. @include hover-link;
  30. @include link-colors($linkColor, $linkHoverColor, $linkColor, $linkColor, $linkHoverColor);
  31. font-weight: bold;
  32. }
  33. .selflink {
  34. color: $linkHoverColor;
  35. }
  36. .pageheader {
  37. margin: 0.5em 2%;
  38. font-size: 0.5em;
  39. }
  40. //.header,
  41. .author,
  42. .recentchanges,
  43. .committype,
  44. #footer,
  45. .inlinefooter {
  46. font-size: 80%;
  47. }
  48. .topbar {
  49. padding: 1em 2em;
  50. }
  51. .topbar ul {
  52. @include inline-list;
  53. li {
  54. margin-right: 4%;
  55. }
  56. }
  57. .sidebar {
  58. background: none;
  59. padding: 1em;
  60. border: none;
  61. margin-top: 4em;
  62. margin-right: 2em;
  63. margin-bottom: 2em;
  64. margin-left: 2em;
  65. }
  66. .sidebar ul li {
  67. list-style-type: none;
  68. }
  69. .sidebar ul li .selflink {
  70. color: $linkHoverColor;
  71. }
  72. .pagecloud {
  73. float: right;
  74. width: auto;
  75. color: $linkHoverColor !important;
  76. border: none;
  77. background-color: inherit;
  78. }
  79. #wrapper,
  80. #pagebody {
  81. float: left;
  82. margin: 1em 5% 4.2em;
  83. @include breakpoint($large-desktop) {
  84. margin-left: 15%;
  85. }
  86. }
  87. #content {
  88. max-width: 40em;
  89. padding: 0;
  90. }
  91. // full width, alone (obviously)
  92. #content img {
  93. margin: 0 0 1em;
  94. width: 100%;
  95. height: auto;
  96. }
  97. // half width, left side
  98. #content img.left {
  99. float: left;
  100. margin: 0 0 1em 0;
  101. width: 49%;
  102. height: auto;
  103. }
  104. // half width, right side
  105. #content img.right {
  106. float: right;
  107. margin: 0 0 1em 0;
  108. width: 49%;
  109. height: auto;
  110. }
  111. // half width, alone
  112. #content img.tall {
  113. margin: 0 50% 1em 0;
  114. width: 50%;
  115. height: auto;
  116. }
  117. // less than half width, alone
  118. #content img.verytall {
  119. margin: 0 60% 1em 0;
  120. width: 40%;
  121. height: auto;
  122. }
  123. // less than half width, two aside (but not text)
  124. #content img.tiny {
  125. margin: 0 1em 1em 0;
  126. width: 40%;
  127. height: auto;
  128. }
  129. // varying width, text aside
  130. #content img.aside {
  131. float: left;
  132. margin: 0 1em 1em 0;
  133. width: inherit;
  134. height: inherit;
  135. }
  136. // varying width, alone
  137. #content img.logo {
  138. margin: 0 1em 1em 0;
  139. width: inherit;
  140. height: inherit;
  141. }
  142. .inlinepage {
  143. border: 0;
  144. padding: 1em 0;
  145. min-height: 100px;
  146. clear: both;
  147. overflow: visible;
  148. }
  149. .inlineheader {
  150. font-size: 1.5em;
  151. a {
  152. font-weight: normal;
  153. color: $headerColor;
  154. }
  155. }
  156. .inlinepage .tags {
  157. display: none;
  158. }
  159. .inlineposttext {
  160. clear: both;
  161. }
  162. .tags {
  163. display: none;
  164. }
  165. #footer {
  166. z-index: -1;
  167. position: fixed;
  168. bottom: 0;
  169. width: 100%;
  170. }
  171. #backlinks {
  172. display: none;
  173. }
  174. #pageinfo {
  175. margin: 0 1em;
  176. padding: 1em 0 0;
  177. border-top: 0;
  178. }
  179. .pageheader .actions ul {
  180. border-bottom: 0;
  181. }
  182. //Responsive design
  183. @media screen and (max-width: 480px) {
  184. div#content {
  185. max-width: 96%;
  186. margin: 0;
  187. padding: 0 4%;
  188. }
  189. div.inlinepage {
  190. margin: 0;
  191. }
  192. div.farbar {
  193. width: 96%;
  194. margin-left: 0;
  195. padding: 0 4%;
  196. }
  197. div.sidebar {
  198. float: none;
  199. width: 96%;
  200. margin-left: 0;
  201. padding: 0 4%;
  202. }
  203. }