MediaWiki:Common.css: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 28: | Line 28: | ||
.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; | |||
width: | |||
} | } | ||
. | .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; | position: absolute; | ||
content: ""; | |||
height: 26px; | |||
width: 26px; | |||
left: 4px; | |||
bottom: 4px; | |||
background-color: white; | |||
transition: .4s; | |||
border-radius: 50%; | |||
background | |||
. | |||
border- | |||
} | } | ||
input:checked + .slider { | |||
. | background-color: #ff4081; | ||
} | } | ||
. | input:checked + .slider:before { | ||
transform: translateX(26px); | |||
} | } |
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);
}