Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(311 intermediate revisions by 5 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


.tos ul li
/* Weights can be grabbed if necessary */
{
@import url('https://fonts.googleapis.com/css2?family=Open+Sans');
display: inline;
@import url('https://fonts.googleapis.com/css2?family=Montserrat');
 
/*BEGIN GRID FORMATTING*/
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 0 10px 10px 0;
    width: 100%;
}
 
.image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    /*padding-bottom: 100%;*/
    cursor: pointer;
}
}


/*
.image-wrapper:hover img {
    transform: scale(1.05);  
Dropping menus on hover.
}
*/
.dropWrap
            {
                padding: 5px;
            }


            .dropWrap .front{
.image-wrapper img {
                z-index: 1;
    width: 100%;
                position: inherit;
    height: auto;
                width: inherit;
    object-fit: cover;  
                height:34px;
    transition: transform 0.3s ease;
                text-align:center;
}
                vertical-align: middle;
                font-weight: bold;
                font-size: large;
                transition: all 0.5s ease;
            }


            .dropWrap .back {
.image-text-container {
                z-index: 0;
    position: absolute;
                position: inherit;
    bottom: 0;
                width: inherit;
    left: 0;
                height: inherit;
    width: 100%;
                display: none;
    background-color: rgba(0, 0, 0, 0.7);  
                transition: all 0.5s ease-in-out;
    padding: 10px;  
            }
    box-sizing: border-box;  
}


            .dropWrap:hover .back {
.image-text-main {
                z-index: 2;
    text-align: center;
                display: block;
    color: white;
            }
    font-size: 20px;
/*
    font-weight: bold;
* Surprise
    margin: 0;
}


@-webkit-keyframes shakeme {
.image-text-sub {
0% { transform: translate(2px, 1px) rotate(0deg); }
text-align: center;
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
    color: white;
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
    font-size: 10px;
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
    font-weight: normal;
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
    margin: 0;  
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
}
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
/*END GRID FORMATTING*/
70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}
h1:hover, h2:hover, h3:hover, h4:hover, .infobox:hover, .navbox:hover, p:hover, .toc:hover, img:hover {
-webkit-animation-name: shakeme;
-webkit-animation-duration: 0.8s;
-webkit-transform-origin:50% 50%;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: ease;
}
*/


/* Default style for navigation boxes */
/*BEGIN ABILITY FORMATTING*/
.navbox {                     /* Navbox container style */
.ability-table {
    border: 1px solid #aaa;
     width: 100%;
     width: 100%;
     margin: auto;
     border-collapse: collapse;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
}
}
.navbox-inner,
 
.navbox-subgroup {
.ability-table table {
     width: 100%;
     width: 100%;
    table-layout: fixed;
}
.ability-table th {
    color: white;
    padding: 8px;
}
.ability-table th:nth-child(1),
.ability-table td:nth-child(1) {
    width: 13%; /*name*/
}
.ability-table th:nth-child(2),
.ability-table td:nth-child(2) {
    width: 14%; /*type*/
}
.ability-table th:nth-child(3),
.ability-table td:nth-child(3) {
    width: 12%; /*range*/
}
.ability-table th:nth-child(4),
.ability-table td:nth-child(4) {
    width: 9%; /*cooldown*/
}
.ability-table th:nth-child(5),
.ability-table td:nth-child(5) {
    width: 62%; /*description*/
    font-size: 12px;
}
/* light theme */
.skin-theme-clientpref-day .ability-table th {
    background-color: #E4E9F1;
    color: black;
}
}
.navbox-group,
 
