From Fedora Project Wiki
(new template for wizard-like prev links) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<ul style="height: 2em; position: relative; margin: 2em auto;"> | <ul style="height: 2em; position: relative; margin: 2em auto;"> | ||
<li style="display: inline; position: absolute; top: 0; left: 10px;"><span style="background-color: # | <li style="display: inline; position: absolute; top: 0; left: 10px;"><span style="background-color: #C8D9FF; color: #FFFFFF !important; font-weight: bold; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 0.8em">[[{{{1}}}|<<Prev - {{{2}}}]]</span></li> | ||
</ul> | </ul> | ||
<noinclude> | |||
<!-- | |||
TODO: move the style to a CSS, and use class="wizard" (or something else) above instead. | |||
The following should do it: | |||
ul.wizard { | |||
height: 2em; | |||
position: relative; | |||
margin: 2em auto; | |||
} | |||
li.wizard { | |||
display: inline; | |||
position: absolute; | |||
top: 0; | |||
left: 10px; | |||
} | |||
span.wizard { | |||
background-color: #80B4E3; | |||
font-weight: bold; | |||
-moz-border-radius: 5px; | |||
-webkit-border-radius: 5px; | |||
padding: 0.8em; | |||
} | |||
The white color is currently applied to the span element but it seems Mediawiki decided links will be blue no matter what, so it needs to be applied to the a element instead. Also, we can make it more button-like with "display: block": | |||
span.wizard a { | |||
color: #FFFFFF; | |||
display: block; | |||
} | |||
Didn't test it though, see https://fedoraproject.org/wiki/Ambassadors_Join_subscribe_to_the_ambassadors_mailing_list to check. | |||
Finally, the same needs to be done to https://fedoraproject.org/wiki/Template:Link/next | |||
--> | |||
</noinclude> |
Revision as of 22:35, 31 May 2010
- [[{{{1}}}|<<Prev - {{{2}}}]]