MediaWiki:Gadget-toplinksDropdown.css

From Old School Near-Reality Wiki
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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
  1 /* <pre> */
  2 body:not(.mw-special-Preferences) #pt-mytalk,
  3 body:not(.mw-special-Preferences) #pt-preferences,
  4 body:not(.mw-special-Preferences) #pt-watchlist,
  5 body:not(.mw-special-Preferences) #pt-mycontris,
  6 body:not(.mw-special-Preferences) #pt-logout {
  7     display: none;
  8 }
  9 
 10 body:not(.mw-special-Preferences) #p-personal #pt-userpage {
 11     float: right;
 12     position: relative;
 13     padding-bottom: 1.4em;
 14     background-position: left center;
 15 }
 16 
 17 body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown {
 18     display: none;
 19     background: var(--body-light);
 20     border: 1px solid var(--body-border);
 21     padding: 1em;
 22     box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.3);
 23     position: absolute;
 24     top: 2.5em;
 25     right: 0;
 26     z-index: 10;
 27     transition: opacity 100ms;
 28 }
 29 
 30 body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::before {
 31     content: '';
 32     position: absolute;
 33     border: 8px solid transparent;
 34     border-top: 0;
 35     border-bottom: 8px solid var(--body-border);
 36     top: -8px;
 37     right: 10px;
 38 }
 39 
 40 body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::after {
 41     content: '';
 42     position: absolute;
 43     border: 11px solid transparent;
 44     border-top: 0;
 45     border-bottom: 11px solid var(--body-light);
 46     top: -6.5px;
 47     right: 7px;
 48 }
 49 
 50 body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown ul {
 51     padding: 0;
 52     list-style-type: none;
 53     list-style-image: none;
 54 }
 55 
 56 body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li {
 57     display: block;
 58     width: 100%;
 59     font-size: 1.1em;
 60     margin: 0;
 61     padding: 0;
 62 }
 63 
 64 body:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li a {
 65     color: var(--background-link-color);
 66     display: block;
 67     padding: 0.5em 1em;
 68     padding-top: 0.5em !important;
 69     box-sizing: border-box;
 70     background-image: none;
 71 }
 72 
 73 body:not(.mw-special-Preferences) #pt-userpage:hover .pt-userpage-dropdown {
 74     display: block;
 75 }
 76 
 77 body:not(.mw-special-Preferences) #pt-mytalk .mw-echo-alert {
 78     color: #6bc71f;
 79     background: none;
 80     font-weight: bold;
 81 }
 82 
 83 .wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown {
 84     background: #313e59;
 85     border-color: #596e96;
 86 }
 87 
 88 .wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::before {
 89     border-bottom-color: #596e96;
 90 }
 91 
 92 .wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown::after {
 93     border-bottom-color: #313e59;
 94 }
 95 
 96 .wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li a {
 97     color: #8cabe6;
 98 }
 99 
100 .wgl-darkmode:not(.mw-special-Preferences) #pt-userpage .pt-userpage-dropdown li a:hover {
101     background: #29354e;
102 }