PDA

View Full Version : Mini Mods - Innovative Mobile Style CSS Overwrite


TheLastSuperman
03-08-2011, 10:00 PM
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/content.php/428-New-vBulletin-4-Light-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:
.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(startCo lorStr='#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.

*Article is pending, please stand by and it should be viewable shortly.

https://vborg.vbsupport.ru/external/2014/06/21.png

8thos
07-19-2011, 06:25 PM
Just what I was looking for.

8thos
07-19-2011, 06:40 PM
I downloaded this product but what exactly does it do?

TheLastSuperman
07-19-2011, 08:39 PM
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, 06:27 PM
An update for this mod is needed urgently

S_E_A
04-20-2012, 01:42 PM
Does this mod require an update?

furnival
04-21-2013, 03:47 PM
No longer works. Do not use on VB 4.2.1

DemOnstar
07-12-2014, 07:15 AM
Has this been abandoned?