MediaWiki:Common.css: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(178 intermediate revisions by 4 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
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
 
.navbox-title
{
{
display: inline;
width: 100%;
min-width:100%;
}
}


/*
body, body #mw-page-base {
background: url(https://wiki.massivecraft.com/images/e/ee/Bg3.png);
Dropping menus on hover.
background-repeat: no-repeat;
}
*/
.dropWrap
            {
                padding: 5px;
            }


            .dropWrap .front{
#simpleSearch input {
                z-index: 1;
    background-color: #ffffff;
                position: inherit;
}
                width: inherit;
                height:34px;
                text-align:center;
                vertical-align: middle;
                font-weight: bold;
                font-size: large;
                transition: all 0.5s ease;
            }


            .dropWrap .back {
.scroll-table table {
                z-index: 0;
max-width: 100%;
                position: inherit;
overflow: hidden;
                width: inherit;
display: block;
                height: inherit;
overflow-x: auto;
                display: none;
white-space: nowrap;
                transition: all 0.5s ease-in-out;
}
            }


            .dropWrap:hover .back {
.eighty-width img {
                z-index: 2;
    width: 80%;
                display: block;
    height: auto;
            }
}
/*
* Surprise


@-webkit-keyframes shakeme {
.fifty-width-left img {
0% { transform: translate(2px, 1px) rotate(0deg); }
    width: 50%;
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
    height: auto;
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
    float: left;
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
}
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
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 */
.fifty-width-right img {
.navbox {                     /* Navbox container style */
     width: 50%;
    border: 1px solid #aaa;
     height: auto;
     width: 100%;
     float: right;
     margin: auto;
     clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
}
}
.navbox-inner,
 
.navbox-subgroup {
.twenty-five-width-left img {
     width: 100%;
     width: 25%;
    height: auto;
    float: left;
}
}
.navbox-group,
 
.navbox-title,
.twenty-five-width-right img {
.navbox-abovebelow {
     width: 25%;
     padding: 0.25em 1em;     /* Title, group and above/below styles */
     height: auto;
     line-height: 1.5em;
     float: right;
     text-align: center;
}
}
th.navbox-group {             /* Group style */
 
     white-space: nowrap;
.topbanner img {
     /* @noflip */
     max-width: 100%;
    text-align: right;
     height: auto;
}
}
.navbox,
 
.navbox-subgroup {
.topbanner-var img {
     background: #fdfdfd;     /* Background color */
     max-width: 100%;
    height: auto;
    border-radius: 25px;
    padding-bottom: 20px;
}
}
.navbox-list {
 
    line-height: 1.5em;
.proficiency {
    border-color: #fdfdfd;   /* Must match background color */
flex-flow: row wrap;
}
}
.navbox th,
 
.navbox-title {
.proficiency h2 {
    background: #ccccff;     /* Level 1 color */
border: none;
}
}
.navbox-abovebelow,
 
th.navbox-group,
.proficiency ul {
.navbox-subgroup .navbox-title {
    columns: 3;
     background: #ddddff;     /* Level 2 color */
     width: 600px;
}
}
.navbox-subgroup .navbox-group,
 
.navbox-subgroup .navbox-abovebelow {
.proficiency li {
     background: #e6e6ff;     /* Level 3 color */
    margin-bottom: 10px;
    height: 50px;
    display: flex;
    align-items: center;
     border: 2px solid;
}
}
.navbox-even {
 
    background: #f7f7f7;     /* Even row striping */
.button-contain {
font-size:160%;
padding-left: 10px;
padding-right: 10px;
}
}
.navbox-odd {
 
    background: transparent; /* Odd row striping */
.infobox {
border: 1px solid #C9D8CC;
border-spacing: 0;
}
}
table.navbox {
    margin-top: 1em;         /* Prevent preceding content from clinging to navboxes */
#bodyContent .plainlinks a {
background: none !important;
padding: 0 !important;
color: #002bb8 !important;
}
}
table.navbox table.navbox {
 
    margin-top: 0;            /* No top margin for nested navboxes */
table.testtable {
    background-image:url('https://wiki.massivecraft.com/images/2/2c/Altalook.png');
}
}
table.navbox + table.navbox {
 
    margin-top: -1px;         /* Single pixel border between adjacent navboxes */
/* {{pp|small=yes}} */
.div-col {
margin-top: 0.3em;
column-width: 40em;
column-rule: 1px solid #aaa;
}
}
.navbox .hlist td dl,
 
.navbox .hlist td ol,
/* Reset top margin for lists in div col */
.navbox .hlist td ul,
.div-col dl,
.navbox td.hlist dl,
.div-col ol,
.navbox td.hlist ol,
.div-col ul {
.navbox td.hlist ul {
margin-top: 0;
    padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}
}


/* Default styling for Navbar template */
/* Avoid elements breaking between columns
.navbar {
  See also Template:No col break */
    display: inline;
.div-col li,
    font-size: 88%;
.div-col dd {
    font-weight: normal;
page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
break-inside: avoid-column;
}
}
.navbar ul {
 
    display: inline;
/* {{pp|small=yes}} */
    white-space: nowrap;
.div-col-rel {
}
margin-top: 0.3em;
.mw-body-content .navbar ul {
column-width: 40em;
    line-height: inherit;
column-rule: 1px solid #aaa;
}
.navbar li {
    word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
  font-variant: small-caps;
  border-bottom: none;
  text-decoration: none;
  cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
    font-size: 100%;
}
.navbox .navbar {
    display: block;
    font-size: 100%;
}
.navbox-title .navbar {
    /* @noflip */
    float: left;
    /* @noflip */
    text-align: left;
    /* @noflip */
    margin-right: 0.5em;
    width: 6em;
}
}


/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
/* Reset top margin for lists in div col */
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.div-col-rel dl,
.collapseButton {
.div-col-rel ol,
    /* @noflip */
.div-col-rel ul {
    float: right;
margin-top: 0;
    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. */
.navbox .collapseButton {
    width: 6em;
}
}


/* 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;
.navbox .mw-collapsible-toggle {
    width: 6em;
}
}

Latest revision as of 11:53, 27 September 2023

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

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

.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;
}

.scroll-table table {
	max-width: 100%;
	overflow: hidden;
	display: block;
	overflow-x: auto;
	white-space: nowrap;
}

.eighty-width img {
    width: 80%;
    height: auto;
}

.fifty-width-left img {
    width: 50%;
    height: auto;
    float: left;
}

.fifty-width-right img {
    width: 50%;
    height: auto;
    float: right;
}

.twenty-five-width-left img {
    width: 25%;
    height: auto;
    float: left;
}

.twenty-five-width-right img {
    width: 25%;
    height: auto;
    float: right;
}

.topbanner img {
    max-width: 100%;
    height: auto;
}

.topbanner-var img {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    padding-bottom: 20px;
}

.proficiency {
	flex-flow: row wrap;
}

.proficiency h2 {
	border: none;
}

.proficiency ul {
    columns: 3;
    width: 600px;
}

.proficiency li {
    margin-bottom: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    border: 2px solid;
}

.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: #002bb8 !important;
}

table.testtable {
     background-image:url('https://wiki.massivecraft.com/images/2/2c/Altalook.png');
}

/* {{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;
}