MediaWiki:VersionTree.css: Difference between revisions

From The Seven Sages of Rome
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%;..."
 
No edit summary
 
Line 4: Line 4:
.overview-description,
.overview-description,
.description {
.description {
     font-size: larger;
     font-size: medium;
}
}



Latest revision as of 21:24, 25 February 2026

/** Version Tree Visualization & Logic **/

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

/* 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;
}