= 8.0) && ($redbasic_font_size <= 20.0)) { echo ".wall-item-content { font-size: ${redbasic_font_size}px;}\r\n"; } if(($line_height >= 1.0) && ($line_height <= 2.0)) { echo ".wall-item-content { line-height: $line_height; }\r\n"; } // Minimum value shadows - they shouldn't all be the same size; just get it working, clean up later. if($shadows === "true") { echo "code, blockquote, .wall-item-content-wrapper, .wall-item-content-wrapper.comment, .wall-item-content img, #profile-jot-perms, #profile-jot-submit, .tab, .tab.active, .settings-widget li, .wall-item-photo, .photo, .contact-block-img, .my-comment-photo, #posted-date-selector:hover, .contact-entry-photo img, .profile-match-photo img, #photo-photo img, .directory-photo-img, .photo-album-photo, .photo-top-photo, .group-selected, .nets-selected, .fileas-selected, .categories-selected { box-shadow: 5px 5px 5px #111;}\r\n .tab.active, #jot-title, #jot-category, .comment-edit-text-empty, .comment-edit-text-full, iframe#profile-jot-text_ifr, #profile-jot-text { box-shadow: 5px 5px 5px #666 inset;}\r\n"; } // Since every change would otherwise require five lines, it's simpler to just set a default and echo this without first checking if we've set it. echo "nav {background-image: linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%); background-image: -o-linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%); background-image: -moz-linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%) !important; background-image: -webkit-linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%); background-image: -ms-linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%);}"; if($navcolour === false || $navcolour === 'red') { echo "nav:hover {background-image: linear-gradient(bottom, #$nav_bg_3 26%, #$nav_bg_4 82%); background-image: -o-linear-gradient(bottom, #$nav_bg_3 26%, #$nav_bg_4 82%); background-image: -moz-linear-gradient(bottom, #$nav_bg_3 26%, #$nav_bg_4 82%) !important; background-image: -webkit-linear-gradient(bottom, #$nav_bg_3 26%, #$nav_bg_4 82%); background-image: -ms-linear-gradient(bottom, #$nav_bg_3 26%, #$nav_bg_4 82%);}"; } // This takes quite a lot of code, so we'll keep it in a separate file, and echo the lot. Devs still don't have to worry about - it's just overrides. // Theme devs can play with it without facing scary PHP. if ($displaystyle === "fancy") {if (file_exists('view/theme/' . current_theme() . '/css/fancy.css')) { $fancy = (file_get_contents('view/theme/' . current_theme() . '/css/fancy.css')); echo str_replace(array('$radius'),array($radius),$fancy); } } // Put the # here to force hex colours - if we don't, somebody is going to do something odd, using RGB and we're all going to be confused on the support forums // until one of us works out what they've done. if ($linkcolour != false) { echo "a, a:visited, a:link, .fakelink, .fakelink:visited, .fakelink:link {color: #$linkcolour;}\r\n"; } // If you want a shiny that just sets a different colour, add an if $shiny != false and handle it as the linkcolour above. if ($shiny === 'opaque') { echo "div.wall-item-content-wrapper.shiny {opacity: 1;}\r\n .wall-item-content-wrapper {opacity: 0.8;}"; }