PageRenderTime 44ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/templates/ccms/base.css

https://github.com/KenBoyer/CompactCMS
CSS | 504 lines | 183 code | 109 blank | 212 comment | 0 complexity | 658c15555aacc21280473171b42b1bff MD5 | raw file
  1. /* *****************************************************
  2. Copyright (C) 2008 - 2010 by Xander Groesbeek (CompactCMS.nl)
  3. Revision: CompactCMS - v 1.4.2
  4. This file is part of CompactCMS.
  5. CompactCMS is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. CompactCMS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. A reference to the original author of CompactCMS and its copyright
  14. should be clearly visible at all times for the user of the back-
  15. end. You are not allowed to remove all references to the original
  16. author, communicating the product to be your own.
  17. You should have received a copy of the GNU General Public License
  18. along with CompactCMS. If not, see <http://www.gnu.org/licenses/>.
  19. > Contact me for any inquiries.
  20. > E: Xander@CompactCMS.nl
  21. > W: http://community.CompactCMS.nl/forum
  22. ****************************************************** */
  23. /* --------------------------------------------------------------
  24. FF3, for some unfathomable reason, doesn't import the CSS files
  25. @import-ed in the middle of the file. This issue is highly dependent
  26. on unidentified context, but one thing's for sure: the current state
  27. of the installer code triggers the issue for me (while it has been
  28. resported by others a few times before, but never was reproducible
  29. for me.
  30. The current move, shifting the @import statements to the top of this
  31. CSS file, circumvents the issue, but since I cannot the cause,
  32. this certainly is no fix, just a hack. Start your prayer wheels...
  33. (What seems to 'help' produce this issue is having a completely
  34. shot config.inc.php or at least a non-working Combiner)
  35. -------------------------------------------------------------- */
  36. @import url(src/reset.css);
  37. @import url(src/typography.css);
  38. @import url(src/grid.css);
  39. @import url(src/forms.css);
  40. @import url(plugins/buttons/screen.css);
  41. @import url(plugins/fancy-type/screen.css);
  42. /* *****************************************************
  43. Copyright (C) 2008 - 2011 by Xander Groesbeek (CompactCMS.nl)
  44. Revision: CompactCMS - v 1.4.2
  45. This file is part of CompactCMS.
  46. CompactCMS is free software: you can redistribute it and/or modify
  47. it under the terms of the GNU General Public License as published by
  48. the Free Software Foundation, either version 3 of the License, or
  49. (at your option) any later version.
  50. CompactCMS is distributed in the hope that it will be useful,
  51. but WITHOUT ANY WARRANTY; without even the implied warranty of
  52. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  53. GNU General Public License for more details.
  54. A reference to the original author of CompactCMS and its copyright
  55. should be clearly visible at all times for the user of the back-
  56. end. You are not allowed to remove all references to the original
  57. author, communicating the product to be your own.
  58. You should have received a copy of the GNU General Public License
  59. along with CompactCMS. If not, see <http://www.gnu.org/licenses/>.
  60. > Contact me for any inquiries.
  61. > E: Xander@CompactCMS.nl
  62. > W: http://community.CompactCMS.nl/forum
  63. ****************************************************** */
  64. /* --------------------------------------------------------------
  65. reset.css
  66. * Resets default browser CSS.
  67. -------------------------------------------------------------- */
  68. /*
  69. @import url(src/reset.css);
  70. */
  71. /* --------------------------------------------------------------
  72. typography.css
  73. * Sets up some sensible default typography.
  74. -------------------------------------------------------------- */
  75. /*
  76. @import url(src/typography.css);
  77. */
  78. body
  79. {
  80. /* font-size: 75%; */
  81. font-size:0.825em;
  82. /* font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; */
  83. font-family:'Palatino Linotype',Palatino, Baskerville, 'Book Antiqua', Georgia,serif;
  84. line-height:1.5; /* was: 1.6em in CCMS before */
  85. }
  86. a:focus,
  87. a:hover { color: #09f; } /* was: #000 for CCMS */
  88. a { color: #06c; text-decoration: underline; } /* color was: #009 for CCMS */
  89. abbr,
  90. acronym
  91. {
  92. cursor: help;
  93. }
  94. table
  95. {
  96. margin-bottom: 0.1em;
  97. }
  98. /* --------------------------------------------------------------
  99. grid.css
  100. * Sets up an easy-to-use grid of 24 columns.
  101. By default, the grid is 950px wide, with 24 columns
  102. spanning 30px, and a 10px margin between columns.
  103. If you need fewer or more columns, namespaces or semantic
  104. element names, use the compressor script (lib/compress.rb)
  105. -------------------------------------------------------------- */
  106. /*
  107. @import url(src/grid.css);
  108. */
  109. /*
  110. EXTRA:
  111. - define containers for each 'width' (column count); we don't have 'a container' but we use various
  112. widths on the site: allow for that.
  113. - introduce a 25th column (+40px --> 990px)
  114. */
  115. /* A container should group all your columns. */
  116. .container-1, .container-2, .container-3, .container-4, .container-5, .container-6,
  117. .container-7, .container-8, .container-9, .container-10, .container-11, .container-12,
  118. .container-13, .container-14, .container-15, .container-16, .container-17, .container-18,
  119. .container-19, .container-20, .container-21, .container-22, .container-23, .container-24,
  120. .container-25
  121. {
  122. margin: 0 auto; /* center the container: left & right margin: auto */
  123. }
  124. .container-1 {width: 30px;}
  125. .container-2 {width: 70px;}
  126. .container-3 {width: 110px;}
  127. .container-4 {width: 150px;}
  128. .container-5 {width: 190px;}
  129. .container-6 {width: 230px;}
  130. .container-7 {width: 270px;}
  131. .container-8 {width: 310px;}
  132. .container-9 {width: 350px;}
  133. .container-10 {width: 390px;}
  134. .container-11 {width: 430px;}
  135. .container-12 {width: 470px;}
  136. .container-13 {width: 510px;}
  137. .container-14 {width: 550px;}
  138. .container-15 {width: 590px;}
  139. .container-16 {width: 630px;}
  140. .container-17 {width: 670px;}
  141. .container-18 {width: 710px;}
  142. .container-19 {width: 750px;}
  143. .container-20 {width: 790px;}
  144. .container-21 {width: 830px;}
  145. .container-22 {width: 870px;}
  146. .container-23 {width: 910px;}
  147. .container-24 {width: 950px;}
  148. .container-25 {width: 990px;}
  149. /* Columns
  150. -------------------------------------------------------------- */
  151. .span-25
  152. {
  153. float: left;
  154. margin-right: 10px;
  155. }
  156. /* Use these classes to set the width of a column. */
  157. .span-1-1 {width:40px;}
  158. .span-2-1 {width: 85px;}
  159. .span-25 {width: 990px; } /* was: margin: 0 for CCMS */
  160. /* Use these classes to set the width of an input. */
  161. input.span-25, textarea.span-25
  162. {
  163. border-left-width: 1px;
  164. border-right-width: 1px;
  165. padding-left: 5px;
  166. padding-right: 5px;
  167. }
  168. input.span-25, textarea.span-25 { width: 968px; }
  169. /* Add these to a column to append empty cols. */
  170. .append-24 { padding-right: 960px;}
  171. /* Add these to a column to prepend empty cols. */
  172. .prepend-24 { padding-left: 960px;}
  173. /* Use these classes on an element to push it into the
  174. next column, or to pull it into the previous column. */
  175. .pull-25 { margin-left: -1000px; }
  176. .pull-25
  177. {
  178. float: left;
  179. position:relative;
  180. }
  181. .push-25 { margin: 0 -1000px 1.5em 1000px; }
  182. .push-25
  183. {
  184. float: left;
  185. position:relative;
  186. }
  187. /* Misc classes and elements
  188. -------------------------------------------------------------- */
  189. /* Clearing floats without extra markup
  190. Based on How To Clear Floats Without Structural Markup by PiE
  191. [http://www.positioniseverything.net/easyclearing.html] */
  192. .container-1:after, .container-2:after, .container-3:after, .container-4:after, .container-5:after,
  193. .container-6:after, .container-7:after, .container-8:after, .container-9:after, .container-10:after,
  194. .container-11:after, .container-12:after, .container-13:after, .container-14:after, .container-15:after,
  195. .container-16:after, .container-17:after, .container-18:after, .container-19:after, .container-20:after,
  196. .container-21:after, .container-22:after, .container-23:after, .container-24:after, .container-25:after
  197. {
  198. content: "\0020";
  199. display: block;
  200. height: 0;
  201. clear: both;
  202. visibility: hidden;
  203. overflow:hidden;
  204. }
  205. .container-1, .container-2, .container-3, .container-4, .container-5, .container-6, .container-7,
  206. .container-8, .container-9, .container-10, .container-11, .container-12, .container-13, .container-14,
  207. .container-15, .container-16, .container-17, .container-18, .container-19, .container-20, .container-21,
  208. .container-22, .container-23, .container-24, .container-25
  209. {
  210. display: block;
  211. }
  212. /* Regular clearing
  213. apply to column that should drop below previous ones. */
  214. .clear-left { clear:left; }
  215. .clear-right { clear:right; }
  216. /* --------------------------------------------------------- */
  217. .block
  218. {
  219. border:3px solid #B3E813;
  220. padding: 10px;
  221. }
  222. .page-break
  223. {
  224. page-break-before:always;
  225. }
  226. /*
  227. ::selection{background:#c3effd;color:#000;}
  228. ::-moz-selection{background:#c3effd;color:#000;}
  229. */
  230. /* --------------------------------------------------------------
  231. forms.css
  232. * Sets up some default styling for forms
  233. * Gives you classes to enhance your forms
  234. Usage:
  235. * For text fields, use class .title or .text
  236. * For inline forms, use .inline (even when using columns)
  237. -------------------------------------------------------------- */
  238. /*
  239. @import url(src/forms.css);
  240. */
  241. #contact label
  242. {
  243. font-weight:bold;
  244. float:left;
  245. width:90px;
  246. text-align: right;
  247. margin-right:5px;
  248. padding-top:7px;
  249. }
  250. /* Form fields
  251. -------------------------------------------------------------- */
  252. /*
  253. Attribute selectors are used to differentiate the different types
  254. of input elements, but to support old browsers, you will have to
  255. add classes for each one. ".title" simply creates a large text
  256. field, this is purely for looks.
  257. */
  258. input[type="text"], input[type="password"]
  259. {
  260. margin:0.2em 0;
  261. }
  262. input.text, input.title, textarea
  263. {
  264. margin:0.2em 0;
  265. }
  266. /*
  267. The new default from blueprint CSS is more sensible
  268. textarea
  269. {
  270. height: 150px;
  271. }
  272. */
  273. input.text,
  274. input.title { padding: 3px; }
  275. textarea { padding: 3px; }
  276. select.text
  277. {
  278. /* width: 210px; -- use the span-x classes! */
  279. padding: 3px;
  280. }
  281. select.title
  282. {
  283. /* width: 300px; -- use the span-x classes! */
  284. padding: 3px;
  285. }
  286. select.text, select.title
  287. {
  288. background-color:#fff;
  289. border:1px solid #bbb;
  290. }
  291. /*
  292. This is to be used on forms where a variety of elements are
  293. placed side-by-side. Use the p tag to denote a line.
  294. */
  295. form.inline { line-height:3; }
  296. form.inline p { margin-bottom:0; }
  297. /* Success, info, notice and error/alert boxes
  298. -------------------------------------------------------------- */
  299. .fault
  300. {
  301. color:#8a1f11;
  302. }
  303. /* --------------------------------------------------------------
  304. buttons.css
  305. * Gives you some great CSS-only buttons.
  306. Created by Kevin Hale [particletree.com]
  307. * particletree.com/features/rediscovering-the-button-element
  308. See Readme.txt in this folder for instructions.
  309. -------------------------------------------------------------- */
  310. /*
  311. @import url(plugins/buttons/screen.css);
  312. */
  313. label,select,.pointer
  314. {
  315. cursor:pointer;
  316. }
  317. /*
  318. validation
  319. Classes added by mootools::FormValidator classes:
  320. ... and make sure CSS precedence rules allow these through anyhow:
  321. add
  322. input.text, input.title, textarea, input, select
  323. */
  324. input.text.validation-failed, input.title.validation-failed, textarea.validation-failed, input.validation-failed, select.validation-failed
  325. {
  326. background: #FBE3E4;
  327. color: #8a1f11;
  328. border-color: #FBC2C4;
  329. }
  330. input.text.validation-passed, input.title.validation-passed, textarea.validation-passed, input.validation-passed, select.validation-passed
  331. {
  332. background: #E6EFC2;
  333. color: #264409;
  334. border-color: #C6D880;
  335. }
  336. .validation-advice
  337. {
  338. font-style: italic;
  339. color: #CC0000;
  340. font-size: 0.825em;
  341. /* margin-left: 150px; -- not needed for the contact sample form anymore; also screws up the admin forms elsewhere --> removed */
  342. /* padding-left: 17px; */
  343. }
  344. /* --------------------------------------------------------------
  345. fancy-type.css
  346. * Lots of pretty advanced classes for manipulating text.
  347. See the Readme file in this folder for additional instructions.
  348. -------------------------------------------------------------- */
  349. /*
  350. @import url(plugins/fancy-type/screen.css);
  351. */
  352. .redbox
  353. {
  354. border: 1px solid red;
  355. }