<?php
require_once( dirname(__FILE__) . '../../../../wp-config.php');
require_once( dirname(__FILE__) . '/functions.php');
header("Content-type: text/css"); 
global $options; foreach ($options as $value) { if (get_option( $value['id'] ) === FALSE && isset($value['std'])) { $value['id'] = $value['std']; } else { $value['id'] = get_option( $value['id'] ); } } ?>

@import 'custom.css';

/* --------------[ User-Defined Adjustments ]-------------- */

body {
	<?php if ( $wp_sublime_body_backgroundcolor ) { ?>
	background-color: <?php echo $wp_sublime_body_backgroundcolor; ?>;
	<?php } ?>
	font-family: <?php echo $wp_sublime_body_font_family; ?>;
	<?php if ( $wp_sublime_body_font_color ) { ?>
	color: <?php echo $wp_sublime_body_font_color; ?>;
	<?php } ?>
	}

h1, h2, h3, h4, h5, h6, h7, .sitetitle {
	font-family: <?php echo $wp_sublime_post_title_font; ?>;
	font-weight: <?php echo $wp_sublime_post_title_weight; ?>;
	}

/* -------------------[ Site Title Adjustments ]------------------- */

#sitetitle h1, #sitetitle .title {
	font-size: <?php echo $wp_sublime_site_title_size; ?>;
	font-weight: <?php echo $wp_sublime_site_title_weight; ?>;
	font-family: <?php echo $wp_sublime_site_title_font_family; ?>;
	}

<?php if ( $wp_sublime_site_title_color ) { ?>
#sitetitle .description, #sitetitle .title, #sitetitle .title a { 
	color:<?php echo $wp_sublime_site_title_color; ?>;
	}
<?php } ?>

<?php if ( $wp_sublime_site_title_option == 'Basic Text-Type Title' ) { ?>
#head-content {
	background-image: none;
	}
<?php } ?>

<?php if ( $wp_sublime_site_title_option == 'Image/Logo-Type Title' ) { ?>
#sitetitle {
	float:none;
	text-indent:-10000em;
	position:absolute;
	display:none;
	}
<?php } ?>

<?php if ( $wp_sublime_ad468head == 'no' ) { ?>
#sitetitle {
	width:930px;
	}
<?php } ?>

<?php if ( $wp_sublime_site_title_option == 'Image/Logo-Type Title' && $wp_sublime_site_logo_url ) { ?>
#head-content {
	background: transparent;
	background-image: url(<?php echo $wp_sublime_site_logo_url; ?>);
	background-position: <?php echo $wp_sublime_site_logo_position; ?>;
	background-repeat: no-repeat;
	}
<?php } ?>

<?php if ( $wp_sublime_header_bg_color ) { ?>
/* ----------[ Header Background Color Adjustments ]---------- */

#header {
	background-image:none;
	background-color: <?php echo $wp_sublime_header_bg_color; ?>;
	}
<?php } ?>

/* --------------[ Top Navigation Adjustments ]-------------- */

#topnav,
#topnav li ul {
	font-size: <?php echo $wp_sublime_topnav_size; ?>; 
	font-weight: <?php echo $wp_sublime_topnav_weight; ?>;
	<?php if ( $wp_sublime_topnav_bg_color ) { ?>
	background: <?php echo $wp_sublime_topnav_bg_color; ?>;
	<?php } ?>
	font-family: <?php echo $wp_sublime_topnav_font_family; ?>; 	
	}

<?php if ( $wp_sublime_topnav_link_color ) { ?>
#topnav ul a, 
#topnav ul a:link, 
#topnav ul a:visited {
	color:<?php echo $wp_sublime_topnav_link_color; ?>;
	}
<?php } ?>

<?php if ( $wp_sublime_topnav_link_hover_color ) { ?>
#topnav ul a:hover, 
#topnav ul a:active  {
	color:<?php echo $wp_sublime_topnav_link_hover_color; ?>;
	}
<?php } ?>

