MediaWiki:Common.css: Difference between revisions

From Fallout: Nevada
m (style sidebar)
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
body.page-Main_Page h1.firstHeading { display:none; }
body.page-Main_Page h1.firstHeading {
    display: none;
}


table.zebra tr:nth-child(2n) { background-color: #e1e1ea; }
table.zebra tr:nth-child(2n) {
table.zebra_light tr:nth-child(2n-1) { background-color: #ededed; }
    background-color: #e1e1ea;
}
table.zebra_light tr:nth-child(2n-1) {
    background-color: #ededed;
}


.wikitable th {
.wikitable th {
text-align: center;
    text-align: center;
font-weight: bold;
    font-weight: bold;
}
}
.wikitable tr {
.wikitable tr {
text-align: center;
    text-align: center;
}
}


.wikitable_l th {
.wikitable_l th {
text-align: left;
    text-align: left;
font-weight: bold;
    font-weight: bold;
}
}
.wikitable_l tr {
.wikitable_l tr {
text-align: left;
    text-align: left;
}
}


.wikitable_info th {
.wikitable_info th {
text-align: left;
    text-align: left;
font-weight: bold;
    font-weight: bold;
}
}
.wikitable_info tr {
.wikitable_info tr {
text-align: left;
    text-align: left;
}
}
.wikitable_info {
.wikitable_info {
width: 320px;
    width: 320px;
border-collapse: collapse;
    border-collapse: collapse;
border-spacing: 0;
    border-spacing: 0;
}
}
.wikitable_info td {
.wikitable_info td {
padding-left:10px;
    padding-left: 10px;
}
}


.img-responsive{
.img-responsive {
max-width:100%;
    max-width: 100%;
height:auto;
    height: auto;
}
}


table.bottom_bar {
table.bottom_bar {
width: 100%;
    width: 100%;
font-size:80%;
    font-size: 80%;
text-align: center;
    text-align: center;
}
}
table.bottom_bar tr td:first-child {
table.bottom_bar tr td:first-child {
font-weight: bold;
    font-weight: bold;
}
}
table.bottom_bar th {
table.bottom_bar th {
font-weight: bold;
    font-weight: bold;
}
table.bottom_bar tr:nth-child(2n-1) {
    background-color: #ededed;
}
}
table.bottom_bar tr:nth-child(2n-1) { background-color: #ededed; }


table.left_bar {
table.left_bar {
max-width: 35%;
    max-width: 35%;
font-size:80%;
    font-size: 80%;
text-align: center;
    text-align: center;
float: left;
    float: left;
margin-right: 25px;
    margin-right: 25px;
}
}
table.left_bar tr td:first-child {
table.left_bar tr td:first-child {
font-weight: bold;
    font-weight: bold;
}
}
table.left_bar th {
table.left_bar th {
font-weight: bold;
    font-weight: bold;
}
table.left_bar tr:nth-child(2n-1) { background-color: #ededed; }
 
 
#n-discord:hover ::after, #n-discord ::after {
  content: '';
  display: inline-block;
  width: 130px;
  height: 20px;
  background: url('https://bgforge.net/assets/logo/discord_full.svg');
  background-repeat: no-repeat;
  background-size: contain;
}
}
#mw-panel .portal .body li#n-discord {
table.left_bar tr:nth-child(2n-1) {
  font-size: 0em;
    background-color: #ededed;
  padding-top: 5px;
}
}


#n-telegram:hover ::after, #n-telegram ::after {
/* sidebar */
  content: '';
/* forums */
  display: inline-block;
li#n-Forums {
  width: 130px;
    background-image: url("https://bgforge.net/assets/logo/bgforge.svg");
  height: 20px;
    background-size: contain;
  background: url('https://bgforge.net/assets/logo/telegram_full.svg');
    background-repeat: no-repeat;
  background-repeat: no-repeat;
  background-size: contain;
}
}
#mw-panel .portal .body li#n-telegram {
li#n-Forums a {
  font-size: 0em;
    margin-left: 23px;
  padding-top: 5px;
}
}
 
