hugo website for pit
This commit is contained in:
124
website/themes/knr/static/css/syntax.css
Normal file
124
website/themes/knr/static/css/syntax.css
Normal file
@@ -0,0 +1,124 @@
|
||||
/* Muted, near-monochrome syntax highlighting — K&R aesthetic */
|
||||
|
||||
/* Background & default text */
|
||||
.highlight pre {
|
||||
background: #F2EFE4;
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Keywords: bold, same color */
|
||||
.highlight .k,
|
||||
.highlight .kc,
|
||||
.highlight .kd,
|
||||
.highlight .kn,
|
||||
.highlight .kp,
|
||||
.highlight .kr,
|
||||
.highlight .kt {
|
||||
font-weight: bold;
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Strings: slightly lighter */
|
||||
.highlight .s,
|
||||
.highlight .s1,
|
||||
.highlight .s2,
|
||||
.highlight .sa,
|
||||
.highlight .sb,
|
||||
.highlight .sc,
|
||||
.highlight .dl,
|
||||
.highlight .se,
|
||||
.highlight .sh,
|
||||
.highlight .si,
|
||||
.highlight .sx {
|
||||
color: #5C5C5C;
|
||||
}
|
||||
|
||||
/* Comments: italic, lighter */
|
||||
.highlight .c,
|
||||
.highlight .c1,
|
||||
.highlight .ch,
|
||||
.highlight .cm,
|
||||
.highlight .cp,
|
||||
.highlight .cpf,
|
||||
.highlight .cs {
|
||||
color: #8B8B8B;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Numbers */
|
||||
.highlight .m,
|
||||
.highlight .mb,
|
||||
.highlight .mf,
|
||||
.highlight .mh,
|
||||
.highlight .mi,
|
||||
.highlight .mo {
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Functions */
|
||||
.highlight .nf,
|
||||
.highlight .fm {
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Operators */
|
||||
.highlight .o,
|
||||
.highlight .ow {
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Variables and names */
|
||||
.highlight .n,
|
||||
.highlight .na,
|
||||
.highlight .nb,
|
||||
.highlight .nc,
|
||||
.highlight .nd,
|
||||
.highlight .ne,
|
||||
.highlight .ni,
|
||||
.highlight .nl,
|
||||
.highlight .nn,
|
||||
.highlight .no,
|
||||
.highlight .nt,
|
||||
.highlight .nv,
|
||||
.highlight .bp {
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Punctuation */
|
||||
.highlight .p {
|
||||
color: #2C2C2C;
|
||||
}
|
||||
|
||||
/* Template strings */
|
||||
.highlight .sa {
|
||||
color: #5C5C5C;
|
||||
}
|
||||
|
||||
/* Built-in constants */
|
||||
.highlight .kc {
|
||||
color: #2C2C2C;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Regular expressions */
|
||||
.highlight .sr {
|
||||
color: #5C5C5C;
|
||||
}
|
||||
|
||||
/* Errors */
|
||||
.highlight .err {
|
||||
color: #2C2C2C;
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Line numbers */
|
||||
.highlight .ln {
|
||||
color: #8B8B8B;
|
||||
}
|
||||
|
||||
/* Generic */
|
||||
.highlight .gd { color: #5C5C5C; }
|
||||
.highlight .gi { color: #2C2C2C; }
|
||||
.highlight .ge { font-style: italic; }
|
||||
.highlight .gs { font-weight: bold; }
|
||||
Reference in New Issue
Block a user