/templates/messy-0.3.8/style.css.php

https://github.com/sandijs/berta · PHP · 363 lines · 256 code · 71 blank · 36 comment · 6 complexity · 33ac1a407dae4e8cd11647d1b6899dad MD5 · raw file

  1. <?
  2. $SITE_ROOT = '../../';
  3. $IS_CSS_FILE = true;
  4. include('../../engine/inc.page.php');
  5. $s =& $berta->template->settings;
  6. $isEngineView = $berta->security->userLoggedIn;
  7. $expires= 60 * 60 * 24 * 1; // 1 day
  8. header('Pragma: public');
  9. header('Cache-Control: max-age=' . $expires);
  10. header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT');
  11. if($lastMod = $berta->settings->get('berta', 'lastUpdated')) {
  12. header('Last-Modified: ' . $lastMod);
  13. }
  14. header("Content-Type: text/css");
  15. if(!1) { ?><style type="text/css"><? } ?>
  16. html, body {
  17. width: 100%;
  18. height: 100%;
  19. }
  20. body {
  21. background-color: #fff;
  22. color: <? echo $s->get('generalFontSettings', 'color') ?>;
  23. font-family: <? echo $s->getFont('generalFontSettings') ?>;
  24. font-size: <? echo $s->get('generalFontSettings', 'fontSize') ?>;
  25. font-weight: <? echo $s->get('generalFontSettings', 'fontWeight') ?>;
  26. font-style: <? echo $s->get('generalFontSettings', 'fontStyle') ?>;
  27. font-variant: <? echo $s->get('generalFontSettings', 'fontVariant') ?>;
  28. line-height: <? echo $s->get('generalFontSettings', 'lineHeight') ?>;
  29. text-align: left;
  30. background-color: <? echo $s->get('background', 'backgroundColor') ?>;
  31. <? if($s->get('background', 'backgroundImageEnabled') == 'yes') { ?>
  32. <? if($s->get('background', 'backgroundImage')) { ?>
  33. background-image:url(<? echo Berta::$options['MEDIA_ABS_ROOT'] . $s->get('background', 'backgroundImage') ?>);
  34. <? } ?>
  35. background-repeat: <? echo $s->get('background', 'backgroundRepeat') ?>;
  36. background-position: <? echo $s->get('background', 'backgroundPosition') ?>;
  37. background-attachment: <? echo $s->get('background', 'backgroundAttachment') ?>;
  38. <? } ?>
  39. }
  40. a:link {
  41. color: <? echo $s->get('links', 'colorLink') ?>;
  42. text-decoration: <? echo $s->get('links', 'textDecorationLink') ?>;
  43. /*border: <? echo $s->get('links', 'border:link') ?>;*/
  44. }
  45. a:visited {
  46. color: <? echo $s->get('links', 'colorVisited') ?>;
  47. text-decoration: <? echo $s->get('links', 'textDecorationVisited') ?>;
  48. /*border: <? echo $s->get('links', 'border:visited') ?>;*/
  49. }
  50. a:hover {
  51. color: <? echo $s->get('links', 'colorHover') ?>;
  52. text-decoration: <? echo $s->get('links', 'textDecorationHover') ?>;
  53. /*border: <? echo $s->get('links', 'border:hover') ?>;*/
  54. }
  55. a:active {
  56. color: <? echo $s->get('links', 'colorActive') ?>;
  57. text-decoration: <? echo $s->get('links', 'textDecorationActive') ?>;
  58. /*border: <? echo $s->get('links', 'border:active') ?>;*/
  59. }
  60. a img { border: none; }
  61. .mess {
  62. position: absolute !important;
  63. }
  64. #allContainer {
  65. position: relative;
  66. margin: 0;
  67. padding: 0;
  68. /*overflow: <? if($isEngineView) echo 'visible'; else echo 'auto' ?>;*/
  69. }
  70. #contentContainer {
  71. position: relative;
  72. width: <? echo $s->get('pageLayout', 'contentWidth') ?>;
  73. }
  74. #contentContainer h1 {
  75. padding: 0;
  76. margin: 0;
  77. z-index: 50000;
  78. color: <? echo $s->get('heading', 'color') ?>;
  79. font-family: <? echo $s->getFont('heading') ?>;
  80. font-size: <? echo $s->get('heading', 'fontSize') ?>;
  81. font-weight: <? echo $s->get('heading', 'fontWeight') ?>;
  82. font-style: <? echo $s->get('heading', 'fontStyle') ?>;
  83. font-variant: <? echo $s->get('heading', 'fontVariant') ?>;
  84. line-height: <? echo $s->get('heading', 'lineHeight') ?>;
  85. position: <? echo $s->get('heading', 'position') ?> !important;
  86. }
  87. h1 a {
  88. color: <? echo $s->get('heading', 'color') ?> !important;
  89. text-decoration: none;
  90. }
  91. .menuItem {
  92. z-index: 45000;
  93. font-family: <? echo $s->getFont('menu') ?>;
  94. font-size: <? echo $s->get('menu', 'fontSize') ?>;
  95. font-weight: <? echo $s->get('menu', 'fontWeight') ?>;
  96. font-style: <? echo $s->get('menu', 'fontStyle') ?>;
  97. font-variant: <? echo $s->get('menu', 'fontVariant') ?>;
  98. line-height: <? echo $s->get('menu', 'lineHeight') ?>;
  99. position: <? echo $s->get('menu', 'position') ?> !important;
  100. }
  101. .menuItem a:link, .menuItem a:visited {
  102. color: <? echo $s->get('menu', 'colorLink') ?>;
  103. text-decoration: <? echo $s->get('menu', 'textDecorationLink') ?>;
  104. }
  105. .menuItem a:hover, .menuItem a:active {
  106. color: <? echo $s->get('menu', 'colorHover') ?>;
  107. text-decoration: <? echo $s->get('menu', 'textDecorationHover') ?>;
  108. }
  109. .menuItemSelected>a {
  110. color: <? echo $s->get('menu', 'colorActive') ?> !important;
  111. text-decoration: <? echo $s->get('menu', 'textDecorationActive') ?> !important;
  112. }
  113. .menuItem ul {
  114. list-style: none;
  115. margin: 0;
  116. padding: 0;
  117. position: relative;
  118. left: <? echo $s->get('tagsMenu', 'x') ?>;
  119. top: <? echo $s->get('tagsMenu', 'y') ?>;
  120. }
  121. .menuItem li {
  122. margin: 0;
  123. padding: 0;
  124. font-family: <? echo $s->getFont('tagsMenu') ?>;
  125. font-size: <? echo $s->get('tagsMenu', 'fontSize') ?>;
  126. font-weight: <? echo $s->get('tagsMenu', 'fontWeight') ?>;
  127. font-style: <? echo $s->get('tagsMenu', 'fontStyle') ?>;
  128. font-variant: <? echo $s->get('tagsMenu', 'fontVariant') ?>;
  129. line-height: <? echo $s->get('tagsMenu', 'lineHeight') ?>;
  130. }
  131. .menuItem li a:link, .menuItem li a:visited {
  132. color: <? echo $s->get('tagsMenu', 'colorLink') ?>;
  133. text-decoration: <? echo $s->get('tagsMenu', 'textDecorationLink') ?>;
  134. }
  135. .menuItem li a:hover, .menuItem li a:active {
  136. color: <? echo $s->get('tagsMenu', 'colorHover') ?>;
  137. text-decoration: <? echo $s->get('tagsMenu', 'textDecorationHover') ?>;
  138. }
  139. .menuItem li.selected>a {
  140. color: <? echo $s->get('tagsMenu', 'colorActive') ?> !important;
  141. text-decoration: <? echo $s->get('tagsMenu', 'textDecorationActive') ?> !important;
  142. }
  143. #pageEntries {
  144. position: relative;
  145. margin: 0;
  146. padding: 0;
  147. list-style: none;
  148. }
  149. #pageEntries .xEntry {
  150. position: relative;
  151. max-width: <? echo $s->get('entryLayout', 'contentWidth') ?>;
  152. min-width: 150px;
  153. clear: both;
  154. list-style:none;
  155. margin-bottom: <? echo $s->get('entryLayout', 'spaceBetween') ?>;
  156. padding: 0;
  157. }
  158. #pageEntries .xEntry h2 {
  159. color: <? echo $s->get('entryHeading', 'color') ?>;
  160. font-family: <? echo $s->getFont('entryHeading') ?>;
  161. font-size: <? echo $s->get('entryHeading', 'fontSize') ?>;
  162. font-weight: <? echo $s->get('entryHeading', 'fontWeight') ?>;
  163. font-style: <? echo $s->get('entryHeading', 'fontStyle') ?>;
  164. font-variant: <? echo $s->get('entryHeading', 'fontVariant') ?>;
  165. line-height: <? echo $s->get('entryHeading', 'lineHeight') ?>;
  166. margin: <? echo $s->get('entryHeading', 'margin') ?>;
  167. }
  168. #pageEntries .xEntry .xGalleryContainer {
  169. position: relative;
  170. clear: both;
  171. padding: 0;
  172. margin-bottom: <? echo $s->get('entryLayout', 'galleryMargin') ?>;
  173. }
  174. #pageEntries .xEntry .xGalleryType-slideshow {}
  175. #pageEntries .xEntry .xGalleryType-row {}
  176. #pageEntries .xEntry .xGalleryContainer .xGallery {
  177. position: relative;
  178. display: block;
  179. }
  180. #pageEntries .xEntry .xGalleryType-slideshow .xGallery {
  181. margin-bottom: <? echo $s->get('entryLayout', 'galleryNavMargin') ?>;
  182. }
  183. #pageEntries .xEntry .xGalleryType-row .xGalleryItem {
  184. position: absolute;
  185. }
  186. #pageEntries .xEntry .xGalleryContainer ul.xGalleryNav {
  187. display: block;
  188. position: relative;
  189. clear: both;
  190. margin: 0 0 2px;
  191. padding: 0;
  192. list-style: none;
  193. height: 18px;
  194. }
  195. #pageEntries .xEntry .xGalleryContainer ul.xGalleryNav li {
  196. display: block;
  197. float: left;
  198. list-style: none;
  199. line-height: 96%;
  200. margin: 0;
  201. }
  202. #pageEntries .xEntry .xGalleryContainer ul.xGalleryNav .xGalleryImageCaption { display: none; }
  203. #pageEntries .xEntry .xGalleryContainer ul.xGalleryNav a {
  204. display: block;
  205. float: left;
  206. padding: 1px 5px 1px;
  207. color: <? echo $s->get('menu', 'colorLink') ?>;
  208. text-decoration: <? echo $s->get('menu', 'textDecorationLink') ?>;
  209. outline: none;
  210. }
  211. .xGalleryImageCaption { display: none; }
  212. #pageEntries .xGalleryContainer ul.xGalleryNav li a:hover {
  213. color: <? echo $s->get('menu', 'colorHover') ?>;
  214. text-decoration: <? echo $s->get('menu', 'textDecorationHover') ?>;
  215. }
  216. #pageEntries .xGalleryContainer ul.xGalleryNav li.selected a {
  217. color: <? echo $s->get('menu', 'colorActive') ?>;
  218. text-decoration: <? echo $s->get('menu', 'textDecorationActive') ?>;
  219. }
  220. #pageEntries .xEntry .entryText {
  221. position: relative;
  222. clear: both;
  223. margin: 0 0 6px;
  224. }
  225. #pageEntries .xEntry .entryText p {
  226. margin: 0 0 6px;
  227. }
  228. /* disqus fix */
  229. #pageEntries #dsq-content ul, #pageEntries #dsq-content li {
  230. list-style-position: outside;
  231. list-style-type: none;
  232. margin: 0;
  233. padding: 0;
  234. }
  235. #pageEntries .xEntry .entryText ul {
  236. margin: 0 0 6px;
  237. padding: 0 0 0 15px;
  238. }
  239. #pageEntries .xEntry .entryText ul li {
  240. list-style-type: circle;
  241. margin: 0 0 3px 0;
  242. padding: 0;
  243. }
  244. #pageEntries .xEntry .entryText ol {
  245. margin: 0 0 6px;
  246. padding: 0 0 0 15px;
  247. }
  248. #pageEntries .xEntry .entryText ol li {
  249. margin: 0 0 3px 0;
  250. padding: 0;
  251. list-style-type: decimal;
  252. }
  253. #pageEntries li.xEntry .entryTags {
  254. position: relative;
  255. clear: both;
  256. }
  257. #additionalText {
  258. z-index: 49000;
  259. min-width: 140px;
  260. }
  261. #additionalText p { margin: 0; padding: 0; }
  262. .floating-banner {
  263. position: absolute;
  264. z-index: 3000;
  265. }
  266. #bottom {
  267. position: fixed;
  268. bottom: 20px;
  269. font-size: 10px;
  270. right: 20px;
  271. z-index: 10000000;
  272. }
  273. #bottom p {
  274. float: left;
  275. margin-right: 10px;
  276. margin-bottom: 0;
  277. }
  278. ::-moz-selection {
  279. background:#000000;
  280. color:#ffffff;
  281. }
  282. ::selection{
  283. background:#000000;
  284. color:#ffffff;
  285. }
  286. .hidden {
  287. display: none;
  288. }
  289. .xFixed {
  290. position: fixed !important;
  291. }
  292. <? if(!1) { ?></style><? } ?>