.navbox-title,
/* dark theme */
.navbox-abovebelow {
.skin-theme-clientpref-night .ability-table th {
     padding: 0.25em 1em;      /* Title, group and above/below styles */
     background-color: #191E29;
    line-height: 1.5em;
     color: white;
     text-align: center;
}
}
th.navbox-group {            /* Group style */
 
     white-space: nowrap;
/* auto theme */
     /* @noflip */
.skin-theme-clientpref-os .ability-table th {
    text-align: right;
     background-color: var(--color-surface-2);
     color: inherit;  
}
}
.navbox,
/*END ABILITY FORMATTING*/
.navbox-subgroup {
 
     background: #fdfdfd;     /* Background color */
/* BEGIN GALLERY TRANSFORMATIONS */
/* Specific to packed-overlay galleries: Initial collapsed state for the text */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytext {
    padding: 0;
    padding-right: var(--border-radius-base);
    padding-left: var(--border-radius-base);
    font-size: var(--font-size-x-small);
    color: var(--color-subtle);
    letter-spacing: 0.025em;
    max-height: 50px;  /* Only collapse in packed-overlay type */
    overflow: hidden;
    text-overflow: ellipsis;
     white-space: nowrap; /* Prevent text from wrapping */
    transition: max-height 0.3s ease-in-out, white-space 0.3s ease-in-out;
}
}
.navbox-list {
 
     line-height: 1.5em;
/* Make sure gallerytextwrapper remains at the correct position */
     border-color: #fdfdfd;   /* Must match background color */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytextwrapper {
     position: absolute;
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    bottom: 0;
    left: 0;
    height: auto;
    max-height: 40%;
    overflow: hidden;
     font-weight: bold;
    margin: 2px;
}
}
.navbox th,
 
.navbox-title {
/* Expand text on hover, but only for packed-overlay galleries */
     background: #ccccff;     /* Level 1 color */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper:hover div.gallerytext {
     max-height: none;  /* Remove height restriction */
    white-space: normal; /* Allow text to wrap */
    overflow: visible;
    text-overflow: clip;
}
}
.navbox-abovebelow,
 
th.navbox-group,
/* Ensure other gallery types (e.g., mw-gallery-packed-hover) display text normally */
.navbox-subgroup .navbox-title {
li.gallerybox div.gallerytextwrapper div.gallerytext {
     background: #ddddff;     /* Level 2 color */
    max-height: none;  /* No collapsing for other gallery types */
     white-space: normal; /* Allow text to wrap normally */
    overflow: visible;
    text-overflow: clip;
}
}
.navbox-subgroup .navbox-group,
/* END GALLERY TRANSFORMATIONS */
.navbox-subgroup .navbox-abovebelow {
 
    background: #e6e6ff;     /* Level 3 color */
.navbox-title
{
width: 100%;
min-width:100%;
}
}
.navbox-even {
 
    background: #f7f7f7;      /* Even row striping */
body, body #mw-page-base {
background: url(https://wiki.massivecraft.com/images/e/ee/Bg3.png);
background-repeat: no-repeat;
}
}
.navbox-odd {
 
     background: transparent; /* Odd row striping */
#simpleSearch input {
     background-color: #ffffff;
}
}
table.navbox {
 
     margin-top: 1em;         /* Prevent preceding content from clinging to navboxes */
.mainpage_box {
     margin: 0;
    min-width: 210px;
    box-shadow: 0 2px 2px rgba(102, 121, 153, 0.2);
    display: inline-block;
    padding: 0 0 0 10px;
}
}
table.navbox table.navbox {
 
     margin-top: 0;           /* No top margin for nested navboxes */
/* light theme */
.skin-theme-clientpref-day .mainpage_box {
     background-color: #E4E9F1;  
}
}
table.navbox + table.navbox {
 
     margin-top: -1px;         /* Single pixel border between adjacent navboxes */
/* dark theme */
.skin-theme-clientpref-night .mainpage_box {
     background-color: #191E29;  
}
}
.navbox .hlist td dl,
 
.navbox .hlist td ol,
/* auto theme */
.navbox .hlist td ul,
.skin-theme-clientpref-os .mainpage_box {
.navbox td.hlist dl,
     background: var( --color-surface-2 );
.navbox td.hlist ol,
.navbox td.hlist ul {
     padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}
}


/* Default styling for Navbar template */
 
.navbar {
.mainpage_box p {
    display: inline;
margin: 0;
    font-size: 88%;
    font-weight: normal;
}
}
.navbar ul {
 
     display: inline;
.mw-collapsible span.mw-collapsible-toggle {
     white-space: nowrap;
     float:left;
    margin-left:0;
    margin-right:1em;
     vertical-align:bottom;
}
}
.mw-body-content .navbar ul {
 
    line-height: inherit;
.button-contain {
font-size:160%;
padding-left: 10px;
padding-right: 10px;
}
}
.navbar li {
 
    word-spacing: -0.125em;
.infobox {
border: 1px solid #C9D8CC;
border-spacing: 0;
}
}
.navbar.mini li abbr[title] {
  font-variant: small-caps;
#bodyContent .plainlinks a {
  border-bottom: none;
background: none !important;
  text-decoration: none;
padding: 0 !important;
  cursor: inherit;
color: #5ca3d6 !important;
}
}
/* Navbar styling when nested in infobox and navbox */
 
