User:DVRTed/sandbox/ZenMode.css
Appearance
< User:DVRTed | sandbox
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump.
This code will be executed when previewing this page.
This code will be executed when previewing this page.
Documentation for this user script can be added at User:DVRTed/sandbox/ZenMode. This user script seems to have an accompanying .js page at User:DVRTed/sandbox/ZenMode.js.
* {
box-sizing: border-box;
}
.zen-fade-out {
animation: zenFadeOut 0.2s ease-out forwards;
}
@keyframes zenFadeOut {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(0.95);
}
}
.zen-mode-active {
display: none !important;
}
#zen-mode-container {
width: 100%;
min-height: 100%;
background: #161616;
animation: zenFadeIn 0.3s ease-out;
}
@keyframes zenFadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#zen-exit-button {
position: fixed;
top: 20px;
right: 20px;
padding: 12px 24px;
font-size: 16px;
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.3);
color: #e8e8e8;
border-radius: 8px;
cursor: pointer;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
font-family: "Georgia", "Palatino Linotype", "Palatino", "Times New Roman", serif;
font-weight: 500;
letter-spacing: 0.5px;
z-index: 1000000;
}
#zen-exit-button:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
#zen-content-wrapper {
min-height: 100%;
width: 100%;
margin: 0 auto;
max-width: 1000px;
position: relative;
}
#zen-article-content {
margin: 0 40px;
padding: 80px 0;
color: #e8e8e8;
font-family: "Georgia", "Palatino Linotype", "Palatino", "Times New Roman", serif;
font-size: 20px;
line-height: 1.8;
}
#zen-article-content h1,
#zen-article-content h2,
#zen-article-content h3 {
font-weight: normal !important;
border: none !important;
margin: 0 !important;
}
#zen-article-content .mw-heading {
border: none !important;
margin: 0 !important;
}
#zen-article-content h1 {
font-size: 2.5em;
margin: 0 0 0.5em 0;
color: #e8e8e8;
font-weight: 600;
}
#zen-article-content h2 {
font-size: 1.8em;
margin: 1.5em 0 0.5em 0;
color: #f0f0f0;
font-weight: 600;
}
#zen-article-content h3 {
font-size: 1.4em;
margin: 1.2em 0 0.5em 0;
color: #e8e8e8;
font-weight: 600;
}
#zen-article-content p {
margin: 10px 0;
padding: 0;
}
#zen-article-content .zen-image-placeholder {
background: rgba(255, 255, 255, 0.05);
}
#zen-article-content .infobox,
#zen-article-content .sidebar-list-title {
background: #161616 !important;
color: #e8e8e8 !important;
border: 1px solid #2a2a2a !important;
}
#zen-article-content .sister-bar,
#zen-article-content .side-box {
display: none;
}
#zen-article-content .navbox {
display: none;
}
#zen-article-content .noprint,
#zen-article-content .ambox {
display: none;
}
#zen-article-content figure,
#zen-article-content .thumbinner {
background: #161616;
color: #e8e8e8;
border: none !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
border-radius: 4px;
overflow: hidden; /* Ensure image animations stay within bounds */
}
#zen-article-content img.zen-lazy-image {
opacity: 0;
transform: translateY(20px) scale(0.95);
filter: blur(10px);
transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.2, 0, 0, 1), filter 0.5s ease-out;
will-change: opacity, transform, filter;
}
#zen-article-content img.zen-image-loaded {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
}
#zen-article-content figcaption,
#zen-article-content caption {
border: none !important;
background: #181818;
color: rgba(255, 255, 255, 0.7);
}
#zen-article-content table,
#zen-article-content td,
#zen-article-content th {
color: #e8e8e8 !important;
border-color: #2a2a2a !important;
}
#zen-article-content table {
background: #161616 !important;
}
#zen-article-content td {
background: #181818 !important;
}
#zen-article-content th {
background: #222222 !important;
}
#zen-article-content .skin-nightmode-reset-color {
background: #222222 !important;
color: #e8e8e8 !important;
}
#zen-article-content .mw-collapsible-toggle {
float: right;
font-size: 0.9em;
font-weight: normal;
}
#zen-article-content .mw-collapsible-toggle a,
#zen-article-content .mw-collapsible-toggle span {
color: rgba(255, 255, 255, 0.7) !important;
border-bottom: none !important;
}
#zen-article-content .mw-collapsible-toggle a:hover,
#zen-article-content .mw-collapsible-toggle span:hover {
color: #e8e8e8 !important;
}
#zen-article-content #zen-loading {
text-align: center;
color: rgba(255, 255, 255, 0.7);
font-size: 18px;
padding: 40px;
}
#zen-article-content a {
position: relative;
display: inline-block;
color: #e8e8e8;
text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), opacity 180ms ease;
}
#zen-article-content a::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 100%;
height: 1px;
background: #e8e8e8;
transform: scaleX(0);
transform-origin: left;
transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}
#zen-article-content a:hover {
transform: translateY(-1px);
opacity: 0.85;
}
#zen-article-content a:hover::after {
transform: scaleX(1);
}
#zen-history-list {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 250px;
padding: 80px 20px 20px 20px;
z-index: 9999;
background: rgba(22, 22, 22, 0.95);
backdrop-filter: blur(10px);
border-right: 1px solid rgba(255, 255, 255, 0.1);
overflow-y: auto;
transform: translateX(-240px);
transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s ease;
opacity: 0.6;
}
#zen-history-list:hover {
transform: translateX(0);
opacity: 1;
box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}
#zen-history-list::after {
content: "";
position: absolute;
top: 50%;
right: 5px;
width: 2px;
height: 40px;
background: rgba(255, 255, 255, 0.3);
border-radius: 2px;
transform: translateY(-50%);
}
#zen-history-list:hover::after {
opacity: 0;
}
#zen-history-list .zen-history-title {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 2px;
color: rgba(255, 255, 255, 0.3);
margin-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding-bottom: 10px;
}
#zen-history-list .zen-history-empty {
font-size: 14px;
color: rgba(255, 255, 255, 0.3);
font-style: italic;
text-align: center;
margin-top: 20px;
}
#zen-history-list ul {
list-style: none;
padding: 0;
margin: 0;
}
#zen-history-list li {
margin: 0 0 10px 0;
}
#zen-history-list a {
display: block;
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
font-family: "Charter", "Iowan Old Style", serif;
font-size: 15px;
transition: all 0.2s ease;
padding: 4px 8px;
border-radius: 4px;
border-left: 2px solid transparent;
}
#zen-history-list a:hover {
color: #e8e8e8;
background: rgba(255, 255, 255, 0.05);
padding-left: 12px;
}
#zen-history-list a.active {
color: #fff;
font-weight: 600;
border-left-color: #fff;
background: rgba(255, 255, 255, 0.1);
}
#zen-history-list::-webkit-scrollbar {
width: 4px;
}
#zen-history-list::-webkit-scrollbar-track {
background: transparent;
}
#zen-history-list::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
}
/* Fix for MediaWiki:Gadget-dark-mode-toggle */
html.client-dark-mode #zen-mode-container {
filter: invert(1) hue-rotate(180deg);
}
/*# sourceMappingURL=ZenMode.css.map */