MediaWiki:Common.css: Difference between revisions

From Medalist Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 28: Line 28:




 
.content-toggle {
.mode-selector-container {
    position: fixed;
     margin: 1em;
    top: 70px;
     text-align: center;
    right: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     z-index: 100;
}
}


.mode-toggle-button {
.toggle-switch {
     background-color: #2ecc71;
     position: relative;
     color: white;
     display: inline-block;
    border: none;
     width: 60px;
    border-radius: 4px;
     height: 34px;
    padding: 0.75em 1.5em;
     margin-left: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
     width: auto;
     display: inline-flex;
     align-items: center;
    gap: 0.5em;
}
}


.mode-toggle-button:hover {
.toggle-switch input {
     background-color: #27ae60;
    opacity: 0;
    width: 0;
     height: 0;
}
}


.mode-toggle-button.active {
.slider {
     background-color: #27ae60;
     position: absolute;
     box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
     top: 0;
 
    left: 0;
.toggle-arrow {
    right: 0;
     font-size: 0.8em;
    bottom: 0;
     margin-left: 0.5em;
    background-color: #2196F3;
     transition: .4s;
     border-radius: 34px;
}
}


.mode-menu {
.slider:before {
    display: none;
     position: absolute;
     position: absolute;
     left: 50%;
     content: "";
     transform: translateX(-50%);
     height: 26px;
     background: white;
     width: 26px;
     border: 1px solid #ddd;
     left: 4px;
    border-radius: 4px;
     bottom: 4px;
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
     background-color: white;
    z-index: 1000;
     transition: .4s;
    min-width: 250px;
     border-radius: 50%;
    margin-top: 0.5em;
}
 
.mode-menu.visible {
    display: block;
}
 
.mode-menu-header {
    padding: 0.75em 1em;
     background: #f8f9fa;
    border-bottom: 1px solid #ddd;
     font-weight: bold;
    color: #202122;
}
 
.mode-option {
    display: block;
    padding: 1em;
    color: #202122;
    text-decoration: none;
     border-bottom: 1px solid #eee;
}
 
.mode-option:last-child {
    border-bottom: none;
}
 
.mode-option:hover {
    background-color: #f8f9fa;
}
 
.mode-option.active {
    background-color: #e8f5e9;
}
 
.mode-title {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25em;
}
 
.mode-description {
    display: block;
    font-size: 0.9em;
    color: #666;
}
}


/* Content marking styles */
input:checked + .slider {
.manga-content {
     background-color: #ff4081;
     border-left: 3px solid #2ecc71;
    padding: 0.5em 1em;
    margin: 1em 0;
    background: #f8fff9;
}
}


.anime-content {
input:checked + .slider:before {
     padding: 0.5em 1em;
     transform: translateX(26px);
    margin: 1em 0;
}
}

Revision as of 18:04, 6 February 2025

/* CSS placed here will be applied to all skins */
.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 300px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
    text-align: left;
    vertical-align: top;
    width: 120px;
}
.infobox-table td {
    vertical-align: top;
}





.content-toggle {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196F3;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff4081;
}

input:checked + .slider:before {
    transform: translateX(26px);
}