MediaWiki talk:Common.css

From Wikisource
Jump to navigation Jump to search

poem[edit]

Can someone please add the following:

.verse p { text-indent: 0em; } .poem p { text-indent: 0em; }

poem tags are indenting the first line and they shouldn't. (e.g. Page:Gedichte_Hesse_1919.djvu/6)

Thanks.--Doug.(talk contribs) 11:52, 20 August 2011 (UTC)[reply]

Done by user:phe here. Thanks.--Doug.(talk contribs) 11:55, 20 August 2011 (UTC)[reply]

Header Template[edit]

Seem like Header Template is not showing correct width and position. I think this can help.

/* Real header templates */
.processheadertemplate, .portalheadertemplate, .authortemplate, .headertemplate {
	width: 100%;
	margin-bottom: 5px;
}
/* Forward and backward link */
.gen_header_backlink, .gen_header_forelink {
	width: 20%;
	font-size: 0.9em;
	line-height: normal;
}
.gen_header_backlink {
	text-align: left;
}
.gen_header_forelink {
	text-align: right;
}
/* Title field */
.gen_header_title {
	width: 60%;
	text-align: center;
}

(taken from English wikisource). ទេព សុវិចិត្រ (talk) 02:56, 30 December 2013 (UTC)[reply]

Navbox[edit]

Please add navbox code

/* Default style for navigation boxes */
.navbox {                     /* Navbox container style */
    border: 1px solid #aaa;
    width: 100%;
    margin: auto;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
}
.navbox-inner,
.navbox-subgroup {
    width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
    padding: 0.25em 1em;      /* Title, group and above/below styles */
    line-height: 1.5em;
    text-align: center;
}
th.navbox-group {             /* Group style */
    white-space: nowrap;
    /* @noflip */
    text-align: right;
}
.navbox,
.navbox-subgroup {
    background: #fdfdfd;      /* Background color */
}
.navbox-list {
    line-height: 1.8em;
    border-color: #fdfdfd;    /* Must match background color */
}
.navbox th,
.navbox-title {
    background: #ccccff;      /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
    background: #ddddff;      /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
    background: #e6e6ff;      /* Level 3 color */
}
.navbox-even {
    background: #f7f7f7;      /* Even row striping */
}
.navbox-odd {
    background: transparent;  /* Odd row striping */
}
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
    margin-top: -1px;          /* (doesn't work for IE6, but that's okay)       */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
    padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}
ol + table.navbox,
ul + table.navbox {
    margin-top: 0.5em;        /* Prevent lists from clinging to navboxes */
}
 
/* Default styling for Navbar template */
.navbar {
    display: inline;
    font-size: 88%;
    font-weight: normal;
}
.navbar ul {
    display: inline;
    white-space: nowrap;
}
.navbar li {
    word-spacing: -0.125em;
}
.navbar.mini li span {
  font-variant: small-caps;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
    font-size: 100%;
}
.navbox .navbar {
    display: block;
    font-size: 100%;
}
.navbox-title .navbar {
    /* @noflip */
    float: left;
    /* @noflip */
    text-align: left;
    /* @noflip */
    margin-right: 0.5em;
    width: 6em;
}
 
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
   in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
    /* @noflip */
    float: right;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
   from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
    width: 6em;
}
 
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
    font-weight: normal;
    /* @noflip */
    text-align: right;
}
.navbox .mw-collapsible-toggle {
    width: 6em;
}

Thanks. Bennylin (talk) 09:57, 3 January 2014 (UTC)[reply]

@Bennylin: Since this request has stood here for 4 years (!) without action, I removed the {{editprotected}} template without making any action. If you still think it's necessary, please add it again, but note that stuff like this should rather go in TemplateStyles now rather than Common.css (that was obviously not the case 4 years ago though). Jon Harald Søby (talk) 12:36, 10 October 2018 (UTC)[reply]
Sure. I almost forgot what i asked this for though, hahaha... Bennylin (talk) 17:00, 13 October 2018 (UTC)[reply]

Textinfo[edit]

Please add this code to css. It's for Textinfo template (from Wikisource EN). Thank

ទេព សុវិចិត្រ (talk) 17:15, 8 February 2014 (UTC)[reply]

}
/* TextInfo template */
.textinfo {
	background-color: #B0E0A0;
	border: 1px solid #0E8605;
	margin: 1px;
	padding: 1px;
}
.textinfo th {
	color: #FFFFFF !important;
	background-color: #0E8605;
	font-size: 1.2em !important;
	font-weight: normal;
	padding: 5px 5px 5px 5px !important;
	text-align: center;
}
.textinfo tr {
	vertical-align: top !important;
}
.textinfo td.col1 {
	color: #000000;
	background-color: #6EF7A7;
	font-weight: bold;
	padding: 3px 5px 3px 5px !important;
	text-align: right;
}
.textinfo td.col2 {
	background-color: #C6FFC6;
	padding: 3px 5px 3px 5px !important;
	text-align: left;
}

Class .tiInherit[edit]

@Ooswesthoesbes, Zyephyrus: Both Template:Center and Template:Outdent assign a class="tiInherit" to related div; tiInherit IMHO means "text-indent:inherit". Please consider to add

 .tiInherit p {
	text-indent:inherit;
}

to MediaWiki:Common.css page, after .pagetext p {text-indent:2em;} ; just to allow that class .tiInherit does its work. --Alex brollo (talk) 07:57, 29 September 2015 (UTC)[reply]

@Alex brollo: I added it. Could you please check whether it is okay? --Ooswesthoesbes (talk) 12:00, 29 September 2015 (UTC)[reply]
Ok. The tests are simple:
test 1 - center (ok)

test text


test 2 outdent (ok)

Vicie. (dal fondo a Peppeniello, che lo segue con un involto sotto il braccio). Trase, trase, Peppeniè!.. Nun avè paura, aspetta ccà, e nun te movere. Chillo mo’ esce lu patrone, e io te ce presento. Haje capito?

Pepp. Sissignore.

Vicie. Vedite llà!.. A chell'aità!... Povero guaglione, va truvanno de fa lu servitore pe magnà. Ma, dimme na cosa, viene ccà... tu a Michele lu senzale comme lu canusce?

Very good for me! I hope that this change will not break something by other users - let's wait and see. Alex brollo (talk) 13:46, 29 September 2015 (UTC)[reply]
Good :) We will see very fast whether anything is broken. --Ooswesthoesbes (talk) 15:40, 29 September 2015 (UTC)[reply]