MediaWiki:Common.css: Difference between revisions

From WikiMSK

No edit summary
No edit summary
Line 196: Line 196:


/*Navbox*/
/*Navbox*/
.hlist li {
/* Default style for navigation boxes */
    display: inline;
.navbox {                    /* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0;      /* Prevent preceding content from clinging to navboxes */
}
.navbox .navbox {
margin-top: 0;            /* No top margin for nested navboxes */
}
.navbox + .navbox {
margin-top: -1px;        /* Single pixel border between adjacent navboxes */
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em;      /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-group {            /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,
.navbox-subgroup {
background-color: #fdfdfd; /* Background color */
}
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd;    /* Must match background color */
}
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {    /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
background-color: #ccccff;      /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #ddddff;      /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background-color: #e6e6ff;      /* Level 3 color */
}
.navbox-even {
background-color: #f7f7f7;      /* Even row striping */
}
.navbox-odd {
background-color: transparent;  /* Odd row striping */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}
}


.navbox {
/* Default styling for Navbar template */
    box-sizing: border-box;
.navbar {
    border: 1px solid #a2a9b1;
display: inline;
    width: 100%;
font-size: 88%;
    clear: both;
font-weight: normal;
    font-size: 88%;
}
    text-align: center;
.navbar ul {
    padding: 1px;
display: inline-block;
    margin: 1em auto 0;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.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;
}
}

Revision as of 17:38, 2 August 2020

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

/*remove main page title from the main page*/
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }

/*left hand navigation*/
#mw-navigation {
    background-color: #f8f9fa;
}

/*modify table header*/
.wikitable > tr > th, .wikitable > * > tr > th {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left:0.5em;
  text-align: left;
  background-color: #3498DB;
  color: white;
}

/*Add table striping*/
.wikitable tr:nth-child(even) {background-color: #f8f9fa;}
.wikitable tr:nth-child(odd) {background-color: white;}

/*Format Portal Section*/
.portalMainBox{
	padding: 18px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
}

.otherHeadBox {
    padding: 4px;
    font-size: 110%;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    background-color: #BCD8D8;
}

.portalSection{
	border:solid 1px #BCD8D8;
	border-radius:5px 5px 0 0;
	max-width:800px;
}

.citebox{
	color:#006600;
	padding:0px 0px 15px 0px;
	font-size:16px;
}

/* information boxes and navigation bars */
table.infobox, table.navbar {
  border: 1px solid #aaa;
  border-spacing: 1;
  background-color: white;
}

.infobox td, .navbar td .infobox th, .navbar th {
  padding: 4px;
}
.infobox th, .navbar th {
  background-color: #99CBED;
  white-space: nowrap;
  padding: 5px;
  border: solid 1px #143C57;
}
.infobox tr.title th, .navbar tr.title th,
.infobox th.title, .navbar th.title {
  color: white;
  background-color: #3498DB;
  text-align: center;
  padding: 5px;
}
.infobox td, .navbar td {
  text-align: left;
}

.infobox .kv th, .navbar .kv th {
  width: 15%;
}

.infobox.side {
  width: 22em;
  float: right;
  margin-left: 0.5em;
}
.infobox.side td {
  font-size: 90%;
}

@media only screen and (max-width: 600px) {
  .infobox.side {
    width: 100%;
  }
}

/* curved */
.curved {
  border-radius: 5px;
}

/* Notice */
.notice {
  text-align: center;
  margin: 15px auto;
  max-width: 700px;
  padding: 0.5em;
}
.notice.stub {
  font-style: italic;
}

/*Quotes*/
.right-quote { float: right; }
.left-quote  { float: left;  }
blockquote p span{margin-right:20px;}

/*table of contents*/
.toctitle {
    background: #3498DB;
    color: white;
    margin: -7px -7px 5px -7px;
    padding: 5px;
}

.toctitle h2 {
    color: white;
}

.toctogglelabel{
	color:white;
}

/*videoframe. note I altered the PHP file for the youtube embed extension to add a class*/
@media only screen and (max-width: 600px) {
  .videoframe {
    width: 100%;
  }
}

/* update feed section */
.feed-section {
	display:flex;
	flex-direction:row;
	justify-content:space-between;
	flex-wrap:wrap;
}

.rss-feed {
    border: solid 1px gainsboro;
    padding: 15px;
    background-color: #f8f9fa;
    max-width: 400px;
}

/* footer logo */
.nzamm-logo {
    width: 150px;
    margin: -10px 0px 30px 30px;
}

#footer-poweredbyico::before {
    content: '';
}

#footer-poweredbyico {
    margin-left: 10px;
}

@media only screen and (min-width: 600px) {
	#footer-icons {
    	float: right;
	}
}

#footer-icons {
    float: right;
}

/* toolbar icons */
.tool.tool-button {
    width: 30px!important;
    height: 30px!important;
}

/*MSCatSelect settings*/
#MsCatSelect {
    padding: 10px 20px 0px 20px!important;
}

.addcat {
    padding-bottom: 25px!important;
}

/*Navbox*/
/* Default style for navigation boxes */
.navbox {                     /* Navbox container style */
	box-sizing: border-box;
	border: 1px solid #a2a9b1;
	width: 100%;
	clear: both;
	font-size: 88%;
	text-align: center;
	padding: 1px;
	margin: 1em auto 0;       /* Prevent preceding content from clinging to navboxes */
}
.navbox .navbox {
	margin-top: 0;            /* No top margin for nested navboxes */
}
.navbox + .navbox {
	margin-top: -1px;         /* Single pixel border between adjacent navboxes */
}
.navbox-inner,
.navbox-subgroup {
	width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
	padding: 0.25em 1em;      /* Title, group and above/below styles */
	line-height: 1.5em;
	text-align: center;
}
th.navbox-group {             /* Group style */
	white-space: nowrap;
	/* @noflip */
	text-align: right;
}
.navbox,
.navbox-subgroup {
	background-color: #fdfdfd; /* Background color */
}
.navbox-list {
	line-height: 1.5em;
	border-color: #fdfdfd;    /* Must match background color */
}
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {    /* Borders above 2nd, 3rd, etc. rows */
	border-top: 2px solid #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
	background-color: #ccccff;      /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
	background-color: #ddddff;      /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
	background-color: #e6e6ff;      /* Level 3 color */
}
.navbox-even {
	background-color: #f7f7f7;      /* Even row striping */
}
.navbox-odd {
	background-color: transparent;  /* Odd row striping */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
	padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}

/* Default styling for Navbar template */
.navbar {
	display: inline;
	font-size: 88%;
	font-weight: normal;
}
.navbar ul {
	display: inline-block;
	white-space: nowrap;
}
.mw-body-content .navbar ul {
	line-height: inherit;
}
.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;
}