From 46f51427c86ad8cb0f695adcd6c93a7a29a8f496 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 17 Feb 2022 17:12:31 +0200 Subject: Added "syntax highlighting" styling and implemented it in the connect to mysql article --- src/styles.css | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'src/styles.css') diff --git a/src/styles.css b/src/styles.css index aa08868..ecafe29 100644 --- a/src/styles.css +++ b/src/styles.css @@ -326,6 +326,44 @@ blockquote > :last-child { box-sizing: border-box; } +/* Syntax highlighting (colours are inspired from gruvbox) */ + +code span { + background-color: inherit; +} + +.cst, .chr { /* Constant, Chars */ + color: #d787af; +} + +.com { /* Comment */ + color: #8a8a8a; +} + +.kwd { /* Keyword */ + color: #d75f5f; +} + +.kwD { /* Second keyword color */ + color: #87af87; +} + +.kWD { /* Third keyword color */ + color: #ff8700; +} + +.typ { /* Type */ + color: #ffaf00; +} + +.cls { /* Class */ + color: #87afaf; +} + +.fnc, .str { /* Function names, Strings */ + color: #afaf00; +} + /* OpenSans font */ @font-face { -- cgit v1.3.1-26-gb76a