/* discord */
#n-irc:hover ::after, #n-irc ::after {
li#n-Discord {
  content: '';
    background-image: url("https://bgforge.net/assets/logo/discord.svg");
  display: inline-block;
    background-size: contain;
  width: 130px;
    background-repeat: no-repeat;
  height: 20px;
  background: url('https://bgforge.net/assets/logo/irc.svg');
  background-repeat: no-repeat;
  background-size: contain;
}
}
#mw-panel .portal .body li#n-irc {
li#n-Discord a {
  font-size: 0em;
    margin-left: 23px;
  padding-top: 5px;
  padding-bottom: 5px;
}
}
 
/* telegram */
li#n-Forums {
li#n-Telegram {
  background-image: url('https://bgforge.net/assets/logo/bgforge.svg');
    background-image: url("https://bgforge.net/assets/logo/telegram.svg");
  background-size: contain;
    background-size: 1.5em;
  background-repeat: no-repeat;
    background-repeat: no-repeat;
}
}
li#n-Forums a {
li#n-Telegram a {
  margin-left: 23px;
    margin-left: 23px;
}
}
 
/* irc */
li#n-BGforge {
li#n-IRC {
  background-image: url('https://bgforge.net/assets/logo/bgforge.svg');
    background-image: url("https://bgforge.net/assets/logo/irc_short.svg");
  background-size: contain;
    background-size: 1.5em;
  background-repeat: no-repeat;
    background-repeat: no-repeat;
}
}
li#n-BGforge a {
li#n-IRC a {
  margin-left: 23px;
    margin-left: 23px;
}
}
/* end sidebar */

Latest revision as of 15:57, 29 August 2023

/* CSS placed here will be applied to all skins */
body.page-Main_Page h1.firstHeading {
    display: none;
}

table.zebra tr:nth-child(2n) {
    background-color: #e1e1ea;
}
table.zebra_light tr:nth-child(2n-1) {
    background-color: #ededed;
}

.wikitable th {
    text-align: center;
    font-weight: bold;
}
.wikitable tr {
    text-align: center;
}

.wikitable_l th {
    text-align: left;
    font-weight: bold;
}
.wikitable_l tr {
    text-align: left;
}

.wikitable_info th {
    text-align: left;
    font-weight: bold;
}
.wikitable_info tr {
    text-align: left;
}
.wikitable_info {
    width: 320px;
    border-collapse: collapse;
    border-spacing: 0;
}
.wikitable_info td {
    padding-left: 10px;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

table.bottom_bar {
    width: 100%;
    font-size: 80%;
    text-align: center;
}
table.bottom_bar tr td:first-child {
    font-weight: bold;
}
table.bottom_bar th {
    font-weight: bold;
}
table.bottom_bar tr:nth-child(2n-1) {
    background-color: #ededed;
}

table.left_bar {
    max-width: 35%;
    font-size: 80%;
    text-align: center;
    float: left;
    margin-right: 25px;
}
table.left_bar tr td:first-child {
    font-weight: bold;
}
table.left_bar th {
    font-weight: bold;
}
table.left_bar tr:nth-child(2n-1) {
    background-color: #ededed;
}

/* sidebar */
/* forums */
li#n-Forums {
    background-image: url("https://bgforge.net/assets/logo/bgforge.svg");
    background-size: contain;
    background-repeat: no-repeat;
}
li#n-Forums a {
    margin-left: 23px;
}
/* discord */
li#n-Discord {
    background-image: url("https://bgforge.net/assets/logo/discord.svg");
    background-size: contain;
    background-repeat: no-repeat;
}
li#n-Discord a {
    margin-left: 23px;
}
/* telegram */
li#n-Telegram {
    background-image: url("https://bgforge.net/assets/logo/telegram.svg");
    background-size: 1.5em;
    background-repeat: no-repeat;
}
li#n-Telegram a {
    margin-left: 23px;
}
/* irc */
li#n-IRC {
    background-image: url("https://bgforge.net/assets/logo/irc_short.svg");
    background-size: 1.5em;
    background-repeat: no-repeat;
}
li#n-IRC a {
    margin-left: 23px;
}
/* end sidebar */