Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-03-15 11:20:11
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Remove tab look from "view site" link
It would be good to make the “view site” link look different to the other tabs, to show that it doesn’t perform the same tab function as the other tabs.
Last edited by FireFusion (2009-03-15 13:34:35)
Offline
#2 2009-03-15 13:27:19
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Remove tab look from "view site" link
Given it hasn’t a specific css class I think the only way is with a small jquery plugin. Or with a little hack to the file textpattern/lib/txplib_head.php, around line 185.
edit
Oops sorry, didn’t notice this was just a “feature request” and not a “how can I”.
Last edited by redbot (2009-03-15 13:38:22)
Offline
Re: Remove tab look from "view site" link
Adding individual classes to the tabs would still be useful though. Help with your other idea as well.
Last edited by thebombsite (2009-03-15 16:17:22)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Remove tab look from "view site" link
With jquery’s select abilty this could be found and 100% identified by target="_blank"
:)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#5 2009-03-15 20:51:12
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Remove tab look from "view site" link
the_ghost wrote:
With jquery’s select abilty this could be found and 100% identified by
target="_blank"
:)
Good idea! I was thinking a more convoluted #nav-primary .tabdown:last
Offline
Re: Remove tab look from "view site" link
the_ghost wrote:
With jquery’s select abilty this could be found and 100% identified by
target="_blank"
:)
That’s pretty much the selector I use in my themes.
#nav-primary .tabs a[target="_blank"]
But this only works if you’re styling the link. The default Txp CSS has the background image on the table cell:
td.tabdown {
background: transparent url(/txp_img/down.gif) no-repeat top left;
cursor: pointer;
}
In order to overwrite that you’ll either need to do it with jQuery:
$('td.tabdown:last').css({background: 'none'})
or you could add this line to your textpattern.css file or in a user style:
td.tabdown:last-child { background: none; }
Of course, IE does not support :last-child
Txp admin themes | dropshado.ws – a blog for design noobs like me
Offline