a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a, #access ul ul a, .searchform input[type="text"], .social textarea#comment, .social input[type="text"], .hentry input[type="password"], .entry-content blockquote, td.month-date,td.month-name,td.time, .footer-widget h2,.rsidebar h2,.lsidebar h2, #ft #wp-calendar, #ft, #nav, ul.nav{ %c_3% } .ie6 #access ul li.current_page_item a, .ie6 #access ul li.current-menu-ancestor a, .ie6 #access ul li.current-menu-item a, .ie6 #access ul li.current-menu-parent a, .ie6 #access ul li a:hover { /* border:1px solid %rgba_border%;*/ %c_2% } input[type="file"], input[type="reset"], .social input[type="submit"], input[type="submit"]{ %c_3% } .entry div h2,.entry div h3{ } #hd{ background-image:url(%raindrops_images_path%%raindrops_header_image%); } #header-image{ background-color:%custom_light_bg%!important; } .home .sticky, .entry-meta{ border-top:solid 2px %c_border%; border-bottom:solid 2px %c_border%; } .home .sticky{ border-top:solid 6px %c_border%; } .attachment .caption dt{ border-bottom:double 3px %c_border%; } #yui-main{ color:%raindrops_header_color%; } /* ol.commentlist :hover{ background:url(%raindrops_images_path%latestbck.gif) repeat-x; }*/ ol.tblist li{ background:transparent url(%raindrops_images_path%c.gif) 0 2px no-repeat; } #ft{ border-top: medium solid %c_border%; background:url(%raindrops_images_path%%raindrops_footer_image%) repeat-x; color:%raindrops_footer_color%; } #ft #wp-calendar{ border:1px solid %c_border%!important; } .footer-widget h2,.rsidebar h2,.lsidebar h2 { %h2_dark_background% %h_position_rsidebar_h2% } .datetable td li, .rsidebar ul li ul li, .lsidebar ul li ul li, .blog .entry-utility li, .mycomment, .blog .entry-utility li, dl.author dd, dl.author dt, dl.my_tags dd, dl.my_tags dt, ul.category li, ul.sitemap ul li, ul.archive ul li, ul.all_entry h2, .attachment .caption dd, ul.archive,ul.index, .sitemap.new li, #items li{ border-bottom:1px solid %c_border%; } .ie6 .datetable td li, .ie7 .datetable td li, .ie8 .datetable td li{ border-bottom:none; border-bottom:none; } hr{ border:none; border-top:1px solid %c_border%; } #month_list, #month_list td, #raindrops_year_list td, #calendar_wrap td, #date_list td, #month_list, #month_list td, #raindrops_year_list td, #calendar_wrap td, #date_list td, fieldset, .itiran, #month_list, #month_list td, #raindrops_year_list td, #calendar_wrap td, #date_list td, .searchform input[type="text"], .searchform input[type="submit"], .hentry input[type="password"], .social textarea#comment, .social input[type="text"], .social input[type="submit"], .entry-content blockquote, td.month-date,td.month-name,td.time{ border:1px solid %c_border%; } .entry-content blockquote { border-left:solid 6px %c_border%; } li.byuser, li.bypostauthor, .social textarea#comment:focus, .social input:focus, .entry-content th{ %c_3% } .raindrops-comment-author-meta cite.fn, li.byuser div.comment-body *, li.byuser span.says{ %c_3% background:none; } .wp-caption, .entry-content td, .entry-content th{ } .searchform input[type="submit"], .entry-content textarea, .entry-content input[type="password"], .entry-content input[type="text"], .entry-content input[type="submit"], .entry-content input[type="reset"], .entry-content input[type="file"], .entry-content input[type="checkbox"], .entry-content input[type="radio"], .entry-content select{ %c_3% } #access .children li , #access .children a { background:%custom_light_bg%; color:%custom_color%; z-index:999; } .raindrops-tab-content, .raindrops-tab-page, .raindrops-tab-list li{ background:%custom_light_bg%; color:%custom_color%; } .fail-search, #not-found{ border:1px solid; } .children:hover, .children{ } .reply, #ft a, .page .hentry .entry-title a, /*.archive.category h2 a,*/ cite.fn, cite a:link, cite a:active, cite a:visited, cite a:hover, /*ol.commentlist li :hover,*/ div.comment-body blockquote, div.comment-body *, div.comment-author, div.comment-author-meta, #site-description, .home .sticky a, .home .entry-meta a{ color:$font_color_5; background:none; } /*h1{color:#fff!important;}*/ .rd-page-navigation li{ border-left:solid 1px %c_border%; %c_4% } .rd-page-navigation .current_page_item{ %c_4% } .current_page_item{ %c_2% } DOC; $css3 =<< a, #access ul ul :active > a { top:0; %c2% color:%custom_color% } #access ul li.current_page_item, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { %c4% } .ie6 #access ul li.current_page_item a, .ie6 #access ul li.current-menu-ancestor a, .ie6 #access ul li.current-menu-item a, .ie6 #access ul li.current-menu-parent a, .ie6 #access ul li a:hover { %c3% } table, table td, #access > li{ border:1px solid #ccc; } tfoot td{ border:none; } .lsidebar li, .rsidebar li{ border:none!important; } td.month-date,td.month-name,td.time{ %c4% } .datetable td li{ } address{margin:10px auto;} .wp-caption { } li.byuser, li.bypostauthor { %c5% } .comment-meta a, cite.fn{ background:none; } .datetable td li{ } .fail-search, #not-found { %c3% border:3px double; } .rd-page-navigation li{ border-left:solid 1px %c_border%; %c5% } .rd-page-navigation a{ %c5% } .rd-page-navigation .current_page_item{ %c4% } .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid %c_border%; } a.raindrops-comment-link { } .raindrops-comment-link em { %c4% position: relative; } .raindrops-comment-link .point { } a.raindrops-comment-link:hover { } a.raindrops-comment-link:hover em { %c_1% } a.raindrops-comment-link:hover .point { border-left:1px solid %rgba_border%; } DOC; return $style; } ?> a, #access li:active >a , #access ul ul :active >a{ top:0; } #access ul li.current_page_item, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { %c3% } .ie6 #access ul li.current_page_item a, .ie6 #access ul li.current-menu-ancestor a, .ie6 #access ul li.current-menu-item a, .ie6 #access ul li.current-menu-parent a, .ie6 #access ul li a:hover { %c2% } address{ margin:10px auto; } #bd a, .postmetadata{ background:none!important; } .wp-caption { border:solid 1px #999; } li.byuser, li.bypostauthor { } cite.fn{ background:none; } .datetable td li{ } .fail-search, #not-found { %c4% border:3px double %c_border%; } .rd-page-navigation li{ border-left:solid 1px %c_border%; %c4% } .rd-page-navigation a{ %c4% } .rd-page-navigation .current_page_item{ %c5% } .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid %c_border%; } DOC; $css3=<<a, #access li:active >a , #access ul ul :active >a{ background: -webkit-gradient(linear, left top, left bottom, from(%custom_light_bg%), to(%custom_dark_bg%))!important; background: -moz-linear-gradient(top, %custom_light_bg%, %custom_dark_bg%)!important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='%custom_light_bg%', endColorstr='%custom_dark_bg%'); color:%custom_color%; } .wp-caption { border:solid 1px %rgba_border%; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background: -webkit-gradient(linear, left top, left bottom, from(%custom_dark_bg%), to(%custom_light_bg%)); background: -moz-linear-gradient(top, %custom_dark_bg%, %custom_light_bg%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='%custom_dark_bg%', endColorstr='%custom_light_bg%'); } li.byuser, li.bypostauthor { } .datetable td li{ border-bottom:solid 1px %rgba_border%; } #sidebar{ border-color:%rgba_border%; } table, table td{ border:1px solid %rgba_border%; } .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid %c_border%; border:1px solid %rgba_border%; } a.raindrops-comment-link { } .raindrops-comment-link em { %c4% -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; border-radius: 0.25em; position: relative; } .raindrops-comment-link .point { border-left: 0.45em solid %rgba_border%; border-bottom: 0.45em solid #FFF; /* IE fix */ border-bottom: 0.45em solid rgba(0,0,0,0); overflow: hidden; /* IE fix */ } a.raindrops-comment-link:hover { } a.raindrops-comment-link:hover em { %c_1% } a.raindrops-comment-link:hover .point { border-left:1px solid %rgba_border%; } CSS3; return $style.$css3; } ?> $raindrops_indv_css ); $raindrops_options = array_merge($raindrops_options,$add_array); } update_option("raindrops_theme_settings",$raindrops_options); }else{ $raindrops_options['_raindrops_indv_css'] = $raindrops_indv_css; add_option("raindrops_theme_settings",$raindrops_options ); } } /** * Create CSS Color Declaration * * * * */ function raindrops_colors($num = 0, $select = 'set',$color1 = null){ global $raindrops_images_path; if($color1 == null){ $color1 = str_replace('#',"",BASE_COLOR1); }else{ $color1 = str_replace('#',"",$color1); } $base = new CSS_Color( $color1 ); switch($num){ case(0): $bg = $base->bg['0']; $fg = $base->fg['0']; $color = "color:#$fg;background-color:#$bg;"; break; case(-1): $bg = $base->bg['-1']; $fg = $base->fg['-1']; $color = "color:#$fg;background-color:#$bg;"; break; case(-2): $bg = $base->bg['-2']; $fg = $base->fg['-2']; $color = "color:#$fg;background-color:#$bg;"; break; case(-3): $bg = $base->bg['-3']; $fg = $base->fg['-3']; $color = "color:#$fg;background-color:#$bg;"; break; case(-4): $bg = $base->bg['-4']; $fg = $base->fg['-4']; $color = "color:#$fg;background-color:#$bg;"; break; case(-5): $bg = $base->bg['-5']; $fg = $base->fg['-5']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; case(1): $bg = $base->bg['+1']; $fg = $base->fg['+1']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; case(2): $bg = $base->bg['+2']; $fg = $base->fg['+2']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; case(3): $bg = $base->bg['+3']; $fg = $base->fg['+3']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; case(4): $bg = $base->bg['+4']; $fg = $base->fg['+4']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; case(5): $bg = $base->bg['+5']; $fg = $base->fg['+5']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; default: $bg = $base->bg['0']; $fg = $base->fg['0']; $color = "color:#$fg;\n\tbackground-color:#$bg;"; break; } switch($select){ case('set'): return $color; break; case('background'): return '#'.$bg; break; case('color'): return '#'.$fg; break; } } /** * Create gradient style * * * * */ function raindrops_gradient_css($color = null,$num = 0,$diff = 1,$order = 'asc'){ global $raindrops_images_path; if($color == null){ $color = str_replace('#',"",BASE_COLOR1); }else{ $color = str_replace('#',"",$color); } $base = new CSS_Color( $color ); if($num>4){$num = 4;} if($num + $diff > 4){$num = 4 - $diff;} if($order == "asc"){ $custom_dark_bg1 = raindrops_colors($num, 'background',$color); $num2 = (int)$num + $diff; $custom_light_bg1 = raindrops_colors($num2, 'background',$color); if(isset($base->fg[$num])){ $fg = $base->fg[$num]; }else{ $fg = ""; } }elseif($order == "desc"){ $custom_dark_bg1 = $base->bg[$num + $diff]; $custom_light_bg1 = $base->bg[$num]; if(isset($base->fg[$num])){ $fg = $base->fg[$num]; }else{ $fg = ""; } } $g = 'color:#'.$fg.';'; $g .= 'background: -webkit-gradient(linear, left top, left bottom, from('.$custom_dark_bg1.'), to('.$custom_light_bg1.'));'; $g .= 'background: -moz-linear-gradient(top, '.$custom_dark_bg1.', '.$custom_light_bg1.');'; $g .= 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\''.$custom_dark_bg1.'\', endColorstr=\''.$custom_light_bg1.'\');'; return $g; } /** * Base Color Class Create * * * * */ function raindrops_color_base($color1=null,$color2=null){ global $raindrops_images_path; if($color1 == null){ $color1 = str_replace('#',"",BASE_COLOR1); }else{ $color1 = str_replace('#',"",$color1); } $base = new CSS_Color($color1); $bg_1 = $base->bg['-1']; $fg_1 = $base->fg['-1']; $bg_2 = $base->bg['-2']; $fg_2 = $base->fg['-2']; $bg_3 = $base->bg['-3']; $fg_3 = $base->fg['-3']; $bg_4 = $base->bg['-4']; $fg_4 = $base->fg['-4']; $bg_5 = $base->bg['-5']; $fg_5 = $base->fg['-5']; $bg1 = $base->bg['+1']; $fg1 = $base->fg['+1']; $bg2 = $base->bg['+2']; $fg2 = $base->fg['+2']; $bg3 = $base->bg['+3']; $fg3 = $base->fg['+3']; $bg4 = $base->bg['+4']; $fg4 = $base->fg['+4']; $bg5 = $base->bg['+5']; $fg5 = $base->fg['+5']; $result=<<