Ver Fonte

Added styling for github syntax highlighting.

Daniel Scalzi há 7 anos atrás
pai
commit
52d90276bf
3 ficheiros alterados com 17 adições e 0 exclusões
  1. 11 0
      app/assets/css/launcher.css
  2. 5 0
      package-lock.json
  3. 1 0
      package.json

+ 11 - 0
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 {

+ 5 - 0
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",

+ 1 - 0
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",