MediaWiki:Gadget-YSWSSearch.css

From Hack Club Wiki
Revision as of 13:11, 5 November 2026 by U0AHNB20WDD (talk | contribs) (Created page with " →MediaWiki:Gadget-YSWSSearch.css: .ysws-directory { max-width: 100%; } .ysws-directory-count { color: var(--color-subtle, #54595d); font-size: 0.95em; } .ysws-controls { margin: 1.25em 0; } .ysws-controls label { display: block; font-weight: 600; margin-bottom: 0.4em; } .ysws-controls input[type="search"] { box-sizing: border-box; width: 100%; max-width: 32em; padding: 0.65em 0.85em; border: 1px solid var(--border...")
(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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.

/* MediaWiki:Gadget-YSWSSearch.css */

.ysws-directory {
    max-width: 100%;
}

.ysws-directory-count {
    color: var(--color-subtle, #54595d);
    font-size: 0.95em;
}

.ysws-controls {
    margin: 1.25em 0;
}

.ysws-controls label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.ysws-controls input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 32em;
    padding: 0.65em 0.85em;
    border: 1px solid var(--border-color-base, #a2a9b1);
    border-radius: 5px;
    background: var(--background-color-base, #fff);
    color: var(--color-base, #202122);
    font: inherit;
}

.ysws-controls input:focus {
    outline: 2px solid #36c;
    outline-offset: 1px;
}

.ysws-results,
.ysws-source-note {
    font-size: 0.9em;
    color: var(--color-subtle, #54595d);
}

.ysws-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.ysws-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93em;
}

.ysws-table th,
.ysws-table td {
    padding: 0.65em 0.8em;
    vertical-align: top;
}

.ysws-table .ysws-name {
    min-width: 9em;
    font-weight: 600;
}

.ysws-description {
    min-width: 14em;
    max-width: 32em;
    line-height: 1.45;
}

.ysws-start,
.ysws-end {
    white-space: nowrap;
}

.ysws-status {
    font-weight: 500;
    white-space: nowrap;
}

.ysws-website {
    white-space: nowrap;
}

.ysws-table tbody tr:hover {
    background: var(--background-color-interactive-subtle, #eaecf0);
}

.ysws-program[hidden],
.ysws-empty[hidden] {
    display: none !important;
}

.ysws-empty {
    padding: 1em 0;
    font-style: italic;
}

@media (max-width: 700px) {
    .ysws-table {
        font-size: 0.85em;
    }

    .ysws-table th,
    .ysws-table td {
        padding: 0.5em;
    }

    .ysws-description {
        min-width: 12em;
    }
}