MediaWiki:Vector.css

From Ricochet Wiki
Revision as of 20:24, 22 January 2022 by Ngyikp (talk | contribs) (new top nav implementation, uses JS to create the nav instead of hacky CSS)

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 */
body {
	background: #000 url('https://static.miraheze.org/ricochetwiki/2/22/Stars_background.jpg');
}

#mw-page-base {
	background: none;
}

#pt-uls .uls-trigger:before,
.mw-echo-notifications-badge,
#mw-sidebar-button:before, /* new Vector */
.vector-user-links .uls-trigger, /* new Vector */
.vector-user-links .mw-ui-button /* new Vector */ {
	filter: invert(1);
}

.mw-body, /* new Vector */
#p-cactions,
#simpleSearch input {
	background-color: #fff;
}

#mw-navigation,
#footer,
#footer li {
	color: #fff;
}

.mw-notification,
.oo-ui-window-frame {
	color: #000;
}

/* links */
.mw-header .mw-logo, /* new Vector */
#mw-panel .vector-menu-content li a,
#mw-panel .vector-menu-content li a:visited,
#mw-panel .mw-sidebar-action-link, /* new Vector */
#mw-head #p-personal a,
#footer a {
	color: #00fffe;
}

#mw-panel .vector-menu-content li a:hover,
#mw-head #p-personal a:hover,
#footer a:hover {
	color: #fff;
}

/* new Vector */
.mw-page-container {
	background: none;
	border-left: 0;
	border-right: 0;
}

/* new Vector */
#mw-panel {
	background: none;
	border: 0;
}

#p-Ricochet {
	display: none;
}

/* top nav */
.client-js #mw-page-base {
    height: calc(5em + 56px);
}

.client-js .mw-page-container-inner {
    padding-top: 56px;
}

.client-js #mw-head,
.client-js #mw-panel,
.client-js .ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
    top: 56px;
}

#ricochet-top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    background: #343a40;
    box-sizing: border-box;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    z-index: 101;
}

#ricochet-top-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

#ricochet-top-nav-list a {
    display: block;
    padding: 0.5rem 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

#ricochet-top-nav-list a:hover,
#ricochet-top-nav-list a:focus {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

#ricochet-top-nav-list svg {
    width: 20px;
    height: 20px;
    fill: hsla(0, 0%, 100%, 0.5);
    vertical-align: middle;
}

#ricochet-top-nav-list a[href="https://wiki.ricochetuniverse.com"]
{
    color: #fff; /* active */
}

#ricochet-top-nav-list a[href$='/discord']:hover > svg,
#ricochet-top-nav-list a[href$='/discord']:focus > svg {
    fill: #5865f2;
}