You are not logged in.

#1 2007-10-20 01:14:33

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Tabs and buttons on Arch website(s)

The tabs and buttons in the top right corner have links such that the tabs and buttons to which they belong are not clickable across their entire surface. Only the text part is clickable, but the image on which the text is placed is not.

I haven't analyzed the code, but I guess the elements can be made clickable across their entire surface if you made links themselves (instead of the parent block element) into block elements and applied the images as blacground image. E.g.:

<a href="yada yada" class="tab">Home</a>

.tab {
  display: block;
  width: something;
  height: somethingelse;
  background-image: url(yadayada);
}

Sorry if I mistyped anything, I'm really sleepy. The post might be a bit confusing for the same reason... tongue

Last edited by foxbunny (2007-10-20 01:15:18)

Offline

#2 2007-10-20 02:47:35

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Tabs and buttons on Arch website(s)

functional patches welcome.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2007-10-20 10:55:11

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: Tabs and buttons on Arch website(s)

kind of on the same subject, I often have to force Firefox to "not allow sites to use their own colors" because links I already visited appear as non visited in the Arch site..
This is a matter of changing the "visited links" color in the CSS or something.
Sorry if its not the right place to post this, but while your at it... big_smile

Offline

#4 2007-10-22 10:29:00

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: Tabs and buttons on Arch website(s)

Try this:

#main_nav ul li {
    display: block;  <----- EDIT: maybe "display: inline;" here?
    float: right;
    width: 67px;
    height: 20px;
}
#main_nav ul li a {
            display: block;
    width: 67px;
    height: 20px;
    background: url("http://archlinux.org/media/tab.png") repeat-x bottom left #fbf8f1;
    padding-top: 1px;
    padding-bottom: 1px;
    margin-left: 3px;
    text-align: center;
    font-size: 13px;
}

I haven't had time to test this, but if you could toss me the templates, I could probably work on it some more. Meanwhile, try the fix above and tell me if it works.

Last edited by foxbunny (2007-10-22 13:48:18)

Offline

#5 2007-10-22 15:46:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Tabs and buttons on Arch website(s)

foxbunny wrote:

I haven't had time to test this, but if you could toss me the templates, I could probably work on it some more. Meanwhile, try the fix above and tell me if it works.

It's a bit harder than that, considering it's all django and whatnot.

I'll see about getting some info to you, but have other higher priority tasks at the moment, so it might be a bit.

Offline

#6 2007-10-22 15:48:17

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Tabs and buttons on Arch website(s)

You should be able to edit the css live using Firefox's Web Developer plugin, at least to test things out...

Offline

#7 2007-10-22 16:23:33

Xilon
Member
Registered: 2007-01-01
Posts: 243

Re: Tabs and buttons on Arch website(s)

--- arch.css.old    2007-10-23 00:21:02.000000000 +0800
+++ arch.css    2007-10-23 00:21:35.000000000 +0800
@@ -33,6 +33,7 @@
 }
 #main_nav ul li a {
     text-decoration: none;
+    display: block;
 }
 #dev_nav ul {
     list-style: none;

I added 'display: block;' to the anchors in the menu via firebug and it works as expected. The above patch should be enough. I haven't tested it for the sub-menu though, but the same should work as well.

Offline

#8 2007-10-23 20:21:02

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: Tabs and buttons on Arch website(s)

Same for sub menu, except that you need to also specify the width (87px) and height (20px).

Offline

#9 2007-10-23 21:37:46

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: Tabs and buttons on Arch website(s)

i'll probably be integrating this soonish. it's on ye ol todo list.


The suggestion box only accepts patches.

Offline

#10 2007-10-24 02:43:54

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Tabs and buttons on Arch website(s)

plug: if you use the vimperator plugin for firefox, you don't need to click; press 'f'. This is therefore a non-issue. Also, if you enjoy text browsers (why, people, why?) you won't need to click.

Offline

#11 2007-10-24 20:31:18

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Tabs and buttons on Arch website(s)

neotuli wrote:

i'll probably be integrating this soonish. it's on ye ol todo list.

It's in mine to, so never fear, if you slack I will begin annoying the crap out of you until you do it just to get me off your back 8)

Offline

#12 2007-10-25 10:26:53

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: Tabs and buttons on Arch website(s)

Ah, spoken like a true leader. big_smile

Offline

#13 2007-10-26 03:47:03

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 361

Re: Tabs and buttons on Arch website(s)

foxbunny wrote:

Ah, spoken like a true leader. big_smile

no, no ... its spoken like a true Overlord.


"Oh, they have the internet on computers now."

Offline

#14 2007-10-26 07:39:41

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: Tabs and buttons on Arch website(s)

Good point. big_smile

Offline

Board footer

Powered by FluxBB