m |
m (Apply specific styles for small screens code added, may need adjustments) |
||
| Line 24: | Line 24: | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
| − | /* Code added by blopi */ | + | |
| + | /* Code below added by blopi */ | ||
/* style the backtick text */ | /* style the backtick text */ | ||
.backtick-style { | .backtick-style { | ||
| Line 82: | Line 83: | ||
background-color: hsl(210, 15%, 22%) !important; /* Background */ | background-color: hsl(210, 15%, 22%) !important; /* Background */ | ||
color: hsl(219, 28%, 88%) !important; /* General text color */ | color: hsl(219, 28%, 88%) !important; /* General text color */ | ||
| + | } | ||
| + | |||
| + | /* Make code blocks responsive on mobile */ | ||
| + | pre, code, .syntaxhighlight { | ||
| + | white-space: pre-wrap; /* Allow line breaks */ | ||
| + | word-wrap: break-word; /* Allow long words to break */ | ||
| + | max-width: 100%; /* Ensure blocks don't exceed screen width */ | ||
| + | } | ||
| + | |||
| + | /* Apply specific styles for small screens */ | ||
| + | @media only screen and (max-width: 600px) { | ||
| + | pre, code, .syntaxhighlight { | ||
| + | font-size: 12px; /* Reduce text size for better fit */ | ||
| + | padding: 5px; /* Reduce padding/margins */ | ||
| + | overflow-x: auto; /* Enable horizontal scrolling if necessary */ | ||
| + | } | ||
} | } | ||
/* CSS placed here will be applied to all skins */ /* wikitable/prettytable */ table.wikitable, table.prettytable { margin: 13px 13px 13px 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; } .wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td, .prettytable > tr > th, .prettytable > tr > td, .prettytable > * > tr > th, .prettytable > * > tr > td { border: 1px #aaa solid; padding: 3px; } .wikitable > tr > th, .wikitable > * > tr > th, .prettytable > tr > th, .prettytable > * > tr > th { background: #f2f2f2; text-align: center; } .wikitable > caption, .prettytable > caption { font-weight: bold; } /* Code below added by blopi */ /* style the backtick text */ .backtick-style { font-family: monospace; background-color: #f8f9fa; padding: 0.2em 0.4em; border: 1px solid #d1d5da; border-radius: 3px; } /* Style parentheses (like () ) */ .csharp.source-csharp .br0 { color: hsl(32, 93%, 66%) !important; /* Orange for parentheses */ } /* Style comments */ .csharp.source-csharp .co1 { color: hsl(221, 12%, 69%) !important; /* Light blue for comments */ } /* Style kw1 keywords (main keywords like public, class, etc.) */ .csharp.source-csharp .kw1 { color: hsl(357, 75%, 77%) !important; /* Light red color */ } /* Style additional keywords (kw3) */ .csharp.source-csharp .kw3 { color: hsl(300, 30%, 68%) !important; /* Pink for keyword uniformity */ } /* Style kw4 keywords (other keywords) */ .csharp.source-csharp .kw4 { color: hsl(300, 30%, 68%) !important; /* Same pink color for uniformity */ } /* Style methods (functions like UnhighlightCards, SetGameState) */ .csharp.source-csharp .me1 { color: hsl(210, 50%, 60%) !important; /* Light blue for methods */ } /* Style numbers */ .csharp.source-csharp .nu0 { color: hsl(32, 93%, 66%) !important; /* Orange for numbers */ } /* Style symbols (like ;, =, <, >, .) */ .csharp.source-csharp .sy0 { color: hsl(57, 93%, 66%) !important; /* Yellow for symbols */ } /* Style strings */ .csharp.source-csharp .st0 { color: hsl(114, 31%, 68%) !important; /* Light green for strings */ } /* Background and general text color for code blocks */ .syntaxhighlight { background-color: hsl(210, 15%, 22%) !important; /* Background */ color: hsl(219, 28%, 88%) !important; /* General text color */ } /* Make code blocks responsive on mobile */ pre, code, .syntaxhighlight { white-space: pre-wrap; /* Allow line breaks */ word-wrap: break-word; /* Allow long words to break */ max-width: 100%; /* Ensure blocks don't exceed screen width */ } /* Apply specific styles for small screens */ @media only screen and (max-width: 600px) { pre, code, .syntaxhighlight { font-size: 12px; /* Reduce text size for better fit */ padding: 5px; /* Reduce padding/margins */ overflow-x: auto; /* Enable horizontal scrolling if necessary */ } }