Difference between revisions of "MediaWiki:Common.css"

From Mashinky
Jump to: navigation, search
m
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
   }
 
   }
 
}
 
}
 +
 +
/* Responsive image size for images next to the sidebar */
 +
.res-img img {
 +
max-width: max-content;
 +
height: auto;
 +
width: calc(100% - 250px);
 +
}
 +
 
#p-personal a.new {
 
#p-personal a.new {
 
     color: #fff!important;
 
     color: #fff!important;
Line 90: Line 98:
 
     color: #222222;
 
     color: #222222;
 
     font-size: 120%;
 
     font-size: 120%;
 +
}
 +
 +
/* fix <pre> box overlapping the sidebar */
 +
pre {
 +
  display: flex;
 +
}
 +
 +
/* Template:Note related CSS */
 +
.note {
 +
background-position: left 7px top 50%;
 +
padding: 0.5em 0.5em 0.5em 40px;
 +
margin: 0.5em 0;
 +
overflow: hidden;
 +
background-color: #f8f9fa;
 +
background-repeat: no-repeat;
 +
border: 1px solid #ddd;
 +
}
 +
.note-inline {
 +
display: inline-block;
 +
vertical-align: middle;
 +
}
 +
.note-info {
 +
background-color: #f6efe5;
 +
/* [[File:OOjs_UI_icon_reference_20_ac6600.svg]] */
 +
background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d5/OOjs_UI_icon_reference_20_ac6600.svg);
 +
background-size: 25px;
 +
border-color: #ac6600;
 +
padding-left: 40px;
 +
min-height: 28px;
 +
}
 +
.note-reminder {
 +
background-color: #fff9ea;
 +
/* [[File:OOjs_UI_icon_lightbulb-yellow.svg]] */
 +
background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg);
 +
background-size: 25px;
 +
border-color: #fc3;
 +
min-height: 28px;
 +
}
 +
.note-warn {
 +
background-color: #fff9ea;
 +
/* [[File:OOjs_UI_icon_alert-warning.svg]] */
 +
background-image: url(https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg);
 +
background-size: 25px;
 +
border-color: #fc3;
 +
min-height: 28px;
 +
}
 +
 +
.note-error {
 +
background-color: #fee7e6;
 +
/* [[File:OOjs_UI_icon_notice-destructive.svg]] */
 +
background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg);
 +
background-size: 25px;
 +
border-color: #c33;
 +
min-height: 28px;
 
}
 
}

Latest revision as of 00:03, 20 January 2024

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

@media screen and ( min-width: 982px ) {
  .nomobile{
    display:block;
  }
  td.nomobile,th.nomobile{
    display:table-cell;
  }
}

/* Responsive image size for images next to the sidebar */
.res-img img {
	max-width: max-content;
	height: auto;
	width: calc(100% - 250px);
}

#p-personal a.new {
    color: #fff!important;
}
div#contentSidebar {
   border:1px dashed #a7d7f9;padding:0.5em 1em;float:right;margin-left:2em;
}
.col5 div.mainmenuCol{
width:20%;
}
.col7 div.mainmenuCol{
width:14.28%;
}

table.transformable td span{display:none;}
@media 
only screen and (max-width: 720px){
  .col5 div.mainmenuCol,.col7 div.mainmenuCol{
     width:100%;
  }
}


@media 
only screen and (max-width: 720px),
(min-device-width: 768px) and (max-device-width: 1024px)  {


	/* Force table to not be like tables anymore */
	table.transformable, 
  table.transformable thead, 
  table.transformable tbody, 
  table.transformable th, 
  table.transformable td, 
  table.transformable tr { 
		display: block; 
	}
	table.transformable {margin-bottom:10px;}
	/* Hide table headers (but not display: none;, for accessibility) */
	table.transformable tbody  tr:nth-of-type(1) { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	table.transformable tr { border: 1px solid #ccc; }
	
	table.transformable td { 
		/* Behave  like a "row" */
		border: none!important;
		border-bottom: 1px solid #eee!important; 
		position: relative;
		 
	}
	
	table.transformable td span { 
		/* Now like a table header */
		
		/* Top/left values mimic padding */
		
		
		width: 45%; 
		padding-right: 10px; 
		
    display:inline-block;
    font-weight:bold;
	}
	   
	  
  }
#talkheaderbody{
width: 80%;
margin: 0px auto 1em;
border: 1px solid #aaa;
background-color:rgba(255,255,255,0.58);
color: rgb(0,0,0);
}
#talkheadertitle {
    background-color: #eef3fa;
    text-align: center;
    color: #222222;
    font-size: 120%;
}

/* fix <pre> box overlapping the sidebar */
pre {
  display: flex;
}

/* Template:Note related CSS */
.note {
	background-position: left 7px top 50%;
	padding: 0.5em 0.5em 0.5em 40px;
	margin: 0.5em 0;
	overflow: hidden;
	background-color: #f8f9fa;
	background-repeat: no-repeat;
	border: 1px solid #ddd;
}
.note-inline {
	display: inline-block;
	vertical-align: middle;
}
.note-info {
	background-color: #f6efe5;
	/* [[File:OOjs_UI_icon_reference_20_ac6600.svg]] */
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d5/OOjs_UI_icon_reference_20_ac6600.svg);
	background-size: 25px;
	border-color: #ac6600;
	padding-left: 40px;
	min-height: 28px;
}
.note-reminder {
	background-color: #fff9ea;
	/* [[File:OOjs_UI_icon_lightbulb-yellow.svg]] */
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg);
	background-size: 25px;
	border-color: #fc3;
	min-height: 28px;
}
.note-warn {
	background-color: #fff9ea;
	/* [[File:OOjs_UI_icon_alert-warning.svg]] */
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg);
	background-size: 25px;
	border-color: #fc3;
	min-height: 28px;
}

.note-error {
	background-color: #fee7e6;
	/* [[File:OOjs_UI_icon_notice-destructive.svg]] */
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg);
	background-size: 25px;
	border-color: #c33;
	min-height: 28px;
}