MediaWiki:Common.css: Difference between revisions

Add textbox CSS
No edit summary
Line 1,602: Line 1,602:


/*-------------------------*/
/*-------------------------*/
/*
*****************************************************************************
***                          wikitable support                          ***
*****************************************************************************/
table.wikitable.alt tr:nth-child(even) th,
table.wikitable.alt tr:nth-child(even) td
{
background-color: #e0e0e0;
}
/*
*****************************************************************************
***                        textbox table alignment                        ***
*****************************************************************************/
table.textbox
{
border-collapse: collapse;
margin: 0 0 1em;
}
table.textbox th,
table.textbox td
{
/* text-align: left; */
padding: 0.1em 0.4em;
}
table.center th,
table.center td
{
text-align: center;
padding: 0.1em 0.4em;
}
/*
*****************************************************************************
***                                floats                                ***
*****************************************************************************/
table.textbox.float-right
{
float: right;
clear: right;
width: 358px;
margin: 0 0 1em 1em;
}
table.textbox.float-left
{
float: left;
clear: left;
width: 358px;
margin: 0 1em 1em 0;
}
div.float-right
{
float: right;
clear: right;
width: 358px;
margin: 0 0 1em 1em;
padding: 0;
}
div.float-right-min
{
float: right;
clear: right;
min-width: 358px;
margin: 0 0 1em 1em;
padding: 0;
}
div.float-right table.textbox.float-right
{
float: none;
width: 358px;
margin: 0 0 1em 0;
}
div.float-left table.textbox.float-left
{
float: none;
width: 358px;
margin: 0 0 1em 0;
}
/*
*****************************************************************************
***                        standard wiki tables                          ***
*****************************************************************************/
table.wikitable caption    { background-color: #d0d0e0; color: #000000; }
table.wikitable tr.tr0a th { background-color: #000060; color: #ffff00; }
table.wikitable tr.tr0b th { background-color: #000090; color: #ffff00; }
table.wikitable tr.tr1a    { background-color: #d0eed0; color: #000000; }
table.wikitable tr.tr1b    { background-color: #e0ffe0; color: #000000; }
table.wikitable tr.tr2a    { background-color: #d0d0ee; color: #000000; }
table.wikitable tr.tr2b    { background-color: #e0e0ff; color: #000000; }
/*
*****************************************************************************
***                            multi column                              ***
*****************************************************************************/
.multi-col
{
width: 100%;
border-collapse: collapse;
}
.multi-col tr
{
vertical-align: top;
}
.multi-col td
{
padding: 0;
}
.multi-col .left-col .textbox
{
margin-right: 0.5em;
}
.multi-col .mid-col .textbox
{
margin-left: 0.5em;
margin-right: 0.5em;
}
.multi-col .right-col .textbox
{
margin-left: 0.5em;
}