MediaWiki:Timeless.css: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 14: Line 14:


#mw-content {
#mw-content {
background: var(--main-bg-color);
background: var(--base-1);
box-shadow: var(--main-box-shadow);
box-shadow: var(--box-shadow);
border: none;
border: none;
}
}
Line 21: Line 21:
@media screen and (min-width: 1100px) {
@media screen and (min-width: 1100px) {
#mw-content {
#mw-content {
border: 1px solid var(--main-border-color);
border: 1px solid var(--accent-2);
border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
border-top-width: 0;
border-top-width: 0;
Line 33: Line 33:
position: absolute;
position: absolute;
}
}
}
.client-darkmode #personal .dropdown {
color: #fff;
}
}


#personal .dropdown {
#personal .dropdown {
background:var(--element-bg-color);  
background:var(--base-2);  
border:1px solid var(--element-border-color-light);
border:1px solid var(--accent-2);
box-shadow: var(--box-shadow);
}
}
#personal .dropdown:before,  
#personal .dropdown:before,  
#personal .dropdown:after {  
#personal .dropdown:after {  
border-bottom-color: var(--element-bg-color);
border-bottom-color: var(--base-2);
}
 
.client-darkmode #personal .dropdown {
color: #fff;
}
}


Line 53: Line 54:
border-radius: 3px;
border-radius: 3px;
border: 1px solid #0c0d1c;
border: 1px solid #0c0d1c;
box-shadow: var(--main-box-shadow);
box-shadow: var(--box-shadow);
margin-top: 1em;
margin-top: 1em;
padding: 0;
padding: 0;
Line 60: Line 61:


.client-darkmode #p-logo {
.client-darkmode #p-logo {
border-color: var(--main-border-color);
border-color: var(--accent-2);
}
}


Line 77: Line 78:
#mw-site-navigation .sidebar-chunk,
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
#mw-related-navigation .sidebar-chunk {
background: var(--sidebar-bg-color);
background: var(--sidebar-base);
border: 1px solid var(--main-border-color);
border: 1px solid var(--accent-2);
box-shadow: var(--main-box-shadow);
box-shadow: var(--box-shadow);
border-radius: 3px;
border-radius: 3px;
}
}
Line 88: Line 89:
font-size: 16px;
font-size: 16px;
padding: .5em 0 !important;
padding: .5em 0 !important;
border-bottom-color: var(--element-border-color-light);
border-bottom-color: var(--accent-2);
}
}


Line 102: Line 103:
text-align: right;
text-align: right;
font-size: .95em;
font-size: .95em;
color: var(--main-link-color);
color: var(--link);
cursor: pointer;
cursor: pointer;
}
}


div#sidebar-collapsible-toggle:hover {
div#sidebar-collapsible-toggle:hover {
color: var(--main-link-color-hover);
color: var(--link-hover);
text-decoration: underline;
text-decoration: underline;
}
}
Line 117: Line 118:
     height: 15px;
     height: 15px;
     width: 15px;
     width: 15px;
     background: var(--main-text-color);
     background: var(--contrast-1);
     -webkit-mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
     -webkit-mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
     mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
     mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
Line 145: Line 146:
@media screen and (max-width: 850px) {
@media screen and (max-width: 850px) {
.sidebar-inner {
.sidebar-inner {
background: var(--element-bg-color);
background: var(--base-2);
border: 1px solid var(--element-border-color-light);
border: 1px solid var(--accent-2);
}
}
}
}
Line 161: Line 162:
#mw-site-navigation .sidebar-inner,
#mw-site-navigation .sidebar-inner,
#mw-related-navigation .sidebar-inner {
#mw-related-navigation .sidebar-inner {
background: var(--element-bg-color);
background: var(--base-2);
border: 1px solid var(--element-border-color-light);
border: 1px solid var(--accent-2);
}
}


#mw-site-navigation .sidebar-chunk h2 span:before,
#mw-site-navigation .sidebar-chunk h2 span:before,
#mw-site-navigation .sidebar-chunk h2 span:after {
#mw-site-navigation .sidebar-chunk h2 span:after {
border-bottom-color: var(--element-bg-color);
border-bottom-color: var(--base-2);
}
}


#mw-header-nav-hack {  
#mw-header-nav-hack {  
background:var(--main-bg-color);  
background:var(--base-1);  
border-color:var(--element-border-color);
border-color:var(--accent-1);
}
}
}
}
Line 179: Line 180:


.client-darkmode .mw-footer-container {
.client-darkmode .mw-footer-container {
color: var(--main-text-color);
color: var(--contrast-1);
background: var(--element-bg-color);
background: var(--base-1);
}
}


.client-darkmode .mw-footer-container a,
.client-darkmode .mw-footer-container a,
.client-darkmode .mw-footer-container a:visited {
.client-darkmode .mw-footer-container a:visited {
color: var(--main-link-color);
color: var(--link);
}
}


