vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [RC3] Hovering changes CSS class (https://vborg.vbsupport.ru/showthread.php?t=88270)

Natch 09-07-2004 01:13 AM

instead of type="smallfont", try class="smallfont"

Limey-YMR 09-07-2004 03:27 AM

Quote:

Originally Posted by Natch
instead of type="smallfont", try class="smallfont"

strangely, smallfont wasn't that small :) shrinking it threw a lot of my text out making it too small on the headers, it also had the wrong background color for quote box purposes.
I tried a number of class names but td2 seems to look best for quoting, I'm just going to live with it jumping smaller on the mouseover for now, unless you know of a simple addition to the bbcode_quote to shrink the font on a per use basis.
I use the simple one with no graphic bubbles for all styles;
PHP Code:

<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
    <
div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
    <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%">
    <
tr>
        <
td class="alt2" style="border:1px inset">
            <if 
condition="$show['username']">
                <
div><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div>
                <
div style="font-style:italic">$message</div>
            <else />
                
$message
            
</if>
        </
td>
    </
tr>
    </
table>
</
div


Natch 09-08-2004 12:04 AM

Try:
PHP Code:

<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
    <
div class="alt2" style="margin-bottom:2px">$vbphrase[quote]:</div>
    <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%">
    <
tr>
        <
td class="smallfont" style="border:1px inset">
            <if 
condition="$show['username']">
                <
div><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div>
                <
div style="font-style:italic">$message</div>
            <else />
                
$message
            
</if>
        </
td>
    </
tr>
    </
table>
</
div


Limey-YMR 09-08-2004 01:55 AM

I already tried the smallfont alt2 switcheroo, it looks ok and almost as small, but it's not as small as I used to have alt2 (9 px) doesn't look right on forumhome if you make smallfont that small in the style and the background color is wrong on smallfont.

I might try experimenting with your code to use two different styles, other than alt1 and 2 that have similar fonts and colors in my styles, shame you can't define a whole new font definition like mouseover1 mouseover2 for ultimate customization.

Cheers for the code though.

DES.deViant 01-05-2005 07:06 AM

Thanks for the mod Natch :) works great. *clicks install*

For my installation, the Hardwired style had the same alt1 and alt2 backgrounds and changing the second one made the rest of the style look bad, so I changed all of the alt2Active classes to alt1Hover and defined this class in the Additional CSS Definitions at the bottom:
HTML Code:

/* ***** styling for hover effect in forums ***** */
.alt1Hover {
inherit-class: alt1Active;
background-color: #647180;
cursor:pointer;
font-size: 12px;
}

The inherit-class gives the new class all the same properties as the original class, then i just change the background and cursor. "pointer" is like "hand", but works in Firefox too. And the font-size didn't inherit correctly in IE, so I had to copy the value to the new class. Hope that helps someone.

Limey-YMR 01-06-2005 01:16 AM

I believe I read that the 3.04 version of Vbulletin now has an Alt3 style, either that or they deleted alt3 as a redundant item.

PennylessZ28 02-13-2005 05:13 AM

how come this works on every page but my forumhome?


All times are GMT. The time now is 02:24 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.03453 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete