MediaWiki:Gadget-toplinksDropdown.css

From [N8]
Revision as of 17:53, 7 March 2020 by Banri (talk | contribs)
Jump to navigation Jump to search

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* <pre> */
body:not(.mw-special-Preferences) #pt-mytalk,
body:not(.mw-special-Preferences) #pt-preferences,
body:not(.mw-special-Preferences) #pt-watchlist,
body:not(.mw-special-Preferences) #pt-mycontris,
body:not(.mw-special-Preferences) #pt-mysandbox,
body:not(.mw-special-Preferences) #pt-logout {
    display: none;
}

body:not(.mw-special-Preferences) #p-personal #pt-userpage {
    float: right;
    position: relative;
    padding: .75em 0;
    margin: -0.15em 1em 0.1em;
    background-position: left center;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown {
    display: none;
    background: #fff;
    border: 1px solid #e4eaee;
    padding: 1em;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 2.5em;
    right: 0;
    z-index: 10;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::before {
    content: '';
    position: absolute;
    border: 8px solid transparent;
    border-top: 0;
    border-bottom: 8px solid #e4eaee;
    top: -8px;
    right: 10px;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::after {
    content: '';
    position: absolute;
    border: 11px solid transparent;
    border-top: 0;
    border-bottom: 11px solid #ffffff;
    top: -6.5px;
    right: 7px;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown ul {
    padding: 0;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li {
    display: block;
    width: 100%;
    font-size: 1.1em;
    margin: 0;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li a {
    display: block;
    padding: .5em 1em;
    box-sizing: border-box;
}

body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li a:hover {
    background: #f9fafa;
    border-radius: .25em;
    text-decoration: none;
}

body:not(.mw-special-Preferences) #pt-userpage:hover .pt-userpage-dropdown {
    display: block;
}

body:not(.mw-special-Preferences) #pt-mytalk .mw-echo-alert {
    color: #6bc71f;
    background: none;
    font-weight: bold;
}

.wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown {
    background: #313e59;
    border-color: #596e96;
}

.wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::before {
    border-bottom-color: #596e96;
}

.wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::after {
    border-bottom-color: #313e59;
}

.wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li a:hover {
    background: #29354e;
}