Call of Duty Wiki
Call of Duty Wiki
mNie podano opisu zmian
mNie podano opisu zmian
Linia 8: Linia 8:
 
--sg-portal-border-color: #252525;
 
--sg-portal-border-color: #252525;
 
--article-table-border: #808080;
 
--article-table-border: #808080;
--page-background-opacity: 0.97;
+
--page-background-opacity: 0.95;
 
}
 
}
   

Wersja z 15:33, 5 lis 2021

@import url("/pl/load.php?mode=articles&articles=MediaWiki:Kolory.css|MediaWiki:Common.css|MediaWiki:CGN.css|MediaWiki:WikiActivity.css&only=styles");

/* Globalne zmienne jasnej skórki */

body.theme-fandomdesktop-light {
	--table-background: #b9ab90;
	--infobox-background: #b9ab90;
	--sg-portal-border-color: #252525;
	--article-table-border: #808080;
	--page-background-opacity: 0.95;
}

/* Globalne zmienne ciemnej skórki */

body.theme-fandomdesktop-dark {
	--table-background: #1d1d22;
	--infobox-background: #1d1d22;
	--sg-portal-border-color: #606060;
	--article-table-border: #303030;
	--page-background-opacity: 0.97;
}

/* Tło obrazkowe */
/*
body {
    background-image: url("https://static.wikia.nocookie.net/callofduty/images/5/50/Wiki-background/revision/latest?cb=20201031181555&path-prefix=pl");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
*/

/* Nagłówek */

.fandom-community-header__background  {
    /* background-image: linear-gradient(to bottom,var(--theme-accent-color) 0%,transparent); */
}

.fandom-community-header__background::before  {
    content: none;
}

.fandom-community-header a,
.fandom-community-header .wds-dropdown,
.fandom-community-header .wds-button,
.page-counter {
	color: var(--theme-sticky-nav-text-color);
}

.fandom-community-header a:hover,
.fandom-community-header a:active,
.fandom-community-header a:focus,
.fandom-community-header .wds-button.wds-is-secondary.wds-is-active,
.fandom-community-header .wds-button.wds-is-secondary:active,
.fandom-community-header .wds-button.wds-is-secondary:focus,
.fandom-community-header .wds-button.wds-is-secondary:hover {
	color: var(--theme-sticky-nav-text-color--hover);
}

/* Opcjonalna przeźroczystośc tła */
.page__main {
    background-color: rgba(var(--theme-page-background-color--rgb), var(--page-background-opacity));
}

.page__right-rail {
    opacity: var(--page-background-opacity);
}

/* Panele Strony głównej i Moduły */
.main-page-tag-rcs .sg-portal {
	margin-right: 5px;
}

.sg-portal {
	border: 1px solid var(--sg-portal-border-color);
	margin: 2px;
	margin-bottom: 12px;
	position: relative;
	padding: 0.5rem 1rem;
	background: rgba(0,0,0,0.1);
}

.sg-portal::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    bottom: -3px;
    right: -3px;
    border: 1px solid var(--sg-portal-border-color);
    box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.25);
    z-index: auto;
}

.sg-portal .sg-portal-header
{
	color: white;
	font-size: 1.7rem;
	text-align: center;
	margin-top: 3px;
	margin-bottom: 15px;
}

.sg-portal-content {
	position: relative;
}

.sg-portal-content.sg-portal-center {
	text-align: center;
}

.sg-portal-content.sg-portal-right {
	text-align: right;
}

.sg-portal :is(h1, h2, h3, h4, h5, h6) {
    display: block;
}

.sg-portal figure.article-thumb,
.sg-portal figure.article-thumb img.thumbimage {
    max-width: 100%;
    height: auto;
}

.sg-portal-columns {
    display: flex;
    justify-content: center;
    float: initial !important;
}

.sg-portal-columns > div {
    width: 100%;
    margin-left: 10px;
    min-width: 0;
}

.sg-portal-columns > div:first-child {
    margin-left: 2px;
}

/* Strona_główna/Discord */

.sg-portal-content.sg-portal-discord a:hover {
    text-decoration: none;
}
.sg-portal-content.sg-portal-discord a > .wds-button:hover {
    cursor: pointer;
}

/* Strona_główna/wyróżniony artykuł */

.sg-portal-content.sg-portal-featured figure,
.sg-portal-content.sg-portal-featured img {
    max-width: 100%;
    height: auto;
}

/* Strona_główna/współpraca */
.sg-portal-content.sg-portal-coop .sg-portal-columns {
    margin-top: 25px;
}

.sg-portal-content.sg-portal-coop .sg-portal-columns div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sg-portal-content.sg-portal-coop img {
	max-width: 200px;
}

/* Moduły */

.rail-module__header,
.rail-module h2 {
	background-image: none;
}

.rail-module__header.has-icon svg {
	display: none;
}

/* Moduł Dyskusji */

.discussions-module {
	margin-top: -5px;
	overflow: auto;
}

.discussions-module-thread {
    display: flex;
}

