Jump to content

MediaWiki:Common.css: Difference between revisions

From Knowledge Base
No edit summary
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/*Hide sidebar links*/
/*#ca-edit, #ca-history {
#p-tb {
     display: none;
     display: none !important;
}*/
 
pre {
    padding: 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
    font-family: Consolas, 'Courier New', monospace;
}
}


#p-search { display: none; }


pre code.hljs {
/* Comments should always take priority */
  display: block;
pre.csharp .csharp-comment {
  overflow-x: auto;
    color: green;
  padding: 1em
    font-style: italic;
    z-index: 10; /* Ensure it's on top */
    position: relative; /* Prevent overlaps */
}
}
code.hljs {
 
  padding: 3px 5px
/* Add z-index to other elements to prevent overlap */
pre.csharp span {
    position: relative;
    z-index: 1;
}
}
/*!
  Theme: Default
  Description: Original highlight.js style
  Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
  Maintainer: @highlightjs/core-team
  Website: https://highlightjs.org/
  License: see project LICENSE
  Touched: 2021
*/
/*
This is left on purpose making default.css the single file that can be lifted
as-is from the repository directly without the need for a build step


Typically this "required" baseline CSS is added by `makestuff.js` during build.
/* Styling for C# keywords */
*/
.csharp-keyword {
pre code.hljs {
    color: #1E90FF; /* DodgerBlue */
  display: block;
    font-weight: bold;
  overflow-x: auto;
  padding: 1em
}
}
code.hljs {
 
  padding: 3px 5px
/* Styling for C# types */
.csharp-type {
    color: #8A2BE2; /* BlueViolet  */
    font-weight: bold;
}
}
/* end baseline CSS */
 
.hljs {
/* Styling for C# method names */
  background: #F3F3F3;
.csharp-method {
  color: #444
    color: #3CB371; /* MediumSeaGreen */
    font-weight: bold;
}
}
/* Base color: saturation 0; */
 
.hljs-subst {
/* Styling for C# variables */
  /* default */
.csharp-variable {
 
    color: #FF8C00; /* DarkOrange */
    font-style: italic;
}
}
/* purposely ignored */
 
.hljs-formula,
/* Styling for C# class names */
.hljs-attr,
.csharp-class {
.hljs-property,
    color: #6A5ACD; /* SlateBlue */
.hljs-params {
    font-weight: bold;
 
}
}
.hljs-comment {
 
  color: #697070
/* Styling for C# property names */
.csharp-property {
    color: #00BFFF; /* DeepSkyBlue */
    font-style: italic;
}
}
.hljs-tag,
 
.hljs-punctuation {
/* Styling for curly braces */
  color: #444a
.csharp-brace {
    font-weight: bold;
    font-size: 1.1em;
}
}
.hljs-tag .hljs-name,
 
.hljs-tag .hljs-attr {
/* Add spacing for nested items */
  color: #444
ul {
    margin-left: 20px;
}
}
.hljs-keyword,
 
.hljs-attribute,
/* Improve readability of bullet points */
.hljs-selector-tag,
ul li {
.hljs-meta .hljs-keyword,
    margin-bottom: 5px;
.hljs-doctag,
.hljs-name {
  font-weight: bold
}
}
/* User color: hue: 0 */
 
.hljs-type,
/* Optional: Style for section titles for better separation */
.hljs-string,
h2, h3, h4 {
.hljs-number,
    margin-top: 20px;
.hljs-selector-id,
    margin-bottom: 10px;
.hljs-selector-class,
    color: #2c3e50;
.hljs-quote,
.hljs-template-tag,
.hljs-deletion {
  color: #880000
}
.hljs-title,
.hljs-section {
  color: #880000;
  font-weight: bold
}
.hljs-regexp,
.hljs-symbol,
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr,
.hljs-operator,
.hljs-selector-pseudo {
  color: #ab5656
}
/* Language color: hue: 90; */
.hljs-literal {
  color: #695
}
.hljs-built_in,
.hljs-bullet,
.hljs-code,
.hljs-addition {
  color: #397300
}
/* Meta color: hue: 200 */
.hljs-meta {
  color: #1f7199
}
.hljs-meta .hljs-string {
  color: #38a
}
/* Misc effects */
.hljs-emphasis {
  font-style: italic
}
.hljs-strong {
  font-weight: bold
}
}

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;
}