MediaWiki:Gadget-readableRC-core.css

From Zeah RSPS - Wiki
Revision as of 08:30, 16 February 2022 by Soulgazer (talk | contribs) (Created page with "→‎padding between "Live updates" button and gadget: .gadget-rc-button { margin-left: .5em; } →‎diff row: .gadget-rc-enabled .mw-changeslist-line { margin: .3em 0; line-height: 1.6; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; } →‎this is what makes most of it work: .gadget-rc-enabled .mw-changeslist-line tbody > tr { display: flex; } →‎pagename/log name column: .gadget-rc-pagename, .gadget-rc-logname { width: 22v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.
/* padding between "Live updates" button and gadget */
.gadget-rc-button {
    margin-left: .5em;
}

/* diff row */
.gadget-rc-enabled .mw-changeslist-line {
    margin: .3em 0;
    line-height: 1.6;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* this is what makes most of it work */
.gadget-rc-enabled .mw-changeslist-line tbody > tr {
    display: flex;
}

/* pagename/log name column */
.gadget-rc-pagename,
.gadget-rc-logname {
    width: 22vw;
    max-width: 350px;
    margin-right: .5em;
}

@media screen and (max-width: 1000px) {

    .gadget-rc-pagename,
    .gadget-rc-logname {
        width: 20vw;
    }

}

.gadget-rc-logname {
    font-weight: bold;
}

/* diff/hist column */
.gadget-rc-diff,
.gadget-rc-logdots {
    width: 14vw;
    max-width: 175px;
}

.gadget-rc-diff strong {
    font-weight: normal;
}

.gadget-rc-diff .mw-changeslist-separator {
    display: none;
}

.gadget-rc-logdots .mw-changeslist-separator {
    padding-left: .35em;
}

/* user description column */
.gadget-rc-userlinks,
.gadget-rc-logentry {
    flex: 1;
    margin-left: .5em;
}

/* limit height of log entries to 2 lines (primarily for user creation log,
   where there can be 20+ names that bloat the entry's height) */
.gadget-rc-logentry {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gadget-rc-userlinks > * {
    margin-right: .25em;
}

/* default is 95% for some reason */
.gadget-rc-enabled .changedby {
    font-size: 100%;
}

.gadget-rc-enabled .mw-userlink {
    font-weight: bold;
}

/* truncate long IPv6 addresses */
.gadget-rc-enabled .mw-anonuserlink {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: bottom;
    max-width: 17ch;
}

/* user links */
.gadget-rc-enabled .mw-usertoollinks {
    display: inline-flex;
}

.gadget-rc-enabled .mw-usertoollinks a {
    padding: 0 .05em;
}

/* remove spaces around pipes in user links */
.gadget-rc-enabled .mw-usertoollinks > span:not(:first-child):before {
    content: '|';
}

/* remove parentheses from edit summaries */
.gadget-rc-enabled .comment--without-parentheses::before,
.gadget-rc-enabled .comment--without-parentheses::after {
    content: '';
}

/* abusefilter tags */
.gadget-rc-enabled .mw-tag-markers,
.gadget-rc-enabled .mw-tag-markers a {
    font-weight: normal;
}

/* fix alignment on nested rows */
.gadget-rc-enabled .gadget-rc-nested {
    margin-left: 4.6em;
}

.gadget-rc-nested .gadget-rc-pagename {
    margin-right: .75em;
}

.gadget-rc-nested .gadget-rc-userlinks {
    margin-left: 2em;
}

.gadget-rc-nested .gadget-rc-logentry {
    margin-left: 2.3em;
}

/* debold */
.gadget-rc-nested .gadget-rc-logname {
    font-weight: normal;
}