MediaWiki:VersionTree.css

From The Seven Sages of Rome
Revision as of 12:19, 23 January 2026 by Noeth (talk | contribs) (Created page with "* Version Tree Visualization & Logic *: Typography Overrides: .overview-description, .description { font-size: larger; } Tree Container: .version-tree-wrapper { position: relative; padding-top: 20px; } The vertical line coming down from 'Version branches': .version-root-title { position: relative; display: inline-block; margin-bottom: 40px; } .version-root-title::after { content: ""; position: absolute; left: 50%;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/** Version Tree Visualization & Logic **/

/* Typography Overrides */
.overview-description,
.description {
    font-size: larger;
}

/* Tree Container */
.version-tree-wrapper {
    position: relative;
    padding-top: 20px;
}

/* The vertical line coming down from 'Version branches' */
.version-root-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.version-root-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 2px;
    height: 20px;
    background-color: #000;
}

/* The horizontal connector and the two drops */
.tree-branch-row {
    position: relative;
}

/* Horizontal line */
.tree-branch-row::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: #000;
}

/* Vertical lines dropping to the column headers */
.branch-column::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #000;
}

/* Shadcn-style Tree Filter Input */
#tree-filter {
    display: flex;
    width: 100%;
    max-width: 600px;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: #111827;
    transition: all 0.15s ease;
    outline: none;
    box-sizing: border-box;
}

#tree-filter::placeholder {
    color: #9ca3af;
}

#tree-filter:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#tree-filter:hover:not(:focus) {
    border-color: #9ca3af;
}

#tree-filter:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #f9fafb;
}