MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 24: Line 24:
}
}


.mode-nav-item {
    position: relative;
    /* Ensure this matches other navigation items */
    padding: 0.5em 0;
}


.content-mode-selector {
.mode-text {
     margin: 0 0 1em 0;
     cursor: pointer;
    padding: 0.25em 0.5em;
     color: #54595d;
     border-bottom: 1px solid #c8ccd1;
}
}


.mode-toggle {
.mode-text:hover {
    cursor: pointer;
     color: #202122;
     color: #202122;
    padding: 0.25em 0;
}
}


.mode-options {
.mode-menu {
     display: none;
     display: none;
     margin-top: 0.5em;
     position: absolute;
    left: 0;
    top: 100%;
    background: white;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 120px;
}
}


.mode-options.visible {
.mode-menu.visible {
     display: block;
     display: block;
}
}
Line 48: Line 58:
.mode-option {
.mode-option {
     display: block;
     display: block;
     padding: 0.25em 0;
     padding: 6px 12px;
     color: #0645ad;
     color: #202122;
    cursor: pointer;
     text-decoration: none;
     text-decoration: none;
}
}


.mode-option:hover {
.mode-option:hover {
     text-decoration: underline;
    background-color: #f8f9fa;
     text-decoration: none;
}
}


.mode-option.active {
.mode-option.active {
    background-color: #eaecf0;
     font-weight: bold;
     font-weight: bold;
    color: #202122;
}
}