MediaWiki:Vector-2022.css: Difference between revisions

m CSS test
m CSS test
 
(6 intermediate revisions by the same user not shown)
Line 271: Line 271:
     line-height: 1;
     line-height: 1;
     text-align: left;
     text-align: left;
     vertical-align: bottom
     vertical-align: bottom;
}
}


Line 280: Line 280:
     height: 2px;
     height: 2px;
     width: 2px;
     width: 2px;
     pointer-events: none
     pointer-events: none;
}
}


.invslot::before {
.invslot::before {
     bottom: -2px;
     bottom: -2px;
     left: -2px
     left: -2px;
}
}


.invslot::after {
.invslot::after {
     top: -2px;
     top: -2px;
     right: -2px
     right: -2px;
}
}


.invslot-large {
.invslot-large {
     padding: 8px
     padding: 8px;
}
}


Line 303: Line 303:
     padding: 2px;
     padding: 2px;
     width: 32px;
     width: 32px;
     height: 32px
     height: 32px;
}
}


Line 311: Line 311:
     height: 32px;
     height: 32px;
     text-indent: -9999px;
     text-indent: -9999px;
     overflow: hidden
     overflow: hidden;
}
}


Line 323: Line 323:
     text-shadow: 2px 2px 0 #3F3F3F;
     text-shadow: 2px 2px 0 #3F3F3F;
     filter: dropshadow(color=#3F3F3F,offx=2,offy=2);
     filter: dropshadow(color=#3F3F3F,offx=2,offy=2);
     z-index: 2
     z-index: 2;
}
}


.invslot-plain {
.invslot-plain {
     background-color: transparent;
     background-color: transparent;
     border: 0
     border: 0;
}
}


.invslot-plain::before,.invslot-plain::after {
.invslot-plain::before,.invslot-plain::after {
     content: none
     content: none;
}
}


.invslot-plain > .invslot-item,.invslot-plain > .invslot-item a:first-child {
.invslot-plain > .invslot-item,.invslot-plain > .invslot-item a:first-child {
     margin: 0;
     margin: 0;
     padding: 0
     padding: 0;
}
}


.invslot-default-head {
.invslot-default-head {
     background-image: url(/images/Grid_layout_Head_Empty.png?c6d2b)
     background-image: url(/images/Grid_layout_Head_Empty.png?c6d2b);
}
}


.invslot-default-chest {
.invslot-default-chest {
     background-image: url(/images/Grid_layout_Chest_Empty.png?4c32c)
     background-image: url(/images/Grid_layout_Chest_Empty.png?4c32c);
}
}


.invslot-default-legs {
.invslot-default-legs {
     background-image: url(/images/Grid_layout_Legs_Empty.png?f5d09)
     background-image: url(/images/Grid_layout_Legs_Empty.png?f5d09);
}
}


.invslot-default-feet {
.invslot-default-feet {
     background-image: url(/images/Grid_layout_Feet_Empty.png?70c3c)
     background-image: url(/images/Grid_layout_Feet_Empty.png?70c3c);
}
}


.invslot-default-offhand {
.invslot-default-offhand {
     background-image: url(/images/Grid_layout_Offhand_Empty.png?b6488)
     background-image: url(/images/Grid_layout_Offhand_Empty.png?b6488);
}
}


.invslot-default-smithing {
.invslot-default-smithing {
     background-image: url(/images/Grid_layout_Smithing_Empty.png?e28f7)
     background-image: url(/images/Grid_layout_Smithing_Empty.png?e28f7);
}
}


.invslot-default-brewing {
.invslot-default-brewing {
     background-image: url(/images/Grid_layout_Brewing_Empty.png?2bf2a)
     background-image: url(/images/Grid_layout_Brewing_Empty.png?2bf2a);
}
}


.invslot-default-brewing-fuel {
.invslot-default-brewing-fuel {
     background-image: url(/images/Grid_layout_Brewing_Fuel_Empty.png?acb80)
     background-image: url(/images/Grid_layout_Brewing_Fuel_Empty.png?acb80);
}
}


.mc-hearts::before {
.mc-hearts::before {
     content: ' ('
     content: ' (';
}
}


.mc-hearts::after {
.mc-hearts::after {
     content: ')'
     content: ')';
}
}


Line 394: Line 394:
.mcui-Crafting_Table > *,.mcui-Furnace > * {
.mcui-Crafting_Table > *,.mcui-Furnace > * {
     display: inline-block;
     display: inline-block;
     vertical-align: top
     vertical-align: top;
}
}


.mcui-Crafting_Table .mcui-row {
.mcui-Crafting_Table .mcui-row {
     display: block
     display: block;
}
}


Line 405: Line 405:
     width: 32px;
     width: 32px;
     height: 26px;
     height: 26px;
     margin: 40px 4px 0
     margin: 40px 4px 0;
}
}


.mcui-Crafting_Table > .mcui-output {
.mcui-Crafting_Table > .mcui-output {
     margin-top: 28px
     margin-top: 28px;
}
}