.discussions-module-avatar {
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.discussions-module-avatar + div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--themed-link-color);
    font-weight: bold;
}

.discussions-module-thread img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.discussions-module-title {
    font-weight: bold;
    position: relative;
    top: 4px;
}

.discussions-module-details {
	font-weight: normal;
	color: var(--theme-page-text-color);
    font-size: 12px;
    position: relative;
    bottom: 1px;
}

.discussions-module .more {
    float: right;
    font-size: 10px;
    font-weight: bold;
}

/* Moduł Blogów */
.sg-portal .WikiaBlogListingBox.module {
    padding-top: 4px;
    margin: 0;
}

.sg-portal .WikiaBlogListingBox.module > h2,
.sg-portal .blog-listing__read-post,
.sg-portal .blog-listing__comment-count {
    display: none;
}

.sg-portal .blog-listing__post {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 17px;
    display: grid;
}

.sg-portal .blog-listing__title {
	font-size: 14px;
	padding: 0;
	margin: -2px 0 0 0 !important;
	grid-row: 1;
	padding-left: 36px;
	position: absolute;
	font-weight: bold;
}

.sg-portal .blog-listing__user-avatar__image {
    border: 1px solid #ccc;
}

.sg-portal .blog-listing__user-name,
.sg-portal .blog-listing__bullet,
.sg-portal .blog-listing__timestamp {
    font-size: 12px;
    display: inline-block;
    height: 0px;
	margin: 0;
}

.sg-portal .blog-listing__post-details span {
	font-weight: normal;
}

.sg-portal .WikiaBlogListingBox .more {
    float: right;
    font-size: 10px;
    font-weight: bold;
    position: relative;
    bottom: 9px;
    right: 0;
}

/* Infobox */

.pi-theme-callofduty {
    border: none;
}

.pi-theme-callofduty.pi-background {
    background-color: var(--infobox-background);
}

.pi-theme-callofduty .pi-border-color {
    border-color: transparent;
}

.pi-theme-callofduty .pi-header {
    text-align: center;
}

.pi-theme-callofduty .pi-horizontal-group {
    text-align: left;
}

.pi-theme-callofduty .pi-caption {
    text-align: center;
}

.pi-theme-callofduty.type-achievement .pi-image img {
    max-width: 96px;
    max-height: 96px;
}

.mw-parser-output .portable-infobox ul ul {
    margin: 3px 0;
}

/* Navbox */
table.navbox {
    border: 1px solid var(--theme-accent-color);
	text-align: center;
	padding: 1px;
    clear: both;
    font-size: 84%;
    margin: 1em 0 0;
    width: 100%;
}
 
table.navbox th {
    background: var(--theme-accent-color);
	text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    color: #fff;
}

table.navbox th.navbox-title {
	height: 22px;
}

table.navbox th.navbox-group {
    white-space: nowrap !important;
    background: var(--theme-accent-color);
    font-weight: bold;
	text-align: right;
    padding: 10px;
    color: #fff;
}

td.navbox-list,
td.navbox-abovebelow {
    background: rgba(0, 0, 0, 0.1);
	padding: 0em 0.25em;
	width: 100%;
}

th.navbox-group + td.navbox-list {
	text-align: left;
}

.tnavbar span {
    color: #D5D4D4;
    font-weight: bold;
}

.nowraplinks a {
    white-space: nowrap;
}

/* Tabele */

.mw-parser-output .mw-collapsible-toggle a {
    color: var(--theme-link-color);
    font-weight: normal;
}

.mw-collapsible-toggle {
	margin-left: 10px;
}

/** wikitable **/
.wikitable {
	background-color: rgba(255,255,255,0.05) !important;
	border-collapse: collapse;
	border: 0 !important;
	text-align: center !important;
}

.wikitable.fluid {
    width: 100% !important;
}

.wikitable th {
	background-color: var(--theme-accent-color) !important;
	padding-top: 1px !important;
	padding-bottom: 1px !important;
	text-align: center !important;
	color: #fff;
}
.wikitable td {
	font-size: 12px !important;
	padding-top: 3px !important;
	padding-bottom: 2px !important;
}

.wikitable th, .wikitable td {
	border: 1px solid var(--theme-accent-color) !important;
}

/** article-table **/

.article-table {
    background: var(--table-background);
	font-size: smaller;
	border: none;
}

.article-table tr th {
    background: var(--theme-accent-color);
    color: white;
    border: none;
}

.article-table tr td {
    border: none;
}

.article-table.fluid {
    width: 100%;
}

.article-table tr td {
    border-bottom: 1px var(--article-table-border) solid
}

.article-table.bordered tr td:first-child {
    border-right: 1px var(--article-table-border) solid;
}

.article-table.bordered tr td:not(:first-child) {
    border-left: 1px var(--article-table-border) solid;
}

/* Galerie */

ul.mw-gallery-traditional {
	--thumb-width: 170px;
	display: flex;
	flex-wrap: wrap;
	margin: 3px 0;
}

ul.mw-gallery-traditional li.gallerybox {
	margin-bottom: 20px;
}

