vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Simple CSS Problem (https://vborg.vbsupport.ru/showthread.php?t=320265)

tommythejoat 09-15-2015 07:30 PM

Simple CSS Problem
 
I would like to have liks in the body of posts highlighted by underlining or bold or something to make them visible like this one here. I can change the link underline globally, but I cannot seem to find the identifier to change it in the post body.

I may also be running afoul of css caching since I have vBOptimize running in additon to memcache.

Is it sufficient to create an entry at the bottom of additional css like:
.postbody a.link {text-decoration underline;}

I do not want to assert underline in the global stylevar because that puts them on all the forum names in forum Home.

Analternative approach would be to make the attribute global and use additional css to remove it from Forumhome, but I have the same problem there.

Seven Skins 09-15-2015 07:59 PM

I would do it something like this ...
Add this to additional.css

HTML Code:

.postbitlegacy .postrow a,
.eventbit .eventrow a,
.postbitdeleted .postrow a,
.postbitignored .postrow a {
        text-decoration: underline;
}

.postbitlegacy .postrow a:hover,
.eventbit .eventrow a:hover,
.postbitdeleted .postrow a:hover,
.postbitignored .postrow a:hover {
        color: red;
}

Change the color red to your requirements.

tommythejoat 09-15-2015 08:45 PM

Thank you very much! That worked perfectly. I am using postbit legacy, would it have worked if I were using postbit?

Seven Skins 09-15-2015 08:51 PM

For that I think you just need to edit the .postbitlegacy to .postbit (Not tested this though as I always use postbit legacy)


All times are GMT. The time now is 08:38 AM.

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.00915 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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