MediaWiki:Gadget-rtrc.css

/** * Real-Time Recent Changes * https://github.com/Krinkle/mw-gadget-rtrc * * @license http://krinkle.mit-license.org/ * @author Timo Tijhof, 2010–2016 */

/* Minimise MediaWiki frame */

.mw-rtrc-available #siteNotice, .mw-rtrc-available .firstHeading, .mw-rtrc-available #bodyContent { visibility: hidden; }

.mw-rtrc-available #ca-talk, .mw-rtrc-available #p-views, .mw-rtrc-available #p-cactions, .mw-rtrc-available #footer, .mw-rtrc-available #contentSub, .mw-rtrc-available #catlinks, .mw-rtrc-available .mw-revdelundel-link { display: none; }

/* Wrapper */

.mw-rtrc-wrapper { position: relative; background: rgb(247, 246, 248); border-top: 30px solid #343434; padding: 0 1em; font-size: 13px; line-height: 1.4; color: #343434; opacity: 0; -webkit-transition: opacity 250ms ease-out 255ms; transition: opacity 250ms ease-out 255ms; }

.mw-rtrc-ready .mw-rtrc-wrapper { opacity: 1; }

.mw-rtrc-legend .mw-rtrc-item { display: inline-block; padding: 0 0.6em; }

.mw-rtrc-available #content { background: rgb(247, 246, 248); padding: 0; }

.mw-rtrc-head { position: absolute; top: -30px; left: 20%; right: 10%; line-height: 30px; text-align: center; color: #ccc; }

.mw-rtrc-foot { position: fixed; left: 0; bottom: 0; right: 0; background: rgba(255, 255, 255, 0.7); padding: 6px 15px 6px 15px; border-top: 1px solid #a1cef5; text-align: center; color: #343434; -webkit-transition: all 250ms ease-out; -webkit-transition-property: opacity, background; transition: all 250ms ease-out; transition-property: opacity, background; }

.mw-rtrc-foot:hover { background: rgba(255, 255, 255, 1); }

/* Sidebar overlay */

.mw-rtrc-sidebar-toggleable #mw-panel, .mw-rtrc-sidebar-toggleable #left-navigation, .mw-rtrc-sidebar-toggleable #content, .mw-rtrc-sidebar-toggleable .mw-rtrc-sidebar-cover, .mw-rtrc-navtoggle { -webkit-transition: visibility 0s linear 300ms, -webkit-transform 275ms ease-out, opacity 275ms ease-out; transition: visibility 0s linear 300ms, transform 275ms ease-out, opacity 275ms ease-out; }

/* Reverse visibility */ .mw-rtrc-sidebar-peak #mw-panel, .mw-rtrc-sidebar-on #mw-panel, .mw-rtrc-sidebar-peak #left-navigation, .mw-rtrc-sidebar-on #left-navigation, .mw-rtrc-sidebar-peak #content, .mw-rtrc-sidebar-on #content, .mw-rtrc-sidebar-peak .mw-rtrc-sidebar-cover, .mw-rtrc-sidebar-on .mw-rtrc-sidebar-cover, .mw-rtrc-sidebar-peak .mw-rtrc-navtoggle, .mw-rtrc-sidebar-on .mw-rtrc-navtoggle { -webkit-transition: visibility 0s linear 0s, -webkit-transform 275ms ease-out, opacity 275ms ease-out; transition: visibility 0s linear 0s, transform 275ms ease-out, opacity 275ms ease-out; }

/* Make the sidebar standalone for transitioning. */ .mw-rtrc-sidebar-toggleable #mw-panel { background-color: #f6f6f6; top: 0; /* was 160px */ padding-top: 0; /* was 1em */ width: 11em; /* was 10em with 1em offset from #content */ border-right: 1px solid #a7d7f9; /* transferred from #content/border-left */ min-height: 100%;

z-index: 1; /* overlap mw-rtrc-sidebar-cover */ box-shadow: rgba(0, 0, 0, 0.5) 0 0 25px;

visibility: hidden; pointer-events: none; -webkit-transform: translate(-12em, 0); transform: translate(-12em, 0); } .mw-rtrc-sidebar-toggleable #p-logo { position: static; /* was absolute */ margin-bottom: 1em; /* transferred from #mw-panel/padding-top */ } .mw-rtrc-sidebar-toggleable #left-navigation { margin-left: 1em; } .mw-rtrc-sidebar-toggleable #content { margin-left: 0; border-left: 0; } .mw-rtrc-sidebar-toggleable .mw-rtrc-sidebar-cover { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: #000; opacity: 0; visibility: hidden; }

.mw-rtrc-navtoggle { position: absolute; left: 1.5em; top: 10px; border: 0 solid #aaa; border-width: 0 0 0 5px; width: 10px; height: 15px; cursor: pointer;

-webkit-transform: translate(0, 0); transform: translate(0, 0); } .mw-rtrc-navtoggle:after { content: " "; width: 0; height: 0; position: absolute; pointer-events: none; border: 5px solid transparent; border-left-color: #333; top: 50%; margin-top: -5px; margin-left: 5px; } .mw-rtrc-sidebar-peak .mw-rtrc-navtoggle { -webkit-transform: scale(1.5); transform: scale(1.5); }

.mw-rtrc-sidebar-peak .mw-rtrc-sidebar-cover { visibility: visible; opacity: 0.1; } .mw-rtrc-sidebar-peak #mw-panel { z-index: 1; visibility: visible; -webkit-transform: translate(-11em, 0); transform: translate(-11em, 0); }

.mw-rtrc-sidebar-on .mw-rtrc-navtoggle { border-color: #fff; -webkit-transform: scaleX(-1) translate(-12em, 0); transform: scaleX(-1) translate(-12em, 0); } .mw-rtrc-sidebar-on #mw-panel { z-index: 1; visibility: visible; -webkit-transform: translate(0, 0); transform: translate(0, 0); pointer-events: auto; } .mw-rtrc-sidebar-on #p-personal { z-index: 0; /* was 100 */ } .mw-rtrc-sidebar-on .mw-rtrc-sidebar-cover { visibility: visible; opacity: 0.5; }

/* Buttons / Links */

.mw-rtrc-head-links { float: right; }

.mw-rtrc-head-links a { display: inline-block; padding: 0 0.6em; color: #ccc; }

.mw-rtrc-head-links a:hover { color: #fff; text-decoration: none; background: #555; }

.mw-rtrc-wrapper .button:active { position: relative; top: 1px; }

.mw-rtrc-wrapper select { /* Reset Vector's select { vertical-align: top; } */ vertical-align: baseline; }

.mw-rtrc-wrapper .helpicon { display: inline-block; margin-left: 0.3em; vertical-align: middle; width: 18px; height: 18px; background: url(//upload.wikimedia.org/wikipedia/commons/5/51/Question-helpbutton.png) no-repeat; }

.mw-rtrc-nohelp .helpicon { display: none; }

.mw-rtrc-wrapper .button:hover, .mw-rtrc-wrapper .helpicon:hover { cursor: pointer; }

.mw-rtrc-head-links a:first-letter, .mw-rtrc-diff-tools .tab:first-letter { text-transform: uppercase; }

/* Settings */

.mw-rtrc-settings { margin: 0 auto; min-width: 1000px; text-align: center; }

.mw-rtrc-settings fieldset { display: inline-block; background: #fff; border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; box-shadow: rgba(200, 200, 200, 1) 0 5px 15px; text-align: left; /* reset mw/fieldset */ margin: 0; padding: 0; border: 0; }

.mw-rtrc-setting-select { max-width: 80px; }

.mw-rtrc-settings .panel-group { display: table; }

.mw-rtrc-settings .panel-group:first-child { border-bottom: 1px solid #ddd; }

.mw-rtrc-settings .panel { display: table-cell; width: 1px; /* auto doesn't work, cells will grow now from 1px */ vertical-align: top; border-right: 1px solid #ddd; padding: 3px 5px; white-space: nowrap; text-align: center; }

.mw-rtrc-settings .sub-panel { display: inline-block; vertical-align: top; text-align: left; padding: 0 5px; border-right: 1px solid #ddd; }

.mw-rtrc-settings .sub-panel:first-of-type { padding-left: 0; } .mw-rtrc-settings .sub-panel:last-of-type { border-right: 0; padding-right: 0; }

.mw-rtrc-settings .panel .head { display: block; font-weight: bold; }

.mw-rtrc-settings .panel-group-mini .head { display: inline-block; }

.mw-rtrc-settings .button { padding: 6px 12px; border-width: 1px; border-style: solid; border-radius: 4px; font-weight: bold; font-size: 14px; line-height: 1.42; color: #fff; background-color: #357ebd; border-color: #3071a9; } .mw-rtrc-settings .button-small { padding: 3px 6px; font-size: 11px; line-height: 1.5; border-radius: 3px; } .mw-rtrc-settings .button:hover { background-color: #428bca; border-color: #428bca; cursor: pointer; } .mw-rtrc-settings .button:active { box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.250); } .mw-rtrc-settings .button-green { background-color: #4cae4c; border-color: #449d44; } .mw-rtrc-settings .button-green:hover	{ background-color: #5cb85c; border-color: #5cb85c; } .mw-rtrc-settings .button-red { background-color: #d43f3a; border-color: #c9302c; } .mw-rtrc-settings .button-red:hover { background-color: #d9534f; border-color: #d9534f; } .mw-rtrc-settings .button[disabled]:hover { cursor: default; }

/* Diff frame */

.mw-rtrc-diff { position: relative; width: 97%; margin: 20px auto 15px auto; padding: 0 1em; overflow: hidden; background: #fff; border-radius: 11px; box-shadow: rgba(200, 200, 200, 1) 0 5px 15px;

-webkit-transform: scaleY(1); transform: scaleY(1); max-height: 1000px;

-webkit-transform-origin: top; transform-origin: top;

/* When opening, delay the slide until after we reserve the height */ -webkit-transition: -webkit-transform 300ms ease-out 200ms, max-height 500ms ease-in; transition: transform 300ms ease-out 200ms, max-height 500ms ease-in; }

.mw-rtrc-diff-closed { max-height: 0; -webkit-transform: scaleY(0); transform: scaleY(0);

/* When closing, no delay for height change since it is naturally behind while lowering the height hidden in overflow to the actual height */ -webkit-transition: -webkit-transform 300ms ease-in, max-height 300ms ease-out; transition: transform 300ms ease-in, max-height 300ms ease-out; }

.mw-rtrc-diff-newpage { max-height: 400px; }

.mw-rtrc-diff-loading { opacity: 0.4; pointer-events: none; }

.mw-rtrc-diff h3 { margin: 0 1em 0.5em 0; border-bottom: 1px solid rgb(247, 246, 248); font-size: 21px; font-weight: normal; white-space: nowrap; overflow: hidden; }

.mw-rtrc-diff table.diff { margin: 0; width: 100%; }

.mw-rtrc-diff-tools { position: absolute; top: 0; right: 2em; width: 80%; }

.mw-rtrc-diff-tools .tab { float: right; display: block; font-weight: bold; margin-left: 3px; padding: 3px 10px; background-color:rgb(247, 246, 248); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; }

.mw-rtrc-diff-tools .tab a:hover { cursor: pointer; }

/* Feed */

.mw-rtrc-body { position: relative; width: 100%; margin: 20px auto 70px auto; }

.mw-rtrc-body.placeholder { width: 100%; height: 600px; background: transparent url(//upload.wikimedia.org/wikipedia/commons/9/9d/RTRC_Placeholder.png) top center no-repeat; }

.mw-rtrc-body.placeholder > * { display: none; }

.mw-rtrc-feed { position: relative; padding: 2em 0; background: #fff; font-size: 14px; border-top-left-radius: 11px; border-top-right-radius:11px; box-shadow: rgba(200, 200, 200, 1) 0 5px 15px; }

.mw-rtrc-feed-update { position: absolute; top: 0.5em; left: 10%; width: 80%; font-size: smaller; text-align: center; }

position: absolute; top: 0; right: 0; }
 * 1) krRTRC_loader {

.mw-rtrc-feed-content { margin: 0 0 -1.5em 0; width: 100%; }

.mw-rtrc-item, .mw-rtrc-heading { padding: 0 5px; white-space: nowrap; border: 1px solid transparent; }

.mw-rtrc-item:nth-child(odd), .mw-rtrc-heading:nth-child(odd) { background: #f3f3f3; }

.mw-rtrc-item.mw-rtrc-item-alert { background: #ffd5d5; }

.mw-rtrc-item.mw-rtrc-item-skipped { background: #d6d9e9; }

.mw-rtrc-item.mw-rtrc-item-patrolled { background: #d9e9d6; }

.mw-rtrc-item.mw-rtrc-item-current { background: #ffce7b; border: 1px solid orange; }

.mw-rtrc-item-aes .comment { font-weight: bold; }

.mw-rtrc-item-alert-rev .mw-rtrc-revscore { cursor: help; }

.mw-rtrc-item-alert-user .mw-userlink, .mw-rtrc-item-alert-rev .mw-rtrc-revscore { background: url(//upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Nuvola_apps_important.svg/18px-Nuvola_apps_important.svg.png) 0 50% no-repeat; padding-left: 20px; }

@media (min-resolution: 2dppx), (min-resolution: 192dpi) { .mw-rtrc-item-alert-user .mw-userlink, .mw-rtrc-item-alert-rev .mw-rtrc-revscore { background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Nuvola_apps_important.svg/36px-Nuvola_apps_important.svg.png); background-size: 18px; } }

/* Acts like a table with table-rows, using divs to avoid fixed table-layout with forced width and oveflow issues */ .mw-rtrc-item div { display: inline-block; overflow: hidden; padding: 3px 0; vertical-align: middle; }

.mw-rtrc-item div[first] { width: 40% } .mw-rtrc-item div[user] { width: 24% } .mw-rtrc-item div[comment] { width: 30% } .mw-rtrc-item .mw-rtrc-meta { width: 6%; text-align: right; }

.mw-rtrc-meta .mw-plusminus { font-size: smaller; }

.mw-rtrc-legend { margin: 5px auto; padding: 5px 13px; background: #fff; border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; box-shadow: rgba(200, 200, 200, 1) 0 5px 15px; }

/* Diff pre-wrap (partially from wikibits/diff.css but there only adds pre-wrap for diffchange */ .mw-rtrc-available table.diff td {	white-space: -moz-pre-wrap;	white-space: pre-wrap; }

/** * On/Off switch checboxes. * Based on "iOS 6 style switch checkboxes" by Lea Verou http://lea.verou.me */

.mw-rtrc-settings .switch { position: absolute; opacity: 0; }

.mw-rtrc-settings .switch + div { display: inline-block; vertical-align: middle; margin: 0 .5em; width: 3em; height: 1em; overflow: hidden; background: #fff; background-image: -webkit-linear-gradient(rgba(0, 0, 0, .1), transparent), -webkit-linear-gradient(0, #357ebd 50%, transparent 50%); background-image: linear-gradient(rgba(0, 0, 0, .1), transparent), linear-gradient(90deg, #357ebd 50%, transparent 50%); background-size: 200% 100%; background-position: 100% 0; background-origin: border-box; background-clip: border-box; border: 1px solid rgba(0, 0, 0, .3); border-radius: 999px; box-shadow: 0 .1em .1em rgba(0, 0, 0, .2) inset, 0 .45em 0 .1em rgba(0, 0, 0, .05) inset; font-size: 150%; text-align: left; transition-duration: .4s; transition-property: padding, width, background-position, text-indent; }

.mw-rtrc-settings .switch:checked + div { padding-left: 2em; width: 1em; background-position: 0 0; }

.mw-rtrc-settings .switch + div:before { content: 'On'; float: left; margin: -.1em; width: 1.65em; height: 1.65em; background: #fff; background-image: -webkit-linear-gradient(rgba(0, 0, 0, .2), transparent); background-image: linear-gradient(rgba(0, 0, 0, .2), transparent); border: 1px solid rgba(0,0,0,.35); border-radius: inherit; box-shadow: 0 .1em .1em .1em hsla(0, 0%, 100%, .8) inset, 0 0 .5em rgba(0, 0, 0, .3); color: white; text-shadow: 0 -1px 1px rgba(0, 0, 0, .3); text-indent: -2.5em; }

.mw-rtrc-settings .switch:active + div:before { background-color: #eee; }

.mw-rtrc-settings .switch:focus + div { box-shadow: 0 .1em .1em rgba(0, 0, 0, .2) inset, 0 .45em 0 .1em rgba(0, 0, 0, .05) inset, 0 0 .4em 1px rgba(255, 0, 0, .5); }

.mw-rtrc-settings .switch + div:before, .mw-rtrc-settings .switch + div:after { font: bold 60%/1.9 sans-serif; text-transform: uppercase; }

.mw-rtrc-settings .switch + div:after { content: 'Off'; text-align: left; float: left; text-indent: .5em; color: rgba(0, 0, 0, .45); text-shadow: none; }