ul.mw-gallery-traditional li.gallerybox .thumb {
	background: none;
	border: none;
}

ul.mw-gallery-traditional li.gallerybox,
ul.mw-gallery-traditional li.gallerybox > div,
ul.mw-gallery-traditional li.gallerybox .thumb,
ul.mw-gallery-traditional li.gallerybox .thumb > div {
	width: var(--thumb-width) !important;
}

ul.mw-gallery-traditional li.gallerybox .thumb > div {
	display: flex;
	align-items: center;
	justify-content: center;
}

ul.mw-gallery-traditional li.gallerybox .thumb > div {
	margin: 0 !important;
}

ul.mw-gallery-traditional li.gallerybox .thumb img {
    width: 100%;
    height: auto;
    border: 1px solid rgb(200, 204, 209);
    border-color: rgba(var(--theme-page-dynamic-color-1--rgb),0.25);
}

ul.mw-gallery-traditional li.gallerybox .thumb p {
    margin: 0;
}

/* Tabele dostępnych broni */

.weapons-table ul.mw-gallery-traditional {
    --thumb-width: 120px;
}

.weapons-table ul.mw-gallery-traditional li.gallerybox .thumb > div {
    max-height: 120px;
}

.weapons-table ul.mw-gallery-traditional li.gallerybox .thumb img {
    border: none;
}

/*** Haki dla Fandom Desktop ***/

/* Pogrubienie tytułu strony */
.page-header__title {
    font-weight: bold
}

/* Normalna grubość linków */
.mw-parser-output a {
	font-weight: inherit;
}

/* Poprawa odstępów między akapitami i listami */

.page-content p,	
.page-content section {
	margin: 0;
}

.page-content p+p {
    margin: 1em 0;
}

.page-content p+ul,
.page-content p+ol {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Zmniejszenie odstępu listy definicji */

.page-content dl {
    margin: 12px 0 12px;
}

/* Poprawne wyświetlanie galerii w tabelach */
table .wikia-gallery-item {
    width: inherit !important;
}

table .gallery-image-wrapper {
    width: inherit !important;
    display: flex;
    justify-content: center;
}

/*** Inne ***/

/* Kolor podkreślenia nagłówków */
.page-content h2 {
    border-bottom: solid 1px #606060;
}

/* Wyłączenie animacji linków */

a {
    transition: none;
}

a:hover {
    color: var(--theme-accent-dynamic-color-2);
}

/* Linki interwiki od wielkiej litery */

.page-header__languages .wds-dropdown {
    text-transform: capitalize;
}

/* Wiadomości dla użytkowników mobilnych */

.wikiamobile {
	display: none;
}

/* Szablony komunikatów */

.artmgmt {
    width: 90%;
    margin: 20px auto;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--theme-accent-color);
    border-radius: 5px;
    background-color: rgba(225,225,225,0.2);
}

/* Szablon:Rzadkość */

.cod-rarity a {
	color: inherit;
}

.cod-rarity.rarity-p,
.cod-rarity.rarity-podst {
	color: white;
}

.cod-rarity.rarity-np,
.cod-rarity.rarity-zw {
	color: green;
}

.cod-rarity.rarity-r {
	color: blue;
}

.cod-rarity.rarity-l,
.cod-rarity.rarity-mwe {
	color: purple;
}

.cod-rarity.rarity-e,
.cod-rarity.rarity-mwl {
	color: #cc8500; /* orange */
}

.cod-rarity.rarity-h,
.cod-rarity.rarity-u2 {
	color: #8b0000;
}

.cod-rarity.rarity-u {
	color: yellow;
}

.cod-rarity.rarity-w {
	color: red
}

/* Szablon:Tooltip */

.szablonTooltip {
	display: inline;
	position: relative;
}

.szablonTooltipSpan {
	border-bottom: dashed 1px silver;
	cursor: pointer;
}

.szablonTooltipId {
	position: absolute;
	top: 1.2em;
	left: 0;
	background-color: rgba(0, 0, 0, 0.7);
	border: 1px solid var(--theme-accent-color);
	border-radius: 5px;
	padding: 0.5em;
	text-align: justify;
	visibility: hidden;
	z-index: 1;
}

.szablonTooltip:hover .szablonTooltipId {
	visibility: visible;
}

/* Styl tabeli w Love And War/zawory */

#gorod-krovi-valves {
	border: 1px solid #8d8b8a;
}

#gorod-krovi-valves-table {
	border-spacing: 2px;
	padding: 4px;
}

#gorod-krovi-valves-table td {
	text-align: center;
	border: 1px solid #8d8b8a;
	background: #9c9c9c;
	padding: 4px;
}

#gorod-krovi-valves-table td.checked, #gorod-krovi-valves-table td:hover {
	background: #8d8b8a;
	cursor: pointer;
}

.gorod-krovi-valves-results {
	border: none !important;
	background: none !important;
	cursor: initial !important;
	text-align: left !important;
	padding-left: 10px !important;
	font-size: 16px;
}