Template talk:VidExpand

From LGPedia
Revision as of 18:55, 19 March 2007 by Renegade (Talk | contribs) (RE: Collapse button(s))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Wow, I like it. Can it be made to collapse again as well? -BRUCKER EyeBlueSmall.jpg (Home/Talk/Contribs) 11:11, 19 March 2007 (CDT)

Having had a flash of genius I missed last night, I added a small collapse-icon to the lower right-hand corner of the div. Clicking it collapses the div (duh) and focuses on the original link again.
Thanks for forcing me to think about it :D
~ Renegade (talk | contribs) 11:47, 19 March 2007 (CDT)
The collapse icon is a good idea, thanks for incorporating it. I hadn't even thought about closing the boxes since you can only open one at a time anyway. I like that this keeps the original look of the template. OwenIsCool 12:48, 19 March 2007 (CDT)
Wow, I really like this. Where do you think it should be used?--Jonpro 12:05, 19 March 2007 (CDT)
Hey Jonpro, glad you're back. This template is intended for List of Lonelygirl15 videos. OwenIsCool 12:48, 19 March 2007 (CDT)
Indeed, see here.
~ Renegade (talk | contribs) 13:05, 19 March 2007 (CDT)
I think more people would understand it, if you put a closebox icon in the upper right hand corner, instead of a collapse icon in the lower corner. Though the very best thing would be, if you could replace the expand button, with a collapse button. Misty 12:31, 19 March 2007 (CDT)
I think he mentioned elsewhere (though I'm not sure where that went) that he couldn't make one button do both things, so to have both expand and collapse functionality, he needs two buttons. OwenIsCool 12:48, 19 March 2007 (CDT)
Yes. To talk tech, it works by altering the CSS of a div by anchor-targeting it through its it, making it eligible for the CSS :target pseudo-class. iow, the expand-button is basically nothing but a link pointing at the div. The collapse button is nothing but a link to somewhere else, thereby not making the div a target anymore. Since one link cannot have two different targets at the same time, it is impossible to have one button do both with this method.
A close box icon would be possible, but it'd also alter the perceived nature of the div...currently, it is "a block sliding out below the link" - adding an X in the upper right corner would make it "a window opening after the button is clicked". Might seem irrelevant, but it's a totally different perception of the design. Then again, I'm neither god nor king - if you want to change it, feel free to do so. We can all roll back afterwards if it doesn't look right. ;)
~ Renegade (talk | contribs) 13:05, 19 March 2007 (CDT)
Even though one link cannot have two different targets at the same time, is it possible to have two button that alternate in the same location on the page? In other words, when you click the expand button, it hideds the button itself, and draw a collapse button in the same spot, and when the collapse button is clicked, it hides itself, and draws an expand button in the same spot. Misty 13:38, 19 March 2007 (CDT)
That would be possible if the expand button was always in the same place. However, as it is currently, it's not. Also, it'd rely on the rendering being the same everywhere - and in a world where AphidPedia/Redesign looks ten degrees worse in IE simply because it can't handle margins and padding correctly, that's kinda utopic.
I'll give it another thought after I'm done with the List of Videos redesign, but I don't think there's much hope - at least not with the current design of the template.
(Although the idea of overlaying instead of replacing itself ain't bad at all.)
~ Renegade (talk | contribs) 13:55, 19 March 2007 (CDT)