User:Monster Domosed/common.cssGive feedback
Jump to navigation
Jump to search
Note: After publishing, you may need to reload with your cache disabled to see your changes.
- Windows / Linux: Press Ctrl-Shift-R
- macOS: Press ⌘-Shift-R
/* @import url('//deadlock.wiki/index.php?title=Wiki_Redesign.css&action=raw&ctype=text/css'); */
html:root {
/* top left / behind */
--background-image: url('/images/d/d3/Neon_Prime_screenshot_01.jpg');
--scrollbar-color: #706F6D #191715;
/* main body */
--background-color-base: #213342;
--background-color-base-border: #080504;
--background-color-base-subtle: #0e1c29;
--background-color-base-subtle-border: var(--background-color-base-border);
--background-color-light: var(--background-color-base);
--background-color-base-2: oklch(from var(--background-color-base) calc(l + 0.07) c h);
--background-color-base-3: oklch(from var(--background-color-base) calc(l + 0.12) c h);
--background-color-base-4: oklch(from var(--background-color-base) calc(l + 0.17) c h);
--background-color-base-5: oklch(from var(--background-color-base) calc(l + 0.22) c h);
--background-color-neutral-subtle: var(--background-color-base-2);
--background-color-neutral: #0c202d;
--background-color-interactive-subtle: var(--background-color-neutral);
--background-color-interactive: #45838b;
--background-color-disabled: oklch(from var(--background-color-base) calc(l + 0.03) c h);
/* borders */
--border-color-base: #45838b;
--border-color-subtle: #45838b;
--border-color-muted: #45838b;
--border-color-disabled: #45838b;
/* text */
--color-base: oklch(0.97 0.03 82.14);
--color-base--hover: var(--color-base);
--color-emphasized: white;
--color-subtle: #9aa4aa;
--color-notice: var(--color-subtle);
/* links */
--link-color: #0ae6f6;
--link-color--hover: oklch(from var(--link-color) calc(l - 0.22) c h);
--alt-link-color: #fff4dfcc;
--color-progressive: var(--link-color);
--color-progressive--hover: var(--link-color);
--color-progressive--active: var(--link-color);
--color-progressive--focus: #72a1ff;
--background-color-progressive: var(--color-progressive);
--background-color-progressive-subtle: #45838b;
--background-color-progressive-subtle--hover: oklch(from var(--color-progressive) calc(l - 0.42) c h);
--border-color-progressive--hover: oklch(from var(--color-progressive) calc(l - 0.42) c h);
--background-color-progressive--hover: oklch(from var(--color-progressive) calc(l - 0.3) c h);
--background-color-progressive--active: oklch(from var(--color-progressive) calc(l - 0.35) c h);
--border-color-progressive: oklch(from var(--color-progressive) calc(l - 0.45) c h);
--background-color-progressive-subtle--active: var(--background-color-progressive--active);
--border-color-progressive-subtle--active: var(--background-color-progressive--active);
/* semantic colors */
--color-content-added: #009c00;
--color-destructive: #e64835;
--color-destructive-subtle: #3e0000;
--background-color-error-subtle: var(--color-destructive-subtle);
--border-color-error: var(--color-destructive);
--color-destructive--visited--active: #eb8585;
--background-color-warning-subtle: #3e341a;
--border-color-warning: #ab7f2a;
--background-color-content-removed: #CC0000;
--background-color-content-added: #4ea8f3;
--background-color-success-subtle: var(--background-color-base-subtle);
--background-color-notice-subtle: var(--background-color-base-subtle);
}
/* Logo */
.mw-wiki-logo {
background-image: var(--wiki-logo);
background-size: contain;
filter: grayscale(100%);
}
/* Headings */
body .mw-body h1,
body .mw-body-content h2,
body .mw-page-title-main {
font-family: 'Exo', 'Open Sans', 'Retail Demo', 'PT Serif', 'Palatino', 'Georgia', serif !important;
font-weight: bold;
}
/* Discord button */
body #n-Discord a {
background-color: #004C8A;
border-color: #006BC2 #001e36 #001e36 #006BC2;
}
/* ===== Rotatable Model Viewer ===== */
.rotatable-model-wrapper {
display: block;
text-align: center;
}
.rotatable-model {
position: relative;
overflow: hidden;
cursor: grab;
background: #f8f9fa;
user-select: none;
-webkit-user-select: none;
touch-action: none;
}
.rotatable-model.rm-dragging {
cursor: grabbing;
}
/* 3D sprite strip */
.rotatable-model img.rm-strip {
position: absolute;
top: 0;
left: 0;
max-width: none !important;
max-height: none !important;
pointer-events: none;
-webkit-user-drag: none;
user-select: none;
}
/* 2D static image */
.rotatable-model img.rm-static {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
object-fit: cover;
pointer-events: none;
user-select: none;
display: none;
}
/* 2D mode */
.rotatable-model.rm-is-2d {
cursor: default;
}
.rotatable-model.rm-is-2d img.rm-strip {
display: none !important;
}
.rotatable-model.rm-is-2d img.rm-static {
display: block !important;
}
.rotatable-model.rm-is-2d .rm-rotate-icon,
.rotatable-model.rm-is-2d .rotatable-model-hint {
display: none !important;
}
.rotatable-model-wrapper.rm-is-2d .rotatable-model-nav {
visibility: hidden;
pointer-events: none;
}
/* ---- MODE TOGGLE — single button, top-right ---- */
.rm-mode-toggle {
position: absolute;
top: 2px;
right: 2px;
z-index: 10;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 8px;
cursor: pointer;
pointer-events: auto;
}
.rm-mode-toggle:hover {
background: rgba(30, 30, 30, 0.8);
transform: scale(1.05);
}
.rm-mode-toggle:active {
transform: scale(0.95);
}
/* Icon inside toggle button */
.rm-mode-icon {
width: 24px;
height: 24px;
object-fit: contain;
pointer-events: none;
filter: brightness(0) invert(1);
}
/* Text fallback */
.rm-mode-toggle {
font-size: 14px;
font-weight: 700;
color: #fff;
font-family: sans-serif;
}
/* ---- ROTATION ICON — bottom-right ---- */
.rm-rotate-icon {
position: absolute;
bottom: 2px;
right: 2px;
z-index: 5;
pointer-events: none;
opacity: 0.55;
transition: opacity 0.3s;
}
.rotatable-model:hover .rm-rotate-icon {
opacity: 0.85;
}
.rm-rotate-icon img {
width: 48px;
height: 48px;
object-fit: contain;
filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
/* Loading */
.rotatable-model-loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #72777d;
font-size: 0.9em;
z-index: 1;
}
/* ---- Nav buttons ---- */
.rotatable-model-nav {
display: flex;
justify-content: center;
gap: 4px;
margin-top: 4px;
transition: visibility 0.2s;
}
.rotatable-model-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
padding: 0 6px;
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 3px;
cursor: pointer;
font-size: 14px;
color: #202122;
user-select: none;
transition: background 0.1s;
}
.rotatable-model-btn:hover { background: #eaecf0; border-color: #72777d; }
.rotatable-model-btn:active { background: #c8ccd1; }
.rotatable-model-caption {
font-size: 0.9em;
color: #54595d;
margin-top: 4px;
}