MediaWiki:Vector-2022.css: Difference between revisions

m CSS test
m CSS test
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the Vector skin */
/* All CSS here will be loaded for users of the Vector skin */
/* This one changes CSS for the link buttons */
.mw-body {
margin-top: 0;
border-color: transparent;
box-shadow: 0 0.25em 0.6em -0.15em rgba(0,0,0,0.15);
    padding: 1.25em 1.5em 1.5em 1.5em;
}


/* CSS for left vertical navigation */
/* CSS for left vertical navigation */
Line 30: Line 21:
   }
   }
   
   
/* Body and tools menu background color */
   
   
.mw-body {
margin-top: 0;
border-color: transparent;
box-shadow: 0 0.05em 0.6em -0.15em rgba(0,0,0,0.15);
    padding: 1.25em 1.5em 1.5em 1.5em;
    background-color: #fbfbfb;
}
#vector-page-tools-pinned-container {
background-color: #fbfbfb;
}
@media screen {
.skin-theme-clientpref-night #vector-page-tools-pinned-container {
background-color: #12161a;
}
.skin-theme-clientpref-night .mw-body {
box-shadow: none;
background-color: #12161a;
}
.skin-theme-clientpref-night .vector-sticky-pinned-container::after {
background: none;
}
}
.vector-sticky-pinned-container::after {
background: none;
}
/* Links to categories */
.catlinks {
background-color: var(--background-color-neutral-subtle);
border-radius: 5px;
border: 1px solid var(--border-color-subtle, #a2a9b1);
font-weight: 600;
}
/* This changes CSS for the link buttons */
/* #n-View-YouTube a:link,
/* #n-View-YouTube a:link,
#n-View-YouTube a:visited,
#n-View-YouTube a:visited,
Line 127: Line 161:
.vector-main-menu .vector-main-menu-action-opt-out a, .vector-main-menu .vector-main-menu-action-lang-alert .vector-main-menu-action-content {
.vector-main-menu .vector-main-menu-action-opt-out a, .vector-main-menu .vector-main-menu-action-lang-alert .vector-main-menu-action-content {
display: none;
display: none;
}
.mw-body {
background-color: #fbfbfb;
}
}


Line 162: Line 192:
border: none;
border: none;
margin: 12px 0 0 0;
margin: 12px 0 0 0;
}
/* For the frame of the image in the Featured Article section*/
.featuredarticleimage {
    background-color: #fff;
    border: 2px outset #eaecf0;
    padding: 4px;
}
 
@media screen {
html.skin-theme-clientpref-night .featuredarticleimage {
background-color: #202122;
        border-color: #404244;
}
   
}
/* For ambox and other notice dark mode compatibility */
@media screen {
html.skin-theme-clientpref-night .mw-parser-output .ambox, html.skin-theme-clientpref-night .mw-parser-output .cmbox, html.skin-theme-clientpref-night .mw-parser-output .imbox, html.skin-theme-clientpref-night .mw-parser-output .tmbox, html.skin-theme-clientpref-night .mw-parser-output .fmbox, html.skin-theme-clientpref-night .mw-parser-output .ombox, html.skin-theme-clientpref-night .mw-parser-output .mbox, html.skin-theme-clientpref-night .mw-parser-output .asbox, html.skin-theme-clientpref-night .mw-parser-output .dmbox {
border: 1px solid #54595d;
        background-color: #27292d;
}
   
}
/* Changing thumb-size image style */
figure[typeof~='mw:File/Thumb'] > figcaption,figure[typeof~='mw:File/Frame'] > figcaption {
    padding: 3px;
}
body.skin--responsive .mw-parser-output figure[typeof~='mw:File/Thumb'] img.mw-file-element,body.skin--responsive .mw-parser-output figure[typeof~='mw:File/Frame'] img.mw-file-element {
    max-width: unset;
}
figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element,figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element {
    margin: 0;
}
@media screen {
    figure[typeof~='mw:File/Thumb'],figure[typeof~='mw:File/Frame'] {
        border: 3px outset var(--background-color-disabled-subtle);
        border-bottom: 0;
        border-radius: 5px 5px 0 0;
        border-collapse: unset;
    }
    figure[typeof~='mw:File/Thumb'] > figcaption,figure[typeof~='mw:File/Frame'] > figcaption {
        border: 3px outset var(--background-color-disabled-subtle);
        border-top: 0;
        border-radius: 0 0 5px 5px;
        background-color: var(--background-color-notice-subtle,#f8f9fa);
    }
   
    figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element, figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element {
    border: none;
    }
   
    figure[typeof~='mw:File/Thumb'] > .mw-file-description::after,figure[typeof~='mw:File/Thumb'] > .mw-file-magnify::after {
        bottom: -18px;
    }
}
/* CSS for crafting table UI */
.invslot {
    position: relative;
    display: inline-block;
    background: #8B8B8B no-repeat center center / 32px 32px;
    border: 2px solid;
    border-color: #373737 #FFF #FFF #373737;
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 1;
    text-align: left;
    vertical-align: bottom
}
.invslot::before,.invslot::after {
    content: "";
    position: absolute;
    background-color: #8B8B8B;
    height: 2px;
    width: 2px;
    pointer-events: none
}
.invslot::before {
    bottom: -2px;
    left: -2px
}
.invslot::after {
    top: -2px;
    right: -2px
}
.invslot-large {
    padding: 8px
}
.invslot-item,.invslot-item a:first-child {
    position: relative;
    display: block;
    margin: -2px;
    padding: 2px;
    width: 32px;
    height: 32px
}
.invslot-item-image a.new:first-child {
    background: url(/images/Grid_Unknown.png?4cbf2) no-repeat content-box;
    width: 32px;
    height: 32px;
    text-indent: -9999px;
    overflow: hidden
}
.invslot-stacksize {
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: Minecraft,sans-serif !important;
    font-weight: normal !important;
    color: #FFF !important;
    text-shadow: 2px 2px 0 #3F3F3F;
    filter: dropshadow(color=#3F3F3F,offx=2,offy=2);
    z-index: 2
}
.invslot-plain {
    background-color: transparent;
    border: 0
}
.invslot-plain::before,.invslot-plain::after {
    content: none
}
.invslot-plain > .invslot-item,.invslot-plain > .invslot-item a:first-child {
    margin: 0;
    padding: 0
}
.invslot-default-head {
    background-image: url(/images/Grid_layout_Head_Empty.png?c6d2b)
}
.invslot-default-chest {
    background-image: url(/images/Grid_layout_Chest_Empty.png?4c32c)
}
.invslot-default-legs {
    background-image: url(/images/Grid_layout_Legs_Empty.png?f5d09)
}
.invslot-default-feet {
    background-image: url(/images/Grid_layout_Feet_Empty.png?70c3c)
}
.invslot-default-offhand {
    background-image: url(/images/Grid_layout_Offhand_Empty.png?b6488)
}
.invslot-default-smithing {
    background-image: url(/images/Grid_layout_Smithing_Empty.png?e28f7)
}
.invslot-default-brewing {
    background-image: url(/images/Grid_layout_Brewing_Empty.png?2bf2a)
}
.invslot-default-brewing-fuel {
    background-image: url(/images/Grid_layout_Brewing_Fuel_Empty.png?acb80)
}
.mc-hearts::before {
    content: ' ('
}
.mc-hearts::after {
    content: ')'
}
.mcui {
    display: inline-block;
    position: relative;
    background-color: #C6C6C6;
    border: 2px solid;
    border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB;
    padding: 6px;
    text-align: left;
    white-space: nowrap;
    vertical-align: bottom;
}
.mcui-Crafting_Table > *,.mcui-Furnace > * {
    display: inline-block;
    vertical-align: top
}
.mcui-Crafting_Table .mcui-row {
    display: block
}
.mcui-Crafting_Table > .mcui-arrow {
    background: url(https://minecraft.wiki/images/Grid_layout_Arrow_%28small%29.png?a4894) no-repeat;
    width: 32px;
    height: 26px;
    margin: 40px 4px 0
}
.mcui-Crafting_Table > .mcui-output {
    margin-top: 28px
}
.mcui-Crafting_Table > .mcui-icons {
    position: absolute;
    top: 6px;
    right: 6px
}
.mcui-Crafting_Table .mcui-shapeless,.mcui-Crafting_Table .mcui-fixed {
    display: inline-block;
    background-repeat: no-repeat;
    width: 19px;
    height: 15px;
    cursor: help
}
.mcui-Crafting_Table .mcui-shapeless {
    background-image: url(https://minecraft.wiki/images/Grid_layout_Shapeless.png?9dddf)
}
.mcui-Crafting_Table .mcui-fixed {
    background-image: url(https://minecraft.wiki/images/Grid_layout_Fixed.png?bb1da)
}
.mcui-Furnace .mcui-fuel {
    display: block;
    background: url(/images/Grid_layout_Fire.png?84fd9) no-repeat;
    width: 36px;
    height: 36px
}
.mcui-Furnace .mcui-fuel.mcui-inactive {
    background-image: url(/images/Grid_layout_Fire_%28in-active%29.png?2e313)
}
.mcui-Furnace > .mcui-arrow {
    background: url(/images/Grid_layout_Furnace_Progress.png?c8400) no-repeat;
    width: 44px;
    height: 32px;
    margin: 36px 18px 0 14px
}
.mcui-Furnace > .mcui-arrow.mcui-inactive,.mcui-Inventory-Crafting_Table-arrow {
    background-image: url(/images/Grid_layout_Furnace_Progress_%28in-active%29.png?4f3f7)
}
.mcui-Furnace > .mcui-output {
    margin-top: 28px
}
.mcui-Furnace > .mcui-experience {
    position: absolute;
    top: 92px;
    left: 108px;
    text-align: center;
    width: 70px
}
.mcui-Furnace .mcui-experience-orb {
    display: inline-block;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    vertical-align: top;
    background-size: 16px 16px
}
.mcui-Furnace .mcui-experience-text {
    display: inline-block;
    vertical-align: top;
    font-family: Minecraft,sans-serif;
    font-size: 16px;
    color: #404040
}
/* CSS for the Minecraft tooltip "Minetip" */
.format-0 {
    color: #000;
    text-shadow: 0.125em 0.125em 0 #000
}
.format-1 {
    color: #0000A8;
    text-shadow: 0.125em 0.125em 0 #00002A
}
.format-2 {
    color: #00A800;
    text-shadow: 0.125em 0.125em 0 #002A00
}
.format-3 {
    color: #00A8A8;
    text-shadow: 0.125em 0.125em 0 #002A2A
}
.format-4 {
    color: #A80000;
    text-shadow: 0.125em 0.125em 0 #2A0000
}
.format-5 {
    color: #A800A8;
    text-shadow: 0.125em 0.125em 0 #2A002A
}
.format-6 {
    color: #FBA800;
    text-shadow: 0.125em 0.125em 0 #3E2A00
}
.format-7 {
    color: #A8A8A8;
    text-shadow: 0.125em 0.125em 0 #2A2A2A
}
.format-8 {
    color: #545454;
    text-shadow: 0.125em 0.125em 0 #151515
}
.format-9 {
    color: #5454FB;
    text-shadow: 0.125em 0.125em 0 #15153E
}
.format-a {
    color: #54FB54;
    text-shadow: 0.125em 0.125em 0 #153E15
}
.format-b {
    color: #54FBFB;
    text-shadow: 0.125em 0.125em 0 #153E3E
}
.format-c {
    color: #FB5454;
    text-shadow: 0.125em 0.125em 0 #3E1515
}
.format-d {
    color: #FB54FB;
    text-shadow: 0.125em 0.125em 0 #3E153E
}
.format-e {
    color: #FBFB54;
    text-shadow: 0.125em 0.125em 0 #3E3E15
}
.format-f,#minetip-tooltip {
    color: #FBFBFB;
    text-shadow: 0.125em 0.125em 0 #3E3E3E
}
.format-g {
    color: #DDD605;
    text-shadow: 0.125em 0.125em 0 #373501
}
.format-h {
    color: #E3D4D1;
    text-shadow: 0.125em 0.125em 0 #383534
}
.format-i {
    color: #CECACA;
    text-shadow: 0.125em 0.125em 0 #333232
}
.format-j {
    color: #443A3B;
    text-shadow: 0.125em 0.125em 0 #110E0E
}
.format-l {
    font-weight: bold;
    letter-spacing: 0.125em
}
.format-m {
    text-decoration: line-through
}
.format-n {
    text-decoration: underline
}
.format-o {
    font-style: italic
}
.format-p {
    color: #DEB12D;
    text-shadow: 0.125em 0.125em 0 #372C0B
}
.format-q {
    color: #47A036;
    text-shadow: 0.125em 0.125em 0 #04280D
}
.format-s {
    color: #2CBAA8;
    text-shadow: 0.125em 0.125em 0 #0B2E2A
}
.format-t {
    color: #21497B;
    text-shadow: 0.125em 0.125em 0 #08121E
}
.format-u {
    color: #9A5CC6;
    text-shadow: 0.125em 0.125em 0 #261731
}
.format-v {
    color: #EB7114;
    text-shadow: 0.125em 0.125em 0 #3B1D05
}
.format-y {
    color: #971607;
    text-shadow: 0.125em 0.125em 0 #250501
}
.format-z {
    color: #B4684D;
    text-shadow: 0.125em 0.125em 0 #2D1A13
}
.format-custom {
    text-shadow: 0.125em 0.125em 0 color-mix(in srgb,currentColor 25%,#000 75%)
}
#minetip-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #100010;
    background-color: rgba(16,0,16,0.94);
    padding: 0.375em;
    font-family: Minecraft,sans-serif;
    font-size: 16px;
    word-spacing: 4px;
    white-space: nowrap;
    line-height: 1.25em;
    margin: 0.125em 0.25em;
    pointer-events: none;
    z-index: 9999
}
#minetip-tooltip > .description,#minetip-tooltip > .minetip-description {
    display: block;
    margin-top: 0.25em
}
/* Used to render low-res textures in larger sizes */
.pixel-image, .invslot-item-image, .sprite {
    image-rendering: pixelated;
}
.item-padding {
padding: 16px;
}
}