Line 415: Line 415:
     position: absolute;
     position: absolute;
     top: 6px;
     top: 6px;
     right: 6px
     right: 6px;
}
}


Line 423: Line 423:
     width: 19px;
     width: 19px;
     height: 15px;
     height: 15px;
     cursor: help
     cursor: help;
}
}


.mcui-Crafting_Table .mcui-shapeless {
.mcui-Crafting_Table .mcui-shapeless {
     background-image: url(https://minecraft.wiki/images/Grid_layout_Shapeless.png?9dddf)
     background-image: url(https://minecraft.wiki/images/Grid_layout_Shapeless.png?9dddf);
}
}


.mcui-Crafting_Table .mcui-fixed {
.mcui-Crafting_Table .mcui-fixed {
     background-image: url(https://minecraft.wiki/images/Grid_layout_Fixed.png?bb1da)
     background-image: url(https://minecraft.wiki/images/Grid_layout_Fixed.png?bb1da);
}
}


Line 438: Line 438:
     background: url(/images/Grid_layout_Fire.png?84fd9) no-repeat;
     background: url(/images/Grid_layout_Fire.png?84fd9) no-repeat;
     width: 36px;
     width: 36px;
     height: 36px
     height: 36px;
}
}


.mcui-Furnace .mcui-fuel.mcui-inactive {
.mcui-Furnace .mcui-fuel.mcui-inactive {
     background-image: url(/images/Grid_layout_Fire_%28in-active%29.png?2e313)
     background-image: url(/images/Grid_layout_Fire_%28in-active%29.png?2e313);
}
}


Line 449: Line 449:
     width: 44px;
     width: 44px;
     height: 32px;
     height: 32px;
     margin: 36px 18px 0 14px
     margin: 36px 18px 0 14px;
}
}


.mcui-Furnace > .mcui-arrow.mcui-inactive,.mcui-Inventory-Crafting_Table-arrow {
.mcui-Furnace > .mcui-arrow.mcui-inactive,.mcui-Inventory-Crafting_Table-arrow {
     background-image: url(/images/Grid_layout_Furnace_Progress_%28in-active%29.png?4f3f7)
     background-image: url(/images/Grid_layout_Furnace_Progress_%28in-active%29.png?4f3f7);
}
}


.mcui-Furnace > .mcui-output {
.mcui-Furnace > .mcui-output {
     margin-top: 28px
     margin-top: 28px;
}
}


Line 465: Line 465:
     left: 108px;
     left: 108px;
     text-align: center;
     text-align: center;
     width: 70px
     width: 70px;
}
}


Line 474: Line 474:
     height: 16px;
     height: 16px;
     vertical-align: top;
     vertical-align: top;
     background-size: 16px 16px
     background-size: 16px 16px;
}
}


Line 482: Line 482:
     font-family: Minecraft,sans-serif;
     font-family: Minecraft,sans-serif;
     font-size: 16px;
     font-size: 16px;
     color: #404040
     color: #404040;
}
}


/* CSS for the Minecraft tooltip "Minetip" */
/* Used to render low-res textures in larger sizes */


.format-0 {
.pixel-image, .invslot-item-image, .sprite {
     color: #000;
     image-rendering: pixelated;
    text-shadow: 0.125em 0.125em 0 #000
}
}


.format-1 {
.item-padding {
    color: #0000A8;
padding: 16px;
    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 {
/* Animation CSS for the Animated Sprites of the Crafting UI */
    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 {
#minetip-tooltip {
Line 662: Line 511:
     margin: 0.125em 0.25em;
     margin: 0.125em 0.25em;
     pointer-events: none;
     pointer-events: none;
     z-index: 9999
     z-index: 9999;
}
}


#minetip-tooltip > .description,#minetip-tooltip > .minetip-description {
#minetip-tooltip::before {
     display: block;
    content: "";
     margin-top: 0.25em
    position: absolute;
    top: 0.125em;
    right: -0.125em;
    bottom: 0.125em;
    left: -0.125em;
    border: 0.15em solid #100010;
     border-style: none solid;
     border-color: rgba(16,0,16,0.94);
}
}


/* Used to render low-res textures in larger sizes */
#minetip-tooltip::after {
    content: "";
    position: absolute;
    top: 0.125em;
    right: 0;
    bottom: 0.125em;
    left: 0;
    border: 0.125em solid #2D0A63;
    border-image: -webkit-linear-gradient(rgba(80,0,255,0.31),rgba(40,0,127,0.31)) 1;
    border-image: linear-gradient(rgba(80,0,255,0.31),rgba(40,0,127,0.31)) 1;
}


.pixel-image, .invslot-item-image, .sprite {
#minetip-tooltip > .description,#minetip-tooltip > .minetip-description {
     image-rendering: pixelated;
     display: block;
    margin-top: 0.25em;
}
}


.item-padding {
.hidden-alt-text {
padding: 16px;
    font-size: 0;
}
}