MediaWiki:Timeless.css: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
m (Adjusted the color bar at the top to match the content width.)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* --- MAIN --- */
/* ------ TIMELESS ------ */


#mw-content-container {
.skin-timeless {
background: url(https://idleon.info/wiki/images/9/9f/Background_Beach.png) no-repeat center center fixed;
    background: var(--base-0);
background-size: cover;
}
 
#mw-header-container{
background: var(--base-0);
    color: var(--contrast-1);  
}
}


.client-darkmode #mw-content-container {
#mw-content-container {
filter: none;
    background: var(--page-background);
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 {
#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: 0 solid var(--contrast-3);
}
}


@media screen and (min-width: 1100px) {
@media screen and (min-width: 1100px) {
#mw-content {
    #mw-content {
border: 1px solid var(--main-border-color);
        border-width: 0 1px 1px;
border-radius: 0 0 3px 3px;
        border-radius: 0 0 3px 3px;
border-top-width: 0;
    }
}
}
 
@media screen and (max-width: 1099px) {
    #mw-content-block {
        background: var(--base-1);
    }
}
 
#menus-cover {
    background: var(--modal-overlay);
    opacity: 1;
}
 
/* --- GENERAL --- */
 
.mw-body h2,
.mw-body .mw-parser-output h1:after,
.mw-body .mw-parser-output h2:after {
border-color: var(--accent-2);
}
 
@media screen and (min-width:851px) {
.color-middle-container,
    .ts-inner {
        max-width: 118rem;
    }
}
}


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


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


.client-darkmode #personal .dropdown {
#simpleSearch #searchButton,
color: #fff;
#simpleSearch #mw-searchButton{
}
    height: 2.1em;
 
    opacity: .6;
#personal .dropdown {
background:var(--element-bg-color);
border:1px solid var(--element-border-color-light);
}
#personal .dropdown:before,
#personal .dropdown:after {
border-bottom-color: var(--element-bg-color);
}
}


Line 52: Line 71:
#p-logo {
#p-logo {
border-radius: 3px;
border-radius: 3px;
border: 1px solid #0c0d1c;
border: 1px solid #191924;
box-shadow: var(--main-box-shadow);
box-shadow: var(--box-shadow);
margin-top: 1em;
margin-top: 1em;
padding: 0;
padding: 0;
image-rendering: -webkit-optimize-contrast;
image-rendering: -webkit-optimize-contrast;
}
overflow: hidden;
 
.client-darkmode #p-logo {
border-color: var(--main-border-color);
}
}


Line 73: Line 89:
}
}


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


#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: 0;
border: 1px solid var(--main-border-color);
    border: 0;
box-shadow: var(--main-box-shadow);
    padding: 0;
border-radius: 3px;
}
 
#mw-site-navigation .sidebar-inner,
#mw-related-navigation .sidebar-inner,
#personal .dropdown {
    background: var(--base-2);
    border: 1px solid var(--contrast-3);
    box-shadow: var(--box-shadow);
    border-radius: 3px;
    padding: 1.5em 1.5em 0;
    color: var(--contrast-1);
}
 
@media screen and (min-width: 1100px) {
    #mw-site-navigation .sidebar-inner,
    #mw-related-navigation .sidebar-inner {
        background: var(--sidebar-base);
    }
}
 
#mw-site-navigation .sidebar-inner .mw-portlet,
#mw-related-navigation .sidebar-inner .mw-portlet,
#personal .dropdown .mw-portlet {
    margin-bottom: 1.6em;
}
 
#mw-site-navigation .sidebar-inner .mw-portlet-body,
#mw-related-navigation .sidebar-inner .mw-portlet-body,
#personal .dropdown .mw-portlet-body {
    margin-bottom: 0;
}
}


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


Line 94: Line 140:
display: none
display: none
}
}
#personal .dropdown h3 {
    margin: 0 0 0.5em;
    border-bottom-color: var(--accent-2);
}
#personal .dropdown h3 b {
    font-family: 'Idleon';
    font-size: 16px;
    font-weight: 400;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}
