Tabber Example

From Gamepedia Help Wiki
Jump to: navigation, search

Heading[edit | edit source]

Some text

A Heading on Tab 1[edit | edit source]

Some neat text here

A heading on Tab 2[edit | edit source]

Google
Cnn

Another Heading[edit | edit source]

Some More text.

Skinning considerations[edit | edit source]

The default styling for Tabber is white with square tabs. Some wikis, in particular dark-themed wikis, need to make fairly major changes to this default look. The following selectors provide an example of a dark-themed tabber with centered tabs which have rounded edges at the top.

/* Tabber styling */
.tabberlive .tabbertab,
.tabber .tabbertab {
    /* border-color: #505050; */ /* If you keep all borders the same */
    /* border-style: solid; */ /* If you keep all borders the same */
    /* border-width: 1px; */ /* If you keep all borders the same */
    -moz-border-bottom-colors: transparent; /* doesn't have to be transparent, could be the same border color used elsewhere */
    -moz-border-left-colors: transparent; /* doesn't have to be transparent, could be the same border color used elsewhere */
    -moz-border-right-colors: transparent; /* doesn't have to be transparent, could be the same border color used elsewhere */
    -moz-border-top-colors: #505050; /* This should match your general choice of border color */
    border-bottom-color: transparent; /* doesn't have to be transparent, could be the same border color used elsewhere */
    border-left-color: transparent; /* doesn't have to be transparent, could be the same border color used elsewhere */
    border-right-color: transparent; /* doesn't have to be transparent, could be the same border color used elsewhere */
    border-top-color: #505050; /* This should match your general choice of border color */
    border-image: none;
    border-style: solid none none;
    border-width: 1px medium medium;
}

ul.tabbernav {
    border-bottom: none;
}

ul.tabbernav li a {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: none repeat scroll 0 0 #000000; /* This should match your general choice of background color */
    border: 1px solid #505050; /* This should match your general choice of border color */
    border-image: none;
    border-radius: 5px 5px 0 0; /* This is only if you want your tabs to have rounded corners */
    margin-left: 3px;
    padding: 3px 0.5em;
    text-decoration: none;
}

ul.tabbernav li {
    display: inline;
    list-style: none outside none;
    margin: 0 0 0 7px;
}

ul.tabbernav li a:link {
    color: #7AB1CC; /* This should match your anchor color, but simply being different from the default text color works */
}

ul.tabbernav li a:hover {
    background: none repeat scroll 0 0 #000000;
    border-color: #505050; /* This should match your general choice of border color */
    color: #FFFFFF;
}

ul.tabbernav li.tabberactive a {
    background-color: #000000;
    color: #FFFFFF;
}

ul.tabbernav li.tabberactive a,
ul.tabbernav li.tabberactive a:hover,
ul.tabbernav li.tabberactive a:link {
    background-color: #000000;
    border-bottom: 1px none;
    padding: 2px 0.5em 4px;
}

ul.tabbernav {
    text-align:center; /* if you want the tabs to be centered rather than left-justified with respect to the tab content */
}