vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Innovative Mobile Style CSS Overwrite (https://vborg.vbsupport.ru/showthread.php?t=260134)

TheLastSuperman 03-08-2011 10:00 PM

Innovative Mobile Style CSS Overwrite
 
1 Attachment(s)
This modification will call a template that overwrites the default css your mobile style uses, since none of the CSS is the same for the default style then no worries on it overwriting something else and it includes a new layout of the CSS instead of left to right making it easier on novices to edit.

For those who are unaware, with the release of vBulletin 4.1.2, we have available a Mobile Style! You can read more about that here:
http://www.vbulletin.com/forum/conte...t-Mobile-Style

Currently it's only compatible with the forum, meaning that no matter if you own the vBulletin Suite or vBulletin Forum Classic you can only use this for the forum at the moment however CMS and Blog versions are in development.

Now I've seen some posts already asking how to customize?

Example:
https://vborg.vbsupport.ru/showthread.php?t=258994

Now what have I figured out?
  • The mobile style uses it's own css file, jquery.mobile-1.0a2.min.css
  • The .css file is located in: clientscript/jquery
  • Example path to file: clientscript/jquery/jquery.mobile-1.0a2.min.css
  • The CSS file reads left to right and it's all crammed together, making it hard to edit for novices.

Preferred CSS Layout?

Personally, I hate it when CSS is typed out as it is in the file, it's all crammed together and hard to read and edit imo! So I've taken the liberty and cleaned it up quite a bit, check it out below and remember it's an exact copy only in a more traditional style.

Example:
Code:

.ui-bar-a {
border:1px solid #2A2A2A;
background:#111;
color:#fff;
font-weight:bold;
text-shadow:0 -1px 1px #000;
background-image:-moz-linear-gradient(top,#3c3c3c,#111);
background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3c3c3c),color-stop(1,#111));
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='#3c3c3c',EndColorStr='#111111')";
}


Optional
Using the article here: https://vborg.vbsupport.ru/showthread.php?p=2171624
You can include the additional.css template and/or remove the css file being called to avoid overwriting the css, please see my notes in the article for more detailed instructions and reasons etc.

[S]*Article is pending, please stand by and it should be viewable shortly.[/S]


8thos 07-19-2011 05:25 PM

Just what I was looking for.

8thos 07-19-2011 05:40 PM

I downloaded this product but what exactly does it do?

TheLastSuperman 07-19-2011 07:39 PM

Quote:

Originally Posted by Octavius. (Post 2222523)
I downloaded this product but what exactly does it do?

Creates a new css template, within is the mobile css however it's layout is similar to what I posted a sample of in the mods description. Now edit that css which is much easier to "follow" and you are no longer required to edit the css file related to the mobile style.

So all the mobile style css is no longer crammedaltogetherlikethiswithallthecssbeingbacktob acktoback and you no longer need to edit and upload a file when making changes simply edit the css template.

:cool:

Edit: There is a method allowing you to simply use the additional.css in the article I linked to here: https://vborg.vbsupport.ru/showthread.php?p=2171624

Filgga 12-31-2011 05:27 PM

An update for this mod is needed urgently

S_E_A 04-20-2012 12:42 PM

Does this mod require an update?

furnival 04-21-2013 02:47 PM

No longer works. Do not use on VB 4.2.1

DemOnstar 07-12-2014 06:15 AM

Has this been abandoned?


All times are GMT. The time now is 09:44 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.01531 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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