/* --------------[ Cat Navigation Adjustments ]-------------- */

#catnav,
#catnav li ul {
	font-size: <?php echo $wp_sublime_catnav_size; ?>; 
	font-weight: <?php echo $wp_sublime_catnav_weight; ?>;
	<?php if ( $wp_sublime_catnav_bg_color ) { ?>
	background: <?php echo $wp_sublime_catnav_bg_color; ?>;
	<?php } ?>
	font-family: <?php echo $wp_sublime_catnav_font_family; ?>; 	
	}

<?php if ( $wp_sublime_catnav_link_color ) { ?>
#catnav ul a, 
#catnav ul a:link, 
#catnav ul a:visited {
	color:<?php echo $wp_sublime_catnav_link_color; ?>;
	}
<?php } ?>

<?php if ( $wp_sublime_catnav_link_hover_color ) { ?>
#catnav ul a:hover, 
#catnav ul a:active  {
	color:<?php echo $wp_sublime_catnav_link_hover_color; ?>;
	}
<?php } ?>

/* --------------[ Main Content Adjustments ]-------------- */

.maincontent {
	font-size: <?php echo $wp_sublime_content_size; ?>;
	}

.maincontent a, .maincontent a:link, .maincontent a:visited { 
	<?php if ( $wp_sublime_content_link_color ) { ?>
	color: <?php echo $wp_sublime_content_link_color; ?>;
	<?php } ?>
	}

.maincontent a:hover, .maincontent a:active, .post h1 a:active, .post h1 a:hover, .post h2 a:active, .post h2 a:hover { 
	<?php if ( $wp_sublime_content_link_hover_color ) { ?>
	color: <?php echo $wp_sublime_content_link_hover_color; ?>;
	<?php } ?>
	}

/* --------------[ Sidebar-Right Adjustments ]-------------- */

#contentright {
	font-size: <?php echo $wp_sublime_right_sidebar_size; ?>;
	}

<?php if ( $wp_sublime_right_sidebar_link_color ) { ?>
#contentright a, #contentright a:link, #contentright a:visited { 
	color: <?php echo $wp_sublime_right_sidebar_link_color; ?>;
	}
	<?php } ?>

<?php if ( $wp_sublime_right_sidebar_hover_link_color ) { ?>
#contentright a:hover, #contentright a:active { 
	color: <?php echo $wp_sublime_right_sidebar_hover_link_color; ?>;
	}
<?php } ?>

<?php if ( $wp_sublime_sidebar_left == 'yes' ) { ?>
/* --------------[ Sidebar Float Adjustments ]-------------- */

#page {
	background:#fff url(images/dot.gif) 330px 0 repeat-y;
	}

#contentleft {
	float:right;
	padding: 0 0 0 15px;
	}

#contentright {
	float:left;	
	} 
<?php } ?>

/* --------------[ Footer Adjustments ]-------------- */

#footer {
	<?php if ( $wp_sublime_footer_bg_color ) { ?>
	background:<?php echo $wp_sublime_footer_bg_color; ?>;
	<?php } ?>
	font-size:<?php echo $wp_sublime_footer_font_size; ?>;
	<?php if ( $wp_sublime_footer_font_color ) { ?>
	color:<?php echo $wp_sublime_footer_font_color; ?>;
	<?php } ?>
	}

#footer a, #footer a:link, #footer a:visited { 
	<?php if ( $wp_sublime_footer_link_color ) { ?>
	color: <?php echo $wp_sublime_footer_link_color; ?>;
	<?php } ?>
	}

#footer a:hover, #footer a:active { 
	<?php if ( $wp_sublime_footer_hover_link_color ) { ?>
	color: <?php echo $wp_sublime_footer_hover_link_color; ?>;
	<?php } ?>
	}

/* --------------[ Post Title Link Color Adjustments ]-------------- */

<?php if ( $wp_sublime_post_title_link_color ) { ?>
.post-title a, .post-title a:link, .post-title a:visited {
	color: <?php echo $wp_sublime_post_title_link_color; ?> !important;
	}
<?php } ?>