#mw-site-navigation h2,
#mw-related-navigation h2,
#personal h2 {
    font-family: 'Idleon';
    font-weight: normal;
    font-size: 18px;
    color: #000;
    filter: var(--filter);
}
#personal .dropdown:before,
#page-tools .sidebar-inner:before {
border-bottom-color:var(--contrast-3);
}
#personal .dropdown:after,
#page-tools .sidebar-inner:after {
border-bottom-color:var(--base-2);
}
@media screen and (min-width: 851px) and (max-width: 1099px) {
   
#mw-site-navigation .sidebar-chunk h2 span:before,
    #mw-related-navigation .sidebar-chunk h2 span:before {
border-bottom-color: var(--contrast-3);
}
   
    #mw-site-navigation .sidebar-chunk h2 span:after,
    #mw-related-navigation .sidebar-chunk h2 span:after {
        border-bottom-color: var(--base-2);
    }
#mw-header-nav-hack {
background:var(--base-1);
border-color:var(--base-0);
        box-shadow: var(--box-shadow);
}
}
/* --- SIDEBAR COLLAPSIBLE --- */


.sidebar-collapsible {
.sidebar-collapsible {
Line 102: Line 207:
text-align: right;
text-align: right;
font-size: .95em;
font-size: .95em;
color: var(--main-link-color);
color: var(--link);
cursor: pointer;
cursor: pointer;
margin: -0.5em 0 1em;
}
}


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;
}
}


.sidebar-collapsible:after {
.sidebar-collapsible:after {
float: right;
    float: right;
content: "";
    content: "";
     display: block;
     display: block;
     height: 15px;
     height: 15px;
     width: 15px;
     width: 15px;
     background: var(--main-text-color);
     background: transparent url(/wiki/resources/lib/ooui/themes/wikimediaui/images/icons/expand.svg) center center / cover;
    -webkit-mask-image: url(/wiki/load.php?modules=oojs-ui.styles.icons-movement&image=expand&format=rasterized&skin=timeless&version=1c8vu);
     filter: var(--filter);
    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;
}
}


Line 139: Line 239:
}
}


.client-darkmode .sidebar-inner {
/* --- FOOTER --- */
color: #fff;
 
.mw-footer-container {
    color: var(--contrast-1);
}
}


@media screen and (max-width: 850px) {
.mw-footer-container a,
.sidebar-inner {
.mw-footer-container a:visited {
background: var(--element-bg-color);
    color: var(--link);
border: 1px solid var(--element-border-color-light);
}
}
}


@media screen and (min-width: 851px) and (max-width: 1099px) {
.mw-footer-container a:hover,
.mw-footer-container a:visited:hover {
    color: var(--link-hover);
}


#mw-site-navigation .sidebar-chunk,
/* --- TOOL ICONS --- */
#mw-related-navigation .sidebar-chunk {
.skin-timeless .mw-portlet.tools-inline li.selected a {
background: transparent;
    color: var(--contrast-1);
box-shadow: none;
}
border: none;
.skin-timeless .mw-portlet.tools-inline a,
}
.skin-timeless #mw-indicator-mw-helplink a,
 
.skin-timeless .mw-editsection,
#mw-site-navigation .sidebar-inner,
.client-js .skin-timeless .mw-portlet.tools-inline a,
#mw-related-navigation .sidebar-inner {
.client-js .skin-timeless #mw-indicator-mw-helplink a,
background: var(--element-bg-color);
.client-js .skin-timeless .mw-editsection{
border: 1px solid var(--element-border-color-light);
    background: transparent;
}
    position: relative;
 
}
#mw-site-navigation .sidebar-chunk h2 span:before,
.skin-timeless .tools-inline li:hover{
#mw-site-navigation .sidebar-chunk h2 span:after {
    border-bottom-color: var(--contrast-3);
border-bottom-color: var(--element-bg-color);
}
}
.skin-timeless .mw-portlet.tools-inline a:before,
 
