From 52d90276bf66bee95d7bfd3a8dacf18b879a69a4 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sat, 30 Jun 2018 14:23:42 -0400 Subject: [PATCH] Added styling for github syntax highlighting. --- app/assets/css/launcher.css | 11 +++++++++++ package-lock.json | 5 +++++ package.json | 1 + 3 files changed, 17 insertions(+) diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index b7736de4..f657ecb1 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -1,3 +1,6 @@ +/* Github Code Highlighting. */ +@import "../../../node_modules/github-syntax-dark/lib/github-dark.css"; + /******************************************************************************* * * * Fonts * @@ -1768,6 +1771,14 @@ input:checked + .toggleSwitchSlider:before { color: black; font-weight: bold; } +#settingsChangelogText .highlight { + background: rgba(0, 0, 0, 0.30); + user-select: initial; + padding: 5px 10px; +} +#settingsChangelogText .highlight pre { + margin: 0px; +} /* Container for the changelog button. */ #settingsChangelogActions { diff --git a/package-lock.json b/package-lock.json index c16d07e9..88c08be2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1183,6 +1183,11 @@ "assert-plus": "^1.0.0" } }, + "github-syntax-dark": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/github-syntax-dark/-/github-syntax-dark-0.5.0.tgz", + "integrity": "sha1-FwRlRf+qBB5YJFgAHflot+yRwuo=" + }, "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", diff --git a/package.json b/package.json index 63005154..cff0f63c 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "ejs-electron": "^2.0.3", "electron-is-dev": "^0.3.0", "electron-updater": "^2.23.3", + "github-syntax-dark": "^0.5.0", "jquery": "^3.3.1", "mkdirp": "^0.5.1", "request": "^2.87.0",