Jump to content

MediaWiki:Common.css: Difference between revisions

From Knowledge Base
No edit summary
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* PrismJS 1.29.0
/*Hide sidebar links*/
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
#p-tb {
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
    display: none !important;
}
 
#p-search { display: none; }
 
/* Comments should always take priority */
pre.csharp .csharp-comment {
    color: green;
    font-style: italic;
    z-index: 10; /* Ensure it's on top */
    position: relative; /* Prevent overlaps */
}
 
/* Add z-index to other elements to prevent overlap */
pre.csharp span {
    position: relative;
    z-index: 1;
}
 
/* Styling for C# keywords */
.csharp-keyword {
    color: #1E90FF; /* DodgerBlue */
    font-weight: bold;
}
 
/* Styling for C# types */
.csharp-type {
    color: #8A2BE2; /* BlueViolet  */
    font-weight: bold;
}
 
/* Styling for C# method names */
.csharp-method {
    color: #3CB371; /* MediumSeaGreen */
    font-weight: bold;
}
 
/* Styling for C# variables */
.csharp-variable {
    color: #FF8C00; /* DarkOrange */
    font-style: italic;
}
 
/* Styling for C# class names */
.csharp-class {
    color: #6A5ACD; /* SlateBlue */
    font-weight: bold;
}
 
/* Styling for C# property names */
.csharp-property {
    color: #00BFFF; /* DeepSkyBlue */
    font-style: italic;
}
 
/* Styling for curly braces */
.csharp-brace {
    font-weight: bold;
    font-size: 1.1em;
}
 
/* Add spacing for nested items */
ul {
    margin-left: 20px;
}
 
/* Improve readability of bullet points */
ul li {
    margin-bottom: 5px;
}
 
/* Optional: Style for section titles for better separation */
h2, h3, h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

Latest revision as of 07:55, 20 January 2025

/*Hide sidebar links*/
#p-tb {
    display: none !important;
}

#p-search { display: none; }

/* Comments should always take priority */
pre.csharp .csharp-comment {
    color: green;
    font-style: italic;
    z-index: 10; /* Ensure it's on top */
    position: relative; /* Prevent overlaps */
}

/* Add z-index to other elements to prevent overlap */
pre.csharp span {
    position: relative;
    z-index: 1;
}

/* Styling for C# keywords */
.csharp-keyword {
    color: #1E90FF; /* DodgerBlue */
    font-weight: bold;
}

/* Styling for C# types */
.csharp-type {
    color: #8A2BE2; /* BlueViolet  */
    font-weight: bold;
}

/* Styling for C# method names */
.csharp-method {
    color: #3CB371; /* MediumSeaGreen */
    font-weight: bold;
}

/* Styling for C# variables */
.csharp-variable {
    color: #FF8C00; /* DarkOrange */
    font-style: italic;
}

/* Styling for C# class names */
.csharp-class {
    color: #6A5ACD; /* SlateBlue */
    font-weight: bold;
}

/* Styling for C# property names */
.csharp-property {
    color: #00BFFF; /* DeepSkyBlue */
    font-style: italic;
}

/* Styling for curly braces */
.csharp-brace {
    font-weight: bold;
    font-size: 1.1em;
}

/* Add spacing for nested items */
ul {
    margin-left: 20px;
}

/* Improve readability of bullet points */
ul li {
    margin-bottom: 5px;
}

/* Optional: Style for section titles for better separation */
h2, h3, h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}