MediaWiki:Common.css

From WA Military Digital Library
Revision as of 17:45, 14 January 2024 by Gwyn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* make the Infoboxes look pretty. */
.infobox {
	background-color: #f7f7f7;
	border: 2px solid #bbbbbb;
	float: right;
	margin: 0 0 1em 1em;
	padding: 1em;
	width: 250px;
}      
.infobox-title {
	font-size: 1.5em;
	font-weight: Bold;
	text-align: center;
}
.infobox-image {
/*	border: 2px solid #bbbbbb; */
	text-align: center;
}
.infobox th {
    text-align: left;
    vertical-align: top;
    width: 100px;
}
.infobox td {
    vertical-align: top;
}

/* To make images responsive */
.homagebanner img {
	max-width:100%;
	height: auto;
	width: auto;
}


/* Change logo size */
.navbar-brand img {
	height:45px;
	margin-top:-12px;
}

/* Change Background Colour */

body {
	background-color:#666666;
	background-image: url(http://www.wamdl.com.au/WAMDL/images/9/94/KangarooPawBackground30.jpg);
	background-attachment: fixed;
    background-size: 110% 110%;
    background-repeat: no-repeat;
}

h1 {
	color:#000000;
}

#content {
	clear:both;
	background-color:#f7f7f7;
	opacity: 0.98;
	margin-bottom:1em;
	padding-top:.5em;
	padding-bottom:1em;
}

.not-editable .mw-search-createlink {
	display: none;
}

table.wikitable {
	margin:1em 1em 1em 0;
	background:#F9F9F9;
	border:1px #AAA solid;
	border-collapse:collapse;
}

table.wikitable th {
	border:1px #AAA solid;
	padding:0.2em;
}
table.wikitable td {
	border:1px #AAA solid;
	padding:0.2em;
}

table.wikitable th {
	background:#F2F2F2;
	text-align:center;
}

table.wikitable caption {
	margin-left:inherit;
	margin-right:inherit;
}


/* Show / Hide Button on text
.show-hide-text {
  display: flex;
  flex-wrap: wrap;
}

.show-hide-text a {
  order: 2;
}

.show-hide-text p {
  position: relative;
  overflow: hidden;
  max-height: 60px; 
}

.show-hide-text p {
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
}

.show-less {
  display: none;
}

.show-less:target {
  display: block;
}

.show-less:target ~ p {
  display: block;
  max-height: 100%;
}

.show-less:target + a {
  display: none;
}
*/