Difference between revisions of "MediaWiki:Common.css"

m
m

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

/* Hide author's name on the top right of the page */ .page-tool-text :last-child {

   display:none;

}

/* Hide discussions on all pages */ .bs-data-after-content-socialtopics, .bs-icon-talk {

   display:none;

}

/*To hide section attachements in all wiki pages*/ /* Hide stash on all pages */ .bs-data-after-content-socialwikipagestash { display:none; }

/*This part is to reenable the attachment section on the page "Pagename", this must be changed to the title of the page you want the attachments to reappear. But be aware that this will break when the page is moved. The CSS must be adjusted when renaming pages that are styled this wa*/ /* Show stash on specific pages */ .page-Pagename .bs-data-after-content-socialwikipagestash { display:inherit; }

/*** added by NSA for portal pages***/

.portalbox {

 float: left; 
 width: 220px;
 height: 300px; 
 padding: 5px; 
 margin: 2px; 
 background-color: #ffffff ; 
 text-align: center;

} .portalbox a {

 color: #39a9dc!important;

}

/*** around 4 items per line ***/ .boxwrapper {

 width: 100%;
 margin: 0 auto; 
 float: none;

}

/*** around 3 items per line ***/ .boxwrapper3items {

 width: 75%; 
 margin: 0 auto; 
 float: none;

}

/*** around 2 items per line ***/ .boxwrapper2items {

 width: 75%; 
 margin: 0 auto; 
 float: none;

} /*** around 1 item per line ***/ .boxwrapper1item {

 width: 50%; 
 margin: 0 auto; 
 float: none;

}

/***Added by Christophe Rehm for removing Export menu temporarily (until ST template has been setup) ***/

  1. bs-ta-uemodulepdf, #pdf-subpages {

display: none; }

/*** Numbered list style used when the reference list is rendered ***/

  1. content #bodyContent .references {

list-style-type: decimal !important; }

/* ** Added by Jean-Christophe Trotin to To make images responsive ***/ .res-img img { max-width:100%; height:auto; }

/*** Added by Jean-Christophe Trotin to freeze the first row and the first column of tables ***/ table.freezable th { position: -webkit-sticky; /* for Safari */ position: sticky; top: 0; background: white; }

table.freezable th:first-child { left: 0; z-index: 1; }

table.freezable td:first-child { position: -webkit-sticky; /* for Safari */ position: sticky; left: 0; background: white; }

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

/* Hide author's name on the top right of the page */
.page-tool-text :last-child {
    display:none;
}

/* Hide discussions on all pages */
.bs-data-after-content-socialtopics, .bs-icon-talk {
    display:none;
}

/*To hide section attachements in all wiki pages*/
/* Hide stash on all pages */
.bs-data-after-content-socialwikipagestash {
	display:none;
}

/*This part is to reenable the attachment section on the page "Pagename", this must be changed to the title of the page you want the attachments to reappear. But be aware that this will break when the page is moved. The CSS must be adjusted when renaming pages that are styled this wa*/
/* Show stash on specific pages */
.page-Pagename .bs-data-after-content-socialwikipagestash {
	display:inherit;
}

/*** added by NSA for portal pages***/

.portalbox {
  float: left; 
  width: 220px;
  height: 300px; 
  padding: 5px; 
  margin: 2px; 
  background-color: #ffffff ; 
  text-align: center;
}
.portalbox a {
  color: #39a9dc!important;
}

/*** around 4 items per line ***/
.boxwrapper {
  width: 100%;
  margin: 0 auto; 
  float: none;
}

/*** around 3 items per line ***/
.boxwrapper3items {
  width: 75%; 
  margin: 0 auto; 
  float: none;
}

/*** around 2 items per line ***/
.boxwrapper2items {
  width: 75%; 
  margin: 0 auto; 
  float: none;
}
/*** around 1 item per line ***/
.boxwrapper1item {
  width: 50%; 
  margin: 0 auto; 
  float: none;
}

/***Added by Christophe Rehm for removing Export menu temporarily (until ST template has been setup) ***/
#bs-ta-uemodulepdf, #pdf-subpages { 
	display: none; 
}

/*** Numbered list style used when the reference list is rendered ***/
#content #bodyContent .references {
	list-style-type: decimal !important;
}

/*** Added by Jean-Christophe Trotin to make images responsive *** To make images responsive */
.res-img img {
	max-width:100%;
	height:auto;
}


/*** Added by Jean-Christophe Trotin to freeze the first row and the first column of tables ***/
table.freezable th {
	position: -webkit-sticky; /* for Safari */
	position: sticky;
	top: 0;
	background: white;
}

table.freezable th:first-child {
	left: 0;
	z-index: 1;
}

table.freezable td:first-child {
	position: -webkit-sticky; /* for Safari */
	position: sticky;
	left: 0;
	background: white;
}
Line 75: Line 75:
 
}
 
}
   
/* To make images responsive */
+
/*** Added by Jean-Christophe Trotin to make images responsive ***/
 
.res-img img {
 
.res-img img {
 
max-width:100%;
 
max-width:100%;
 
height:auto;
 
height:auto;
  +
}
  +
  +
/*** Added by Jean-Christophe Trotin to freeze the first row and the first column of tables ***/
  +
table.freezable th {
  +
position: -webkit-sticky; /* for Safari */
  +
position: sticky;
  +
top: 0;
  +
background: white;
  +
}
  +
  +
table.freezable th:first-child {
  +
left: 0;
  +
z-index: 1;
  +
}
  +
  +
table.freezable td:first-child {
  +
position: -webkit-sticky; /* for Safari */
  +
position: sticky;
  +
left: 0;
  +
background: white;
 
}
 
}