Difference between revisions of "MediaWiki:Common.css"

From Wiki Itajaí
Jump to navigation Jump to search
Line 1: Line 1:
/*
 
* Please do not add any CSS rules here that impact the positioning of the element
 
*  e.g. padding, margin, position or float.
 
* These instead should live in jquery.makeCollapsible.styles
 
*/
 
 
 
/* See also jquery.makeCollapsible.js */
 
/* See also jquery.makeCollapsible.js */
 
.mw-collapsible-toggle {
 
.mw-collapsible-toggle {
  float: right;
+
float: right;
  -moz-user-select: none;
 
  -webkit-user-select: none;
 
  -ms-user-select: none;
 
  user-select: none;
 
}
 
.mw-collapsible-toggle-default:before {
 
  content: '[';
 
}
 
.mw-collapsible-toggle-default:after {
 
  content: ']';
 
 
}
 
}
  
.mw-customtoggle,
+
/* list-items go as wide as their parent element, don't float them inside list items */
.mw-collapsible-toggle {
+
li .mw-collapsible-toggle {
  cursor: pointer;
+
float: none;
 
}
 
}
  
/* collapse links in captions should be inline */
+
/* the added list item should have no list-style */
caption .mw-collapsible-toggle,
+
.mw-collapsible-toggle-li {
.mw-content-ltr caption .mw-collapsible-toggle,
+
list-style: none;
.mw-content-rtl caption .mw-collapsible-toggle,
 
.mw-content-rtl .mw-content-ltr caption .mw-collapsible-toggle,
 
.mw-content-ltr .mw-content-rtl caption .mw-collapsible-toggle {
 
  float: none;
 
 
}
 
}

Revision as of 17:55, 28 May 2018

/* See also jquery.makeCollapsible.js */
.mw-collapsible-toggle {
	float: right;
}

/* list-items go as wide as their parent element, don't float them inside list items */
li .mw-collapsible-toggle {
	float: none;
}

/* the added list item should have no list-style */
.mw-collapsible-toggle-li {
	list-style: none;
}