vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Style Variables Assistance (https://vborg.vbsupport.ru/showthread.php?t=281168)

Amaury 04-05-2012 10:58 PM

Style Variables Assistance
 
Anyone know what changes this? It's not a big deal on our default Dance of the Dream Eater style or other dark styles since it's the shade we want it (white), but on styles with lighter or brighter headers, there are text visibility issues.

I've looked through all color variables and can't seem to find it.

http://i101.photobucket.com/albums/m.../Messages1.png

Here's an example using a style where it's hard to see:

http://i101.photobucket.com/albums/m.../Messages2.png

Thanks!

SEOvB 04-07-2012 01:13 AM

Hi There,

I've always had issues with this as well. My solution has been to add a line to the additional.css template for each instance of this type of issue. You can reference a style variable in the template itself, for which color the text will be, if you want to practice good standards.

e.g. dl.stats dt.folder_count {color: {vb:stylevar [name_of_stylevar]}}

Hope someone else has a better solution, because this had been bugging me for a year now.

-Nick, SEOvB Developer

Amaury 04-07-2012 01:35 AM

Quote:

Originally Posted by SEOvB (Post 2317585)
Hi There,

I've always had issues with this as well. My solution has been to add a line to the additional.css template for each instance of this type of issue. You can reference a style variable in the template itself, for which color the text will be, if you want to practice good standards.

e.g. dl.stats dt.folder_count {color: {vb:stylevar [name_of_stylevar]}}

Hope someone else has a better solution, because this had been bugging me for a year now.

-Nick, SEOvB Developer

Let's say we want black. Would this be right?

Code:

dl.stats dt.folder_count {color: #000000 {vb:stylevar [body_color]}}

SEOvB 04-07-2012 01:43 AM

Sorry, the code I gave was more theoretical than practical.

This should work:

Code:

.block dl.stats .folder_count {color: {vb:stylevar body_color}}

Amaury 04-07-2012 01:54 AM

Quote:

Originally Posted by SEOvB (Post 2317596)
Sorry, the code I gave was more theoretical than practical.

This should work:

Code:

.block dl.stats .folder_count {color: {vb:stylevar body_color}}

Where do you specify the color?

SEOvB 04-07-2012 01:57 AM

The color is specified in the appropriate style variable. You can use whatever style variable you want.

AdminCP->Styles & Templates->Style Manager->(Select "Style Variables" in the dropdown from the style you want to edit). The stylevar names are all listed on the left.

-Nick, SEOvB Developer


All times are GMT. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04357 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete