vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   [CSS tip] Like those neat, flat buttons? (https://vborg.vbsupport.ru/showthread.php?t=98141)

Lea Verou 10-10-2005 10:00 PM

[CSS tip] Like those neat, flat buttons?
 
This is not a style, just some CSS definitions to make input boxes, dropdowns and buttons have this neat, flat, modern look like they do in IPB. If this is considered a template modification (I don't think so as you don't edit any templates) then mods, feel free to move it to the appropriate subforum. :)

Fistly go to Styles & Templates>Style Manager>Main CSS.

1. Buttons
Go to the CSS settings group Buttons and add this code to Extra CSS attributes:
Code:

border-color: #ΧΧΧΧΧΧ;
border-style:solid;
border-width:1px;
padding:2px;
margin: 2px;

Substitute the #XXXXXX above with the border color you want them to have.
Finally, add to the field Background the background color you want the button to have.That's it! You're done! :)
2. Input fields
Go to the CSS settings group Input fields and add this code to Extra CSS attributes:
Code:

border-color: #ΧΧΧΧΧΧ;
border-style:solid;
border-width:1px;
padding:2px;
margin: 2px;

Substitute the #XXXXXX above with the border color you want them to have.
Finally, add to the field Background the background color you want the input field to have.That's it! You're done! :)
3. Drop-downs
Go to the CSS settings group <select> Menus and add this code to Extra CSS attributes:
Code:

border-color: #ΧΧΧΧΧΧ;
border-style:solid;
border-width:1px;
padding:2px;
margin: 2px;

Substitute the #XXXXXX above with the border color you want them to have.
Finally, add to the field Background the background color you want the dropdown to have.That's it! You're done! :)

Chances are this works with 3.0.x as well :)
If you liked it and use it, please click
https://vborg.vbsupport.ru/

FleaBag 10-11-2005 06:27 PM

Awesome, installed. :)

Lea Verou 10-11-2005 06:36 PM

Quote:

Originally Posted by FleaBag
Awesome, installed. :)

Thanks!!! :)
Glad you liked it!

Quillz 10-11-2005 07:08 PM

Very nice! I love IPB's modern and professional look, but not necessarily its software. This is the best of both worlds.

Lea Verou 10-14-2005 10:39 AM

Quote:

Originally Posted by Quillz
Very nice! I love IPB's modern and professional look, but not necessarily its software. This is the best of both worlds.

Thanks a lot Quillz!

Wow, 10 installs! My first hack got a big fat zero (it has only 1 install which is mine) , so 10 looks quite a lot to me :p

TruthElixirX 10-14-2005 04:16 PM

Much appreciated.

Citizen E 10-20-2005 02:33 PM

Just a note, you can add a background color option as well:

border-color: #xxxxxx;
background-color: #xxxxxx;
border-style:solid;
border-width:1px;
padding:2px;
margin: 2px;

Lea Verou 10-20-2005 03:25 PM

Quote:

Originally Posted by Citizen E
Just a note, you can add a background color option as well:

border-color: #xxxxxx;
background-color: #xxxxxx;
border-style:solid;
border-width:1px;
padding:2px;
margin: 2px;

Why would you? vBulletin has already a field for background color which does this exact thing ;)

Mr Chad 10-21-2005 01:24 AM

Cool.

yessir 12-17-2005 06:26 PM

Thanks lady.


All times are GMT. The time now is 07:16 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.01088 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)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
  • (10)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