summaryrefslogtreecommitdiff
path: root/blueview/style.scss
blob: 7c3cd9dffc67fac69570bc7780040bcf3043066f (plain)
  1. @import "ikiwiki";
  2. @include ikiwiki-boilerplate;
  3. /* mobile/small-screen-friendly layout */
  4. @media (max-width: 600px) {
  5. .sidebar {
  6. width: auto;
  7. float: none;
  8. margin-top: 0;
  9. border: none;
  10. }
  11. /* if the mobile browser is new enough, use flex layout to shuffle
  12. * the sidebar to the end */
  13. .page {
  14. display: -webkit-box;
  15. display: -webkit-flexbox;
  16. display: -webkit-flex;
  17. display: -moz-box;
  18. display: -ms-flexbox;
  19. display: flex;
  20. -webkit-box-orient: vertical;
  21. -webkit-flex-direction: tb;
  22. -webkit-flex-direction: column;
  23. -webkit-flex-flow: column;
  24. -ms-flex-direction: column;
  25. flex-direction: column;
  26. }
  27. #pageheader {
  28. -webkit-box-ordinal-group: -1;
  29. -webkit-order: -1;
  30. -ms-box-ordinal-group: -1;
  31. -ms-flex-order: -1;
  32. order: -1;
  33. }
  34. .sidebar, #footer {
  35. -webkit-box-ordinal-group: 1;
  36. -webkit-order: 1;
  37. -ms-box-ordinal-group: 1;
  38. -ms-flex-order: 1;
  39. order: 1;
  40. }
  41. .blogform, #blogform {
  42. padding: 4px 4px;
  43. }
  44. }
  45. /* bzed theme for ikiwiki
  46. *
  47. * Copyright (C) 2010 Bernd Zeimetz
  48. * Licensed under same license as ikiwiki: GPL v2 or later
  49. *
  50. * Parts of this file are based on the awesome YUI,
  51. * these parts will stay under the BSD license,
  52. * but you're free to apply the GPLv2 to them, of course.
  53. */
  54. // TODO: include only relevant parts, and move below reset
  55. @include ikiwiki-style;
  56. /* -------------------------------------------------------------------------------------------------
  57. Based on reset-fonts-grids.css from yui.
  58. Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  59. Code licensed under the BSD License:
  60. http://developer.yahoo.net/yui/license.txt
  61. version: 2.5.1
  62. */
  63. body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, legend, p, blockquote, th, td {
  64. margin: 0;
  65. padding: 0;
  66. }
  67. table {
  68. border-collapse: collapse;
  69. border-spacing: 0;
  70. }
  71. img {
  72. border: 0;
  73. }
  74. address, caption, cite, code, dfn, em, strong, th, var {
  75. font-style: normal;
  76. font-weight: normal;
  77. }
  78. li {
  79. list-style: none;
  80. }
  81. caption, th {
  82. text-align: left;
  83. }
  84. h1, h2, h3, h4, h5, h6 {
  85. font-size: 100%;
  86. font-weight: normal;
  87. }
  88. q:before, q:after {
  89. content: '';
  90. }
  91. abbr, acronym {
  92. border: 0;
  93. font-variant: normal;
  94. }
  95. sup {
  96. vertical-align: text-top;
  97. }
  98. sub {
  99. vertical-align: text-bottom;
  100. }
  101. input, textarea, select {
  102. font-family: inherit;
  103. font-size: 13px/1.23;
  104. font-weight: normal;
  105. }
  106. input, textarea, select {
  107. *font-size: 100%;
  108. }
  109. legend {
  110. color: #000;
  111. }
  112. /* body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;} */
  113. body {
  114. font: 13px/1.231 "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
  115. *font-size: small;
  116. *font: x-small;
  117. }
  118. table {
  119. font-size: inherit;
  120. font: 100%;
  121. }
  122. pre, code, kbd, samp, tt {
  123. font-family: monospace;
  124. }
  125. body {
  126. text-align: left;
  127. }
  128. .inlinefooter {
  129. clear: both;
  130. }
  131. /* #doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;min-width:750px;} */
  132. .page {
  133. margin: auto;
  134. text-align: left;
  135. width: 57.69em;
  136. *width: 56.25em;
  137. min-width: 750px;
  138. }
  139. /* #doc3{margin:auto 10px;width:auto;} */
  140. .page {
  141. margin: auto 10px;
  142. width: auto;
  143. }
  144. #pagebody, .sidebar {
  145. position: relative;
  146. }
  147. #pagebody, .sidebar {
  148. _position: static;
  149. }
  150. #pagebody {
  151. position: static;
  152. }
  153. .sidebar {
  154. float: right;
  155. width: 16.5em;
  156. *width: 16em;
  157. }
  158. #pagebody {
  159. margin-right: 19em;
  160. *margin-right: 18.5em;
  161. }
  162. /* #content {float:none;width:auto;} */
  163. #pagebody:after, .sidebar:after, .page:after {
  164. content: ".";
  165. display: block;
  166. height: 0;
  167. clear: both;
  168. visibility: hidden;
  169. }
  170. .page f {
  171. zoom: 1;
  172. }
  173. /* ------------------------------------------------------------------------------------------------
  174. * Taken from base.css, part of YUI's CSS Foundation
  175. * Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  176. * Code licensed under the BSD License:
  177. * http://developer.yahoo.net/yui/license.txt
  178. * version: 2.5.1
  179. */
  180. h1 {
  181. /*18px via YUI Fonts CSS foundation*/
  182. font-size: 138.5%;
  183. }
  184. h2 {
  185. /*16px via YUI Fonts CSS foundation*/
  186. font-size: 123.1%;
  187. }
  188. h3 {
  189. /*14px via YUI Fonts CSS foundation*/
  190. font-size: 108%;
  191. }
  192. h1, h2, h3 {
  193. /* top & bottom margin based on font size */
  194. margin: 1em 0;
  195. }
  196. h1, h2, h3, h4, h5, h6, strong {
  197. /*bringing boldness back to headers and the strong element*/
  198. font-weight: bold;
  199. }
  200. abbr, acronym {
  201. /*indicating to users that more info is available */
  202. border-bottom: 1px dotted #000;
  203. cursor: help;
  204. }
  205. em {
  206. /*bringing italics back to the em element*/
  207. font-style: italic;
  208. }
  209. blockquote, ul, ol, dl {
  210. /*giving blockquotes and lists room to breath*/
  211. margin: 1em;
  212. }
  213. ol, ul, dl {
  214. /*bringing lists on to the page with breathing room */
  215. margin-left: 2em;
  216. }
  217. ol li {
  218. /*giving OL's LIs generated numbers*/
  219. list-style: decimal outside;
  220. }
  221. ul li {
  222. /*giving UL's LIs generated disc markers*/
  223. list-style: disc outside;
  224. }
  225. dl dd {
  226. /*giving UL's LIs generated numbers*/
  227. margin-left: 1em;
  228. }
  229. th, td {
  230. /*borders and padding to make the table readable*/
  231. border: 1px solid #000;
  232. padding: .5em;
  233. }
  234. th {
  235. /*distinguishing table headers from data cells*/
  236. font-weight: bold;
  237. text-align: center;
  238. }
  239. caption {
  240. /*coordinated margin to match cell's padding*/
  241. margin-bottom: .5em;
  242. /*centered so it doesn't blend in to other content*/
  243. text-align: center;
  244. }
  245. p, fieldset, table, pre {
  246. /*so things don't run into each other*/
  247. margin-bottom: 1em;
  248. }
  249. #searchbox {
  250. width: 21.5em;
  251. *width: 21em;
  252. }
  253. /* ------------------------------------------------------------------------------------------------
  254. * All CSS below is
  255. * Copyright (C) 2010 Bernd Zeimetz
  256. * Licensed under same license as ikiwiki: GPL v2 or later */
  257. .page, .pageheader, .sidebar, #content, #enclosure, #comments, .inlinepage, .recentchanges, .pageheader .actions ul, #pagebody {
  258. border: none;
  259. }
  260. html, body {
  261. color: #000;
  262. /* background-image: url('body_background.png');
  263. background-repeat: repeat; */
  264. background-color: #8da1b8;
  265. }
  266. body {
  267. padding-left: 5%;
  268. padding-right: 5%;
  269. padding-top: 1em;
  270. padding-bottom: 1em;
  271. }
  272. .page {
  273. background: #fff;
  274. border: outset #ccc;
  275. padding-left: 1em;
  276. padding-right: 1em;
  277. padding-top: 1em;
  278. }
  279. .pageheader {
  280. background-image: url("header_background.png");
  281. background-repeat: repeat-x;
  282. height: 100px;
  283. padding-left: 1em;
  284. padding-right: 1em;
  285. padding-bottom: 1em;
  286. padding-top: 1em;
  287. }
  288. .pageheader .header {
  289. text-align: top;
  290. clear: both;
  291. }
  292. .pageheader .header form {
  293. padding: 0em 0em 0em 0em;
  294. float: right;
  295. margin-top: 0.5em;
  296. }
  297. .pageheader .header .title, .pageheader .header .parentlinks,
  298. .inlinepage .inlineheader,
  299. h1, h2, h3, h4, h5, h6 {
  300. margin-top: 1em;
  301. font-weight: bold;
  302. }
  303. .pageheader .header .title, .pageheader .header .parentlinks, .pageheader .actions ul li, .pageheader .header span, .pageheader #otherlanguages ul li, .pageheader .trailprev, .pageheader .trailnext, .pageheader .trailup {
  304. padding: 0.25em 0.25em 0.25em 0.25em;
  305. background-image: url("background_darkness.png");
  306. background-repeat: repeat;
  307. color: white;
  308. }
  309. .pageheader .header span a, .pageheader .actions ul li a, .pageheader .header .parentlinks a, .pageheader #otherlanguages ul li a, .pageheader a, .pageheader .trail a {
  310. font-weight: bold;
  311. color: white;
  312. text-decoration: none;
  313. }
  314. .pageheader .actions {
  315. text-align: right;
  316. vertical-align: bottom;
  317. clear: both;
  318. }
  319. #pagebody {
  320. padding-right: 1em;
  321. padding-bottom: 2em;
  322. border-right: ridge #eee;
  323. clear: none;
  324. }
  325. #content a, #enclosure a, #comments a, .sidebar a {
  326. color: #315485;
  327. text-decoration: none;
  328. font-weight: bold;
  329. }
  330. .sidebar h2 {
  331. border-bottom: ridge #eee;
  332. padding-right: 0;
  333. }
  334. .sidebar .menu {
  335. margin-left: 1em;
  336. }
  337. .inlinepage, .recentchanges, div.recentchanges {
  338. clear: none !important;
  339. margin-bottom: 2em;
  340. }
  341. .inlinefooter {
  342. border-top: 1px dotted #315485;
  343. }
  344. .inlinefooter .pagedate, .inlinefooter .tags {
  345. display: inline;
  346. clear: none;
  347. margin-right: 2em;
  348. }
  349. .calendar .month-calendar th, .calendar .month-calendar td {
  350. padding: 0.22em;
  351. }
  352. @media print {
  353. .sidebar, .page .pageheader .header .parentlinks {
  354. content: ".";
  355. display: block;
  356. height: 0;
  357. visibility: hidden;
  358. }
  359. .page {
  360. padding: 1em 1em 1em 1em;
  361. }
  362. .pageheader .header span a, .pageheader .actions ul li a, .pageheader .header .parentlinks a {
  363. color: #315485;
  364. }
  365. #content, #enclosure, #comments, #pagebody {
  366. margin-right: 0;
  367. *margin-right: 0;
  368. border-right: none;
  369. }
  370. }
  371. /* lose the border on mobile */
  372. @media (max-width: 600px) {
  373. body {
  374. padding: 0;
  375. }
  376. .page {
  377. border: none;
  378. margin: 0;
  379. }
  380. #pagebody {
  381. margin: auto;
  382. border: none;
  383. padding: 0.5em;
  384. }
  385. #footer {
  386. padding: 0.5em;
  387. }
  388. }
  389. /* cancel the minimum width if it would mean scrollbars */
  390. @media (max-width: 850px) {
  391. .page {
  392. width: auto;
  393. min-width: 0;
  394. padding: 0;
  395. }
  396. }