.skin-timeless #mw-indicator-mw-helplink a:before,
#mw-header-nav-hack {  
.skin-timeless .mw-editsection:before {
background:var(--main-bg-color);  
    content: "";
border-color:var(--element-border-color);
    display: block;
}
    height: 20px;
    width: 20px;
    position: absolute;
    top: 0;
    left: 0;
    filter: var(--filter);
}
.skin-timeless .mw-editsection:before {
    top: unset;
    bottom: 0;
}
.skin-timeless .mw-portlet.tools-inline li a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/page-misc-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-ve-edit a:before,
.skin-timeless .mw-editsection:before {
    background-image: url(/wiki/skins/Timeless/resources/images/pencil-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-watch a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/star.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-unwatch a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/star-filled.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-edit a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/pencil-source-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-history a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/clock-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-talk a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/talk-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #t-contributions a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/puzzle-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-addsection a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/plus-grey.svg?f5373);
}
.skin-timeless .mw-portlet.tools-inline #ca-viewsource a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/brackets-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-view a:before,
.skin-timeless .mw-portlet.tools-inline #ca-view-foreign a:before{
    background-image: url(/wiki/skins/Timeless/resources/images/eyeball-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline li[id^='ca-nstab-'] a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/page-grey.svg);
}
.skin-timeless #mw-indicator-mw-helplink a:before {
    background-image: url(/wiki/resources/src/mediawiki.helplink/images/helpNotice.svg);
}
}
 
.skin-timeless #ca-more span {
/* --- FOOTER --- */
    background-image: url(/wiki/skins/Timeless/resources/images/gear-grey.svg);
 
.client-darkmode .mw-footer-container {
color: var(--main-text-color);
background: var(--element-bg-color);
}
}
 
.skin-timeless #ca-more span,
.client-darkmode .mw-footer-container a,
.skin-timeless #ca-more:after {
.client-darkmode .mw-footer-container a:visited {
    filter: var(--filter);
color: var(--main-link-color);
}
}
 
.skin-timeless #mwe-lastmodified {
.client-darkmode .mw-footer-container a:hover,
    display: inline;
.client-darkmode .mw-footer-container a:visited:hover {
color: var(--main-link-color-hover);
}
}

Latest revision as of 04:49, 6 August 2024

/* ------ TIMELESS ------ */

.skin-timeless {
    background: var(--base-0);
} 

#mw-header-container{
	background: var(--base-0);
    color: var(--contrast-1); 
}

#mw-content-container {
    background: var(--page-background);
}

#mw-content {
    background: var(--base-1);
    box-shadow: var(--box-shadow);
    border: 0 solid var(--contrast-3);
}

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

@media screen and (max-width: 1099px) {
    #mw-content-block {
        background: var(--base-1);
    }
}

#menus-cover { 
    background: var(--modal-overlay); 
    opacity: 1;
}

/* --- GENERAL --- */

.mw-body h2,
.mw-body .mw-parser-output h1:after, 
.mw-body .mw-parser-output h2:after {
	border-color: var(--accent-2);
}

@media screen and (min-width:851px) {
	.color-middle-container,
    .ts-inner {
        max-width: 118rem;
    }
}

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

@media screen and (max-width: 850px) {
	#p-logo-text {
		top: 1em;
	}
}

#simpleSearch #searchButton,
#simpleSearch #mw-searchButton{
    height: 2.1em;
    opacity: .6;
}

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

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

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

/* --- NAVIGATION --- */

#mw-site-navigation .sidebar-chunk, 
#mw-related-navigation .sidebar-chunk {
    background: 0;
    border: 0;
    padding: 0;
}

#mw-site-navigation .sidebar-inner,
#mw-related-navigation .sidebar-inner,
#personal .dropdown {
    background: var(--base-2);
    border: 1px solid var(--contrast-3);
    box-shadow: var(--box-shadow);
    border-radius: 3px;
    padding: 1.5em 1.5em 0;
    color: var(--contrast-1);
}

@media screen and (min-width: 1100px) {
    #mw-site-navigation .sidebar-inner,
    #mw-related-navigation .sidebar-inner {
        background: var(--sidebar-base);
    }
}

#mw-site-navigation .sidebar-inner .mw-portlet,
#mw-related-navigation .sidebar-inner .mw-portlet,
#personal .dropdown .mw-portlet {
    margin-bottom: 1.6em;
}

#mw-site-navigation .sidebar-inner .mw-portlet-body, 
#mw-related-navigation .sidebar-inner .mw-portlet-body,
#personal .dropdown .mw-portlet-body {
    margin-bottom: 0;
}

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

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

