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 {
.toggle-container {
    position: fixed;
    top: 70px;
    right: 20px;
     background: #f8f9fa;
     background: #f8f9fa;
     padding: 15px;
     padding: 1em;
     border-radius: 8px;
    margin: 1em 0;
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     border: 1px solid #a2a9b1;
     z-index: 100;
     border-radius: 4px;
     text-align: center;
}
}


.toggle-switch {
.toggle-button {
    position: relative;
     display: inline-block;
     display: inline-block;
     width: 60px;
     padding: 0.5em 1em;
    height: 34px;
     margin: 0 0.5em;
     margin-left: 10px;
     border: 1px solid #a2a9b1;
}
     border-radius: 3px;
 
.toggle-switch input {
    opacity: 0;
    width: 0;
     height: 0;
}
 
.slider {
     position: absolute;
     cursor: pointer;
     cursor: pointer;
    top: 0;
     background: #ffffff;
    left: 0;
     transition: all 0.2s ease;
    right: 0;
    bottom: 0;
     background-color: #2196F3;
     transition: .4s;
    border-radius: 34px;
}
}


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


input:checked + .slider {
.manga-content, .anime-content {
     background-color: #ff4081;
     display: none;
}
}


input:checked + .slider:before {
.show-manga .manga-content,
     transform: translateX(26px);
.show-anime .anime-content {
     display: block;
}
}

Revision as of 18:08, 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;
}





.toggle-container {
    background: #f8f9fa;
    padding: 1em;
    margin: 1em 0;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    text-align: center;
}

.toggle-button {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.5em;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.toggle-button.active {
    background: #36c;
    color: white;
    border-color: #36c;
}

.manga-content, .anime-content {
    display: none;
}

.show-manga .manga-content,
.show-anime .anime-content {
    display: block;
}