Files
awesome-reviewers/assets/css/highlight.css
nimrodkor 2677c73bdd styling
2025-07-07 16:15:14 +03:00

227 lines
4.0 KiB
CSS

/*
GitHub theme for Highlight.js - Custom for Awesome Reviewers
Based on GitHub's syntax highlighting
*/
/* Base styles */
.hljs {
color: #24292f;
background: var(--bg-primary) !important;
}
/* Dark theme adjustments */
[data-theme="dark"] .hljs {
color: #f1f5f9;
background: var(--bg-primary) !important;
}
/* Code block styling - integrates with existing reviewer-prompt styles */
.reviewer-prompt pre code.hljs {
background: none !important;
border: none;
padding: 0;
border-radius: 0;
font-size: inherit;
line-height: inherit;
}
.reviewer-prompt pre {
background: var(--bg-primary) !important;
border: 1px solid var(--border);
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
overflow-x: auto;
}
/* Ensure hljs backgrounds match our theme */
.reviewer-prompt .hljs {
background: var(--bg-primary) !important;
}
.reviewer-prompt pre.hljs {
background: var(--bg-primary) !important;
}
/* Inline code styling */
.reviewer-prompt :not(pre) > code.hljs {
background: var(--bg-primary) !important;
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.125rem 0.25rem;
font-size: 0.8125rem;
white-space: normal;
}
/* Token colors - GitHub light theme */
.hljs-comment,
.hljs-quote {
color: #6a737d;
font-style: italic;
}
.hljs-variable,
.hljs-template-variable,
.hljs-attribute,
.hljs-tag,
.hljs-name,
.hljs-regexp,
.hljs-link,
.hljs-selector-id,
.hljs-selector-class {
color: #d73a49;
}
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
color: #005cc5;
}
.hljs-string,
.hljs-symbol,
.hljs-bullet {
color: #032f62;
}
.hljs-title,
.hljs-section {
color: #6f42c1;
}
.hljs-keyword,
.hljs-selector-tag {
color: #d73a49;
}
.hljs-function {
color: #6f42c1;
}
.hljs-class {
color: #005cc5;
}
.hljs-doctag {
color: #6a737d;
}
.hljs-addition {
color: #28a745;
background-color: #f0fff4;
}
.hljs-deletion {
color: #d73a49;
background-color: #ffeef0;
}
/* Dark theme token colors */
[data-theme="dark"] .hljs-comment,
[data-theme="dark"] .hljs-quote {
color: #8b949e;
}
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-template-variable,
[data-theme="dark"] .hljs-attribute,
[data-theme="dark"] .hljs-tag,
[data-theme="dark"] .hljs-name,
[data-theme="dark"] .hljs-regexp,
[data-theme="dark"] .hljs-link,
[data-theme="dark"] .hljs-selector-id,
[data-theme="dark"] .hljs-selector-class {
color: #ff7b72;
}
[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-meta,
[data-theme="dark"] .hljs-built_in,
[data-theme="dark"] .hljs-builtin-name,
[data-theme="dark"] .hljs-literal,
[data-theme="dark"] .hljs-type,
[data-theme="dark"] .hljs-params {
color: #79c0ff;
}
[data-theme="dark"] .hljs-string,
[data-theme="dark"] .hljs-symbol,
[data-theme="dark"] .hljs-bullet {
color: #a5d6ff;
}
[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-section {
color: #d2a8ff;
}
[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-selector-tag {
color: #ff7b72;
}
[data-theme="dark"] .hljs-function {
color: #d2a8ff;
}
[data-theme="dark"] .hljs-class {
color: #79c0ff;
}
[data-theme="dark"] .hljs-addition {
color: #7ee787;
background-color: rgba(46, 160, 67, 0.15);
}
[data-theme="dark"] .hljs-deletion {
color: #ffa198;
background-color: rgba(248, 81, 73, 0.15);
}
/* Language-specific adjustments */
.hljs-python .hljs-string {
color: #032f62;
}
[data-theme="dark"] .hljs-python .hljs-string {
color: #a5d6ff;
}
.hljs-rust .hljs-built_in {
color: #005cc5;
}
[data-theme="dark"] .hljs-rust .hljs-built_in {
color: #79c0ff;
}
.hljs-javascript .hljs-built_in,
.hljs-typescript .hljs-built_in {
color: #6f42c1;
}
[data-theme="dark"] .hljs-javascript .hljs-built_in,
[data-theme="dark"] .hljs-typescript .hljs-built_in {
color: #d2a8ff;
}
.hljs-go .hljs-built_in {
color: #005cc5;
}
[data-theme="dark"] .hljs-go .hljs-built_in {
color: #79c0ff;
}
/* Emphasis */
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}