MediaWiki:Common.css: Difference between revisions
From Ephinea PSO Wiki
No edit summary |
No edit summary |
||
Line 117: | Line 117: | ||
/* Homepage Buttons effects (main content grid) */ | /* Homepage Buttons effects (main content grid) */ | ||
.home-tile { | .home-tile { | ||
position: relative; | position: relative; | ||
Line 167: | Line 168: | ||
.home-tile:hover .home-tile-gold img { | .home-tile:hover .home-tile-gold img { | ||
opacity: 1; | opacity: 1; | ||
} | |||
/** Popular pages **/ | |||
.popular-pages ul { | |||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
grid-gap: 0.6em; | |||
margin: 1em 0 0.7em 0; | |||
} | |||
@media screen and (max-width: 1000px) { | |||
.popular-pages ul { | |||
grid-template-columns: repeat(2, 1fr); | |||
}} | |||
.mp-popular-page-light { | |||
display: flex; | |||
align-items: center; | |||
list-style: none; | |||
background-color: #B32424; | |||
} | |||
.mp-popular-page-light a { | |||
flex: 1; | |||
display: block; | |||
color:#DB8200; | |||
font-weight: bold; | |||
text-align: center; | |||
text-decoration: none; | |||
padding: 0.7em 1em; | |||
} | |||
.mp-popular-page-light:hover { | |||
filter: brightness(115%); | |||
transition: 0.2s; | |||
} | } | ||
Revision as of 21:35, 13 October 2022
/* CSS placed here will be applied to all skins */ @import url("/index.php?title=MediaWiki:StickyTableHeaders.css&action=raw&ctype=text/css"); @import url("/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css"); /* Main page related */ /** Header related stuff **/ .mainpage-header { display: flex; margin: 0em 1.75em 1.5em; } .mainpage-header .header-intro { flex: 2; } .mainpage-header .header-intro h1 { font-size: 2.5em; font-weight: bold; border: none; margin: 0 0 0.15em; } .mainpage-header .header-intro p { font-size: 1.1em; line-height: 1.7em; } .mainpage-header .header-stats { flex: 1; display: flex; justify-content: center; align-items: center; margin-top: -1em; } .mainpage-header .header-stats ul { list-style: none; } .mw-body .mw-parser-output h1.buttontext::after, .mw-body .mw-parser-output h2.buttontext::after { border:none; } /** Mainpage Body **/ .mainpage-body { display: flex; flex-flow: row wrap; } .mainpage-body .tile { padding-left: 1.75em; padding-right: 1.75em; max-width: 100%; } .mainpage-body .tile-row { width:100%; margin-bottom: 0.9rem; } /** Mainpage left **/ .mainpage-left { flex: 2; display: flex; flex-flow: column wrap; margin-right: 0.9rem; } .mainpage-left > * { margin: 0 0 0.9rem; } .mainpage-popular .tile-halves { display: flex; } .mainpage-contents .tile-below { flex: 1; margin-right: 0.9rem; } .mainpage-contents .tile-below:last-child { margin-right: 0; } .tile-below { display: flex; flex-flow: row wrap; border: 1px solid var(--tile-border-color); background: var(--tile-background-color); box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); } .tile-below h2 { font-size: 1.4em; font-weight: bold; border: none; margin: 0 0 0.4em; } .tile-below .byline + h2 { margin-top: -0.5em; } .tile-popular { width: 100%; padding: 1.3rem 1.5rem 0.6rem; background-color: #4c4c4c; border: 1px solid #666; } /* Homepage Buttons effects (main content grid) */ .home-tile { position: relative; display: inline-block; height: 105px; width: 105px; margin: 1px; overflow: hidden; background: #333; } .home-tile img { position: absolute; width: 105px; height: 105px; transition: 0.3s; } .home-tile .home-tile-silver img { top: 0; z-index: 1; } .home-tile .home-tile-gold img { bottom: 0; background: radial-gradient(circle at 50% 75%, #727272 0, #151515 50%); z-index: 2; opacity: 0; } .home-tile .home-tile-link { position: absolute; bottom: 0; width: 100%; background-color: rgba(179, 36, 36, 0.9); text-align: center; text-transform: uppercase; color: #DB8200; text-shadow: 0 0 2px; font-size: 12px; z-index: 4; font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, sans-serif; } .home-tile .home-tile-link a { color: #DB8200; text-decoration: none; } .home-tile:hover .home-tile-gold img { opacity: 1; } /** Popular pages **/ .popular-pages ul { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 0.6em; margin: 1em 0 0.7em 0; } @media screen and (max-width: 1000px) { .popular-pages ul { grid-template-columns: repeat(2, 1fr); }} .mp-popular-page-light { display: flex; align-items: center; list-style: none; background-color: #B32424; } .mp-popular-page-light a { flex: 1; display: block; color:#DB8200; font-weight: bold; text-align: center; text-decoration: none; padding: 0.7em 1em; } .mp-popular-page-light:hover { filter: brightness(115%); transition: 0.2s; } /** Misc (I forgot what this is for) **/ @media only screen and (min-width: 100rem) { .mainpage-header .header-intro { margin-right: 2em; } .mainpage-contents .line-break { display: none; } .themainpage { width:82rem; margin: 0 auto; } } @media only screen and (min-width: 66rem) and (max-width: 72.999rem) { .mainpage-header .header-stats, .mainpage-articleoftheweek { display: none; } } @media only screen and (min-width: 73rem) and (max-width: 99.999rem) { .mainpage-header .header-stats, .mainpage-contents .line-break { display: none; } } @media only screen and (max-width: 65.999rem) { .mainpage-contents .tile-halves:nth-child(1), .mainpage-contents .tile-halves:nth-child(2), .mainpage-contents .tile-halves:nth-child(3) { margin-bottom: 0.9rem; } .mainpage-contents .line-break { width: 100%; } .mainpage-header .header-stats, .mainpage-articleoftheweek { display: none; } } .editOptions { color:#eee; } .wikitable tr:hover { background-color:#272C33; } .jquery-tablesorter > thead, .mw-sticky-header > thead { position: -webkit-sticky; position: sticky; top: 0; } @media screen and (max-width: 1099px) and (min-width: 851px) { .skin-timeless .jquery-tablesorter > thead, .skin-timeless .mw-sticky-header > thead { top: 3.5em; } } @media screen and (min-width: 1100px) { .skin-timeless .jquery-tablesorter > thead, .skin-timeless .mw-sticky-header > thead { top: 3.5em; } } .jquery-tablesorter > tfoot, .mw-sticky-header > tfoot { position: -webkit-sticky; position: sticky; bottom: 0; } .client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable), .jquery-tablesorter th.headerSort { background-position-x: center; background-position-y: bottom 3px; padding-bottom:12px; padding-right:0.5em; } ul#filetoc, .toc, .toccolours, .mw-warning { background: #323942; border: solid 1px #465160; } @keyframes unseen-fadeout-to-unread { 0% { background-color: none; } 100% { background-color: none; } } @keyframes olga2 { 0% { color: #ffae35; } 25% { color: #f8a531; } 50% { color: #bb5313; } 75% { color: #f19b23; } 100% { color: #ffae35; } } code, pre, .mw-code { color: #eee; background: #323942; } .talkbox { width: 65%; margin-left: auto; margin-right: auto; margin-top: 0.5em; margin-bottom: 0.5em; border: none; color:#eee; background-color: #232A35; } .talkbox .th { background-color: #465160; color:#eee; } .diff-addedline .diffchange { color: #000; } .diff-deletedline .diffchange { color: #000; } .diff-context, #pagehistory li.selected { background-color: #323942; color: #eee; } .mw-echo-ui-notificationItemWidget-unread:hover { background-color: rgba(41,98,204,0.1); } .mw-echo-ui-notificationItemWidget-content-actions-timestamp, .oo-ui-buttonElement.oo-ui-labelElement > input.oo-ui-buttonElement-button, .oo-ui-buttonElement.oo-ui-labelElement > .oo-ui-buttonElement-button > .oo-ui-labelElement-label, .mw-echo-ui-notificationItemWidget-content-message-header { color:#eee; } .mw-echo-ui-notificationsInboxWidget-toolbarWrapper { background: none; box-shadow: none; } .mw-echo-ui-notificationItemWidget:last-child, .mw-echo-ui-notificationBadgeButtonPopupWidget-popup > .oo-ui-popupWidget-popup > .oo-ui-popupWidget-body > .mw-echo-ui-notificationsListWidget > .mw-echo-ui-notificationItemWidget, .mw-echo-ui-notificationBadgeButtonPopupWidget-popup > .oo-ui-popupWidget-popup > .oo-ui-popupWidget-body > .mw-echo-ui-notificationsListWidget > .mw-echo-ui-notificationItemWidget:last-child, .mw-echo-ui-pageNotificationsOptionWidget.oo-ui-optionWidget-selected { background-color: #232A35; } .mw-echo-ui-placeholderItemWidget { background-color: #2C343F; } .mw-body li.gallerybox div.thumb { background: none; border: none; } #p-logo-text a, #content h1, #content h2, #content h3, #content h4, #content h5 { font-family: "Segoe UI"; line-height: 1.3; } /* Message Box */ .messagebox { width: 65%; margin-left: auto; margin-right: auto; margin-top: 0.5em; margin-bottom: 0.5em; border: none; border-left: 15px solid #3366CC; background-color: #232A35; color:#eee; } .messagebox, .errorbox, .warningbox, .successbox { padding: 2px 12px; } /* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. Slightly modified because <div> sucks. */ table.NavFrame { border: 1px solid #aaa; text-align: center; font-size: 75%; width: 100%; } table.NavFrame + table.NavFrame { border-top-style: none; border-top-style: hidden; } table.NavPic { background-color: #fff; margin: 0; padding: 2px; /* @noflip */ float: left; } table.NavFrame th.NavHead { font-size: larger; text-align: center; background-color: #ccc; position: relative; padding-right: 0; } table.NavFrame th { background-color: #ccc; text-align: right; padding-right: 1%; width: 7%; } table.NavFrame td.NavContent, table.NavFrame td { text-align: left; } table.NavEnd { margin: 0; padding: 0; line-height: 1px; clear: both; } a.NavToggle { position: absolute; top: 0; /* @noflip */ right: 3px; font-weight: normal; font-size: 90%; } .client-js .NavFrame.collapsed > td { display: none; } .psoBackground { background: repeating-linear-gradient(to bottom, #003431, #006675 1px, #003431 2px, #003431 6px); } .psoStyle { border: 1px solid #000; box-shadow: inset 0 0 0 1px #9aaaaa; border-radius: 10px; font-size: 95%; color: white; padding: 0; } .psoHeader { background-color: rgba(0, 0, 0, 0.2); font-size: larger; padding: 1px 8px; } th.smallClassHeader { border: 1px solid black; box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3); mix-blend-mode: hard-light; padding: 4px; flex: 1; text-align: center; font-size: x-small; } .uncoloredClass { color: black; border: 1px solid black; box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3); mix-blend-mode: hard-light; padding: 4px; flex: 1; text-align: center; font-size: x-small; background-color: #eee; } .classCannotUse { color: black; border: 1px solid black; box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3); mix-blend-mode: hard-light; padding: 4px; flex: 1; background-color: rgba(255, 158, 77, 0.88); text-align: center; } .classCanUse { color: black; border: 1px solid black; box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3); mix-blend-mode: hard-light; padding: 4px; flex: 1; background-color: rgba(221, 255, 83, 0.64); text-align: center; } .more_info { border-bottom: 1px dotted; position: relative; } .more_info .title { position: absolute; top: 20px; background: silver; padding: 4px; left: 0; white-space: nowrap; color:black; } .topLeft { border-radius: 10px 0 0 0; } .topRight { border-radius: 0 10px 0 0; } .bottomLeft { border-radius: 0 0 0 10px; } .bottomRight { border-radius: 0 0 10px 0; } .unequippable { color: #909090; } .normal { color: white; } .attributes { color: #61e853; } .untekked { color: #00fffc; } .rare { color: #ffea00; } .es { color: #fe3c28; } .native { color: #a5ffaa; } .abeast { color: #f5ff99; } .machine { color: #ff958b; } .dark { color: #e1a9ff; } .olga2 { animation-name: olga2; animation-duration: 3.3s; animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: forwards; } .noPadding td { padding: 0px; }