MediaWiki:Gadget-ReferenceTooltips.css

From Zeah RSPS - Wiki
Revision as of 08:36, 16 February 2022 by Soulgazer (talk | contribs) (Created page with "→‎* * Reference tooltips: →‎Settings link: #rsw-config-open { float: right; font-size: smaller; } →‎Tooltip: .rsw-tooltip { position: absolute; z-index: 5; background-color: var(--body-light); border: 2px solid var(--body-border); color: var(--text-color); max-width: 300px; overflow-wrap: break-word; padding: 10px 15px; margin: 0px; -moz-box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); -webkit-box-...")
(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.
/**
 * Reference tooltips
 */

/* Settings link */
#rsw-config-open {
    float: right;
    font-size: smaller;
}

/* Tooltip */
.rsw-tooltip {
    position: absolute;
    z-index: 5;
    background-color: var(--body-light);
    border: 2px solid var(--body-border);
    color: var(--text-color);
    max-width: 300px;
    overflow-wrap: break-word;
    padding: 10px 15px;
    margin: 0px;
    -moz-box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); /* @box-shadow */
    font-size: 0.7em;
}

#rsw-tooltip-settings {
    float: right;
    width: 16px;
    height: 16px;
    background-image: url( "//upload.wikimedia.org/wikipedia/commons/e/ed/Cog.png" );
    margin-top: -8px;
    margin-right: -8px;
    opacity: 0.6;
    cursor: pointer;
}

#rsw-tooltip-settings:hover {
    opacity: 1;
}

/* Config form */
#rsw-config {
    /* why would you give something a z-index of 200m? */
    z-index: 200000002;
    position: fixed;
    font-size: 0.8em;
    border: 4px solid var(--body-border);
    width: 500px;
    color: var(--text-color);
    background-color: var(--body-light);
}

#rsw-config-header {
    padding: 5px;
    font-size: 1.25em;
}

#rsw-config-title {
    font-weight: bold;
}

#rsw-config-close {
    float: right;
    width: 20px;
    height: 20px;
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='m3.636 2.224 14.142 14.142-1.414 1.414L2.222 3.638z'/%3E%3Cpath d='M17.776 3.636 3.634 17.778 2.22 16.364 16.362 2.222z'/%3E%3C/svg%3E");
    cursor: pointer;
    opacity: 0.6;
}

#rsw-config-close:hover {
    opacity: 1;
}

#rsw-config-body {
    padding: 1em;
    height: 120px;
}

#rsw-config-disable {
    width: 100%;
    line-height: normal;
}

#rsw-config-note {
    border-bottom: 1px solid var(--body-border);
    font-size: smaller;
    text-align: center;
    padding: 0.5em 0;
    margin-bottom: 0.5em;
}

#rsw-config-footer {
    border-top: 1px solid var(--body-border);
    background-color: var(--body-dark);
    height: 28px;
    padding: 3px;
}

#rsw-config-save {
    float: right;
    line-height: normal;
}

#rsw-config-background {
    top: 0;
    left: 0;
    z-index: 200000001;
    position: fixed;
    opacity: 0.65;
    background-color: rgba(25,25,25,0.6);
}