.client-darkmode .mw-footer-container a:hover,
.client-darkmode .mw-footer-container a:hover,
.client-darkmode .mw-footer-container a:visited:hover {
.client-darkmode .mw-footer-container a:visited:hover {
color: var(--main-link-color-hover);
color: var(--link-hover);
}
}

Revision as of 03:48, 15 February 2023

/* --- MAIN --- */

#mw-content-container {
	background: url(https://idleon.info/wiki/images/9/9f/Background_Beach.png) no-repeat center center fixed;
	background-size: cover;
}

.client-darkmode #mw-content-container {
	filter: none;
	background: url(https://idleon.info/wiki/images/2/24/NightDesertBG.png) no-repeat center center fixed;
	background: url(https://idleon.wiki/wiki/images/2/28/NightDesertBG-inverted-rotate180.png) no-repeat center center fixed;
	background-size: cover;
}

#mw-content {
	background: var(--base-1);
	box-shadow: var(--box-shadow);
	border: none;
}

@media screen and (min-width: 1100px) {
	#mw-content {
		border: 1px solid var(--accent-2);
		border-radius: 0 0 3px 3px;
		border-top-width: 0;
	}
}

/* --- TOP BAR --- */

@media screen and (max-width: 550px) {
	#p-logo-text {
		position: absolute;
	}
}

#personal .dropdown {
	background:var(--base-2); 
	border:1px solid var(--accent-2);
	box-shadow: var(--box-shadow);
}
#personal .dropdown:before, 
#personal .dropdown:after { 
	border-bottom-color: var(--base-2);
}

.client-darkmode #personal .dropdown {
	color: #fff;
}

/* --- SIDEBAR LOGO --- */

#p-logo {
	border-radius: 3px;
	border: 1px solid #0c0d1c;
	box-shadow: var(--box-shadow);
	margin-top: 1em;
	padding: 0;
	image-rendering: -webkit-optimize-contrast;
}

.client-darkmode #p-logo {
	border-color: var(--accent-2);
}

@media screen and (min-width: 851px) {
	.mw-wiki-logo.fallback {
		width: 13em;
		height: 13em;
		background-size: cover;
		margin: 0;
		max-width: 100%;
	}
}

/* --- SIDEBAR NAV --- */

#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
	background: var(--sidebar-base);
	border: 1px solid var(--accent-2);
	box-shadow: var(--box-shadow);
	border-radius: 3px;
}

#mw-site-navigation .sidebar-chunk h3,
#mw-related-navigation .sidebar-chunk h3 {
	font-family: 'Idleon';
	font-size: 16px;
	padding: .5em 0 !important;
	border-bottom-color: var(--accent-2);
}

#mw-site-navigation .sidebar-chunk h3:empty {
	display: none
}

.sidebar-collapsible {
	cursor: pointer;
}

div#sidebar-collapsible-toggle {
	text-align: right;
	font-size: .95em;
	color: var(--link);
	cursor: pointer;
}

div#sidebar-collapsible-toggle:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

.sidebar-collapsible:after {
	float: right;
	content: "";
    display: block;
    height: 15px;
    width: 15px;
    background: var(--contrast-1);
    -webkit-mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
    mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
    -webkit-mask-size: cover;
    mask-size: cover;
}
.client-darkmode .sidebar-collapsible:after {
	background: #fff;
}

.sidebar-collapsible.open:after {
    transform: rotate(-90deg);
}

.sidebar-collapsible.closed+.sidebar-collapsible-content {
	display: none;
}

.sidebar-collapsible.open+.sidebar-collapsible-content {
	display: block;
}

.client-darkmode .sidebar-inner {
	color: #fff;
}

@media screen and (max-width: 850px) {
	.sidebar-inner {
		background: var(--base-2);
		border: 1px solid var(--accent-2);
	}
}

@media screen and (min-width: 851px) and (max-width: 1099px) {

	#mw-site-navigation .sidebar-chunk,
	#mw-related-navigation .sidebar-chunk {
		background: transparent;
		box-shadow: none;
		border: none;
	}

	#mw-site-navigation .sidebar-inner,
	#mw-related-navigation .sidebar-inner {
		background: var(--base-2);
		border: 1px solid var(--accent-2);
	}

	#mw-site-navigation .sidebar-chunk h2 span:before,
	#mw-site-navigation .sidebar-chunk h2 span:after {
		border-bottom-color: var(--base-2);
	}

	#mw-header-nav-hack { 
		background:var(--base-1); 
		border-color:var(--accent-1);
	}
}

/* --- FOOTER --- */

.client-darkmode .mw-footer-container {
	color: var(--contrast-1);
	background: var(--base-1);
}

.client-darkmode .mw-footer-container a,
.client-darkmode .mw-footer-container a:visited {
	color: var(--link);
}

.client-darkmode .mw-footer-container a:hover,
.client-darkmode .mw-footer-container a:visited:hover {
	color: var(--link-hover);
}