Difference between revisions of "MediaWiki:Common.css"

From Marspedia
Jump to: navigation, search
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* @import "https://marspedia.org/MediaWiki:Exoproject.css&action=raw&ctype=text/css"; */
+
/* CSS placed here will be applied to all skins */
  
/* CSS placed here will be applied to all skins */
 
  
 +
/* Begin James Gholston Test CSS */
 +
/* @import "https://marspedia.org/MediaWiki:Exoproject.css&action=raw&ctype=text/css"; */
 
#wazootoo
 
#wazootoo
 
   /* Testing $wgUseSiteCss */
 
   /* Testing $wgUseSiteCss */
Line 9: Line 10:
 
   background: #00FFFF
 
   background: #00FFFF
 
   }
 
   }
 +
/* End James Gholston Test CSS */
 +
 +
 +
@import url("https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif")
 +
 +
body {font-family: "Noto Sans", sans-serif}
 +
/* changes the default font used for MediaWiki to Noto Sans (does not include headings or monospaced text) */
 +
 +
div#content h1, div#content h2 {font-family: "Noto Serif", serif}
 +
/* changes the default font used for MediaWiki headings to Noto Serif */
  
 +
/* Shrink images when on mobile (needs improvement) */
 +
img {
 +
  max-width: 100%;
 +
  height:auto;
 +
}
  
 
/* Main Page CSS from Mediawiki.org */
 
/* Main Page CSS from Mediawiki.org */
 +
 +
.mainpage_heybox {
 +
  border:3px solid #9B301C;
 +
  background:#F97242;
 +
  padding:0.225em;
 +
  text-align:center;
 +
}
 +
 +
.mainpage_heybox a {
 +
  color:#FFF;
 +
}
  
 
.mainpage_topbox {
 
.mainpage_topbox {
Line 36: Line 63:
 
     vertical-align: middle;
 
     vertical-align: middle;
 
}
 
}
 +
 +
.mainpage_hubbox mainpage_featuredcell {
 +
    padding-left:5px;
 +
  img {
 +
    padding-left:0;
 +
  }
 +
}
 +
  
 
.mainpage_pagetitle {
 
.mainpage_pagetitle {
Line 79: Line 114:
 
     padding: 0;
 
     padding: 0;
 
     border: 1px solid #aaaaaa;
 
     border: 1px solid #aaaaaa;
}
 
 
.mainpage_newscell .mainpage_boxtitle {
 
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Exquisite-khelpcenter.png/20px-Exquisite-khelpcenter.png);
 
    background-repeat: no-repeat;
 
    background-position: 99% 0.3em;
 
    padding-right: 25px;
 
}
 
 
.mainpage_downloadcell .mainpage_boxtitle {
 
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Crystal_Clear_action_build.png/18px-Crystal_Clear_action_build.png);
 
    background-repeat: no-repeat;
 
    background-position: 96% 0.33em;
 
    padding-right: 25px;
 
}
 
 
.mainpage_opportunitiescell .mainpage_boxtitle {
 
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/User-online.svg/20px-User-online.svg.png);
 
    background-repeat: no-repeat;
 
    background-position: 98% 0.15em;
 
    padding-right: 25px;
 
}
 
 
.mainpage_featuredpagescell .mainpage_boxtitle {
 
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Note_icon.svg/20px-Note_icon.svg.png);
 
    background-repeat: no-repeat;
 
    background-position: 98% 0.15em;
 
    padding-right: 25px;
 
 
}
 
}
  
 
.mainpage_mwtitle {
 
.mainpage_mwtitle {
     color: #005288;
+
     color: #9b301c;
 
}
 
}
 
  
 
.mainpage_languages {
 
.mainpage_languages {
Line 135: Line 141:
 
box-sizing: border-box;
 
box-sizing: border-box;
 
float: left;
 
float: left;
width: 50%;
+
width:50%;
                margin: 0 1em;
+
}
 +
.mainpage_row2 .mainpage_featuredcell {
 +
flex:1 0;
 +
margin-right:5px;
 +
}
 +
.mainpage_row2 .mainpage_helpcell {
 +
flex:1 0;
 +
margin-left:5px;
 
}
 
}
 
}
 
}
Line 144: Line 157:
 
flex: 1 0 100%;
 
flex: 1 0 100%;
 
width: 100%;
 
width: 100%;
margin: 0.5em 0
+
margin: 0.5em 0;
 
}
 
}
 
}
 
}
Line 154: Line 167:
 
.mainpage_row3 .mainpage_newscell {
 
.mainpage_row3 .mainpage_newscell {
 
flex: 2 0 20em;
 
flex: 2 0 20em;
margin: 0 1em;
+
margin-right:5px;
 
}
 
}
 