#personal .dropdown h3 {
    margin: 0 0 0.5em;
    border-bottom-color: var(--accent-2);
}

#personal .dropdown h3 b {
    font-family: 'Idleon';
    font-size: 16px;
    font-weight: 400;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mw-site-navigation h2, 
#mw-related-navigation h2,
#personal h2 {
    font-family: 'Idleon';
    font-weight: normal;
    font-size: 18px;
    color: #000;
    filter: var(--filter);
}

#personal .dropdown:before, 
#page-tools .sidebar-inner:before {
	border-bottom-color:var(--contrast-3);
}

#personal .dropdown:after,
#page-tools .sidebar-inner:after {
	border-bottom-color:var(--base-2);
}

@media screen and (min-width: 851px) and (max-width: 1099px) {
    
	#mw-site-navigation .sidebar-chunk h2 span:before,
    #mw-related-navigation .sidebar-chunk h2 span:before {
		border-bottom-color: var(--contrast-3);
	}
    
    #mw-site-navigation .sidebar-chunk h2 span:after,
    #mw-related-navigation .sidebar-chunk h2 span:after {
        border-bottom-color: var(--base-2);
    }

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


/* --- SIDEBAR COLLAPSIBLE --- */

.sidebar-collapsible {
	cursor: pointer;
}

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

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: transparent url(/wiki/resources/lib/ooui/themes/wikimediaui/images/icons/expand.svg) center center / cover;
    filter: var(--filter);
}

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

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

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

/* --- FOOTER --- */

.mw-footer-container {
    color: var(--contrast-1);
}

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

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

/* --- TOOL ICONS --- */
.skin-timeless .mw-portlet.tools-inline li.selected a {
    color: var(--contrast-1);
}
.skin-timeless .mw-portlet.tools-inline a,
.skin-timeless #mw-indicator-mw-helplink a,
.skin-timeless .mw-editsection,
.client-js .skin-timeless .mw-portlet.tools-inline a,
.client-js .skin-timeless #mw-indicator-mw-helplink a,
.client-js .skin-timeless .mw-editsection{
    background: transparent;
    position: relative;
}
.skin-timeless .tools-inline li:hover{
    border-bottom-color: var(--contrast-3);
}
.skin-timeless .mw-portlet.tools-inline a:before,
.skin-timeless #mw-indicator-mw-helplink a:before,
.skin-timeless .mw-editsection:before {
    content: "";
    display: block;
    height: 20px;
    width: 20px;
    position: absolute;
    top: 0;
    left: 0;
    filter: var(--filter);
}
.skin-timeless .mw-editsection:before {
    top: unset;
    bottom: 0;
}
.skin-timeless .mw-portlet.tools-inline li a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/page-misc-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-ve-edit a:before,
.skin-timeless .mw-editsection:before {
    background-image: url(/wiki/skins/Timeless/resources/images/pencil-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-watch a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/star.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-unwatch a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/star-filled.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-edit a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/pencil-source-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-history a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/clock-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-talk a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/talk-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #t-contributions a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/puzzle-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-addsection a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/plus-grey.svg?f5373);
}
.skin-timeless .mw-portlet.tools-inline #ca-viewsource a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/brackets-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline #ca-view a:before,
.skin-timeless .mw-portlet.tools-inline #ca-view-foreign a:before{
    background-image: url(/wiki/skins/Timeless/resources/images/eyeball-grey.svg);
}
.skin-timeless .mw-portlet.tools-inline li[id^='ca-nstab-'] a:before {
    background-image: url(/wiki/skins/Timeless/resources/images/page-grey.svg);
}
.skin-timeless #mw-indicator-mw-helplink a:before {
    background-image: url(/wiki/resources/src/mediawiki.helplink/images/helpNotice.svg);
}
.skin-timeless #ca-more span {
    background-image: url(/wiki/skins/Timeless/resources/images/gear-grey.svg);
}
.skin-timeless #ca-more span,
.skin-timeless #ca-more:after {
    filter: var(--filter);
}
.skin-timeless #mwe-lastmodified {
    display: inline;
}