Difference between revisions of "MediaWiki:Common.css"

From The Battle for Wesnoth Wiki
(Make the line numbers look a bit better too)
 
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
     content: "FIXME -- THIS IS A TOP-LEVEL HEADING WHERE IT SHOULDN'T BE"
 
     content: "FIXME -- THIS IS A TOP-LEVEL HEADING WHERE IT SHOULDN'T BE"
 
}
 
}
 +
 +
/*
 +
* Additional CSS for the WML Pygments lexer
 +
*/
 +
 +
.mw-highlight .nte,
 +
.mw-highlight .nta,
 +
.mw-highlight .nti {
 +
font-weight: bold;
 +
}
 +
 +
/* [event] */ .mw-highlight .nte { color: #000080; }
 +
/* [animation] */ .mw-highlight .nta { color: #800080; }
 +
/* [insert_tag] */ .mw-highlight .nti { color: #BB6688; }
  
 
table.collapsed tr.collapsible {
 
table.collapsed tr.collapsible {
Line 16: Line 30:
 
         text-align: right;
 
         text-align: right;
 
         width: auto;
 
         width: auto;
 +
}
 +
 +
/* Don't select line numbers in code boxes */
 +
 +
.codebox .linenos {
 +
  -webkit-user-select: none; 
 +
  -moz-user-select: none;   
 +
  -ms-user-select: none;
 +
  user-select: none;
 +
  font-weight: bold;
 +
  padding-right: 10px
 
}
 
}

Latest revision as of 23:43, 8 August 2024

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

h1:not(.firstHeading)::before {
    color: #f00;
    font-size: 40px;
    content: "FIXME -- THIS IS A TOP-LEVEL HEADING WHERE IT SHOULDN'T BE"
}

/*
 * Additional CSS for the WML Pygments lexer
 */

.mw-highlight .nte,
.mw-highlight .nta,
.mw-highlight .nti {
	font-weight: bold;
}

/* [event] */ .mw-highlight .nte { color: #000080; }
/* [animation] */ .mw-highlight .nta { color: #800080; }
/* [insert_tag] */ .mw-highlight .nti { color: #BB6688; }

table.collapsed tr.collapsible {
        display: none;
}
 
.collapseButton {                /* 'show'/'hide' buttons created dynamically by the               */
        float: right;               /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
        font-weight: normal;        /* are styled here so they can be customised.               */
        text-align: right;
        width: auto;
}

/* Don't select line numbers in code boxes */

.codebox .linenos {
  -webkit-user-select: none;  
  -moz-user-select: none;    
  -ms-user-select: none; 
  user-select: none;
  font-weight: bold;
  padding-right: 10px
}
This page was last edited on 8 August 2024, at 23:43.