Changeset 625672
- Timestamp:
- 11/15/2012 12:37:16 PM (13 years ago)
- Location:
- schemeable-sliding-panel/trunk/css
- Files:
-
- 2 edited
-
slide-tab.css.php (modified) (2 diffs)
-
slide.css.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schemeable-sliding-panel/trunk/css/slide-tab.css.php
r615591 r625672 53 53 54 54 #sliding-panel .tab { 55 font-family: <?php $ff('tab'); ?>;56 font-size: <?php $fs('tab'); ?>;57 font-weight: <?php $fw('tab'); ?>;58 font-style: <?php $fst('tab'); ?>;55 font-family: <?php sliding_panel_ff('tab'); ?>; 56 font-size: <?php sliding_panel_fs('tab'); ?>; 57 font-weight: <?php sliding_panel_fw('tab'); ?>; 58 font-style: <?php sliding_panel_fst('tab'); ?>; 59 59 } 60 60 61 61 62 62 #sliding-panel .tab ul.login { 63 color: <?php $c('tab_link_hover'); ?>;63 color: <?php sliding_panel_c('tab_link_hover'); ?>; 64 64 } 65 65 … … 69 69 70 70 #sliding-panel .tab ul.login li a { 71 color: <?php $c('tab_link'); ?>;71 color: <?php sliding_panel_c('tab_link'); ?>; 72 72 } 73 73 74 74 #sliding-panel .tab ul.login li a:hover { 75 color: <?php $c('tab_link_hover'); ?>;75 color: <?php sliding_panel_c('tab_link_hover'); ?>; 76 76 } 77 77 -
schemeable-sliding-panel/trunk/css/slide.css.php
r615591 r625672 1 1 <?php header("Content-type: text/css; charset: UTF-8"); ?> 2 2 <?php 3 function sliding_panel_c($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_color']; } 4 function sliding_panel_ff($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_family']; } 5 function sliding_panel_fs($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_size']; } 6 function sliding_panel_fw($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_weight']; } 7 function sliding_panel_fst($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_style']; } 8 function sliding_panel_e($name) { global $sliding_panel_options; return empty($sliding_panel_options[$name . '_color']); } 3 9 function sliding_panel_extract_options($pairs, $atts) { 4 10 $atts = (array)$atts; … … 15 21 $sliding_panel_options = array( 'tab_images' => 'Tab Images', ); 16 22 $options = isset($sliding_panel_options['options']) ? $sliding_panel_options['options'] : array(); 17 $ content_display = isset($options['content_display']) ? $options['content_display'] : 'Overlay over Content' ;18 $overlay = ($ content_display != 'Slide Down');23 $sliding_panel_content_display = isset($options['content_display']) ? $options['content_display'] : 'Overlay over Content' ; 24 $overlay = ($sliding_panel_content_display != 'Slide Down'); 19 25 $schemes = get_schemes(); 20 26 $defaults = array_shift( array_values( $schemes ) ); 21 27 $sliding_panel_options = sliding_panel_extract_options($defaults, $sliding_panel_options); 22 $c = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_color']; };23 $ff = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_family']; };24 $fs = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_size']; };25 $fw = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_weight']; };26 $fst = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_style']; };27 $e = function($name) { global $sliding_panel_options; return empty($sliding_panel_options[$name . '_color']); };28 28 ?> 29 29 /* … … 86 86 /* sliding panel */ 87 87 #sliding-panel { 88 <?php if($ content_display == 'Fixed'): ?>88 <?php if($sliding_panel_content_display == 'Fixed'): ?> 89 89 position: fixed; /*Panel will overlap content */ 90 <?php elseif($ content_display == 'Overlay over Content'): ?>90 <?php elseif($sliding_panel_content_display == 'Overlay over Content'): ?> 91 91 position: absolute; /*Panel will overlap content */ 92 92 <?php else: ?> … … 193 193 194 194 #sliding-panel #panel { 195 color: <?php $c('text'); ?>;196 background-color: <?php $c('background'); ?>;195 color: <?php sliding_panel_c('text'); ?>; 196 background-color: <?php sliding_panel_c('background'); ?>; 197 197 } 198 198 199 199 #sliding-panel h1 { 200 color: <?php $c('h1'); ?>;200 color: <?php sliding_panel_c('h1'); ?>; 201 201 } 202 202 203 203 #sliding-panel h2, 204 204 #sliding-panel .widget h3 { 205 color: <?php $c('h2'); ?>;205 color: <?php sliding_panel_c('h2'); ?>; 206 206 } 207 207 208 208 #sliding-panel #panel a { 209 color: <?php $c('link'); ?>;209 color: <?php sliding_panel_c('link'); ?>; 210 210 } 211 211 212 212 #sliding-panel #panel a:hover { 213 color: <?php $c('link_hover'); ?>;213 color: <?php sliding_panel_c('link_hover'); ?>; 214 214 } 215 215 216 216 #sliding-panel #panel .content input.field { 217 background-color: <?php $c('field_bg'); ?>;218 color: <?php $c('field'); ?>;217 background-color: <?php sliding_panel_c('field_bg'); ?>; 218 color: <?php sliding_panel_c('field'); ?>; 219 219 } 220 220 221 221 #sliding-panel #panel .content .left { 222 border-left: 1px solid <?php $c('panel_border'); ?>;222 border-left: 1px solid <?php sliding_panel_c('panel_border'); ?>; 223 223 } 224 224 225 225 #sliding-panel #panel .content .border { 226 border-left: 1px solid <?php $c('panel_border'); ?>;226 border-left: 1px solid <?php sliding_panel_c('panel_border'); ?>; 227 227 } 228 228 229 229 #sliding-panel #panel .content input.field { 230 border-color: <?php $c('field_border'); ?>;230 border-color: <?php sliding_panel_c('field_border'); ?>; 231 231 } 232 232 233 233 #sliding-panel #panel .content input:focus.field { 234 background-color: <?php $c('field_bg_focus'); ?>;234 background-color: <?php sliding_panel_c('field_bg_focus'); ?>; 235 235 } 236 236 … … 255 255 256 256 #sliding-panel input[type=submit].bt_login { 257 background: <?php $c('login_bg'); ?>;258 border-color: <?php $c('login_border'); ?>;259 color: <?php $c('login'); ?>;257 background: <?php sliding_panel_c('login_bg'); ?>; 258 border-color: <?php sliding_panel_c('login_border'); ?>; 259 color: <?php sliding_panel_c('login'); ?>; 260 260 } 261 261 262 262 #sliding-panel input[type=submit].bt_login:hover { 263 color: <?php $c('login_hover'); ?>263 color: <?php sliding_panel_c('login_hover'); ?> 264 264 } 265 265 266 266 #sliding-panel input[type=submit].bt_lostpwd { 267 background: <?php $c('lostpwd_bg'); ?>;268 border-color: <?php $c('lostpwd_border'); ?>;269 color: <?php $c('lostpwd'); ?>;267 background: <?php sliding_panel_c('lostpwd_bg'); ?>; 268 border-color: <?php sliding_panel_c('lostpwd_border'); ?>; 269 color: <?php sliding_panel_c('lostpwd'); ?>; 270 270 } 271 271 272 272 #sliding-panel input[type=submit].bt_lostpwd:hover { 273 color: <?php $c('lostpwd_hover'); ?>273 color: <?php sliding_panel_c('lostpwd_hover'); ?> 274 274 } 275 275 276 276 #sliding-panel input[type=submit].bt_register { 277 background: <?php $c('register_bg'); ?>;278 border-color: <?php $c('register_border'); ?>;279 color: <?php $c('register'); ?>;277 background: <?php sliding_panel_c('register_bg'); ?>; 278 border-color: <?php sliding_panel_c('register_border'); ?>; 279 color: <?php sliding_panel_c('register'); ?>; 280 280 } 281 281 282 282 #sliding-panel input[type=submit].bt_register:hover { 283 color: <?php $c('register_hover'); ?>283 color: <?php sliding_panel_c('register_hover'); ?> 284 284 } 285 285 … … 289 289 #sliding-panel #panel { 290 290 <?php if(empty($sliding_panel_options['panel_background_repeat'])): ?> 291 background: url(<?php echo $sliding_panel_options['panel_background']; ?>) no-repeat left top <?php $c('background'); ?>;291 background: url(<?php echo $sliding_panel_options['panel_background']; ?>) no-repeat left top <?php sliding_panel_c('background'); ?>; 292 292 <?php else: ?> 293 background: url(<?php echo $sliding_panel_options['panel_background']; ?>) repeat left top <?php $c('background'); ?>;293 background: url(<?php echo $sliding_panel_options['panel_background']; ?>) repeat left top <?php sliding_panel_c('background'); ?>; 294 294 <?php endif; ?> 295 295 } … … 299 299 #sliding-panel #panel .content { 300 300 <?php if(empty($sliding_panel_options['content_background_repeat'])): ?> 301 background: url(<?php echo $sliding_panel_options['content_background']; ?>) no-repeat left top <?php $c('background'); ?>;301 background: url(<?php echo $sliding_panel_options['content_background']; ?>) no-repeat left top <?php sliding_panel_c('background'); ?>; 302 302 <?php else: ?> 303 background: url(<?php echo $sliding_panel_options['content_background']; ?>) repeat left top <?php $c('background'); ?>;303 background: url(<?php echo $sliding_panel_options['content_background']; ?>) repeat left top <?php sliding_panel_c('background'); ?>; 304 304 <?php endif; ?> 305 305 } … … 309 309 310 310 #sliding-panel { 311 font-family: <?php $ff('panel'); ?>;312 font-size: <?php $fs('panel'); ?>;311 font-family: <?php sliding_panel_ff('panel'); ?>; 312 font-size: <?php sliding_panel_fs('panel'); ?>; 313 313 } 314 314 … … 317 317 display: block ; 318 318 margin: 10px 0 10px 0; 319 font-family: <?php $ff('h1'); ?>;320 font-size: <?php $fs('h1'); ?>;321 font-weight: <?php $fw('h1'); ?>;322 font-style: <?php $fst('h1'); ?>;319 font-family: <?php sliding_panel_ff('h1'); ?>; 320 font-size: <?php sliding_panel_fs('h1'); ?>; 321 font-weight: <?php sliding_panel_fw('h1'); ?>; 322 font-style: <?php sliding_panel_fst('h1'); ?>; 323 323 line-height: 100%; 324 324 } … … 329 329 text-align: left; 330 330 display: block; 331 font-family: <?php $ff('h2'); ?>;332 font-size: <?php $fs('h2'); ?>;333 font-weight: <?php $fw('h2'); ?>;334 font-style: <?php $fst('h2'); ?>;331 font-family: <?php sliding_panel_ff('h2'); ?>; 332 font-size: <?php sliding_panel_fs('h2'); ?>; 333 font-weight: <?php sliding_panel_fw('h2'); ?>; 334 font-style: <?php sliding_panel_fst('h2'); ?>; 335 335 line-height: 100%; 336 336 } … … 339 339 #sliding-panel input[type=submit].bt_lostpwd, 340 340 #sliding-panel input[type=submit].bt_register { 341 font-family: <?php $ff('btn'); ?>;342 font-size: <?php $fs('btn'); ?>;343 font-weight: <?php $fw('btn'); ?>;344 font-style: <?php $fst('btn'); ?>;341 font-family: <?php sliding_panel_ff('btn'); ?>; 342 font-size: <?php sliding_panel_fs('btn'); ?>; 343 font-weight: <?php sliding_panel_fw('btn'); ?>; 344 font-style: <?php sliding_panel_fst('btn'); ?>; 345 345 } 346 346 347 347 #sliding-panel a span, 348 348 #sliding-panel h2 span { 349 color: <?php $c('text') ?>;349 color: <?php sliding_panel_c('text') ?>; 350 350 } 351 351
Note: See TracChangeset
for help on using the changeset viewer.