Difference between revisions of "MediaWiki:Common.css"

From Nynorn
Jump to navigation Jump to search
m (more "book-like" colours?)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 +
 +
/* Décoration des titres de sous-chapitre. */
 +
.mw-body-content h3 {
 +
border-bottom: dotted 1px #aaa;
 +
}
 +
.mw-body-content h4,
 +
.mw-body-content h5,
 +
.mw-body-content h6 {
 +
border-bottom: dotted 1px #ddd;
 +
}
  
 
/* A style for a template for quotations from published works */
 
/* A style for a template for quotations from published works */
Line 12: Line 22:
 
}
 
}
  
/* Décoration des titres de sous-chapitre. */
+
/* Prevent line breaks in silly places where desired (nowrap)
.mw-body-content h3 {
+
  and links when we don't want them to (nowraplinks a) */
border-bottom: dotted 1px #aaa;
+
.nowrap,
 +
.nowraplinks a {
 +
white-space: nowrap;
 
}
 
}
.mw-body-content h4,
+
 
.mw-body-content h5,
+
.nowrap pre {
.mw-body-content h6 {
+
white-space: pre;
border-bottom: dotted 1px #ddd;
 
 
}
 
}

Revision as of 15:18, 10 March 2021

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

/* Décoration des titres de sous-chapitre. */
.mw-body-content h3 {
	border-bottom: dotted 1px #aaa;
}
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
	border-bottom: dotted 1px #ddd;
}

/* A style for a template for quotations from published works */
.bookquote {
  background: #fff0d9;
  border-left: 5px solid #c8b191;
  width: 60%;
  margin: 0 auto;
  padding: 0.5em 10px;
  font-family: Georgia, Times New Roman, Times, serif;
  quotes: "\201C""\201D""\2018""\2019";
}

/* Prevent line breaks in silly places where desired (nowrap)
   and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
	white-space: nowrap;
}

.nowrap pre {
	white-space: pre;
}