Skip to content

Commit

Permalink
added code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
gumernus committed Dec 4, 2023
1 parent d354950 commit e2bc894
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 222 deletions.
19 changes: 14 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dotenv": "^16.3.1",
"express": "^4.18.2",
"fs": "^0.0.1-security",
"highlight.js": "^11.9.0",
"sequelize": "^6.32.1",
"sha256": "^0.2.0",
"sqlite3": "^5.1.6",
Expand Down
208 changes: 0 additions & 208 deletions src/assets/styles/codePostFormater.scss

This file was deleted.

110 changes: 110 additions & 0 deletions src/assets/styles/code_formater.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
@import '@/assets/styles/main';

pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em;
}
code.hljs {
padding: 3px 5px;
}
.hljs {
font-family: monospace;
font-weight: 600;
color: $card-text-color;
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
/* prettylights-syntax-keyword */
color: #f47067;
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
/* prettylights-syntax-entity */
color: #dcbdfb;
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
/* prettylights-syntax-constant */
color: #6cb6ff;
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
/* prettylights-syntax-string */
color: #96d0ff;
}
.hljs-built_in,
.hljs-symbol {
/* prettylights-syntax-variable */
color: #f69d50;
}
.hljs-comment,
.hljs-code,
.hljs-formula {
/* prettylights-syntax-comment */
color: #768390;
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
/* prettylights-syntax-entity-tag */
color: #8ddb8c;
}
.hljs-subst {
/* prettylights-syntax-storage-modifier-import */
color: #adbac7;
}
.hljs-section {
/* prettylights-syntax-markup-heading */
color: #316dca;
font-weight: bold;
}
.hljs-bullet {
/* prettylights-syntax-markup-list */
color: #eac55f;
}
.hljs-emphasis {
/* prettylights-syntax-markup-italic */
color: #adbac7;
font-style: italic;
}
.hljs-strong {
/* prettylights-syntax-markup-bold */
color: #adbac7;
font-weight: bold;
}
.hljs-addition {
/* prettylights-syntax-markup-inserted */
color: #b4f1b4;
background-color: #1b4721;
}
.hljs-deletion {
/* prettylights-syntax-markup-deleted */
color: #ffd8d3;
background-color: #78191b;
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
/* purposely ignored */
}
1 change: 1 addition & 0 deletions src/assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ $card-headline-color: #ffffff;
$card-text-color: #dadada;
$card-icon-color: #ffffff;
$card-tag-color: #936929;
$code-card-background-color: #0f0f0f;

// Card grid ----------------------------------------------------------------------------------
$grid-gap: 22px;
Expand Down
Loading

0 comments on commit e2bc894

Please sign in to comment.