<?php if ( $wp_sublime_post_title_link_hover_color ) { ?>
.post-title a:hover, .post-title a:active {
	color: <?php echo $wp_sublime_post_title_link_hover_color; ?> !important;
	}
<?php } ?>

/* --------------[ Adjustments Hiding Post Date ]-------------- */

<?php if ( $wp_sublime_post_date == 'no') { ?>
h1.post-title {
	padding-bottom:5px;
	margin-bottom:15px;
	border-bottom:1px dotted #ccc;
	}
<?php } ?>

<?php if ( $wp_sublime_page_border_size !== 'No Border') { ?>
/* --------------[ Adjustments for Page Border ]-------------- */

#wrap {
	clear: both;
	margin: 0 auto;
	padding:0;
	width:960px;
	background:transparent;
	border: <?php echo $wp_sublime_page_border_size; ?> solid <?php echo $wp_sublime_page_border_color; ?>;
	}

#wrap-top, #wrap-bottom {
	height:0;
	display:none;
	background:transparent;
	}
<?php } ?>

<?php if ( $wp_sublime_posts_side_by_side == 'yes' ) { ?>
/* --------------[ Adjustments for Side-by-Side Posts ]-------------- */

/* --------------[ Adjustments for Side-by-Side Posts ]-------------- */

.post-left {
	clear:left;
	float:left;
	width: 49%;
	margin: 0;
	padding:0;
	background:transparent;
	}

.post-right {
	clear:right;
	float:right;
	width: 49%;
	margin: 0;
	padding:0;
	background:transparent;
	}

.post-right img.post-thum, 
.post-right img.thumbnail,
.post-left img.post-thum, 
.post-left img.thumbnail {
	float:right;
	margin: 0 0 10px 10px;
	width:80px;
	height:80px;
	}

.post-clear {
	clear:both;
	height:0;
	padding:0;
	background:transparent;
	}

.post-right .entry,
.post-left .entry {
	height:200px;
	overflow:hidden;
	margin: 0 0 15px;
	}

.post-right h2,
.post-left h2 {
	font-size:12pt;
	padding: 0;
	letter-spacing:0;
	line-height:1.2em;
	}
<?php } ?>

<?php if ( $wp_sublime_archive_side_by_side == 'yes' ) { ?>
.archive-post-left {
	clear:left;
	float:left;
	width: 49%;
	margin: 0;
	padding:0;
	background:transparent;
	}

.archive-post-right {
	clear:right;
	float:right;
	width: 49%;
	margin: 0;
	padding:0;
	background:transparent;
	}

.archive-post-right img.post-thum, 
.archive-post-right img.thumbnail,
.archive-post-left img.post-thum, 
.archive-post-left img.thumbnail {
	float:right;
	margin: 0 0 10px 10px;
	width:80px;
	height:80px;
	}

.archive-post-clear {
	clear:both;
	height:0;
	padding:0;
	background:transparent;
	}

.archive-post-right .entry,
.archive-post-left .entry {
	height:200px;
	overflow:hidden;
	margin: 0 0 15px;
	}

.archive-post-right h2,
.archive-post-left h2 {
	font-size:12pt;
	padding: 0;
	letter-spacing:0;
	line-height:1.2em;
	}

<?php } ?>

<?php if ( $wp_sublime_home_posts_stack == 'yes' ) { ?>
/* --------------[ Adjustments for Home Page Stacked Categories ]-------------- */

ul.home-left {
	width:100%;
	float:none;
	clear:both;
	}

ul.home-right {
	width:100%;
	float:none;
	clear:both;
	}

<?php } ?>

<?php if ( $wp_sublime_home_posts_stack == 'no' ) { ?>
ul.home-right .entry,
ul.home-left .entry {
	line-height:1.45em;
	height:140px;
	overflow:hidden;
	margin: 0;
	}
<?php } ?>