.infobox .navbar {
/* {{pp|small=yes}} */
    font-size: 100%;
.div-col {
margin-top: 0.3em;
column-width: 40em;
column-rule: 1px solid #aaa;
}
}
.navbox .navbar {
 
    display: block;
/* Reset top margin for lists in div col */
    font-size: 100%;
.div-col dl,
.div-col ol,
.div-col ul {
margin-top: 0;
}
}
.navbox-title .navbar {
 
    /* @noflip */
/* Avoid elements breaking between columns
    float: left;
  See also Template:No col break */
    /* @noflip */
.div-col li,
    text-align: left;
.div-col dd {
    /* @noflip */
page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
    margin-right: 0.5em;
break-inside: avoid-column;
    width: 6em;
}
}


/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
/* {{pp|small=yes}} */
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.div-col-rel {
.collapseButton {
margin-top: 0.3em;
    /* @noflip */
column-width: 40em;
    float: right;
column-rule: 1px solid #aaa;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
}
/* In navboxes, the show/hide button balances the v·d·e links
 
  from [[Template:Navbar]], so they need to be the same width. */
/* Reset top margin for lists in div col */
.navbox .collapseButton {
.div-col-rel dl,
    width: 6em;
.div-col-rel ol,
.div-col-rel ul {
margin-top: 0;
}
}


/* Styling for JQuery makeCollapsible, matching that of collapseButton */
/* Avoid elements breaking between columns
.mw-collapsible-toggle {
  See also Template:No col break */
    font-weight: normal;
.div-col-rel li,
    /* @noflip */
.div-col-rel dd {
     text-align: right;
page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
break-inside: avoid-column;
}
/* ===============CONTENT THAT MARTY HAS ADDED TO REFLECT RESPONSIVE IMAGE RESCALING ON THE /TEST PAGE=============== */
/* To make images responsive */
.res-img img {
border-radius: 5px;
max-width:100%;
height:auto;
     object-fit: cover;
    transition: transform 0.3s ease;
}
}
.navbox .mw-collapsible-toggle {
 
     width: 6em;
.res-img:hover img {
     transform: scale(1.05);  
}
}

Latest revision as of 01:28, 12 November 2024

/* CSS placed here will be applied to all skins */

/* Weights can be grabbed if necessary */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans');
@import url('https://fonts.googleapis.com/css2?family=Montserrat');

/*BEGIN GRID FORMATTING*/
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 0 10px 10px 0;
    width: 100%;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    /*padding-bottom: 100%;*/
    cursor: pointer;
}

.image-wrapper:hover img {
    transform: scale(1.05); 
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.image-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    padding: 10px; 
    box-sizing: border-box; 
}

