MediaWiki:Vector.css

From TerraFirmaCraft Plus Wiki
Revision as of 17:39, 8 June 2025 by Mount2010 (talk | contribs) (Removed unused styles for the TFC top bar from ancient times)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will affect users of the Vector skin */
/*** Thanks to http://www.minecraftwiki.net/wiki/MediaWiki:Vector.css for the Minecraft Skin ***/

/** Re-styles the vector skin to look similar to the http://www.minecraftforum.net skin **/

/* Give the background the initial stone texture */
body {
    background-color: #202020;
    background-image: url("/images/2/26/Background.png");
    margin-top: 30px;
        margin-top: 0;
}

/* Add the grass block background */
#mw-page-base {
    background-color: #8DBDE9;
    background-image: url("/images/e/ea/Header-background-alt.png");
    height: 10em
}

/* Position the #content area and add the cloud detail image */
#mw-head-base {
    background-image: url("/resources/assets/Clouds-distance2.png");
    background-position: left 6px;
    background-repeat: repeat-x;
    height: 103px;
    margin: -160px 10px 0 10.4em !important;
}

/* Position the header area and give it a fake 3D background to go over the top-right of the #content area */
#mw-head {
    background-image: url("/resources/assets/Vector-tabs-background-alt.png");
    background-position: bottom right;
    background-repeat: no-repeat;
    margin-right: 10px;
    height: 103px;
    margin-top: 0 !important;
}

/* Set up the link colours and make tabs bold */
#mw-panel a,
#mw-panel a:visited,
#footer a {
    color: #BFBFBF !important
}
#p-personal a,
#mw-panel h5,
#footer ul li,
#mw-panel a:hover,
#mw-panel a:focus,
#footer a:hover,
#footer a:focus,
#ft a:hover,
#ft a:focus {
    color: #FFF !important
}
#left-navigation a,
#right-navigation #p-views a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}
#p-personal a.new,
#left-navigation li.new a,
#right-navigation #p-views li.new a {
    color: #BA0000 !important
}

/* Position the first set of tabs (page/discussion/etc.) */
#left-navigation {
    margin-left: 183px;
    margin-top: 67px;
}

/* Give the user details area some colouring */
#p-personal {
    background-color: rgba(69, 74, 76, 0.5);
    border: 1px solid #191E22;
    right: 0;
    padding-right: 0.55em;
    margin-top: 0
}
#p-personal li {
    margin: 0.5em 0 0.5em 0.75em
}
#p-personal ul {
    padding-left: 0
}

/* Give the tabs and menu tabs the grass block styling */
div.vectorTabs {
    background-image: none;
    height: 36px;
    padding-left: 0
}
div.vectorTabs ul {
    background-image: none
}
div.vectorTabs ul li,
div.vectorMenu {
    background-image: url("/images/1/13/Vector-tabs-alt.png") !important;
    background-position: right top;
    background-color: transparent;
    padding-left: 6px;
    margin-right: 7px
}
div.vectorTabs span {
    background-image: none !important;
}
div.vectorTabs li span,
div.vectorMenu h5 {
    background-image: url("/images/1/13/Vector-tabs-alt.png") !important;
    background-position: right top !important;
    height: 36px;
    float: left;
}
div.vectorTabs li.selected span,
div.vectorTabs li span:hover,
div.vectorMenu:hover h5 {
    background-position: right bottom !important
}
div.vectorTabs li a {
    background-image: none;
    padding: 15px 14px 0;
    height: 21px
}
#left-navigation .vectorTabs li:first-child {
    padding: 0;
    background-image: none
}

/* Position the second set of tabs (read/edit/search/etc.) */
#right-navigation {
    margin-top: 50px
}

#right-navigation .vectorTabs,
#right-navigation .vectorMenu {
    margin-top: 17px
}

/* Hide watch tab's text and put an icon in */
#ca-watch.icon a,
#ca-unwatch.icon a {
    background-image: url("/resources/assets/Watch-icons.png");
    -webkit-background-clip: content-box;
            background-clip: content-box
}
#ca-watch.icon a,
#ca-watch.icon a:focus {
    background-position: 13px 15px
}
#ca-unwatch.icon a,
#ca-unwatch.icon a:focus {
    background-position: -3px 15px
}
#ca-watch.icon a:hover {
    background-position: 13px -1px
}
#ca-unwatch.icon a:hover {
    background-position: -3px -1px
}
#ca-watch.icon a,
#ca-unwatch.icon a,
#ca-unwatch.icon a.loading,
#ca-watch.icon a.loading {
    text-indent: 40px;
    height: 16px;
    width: 16px;
    padding: 15px 14px 6px
}
#ca-unwatch.icon a.loading,
#ca-watch.icon a.loading {
    background-image: url("/resources/assets/Watch.gif");
    background-position: 13px 15px
}

/* Styling for the menu tab and its menu */
div.vectorMenu h5 {
    margin-left: 0 !important
}
div.vectorMenu h5 a {
    height: 36px;
    background-position: 11px 15px;
    padding-right: 6px;
    padding-left: 7px
}
div.vectorMenu div.menu ul {
    background: #E6EFF4
}

/* Position the general search area */
#p-search {
    margin: 0 0 0 12px;
}

/* The suggestions shown under the search bar */
.suggestions:last-of-type {
    width: 217px !important;
    top: 112px !important;
    right: 28px !important
}
.suggestions:last-of-type .suggestions-results,
.suggestions:last-of-type .suggestions-special {
    background-color: #DBDADA;
    border-color: #3C3B3B
}
.suggestions:last-of-type .suggestions-result-current {
    background-color: highlight !important
}

/* Give the main content area its healthy blue glow and add a border and some margin to help with the 3D effect */
#content {
    background: #E6EFF4 !important;
    border-top: 6px solid #B4BEC3;
    border-left: 6px solid #171717;
    margin-right: 10px
}