.mainpage_row3 .mainpage_aboutcell {
 
.mainpage_row3 .mainpage_aboutcell {
 
flex: 1 2 15em;
 
flex: 1 2 15em;
min-width: 10em;
+
margin-left:5px;
 
}
 
}
 
}
 
}

Latest revision as of 11:54, 17 November 2017

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


/* Begin James Gholston Test CSS */
/* @import "https://marspedia.org/MediaWiki:Exoproject.css&action=raw&ctype=text/css"; */
#wazootoo
  /* Testing $wgUseSiteCss */
  {
   color:      #FF007F;
   background: #00FFFF
   }
/* End James Gholston Test CSS */


@import url("https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif")

body {font-family: "Noto Sans", sans-serif}
/* changes the default font used for MediaWiki to Noto Sans (does not include headings or monospaced text) */

div#content h1, div#content h2 {font-family: "Noto Serif", serif}
/* changes the default font used for MediaWiki headings to Noto Serif */

/* Shrink images when on mobile (needs improvement) */
img {
  max-width: 100%;
  height:auto;
}

/* Main Page CSS from Mediawiki.org */

.mainpage_heybox {
  border:3px solid #9B301C; 
  background:#F97242; 
  padding:0.225em;
  text-align:center;
}

.mainpage_heybox a {
  color:#FFF;
}

.mainpage_topbox {
	background: #f9f9f9;
	margin: 1em 0;
}

.mainpage_layouttable {
	border: 0;
	margin: 0;
	width: 100%;
	border-spacing: 10px;
}
.mainpage_layouttable * > tr > td {
	vertical-align: top;
}

.mainpage_boxtitle {
    font-size: 105%;
    padding: 0.4em;
    background-color: #eeeeee;
    font-weight: bold;
    min-height: 2em;
    vertical-align: middle;
}

.mainpage_hubbox mainpage_featuredcell {
    padding-left:5px;
  img {
    padding-left:0;
  }
}


.mainpage_pagetitle {
    color: #cf7606;
    font-size: 200%;
    padding: 0.2em 0.4em;
}

.mainpage_sitelinks {
    padding: 0.2em;
    text-align: center;
    background-color: white;
    font-weight: bold;
}

.mainpage_hubtitle {
    text-align: center;
}

.mainpage_boxcontents {
    background: #ffffff;
    padding: 0.2em 0.4em;
}

.mainpage_boxcontents_small {
    font-size: 95%;
}

.mainpage_boxcontents_title {
    display: block;
    border-bottom: 1px solid #AAA;
    margin-bottom: 0.5em;
    text-align: center;
    font-weight: bold;
    font-size: larger;
}

.mainpage_middleblock .mainpage_hubbox {
    width: 50%;
}

.mainpage_hubbox, .mainpage_topbox {
    padding: 0;
    border: 1px solid #aaaaaa;
}

.mainpage_mwtitle {
    color: #9b301c;
}

.mainpage_languages {
	margin: 0.5em 10px;
}

.mainpage_row2,
.mainpage_row3 {
	/*display: -webkit-box;*/
	/*display: -moz-box;*/
	/*display: -ms-flexbox;*/
	/*display: -webkit-flex;*/
	display: flex;

	flex-flow: row wrap;
  
  	justify-content: space-between;
  	margin: 1em 0;
}
@media screen and (min-width: 45em) {
	.mainpage_row2 .mainpage_hubbox {
		box-sizing: border-box;
		float: left;
		width:50%;
	}
	.mainpage_row2 .mainpage_featuredcell {
		flex:1 0;
		margin-right:5px;
	}
	.mainpage_row2 .mainpage_helpcell {
		flex:1 0;
		margin-left:5px;
	}
}
@media screen and (max-width: 45em) {
	.mainpage_row2 .mainpage_hubbox {
		box-sizing: border-box;
		flex: 1 0 100%;
		width: 100%;
		margin: 0.5em 0;
	}
}
@media screen and (min-width: 45em) {
	.mainpage_row3 .mainpage_hubbox {
		box-sizing: border-box;
		float: left;
	}
	.mainpage_row3 .mainpage_newscell {
		flex: 2 0 20em;
		margin-right:5px;
	}
	.mainpage_row3 .mainpage_aboutcell {
		flex: 1 2 15em;
		margin-left:5px;
	}
}
@media screen and (max-width: 45em) {
	.mainpage_row3 .mainpage_hubbox {
		box-sizing: border-box;
		flex: 1 0 100%;
		width: 100%;
		margin: 0.5em 0;
	}
}
@media screen and (max-width: 55em) {
	.mainpage_row3 .mainpage_newscell {
		order: -1;
		flex: 1 0 100%;
		width: 100%;
		margin: 0 0 0.5em 0;
	}
}