.image-text-main {
    text-align: center; 
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.image-text-sub {
	text-align: center;
    color: white;
    font-size: 10px;
    font-weight: normal;
    margin: 0; 
}
/*END GRID FORMATTING*/

/*BEGIN ABILITY FORMATTING*/
.ability-table {
    width: 100%;
    border-collapse: collapse;
}

.ability-table table {
    width: 100%;
    table-layout: fixed;
}

.ability-table th {
    color: white;
    padding: 8px;
}

.ability-table th:nth-child(1),
.ability-table td:nth-child(1) {
    width: 13%; /*name*/
}

.ability-table th:nth-child(2),
.ability-table td:nth-child(2) {
    width: 14%; /*type*/
}

.ability-table th:nth-child(3),
.ability-table td:nth-child(3) {
    width: 12%; /*range*/
}

.ability-table th:nth-child(4),
.ability-table td:nth-child(4) {
    width: 9%; /*cooldown*/
}

.ability-table th:nth-child(5),
.ability-table td:nth-child(5) {
    width: 62%; /*description*/
    font-size: 12px;
}

/* light theme */
.skin-theme-clientpref-day .ability-table th {
    background-color: #E4E9F1;
    color: black;
}

/* dark theme */
.skin-theme-clientpref-night .ability-table th {
    background-color: #191E29;
    color: white;
}

/* auto theme */
.skin-theme-clientpref-os .ability-table th {
    background-color: var(--color-surface-2);
    color: inherit; 
}
/*END ABILITY FORMATTING*/

/* BEGIN GALLERY TRANSFORMATIONS */
/* Specific to packed-overlay galleries: Initial collapsed state for the text */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytext {
    padding: 0;
    padding-right: var(--border-radius-base);
    padding-left: var(--border-radius-base);
    font-size: var(--font-size-x-small);
    color: var(--color-subtle);
    letter-spacing: 0.025em;
    max-height: 50px;  /* Only collapse in packed-overlay type */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;  /* Prevent text from wrapping */
    transition: max-height 0.3s ease-in-out, white-space 0.3s ease-in-out;
}

/* Make sure gallerytextwrapper remains at the correct position */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytextwrapper {
    position: absolute;
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    bottom: 0;
    left: 0;
    height: auto;
    max-height: 40%;
    overflow: hidden;
    font-weight: bold;
    margin: 2px;
}

/* Expand text on hover, but only for packed-overlay galleries */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper:hover div.gallerytext {
    max-height: none;  /* Remove height restriction */
    white-space: normal;  /* Allow text to wrap */
    overflow: visible;
    text-overflow: clip;
}

/* Ensure other gallery types (e.g., mw-gallery-packed-hover) display text normally */
li.gallerybox div.gallerytextwrapper div.gallerytext {
    max-height: none;  /* No collapsing for other gallery types */
    white-space: normal;  /* Allow text to wrap normally */
    overflow: visible;
    text-overflow: clip;
}
/* END GALLERY TRANSFORMATIONS */

.navbox-title
{
	width: 100%;
	min-width:100%;
}

body, body #mw-page-base {
	background: url(https://wiki.massivecraft.com/images/e/ee/Bg3.png);
	background-repeat: no-repeat;
}

#simpleSearch input {
    background-color: #ffffff;
}

.mainpage_box {
    margin: 0;
    min-width: 210px;
    box-shadow: 0 2px 2px rgba(102, 121, 153, 0.2);
    display: inline-block;
    padding: 0 0 0 10px;
}

/* light theme */
.skin-theme-clientpref-day .mainpage_box {
    background-color: #E4E9F1; 
}

/* dark theme */
.skin-theme-clientpref-night .mainpage_box {
    background-color: #191E29; 
}

/* auto theme */
.skin-theme-clientpref-os .mainpage_box {
    background: var( --color-surface-2 );
}


.mainpage_box p {
	margin: 0;
}

.mw-collapsible span.mw-collapsible-toggle {
    float:left;
    margin-left:0;
    margin-right:1em;
    vertical-align:bottom;
}

.button-contain {
	font-size:160%;
	padding-left: 10px;
	padding-right: 10px;
}

.infobox {
	border: 1px solid #C9D8CC;
	border-spacing: 0;
}
	
#bodyContent .plainlinks a {
	background: none !important;
	padding: 0 !important;
	color: #5ca3d6 !important;
}

/* {{pp|small=yes}} */
.div-col {
	margin-top: 0.3em;
	column-width: 40em;
	column-rule: 1px solid #aaa;
}

/* Reset top margin for lists in div col */
.div-col dl,
.div-col ol,
.div-col ul {
	margin-top: 0;
}

/* Avoid elements breaking between columns
   See also Template:No col break */
.div-col li,
.div-col dd {
	page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
	break-inside: avoid-column;
}

/* {{pp|small=yes}} */
.div-col-rel {
	margin-top: 0.3em;
	column-width: 40em;
	column-rule: 1px solid #aaa;
}

/* Reset top margin for lists in div col */
.div-col-rel dl,
.div-col-rel ol,
.div-col-rel ul {
	margin-top: 0;
}

/* Avoid elements breaking between columns
   See also Template:No col break */
.div-col-rel li,
.div-col-rel dd {
	page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
	break-inside: avoid-column;
}
/* ===============CONTENT THAT MARTY HAS ADDED TO REFLECT RESPONSIVE IMAGE RESCALING ON THE /TEST PAGE=============== */
/* To make images responsive */
.res-img img {
	border-radius: 5px;
	max-width:100%;
	height:auto;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.res-img:hover img {
    transform: scale(1.05); 
}