/* Don't use vector's blue circle image for unordered lists, instead use the square black bullet points, which is obviously more fitting here */
ul {
    list-style-image: none
}

/* Various styling for message boxes, based on colours/styling from [[Template:Msgbox]] */
.mw-warning-with-logexcerpt,
.errorbox {
    background-color: #FCC;
    border: 2px solid #FAA !important
}
.warningbox {
    background-color: #FFC;
    border: 2px solid #FFA
}
.successbox {
    background-color: #CFC;
    border: 2px solid #AFA
}
.successbox strong p {
    margin: 0
}
.mw-warning-with-logexcerpt,
.errorbox,
.warningbox,
.successbox {
    padding: 3px 12px !important
}

/* Add white background to some areas */
#userlogin, #userloginForm, #asirra_ChallengeTableDiv {
    background-color: #FFF;
}

/* Get rid of stupid white backgrounds on the diff area */
table.diff, td.diff-otitle, td.diff-ntitle {
    background-color: transparent !important
}

/* Get rid of stupid white borders on page history */
#pagehistory li {
    border-color: transparent
}

/* Some of the default elements in the content area could do with a colour change due to the background colour change, however no suitable ones have been found, so these are disabled for now.
#pagehistory li.selected,
pre,
li.gallerybox,
#toc,
div.thumbinner,
.catlinks,
td.diff-context,
code,
table.wikitable,
ul#filetoc {
    background-color: #DDE7EF
}
.wikitable th {
    background-color: #C2D2DF
} */
/* Get rid of stupid white borders on galleries and replace the space they created with an actual margin */
li.gallerybox {
    border: none;
    margin: 2px
}

/* Same as the default preferences tabs images, but with the blue background colour instead of white */
#preftoc,
#preftoc li {
    background-image: url("/resources/assets/Pref-tab-border.png")
}
#preftoc li.selected a {
    background-image: url("/resources/assets/Pref-tab-bg.png")
}

/* Use the logo area to add a 3D effect to the first tab */
#p-logo {
    background-image: url("/images/5/50/Vector-tabs-first-alt.png");
    background-position: right bottom;
    background-repeat: no-repeat;
    width: 10.4em;
    top: -160px;
}
/* Replace divider and arrows in the sidebar with similar images that have actual transparency */
#mw-panel.collapsible-nav div.portal {
    background-image: url("/resources/assets/Panel-divider.png") !important;
    margin-top: 10px;
}
#mw-panel.collapsible-nav div.first {
    background-image: none !important
}
#mw-panel.collapsible-nav div h5,
div.vectorMenu h5 a {
    background-image: url("/resources/assets/Arrow-down.png") !important
}
#mw-panel.collapsible-nav div.collapsed h5 {
    background-image: url("/resources/assets/Arrow-right.png") !important
}

/* Use the footer to add a fake 3D background over the bottom-left of the content area */
#footer {
    background-image: url("/resources/assets/Content-background.png") !important;
    background-repeat: no-repeat !important;
    margin-top: -5px !important;
        margin-left: 168px !important;
    padding-top: 17px !important;
}

#buttonFix {
    background-image: url("/images/1/13/Vector-tabs-alt.png") !important;
    background-position: left top;
    height: 36px;
    width: 6px;
    position: absolute;
    margin-left: -6px;
}

/* Fix Google AdSense */
#p-googleadsense ins {
    margin-left:-21px !important;
}

/* force the display of the contents of the section */
#p-googleadsense  body {
    display:block !important;
}

/* Option 1: hide the header */
#p-googleadsense h3 {
    display:none !important;
}

div#p-googleadsense.portal {
    margin-left: -21px !important;
    background-image: none !important;
}

div#p-googleadsense.portal.sticky {
    border: none;
    position: fixed !important;
    top: 0;
    margin-left: -21px;
    background-image: none !important;
}

div#mw-panel div.portal h3, div#mw-panel div.portal h5 {
    color: #82b67a;
    font-weight:bold;
}
#mw-panel #n-Donate-to-Kitty {
    padding: 0 !important;
    background: #84b87c;
    text-align: center;
    font-weight: bold;
}
#mw-panel #n-Donate-to-Kitty:hover {
    background: #fff;
}
#mw-panel #n-Donate-to-Kitty a {
    font-size: 14px;
    display: block;
    padding: 5px;
    color: #fff !important;
}
#mw-panel #n-Donate-to-Kitty a:hover {
    text-decoration: none;
    color: #84b87c !important;
}

/* Fix Stuff */
#p-cactions-label {
    height: 36px;
    width: 24px;
}
div.vectorMenu h3#p-cactions-label a {
    background-image: url("/skins/vector/images/arrow-down-icon.png") !important;
    background-position: 2px 14px;
}
div.vectorMenu h3#p-cactions-label a:hover {
    background-image: url("/skins/vector/images/arrow-down-focus-icon.png") !important;
    background-position: 2px 14px;
}
div.vectorMenu h3#p-cactions-label span {
    display:none;
}
div.vectorMenu div.menu {
    margin-left: -6px;
}

div#content {
    margin-left: 10.5em;
    border: none;
    border-top: 6px solid #B4BEC3;
    border-left: 6px solid #171717;
    margin-top: -6px;
}
div.vectorTabs ul li, div.vectorMenu {
    background-position: left top;
}

/* Fix Knapping Grid */
.grid-Knapping [class="grid"] {
    background: transparent !important;
    margin: 0;
    padding: 0;
}
.grid-Knapping [class="grid"] .border, .grid-Knapping [class="grid"] .border > span {
    border: none;
    margin: 0;
    padding: 0;
}
.grid-Knapping td {
    width:32px;
    height:32px;
}