@ 2013-07-16T20:01:03Z <?php
function parseCSS($rawText) {
$matches = array();
$selections = preg_match_all('/\/\* customize_(.+?) \*\/(.+?)\/\* customize_\1 \*\//s',$rawText,$matches);
if (!$selections) return array();
$realMatches = array();
foreach($matches[1] as $key => $val) {
$elements = array();
$realMatches[$val] = array();
preg_match_all('/([a-z\-]+?)[\s\t]*:(.+?);/s',$matches[2][$key],$elements);
foreach ($elements[1] as $k => $v) {
$realMatches[$val][] = array($v,trim($elements[2][$k]));
}
}
return $realMatches;
}
function replaceTokensWithMap($map,$input) {
foreach ($map as $key => $tokens) {
$css = "";
foreach ($tokens as $token) {
$css .= implode(':',$token).";"
}
$input = preg_replace("/\/\* customize_$key \*\/.+?\/\* customize_$key \*\//",$input);
}
return $input;
}
$css = '
/* colors
* 73880b dark green
* f4ffd2 light green
* 69ab2b bright green (links & headers)
* daf095 med green sidebar backgrounds, header nav
* 50AAB5 blue for hovers..
*/
/* HTML Tag Redefinition */
html, body {
height: 100%;
font-family:Arial, Helvetica, sans-serif;
}
body {
padding: 0px;
margin: 0px;
background: #fff url(images/footer_grass.jpg) repeat-x fixed left bottom;
}
img {
border: 0px
}
a { cursor:pointer }
/* Page Structure / Navigation */
#page {
width:800px;
margin: auto;
background-color:#f4ffd2;
height: auto !important;
height:100%;
min-height:100%;
position:relative;
background:url(images/central_columns_bg.jpg) repeat-y top left;
}
#page.sidebar-left {
background:url(images/central_left_columns_bg.jpg) repeat-y top left;
}
#page #header {
position:relative;
height:100px;
background: url(images/header_bg.jpg) repeat-x top left #73880b;
padding:15px;
}
#page #header #logo {
color:#fff;
font-size:32px;
line-height: auto;
padding: 0px;
margin:0;
cursor:pointer;
position:absolute;
bottom:15px;
left: 15px;
width:308px;
overflow:visible;
}
#page #header #logo a {
/* customize_header_logo */ color: #ffffff; /* customize_header_logo */
/* customize_header_logo_text */ font: normal bold 32px Arial; /* customize_header_logo_text */
text-decoration:none;
}
#page #header #logo p{ display:inline; line-height:inherit; font-size:inherit; padding:inherit; margin:inherit; color:inherit }
#page #header ul.nav-header {
list-style:none;
margin:0px;
float: right;
padding:0px;
z-index:2;
overflow:visible;
}
#page #header ul.nav-header li {
float:left;
padding:2px 0px;
margin-left:24px;
margin-bottom: 0px;
/* customize_header_link_text */ color:#daf095; /* customize_header_link_text */
font-size:14px;
letter-spacing:1.5px;
margin-top:0px
}
#page #header ul.nav-header li a, #page #header ul.nav-header li a:hover {
text-decoration:none;
color:#daf095
}
#page #header ul.nav-header li.nav-selected {
font-weight:bold;
}
/*
#page #header #header-area {
position:relative;
height:75px;
}
*/
#page #header #header-area {
position: absolute;
bottom: 15px;
right: 15px;
width: 462px;
}
#page #homeHeader {
background: url(images/home_header.jpg) top left no-repeat;
min-height:192px;
}
#page #homeHeader, #page #pageHeader {
margin:0;
padding:0;
position:relative;
}
#page #central {
clear:both;
padding-bottom:30px; /* for footer */
}
#page.no-sidebar {
background-image: none !important;
background-color:#f4ffd2;
}
/* body & sidebar */
#page #central #body {
float:left;
text-align:left;
width:542px;
padding:15px;
/* customize_background */
background-color:"#f4ffd2";
border-color : red;
/* customize_background */
}
#page #central #sidebar {
float:right;
width:198px;
padding:15px 15px 30px 15px;
background: #daf095;
}
#page.sidebar-left #central #sidebar {
float:left;
width: 94px
}
#page.sidebar-left #central #body {
float:right;
width: 646px;
padding: 15px;
}
#page.no-sidebar #body {
float: none !important;
width: auto !important
}
#page #central #sidebar p {
line-height:24px
}
#page #central #sidebar ul.nav {
list-style:none;
margin-left:0px;
padding:0px;
padding-left:0;
font-size:11px;
}
#page #central #sidebar ul.nav li {
margin-bottom:10px;
}
#page #central #sidebar ul.nav a {
text-decoration:none;
color:#69ab2b
}
#page #central #sidebar ul.nav a.nav-selected {
font-weight: bold
}
#page #central #sidebar ul.nav a:hover {
text-decoration:underline
}
#page #central #sidebar ul.nav ul {
list-style:none;
margin-left:5px;
padding:0px;
margin-top:10px;
}
#page #central #sidebar ul.nav ul li {
padding-left: 5px;
margin: 0;
border-left: 1px solid #69ab2b;
}
#page #central #sidebar ul.nav ul li ul li {
list-style:square inside;
padding-left:0;
}
#page #central #sidebar ul.nav ul li ul li {
border:none;
}
#page #footer {
height:10px;
line-height:10px;
background:url(images/footer_bg.jpg) repeat-x;
clear:both;
color:#daf095;
font-size:10px;
text-align:center;
padding:10px 0 10px 0;
position:absolute;
bottom:0;
width:100%
}
#page #footer a {
color:#daf095;
text-decoration:none;
}
span.sign-in {margin-left: 20px}
#page #footer span.powered-by { float:right; margin-right:20px;}
/* MISC STYLES & SHORTCUTS */
div.code {
border: 1px solid #ddd;
background: #eee;
padding: 10px
}
div.spacer, div.ccm-spacer {
clear:both;
font-size:1px;
line-height:1px
}
.noTopSpace {
margin-top:0px;
padding-top:0px
}
/* customize_miscellaneous */ /* customize_miscellaneous */';
echo replaceTokensWithMap(parseCSS($css),$css);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.17 0.020 0.050 19.21 5.4.16 0.017 0.050 18.95 5.4.15 0.020 0.070 19.17 5.4.14 0.017 0.047 16.43 5.4.13 0.023 0.073 16.34 5.4.12 0.020 0.053 16.36 5.4.11 0.020 0.050 16.60 5.4.10 0.027 0.073 16.31 5.4.9 0.033 0.050 16.60 5.4.8 0.027 0.063 16.40 5.4.7 0.027 0.070 16.60 5.4.6 0.023 0.067 16.17 5.4.5 0.027 0.043 16.33 5.4.4 0.017 0.067 16.16 5.4.3 0.033 0.033 16.42 5.4.2 0.023 0.047 16.53 5.4.1 0.023 0.043 16.23 5.4.0 0.020 0.067 15.75 5.3.27 0.020 0.057 14.51 5.3.26 0.020 0.053 14.54 5.3.25 0.013 0.057 14.70 5.3.24 0.037 0.047 14.54 5.3.23 0.020 0.063 14.57 5.3.22 0.013 0.043 14.50 5.3.21 0.030 0.057 14.63 5.3.20 0.030 0.063 14.50 5.3.19 0.030 0.043 14.59 5.3.18 0.023 0.063 14.79 5.3.17 0.023 0.060 14.65 5.3.16 0.017 0.050 14.69 5.3.15 0.023 0.057 14.66 5.3.14 0.023 0.053 14.56 5.3.13 0.023 0.073 14.53 5.3.12 0.023 0.063 14.47 5.3.11 0.027 0.063 14.46 5.3.10 0.020 0.053 14.12 5.3.9 0.023 0.030 14.04 5.3.8 0.017 0.043 14.04 5.3.7 0.030 0.037 13.94 5.3.6 0.023 0.040 13.94 5.3.5 0.023 0.070 13.86 5.3.4 0.023 0.070 14.07 5.3.3 0.033 0.060 13.95 5.3.2 0.023 0.067 13.78 5.3.1 0.020 0.040 13.59 5.3.0 0.020 0.070 13.87
preferences:dark mode live preview
131.48 ms | 1394 KiB | 7 Q