From 446413a8890de1218d766f51bfda59e0a43d5598 Mon Sep 17 00:00:00 2001 From: Diana Belokon <67607236+dbelokon@users.noreply.github.com> Date: Sun, 30 Jan 2022 18:42:51 -0500 Subject: [PATCH] Use minified style sheets --- .prettierignore | 1 + src/web/public/styles/github-dark.css | 94 ----------------------- src/web/public/styles/github-dark.min.css | 10 +++ src/web/public/styles/github.css | 94 ----------------------- src/web/public/styles/github.min.css | 10 +++ 5 files changed, 21 insertions(+), 188 deletions(-) delete mode 100644 src/web/public/styles/github-dark.css create mode 100644 src/web/public/styles/github-dark.min.css delete mode 100644 src/web/public/styles/github.css create mode 100644 src/web/public/styles/github.min.css diff --git a/.prettierignore b/.prettierignore index ff468db60c..52f67aa013 100644 --- a/.prettierignore +++ b/.prettierignore @@ -7,6 +7,7 @@ certs .next out pnpm-lock.yaml +*.min.css # We don't maintain these files src/api/status/public/assets diff --git a/src/web/public/styles/github-dark.css b/src/web/public/styles/github-dark.css deleted file mode 100644 index 98816d974c..0000000000 --- a/src/web/public/styles/github-dark.css +++ /dev/null @@ -1,94 +0,0 @@ -pre code.hljs { - display: block; - overflow-x: auto; - padding: 1em; -} -code.hljs { - padding: 3px 5px; -} /*! - Theme: GitHub Dark - Description: Dark theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-dark - Current colors taken from GitHub's CSS -*/ -.hljs { - color: #c9d1d9; - background: #0d1117; -} -.hljs-doctag, -.hljs-keyword, -.hljs-meta .hljs-keyword, -.hljs-template-tag, -.hljs-template-variable, -.hljs-type, -.hljs-variable.language_ { - color: #ff7b72; -} -.hljs-title, -.hljs-title.class_, -.hljs-title.class_.inherited__, -.hljs-title.function_ { - color: #d2a8ff; -} -.hljs-attr, -.hljs-attribute, -.hljs-literal, -.hljs-meta, -.hljs-number, -.hljs-operator, -.hljs-selector-attr, -.hljs-selector-class, -.hljs-selector-id, -.hljs-variable { - color: #79c0ff; -} -.hljs-meta .hljs-string, -.hljs-regexp, -.hljs-string { - color: #a5d6ff; -} -.hljs-built_in, -.hljs-symbol { - color: #ffa657; -} -.hljs-code, -.hljs-comment, -.hljs-formula { - color: #8b949e; -} -.hljs-name, -.hljs-quote, -.hljs-selector-pseudo, -.hljs-selector-tag { - color: #7ee787; -} -.hljs-subst { - color: #c9d1d9; -} -.hljs-section { - color: #1f6feb; - font-weight: 700; -} -.hljs-bullet { - color: #f2cc60; -} -.hljs-emphasis { - color: #c9d1d9; - font-style: italic; -} -.hljs-strong { - color: #c9d1d9; - font-weight: 700; -} -.hljs-addition { - color: #aff5b4; - background-color: #033a16; -} -.hljs-deletion { - color: #ffdcd7; - background-color: #67060c; -} diff --git a/src/web/public/styles/github-dark.min.css b/src/web/public/styles/github-dark.min.css new file mode 100644 index 0000000000..03b6da8bf4 --- /dev/null +++ b/src/web/public/styles/github-dark.min.css @@ -0,0 +1,10 @@ +pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub Dark + Description: Dark theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-dark + Current colors taken from GitHub's CSS +*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c} \ No newline at end of file diff --git a/src/web/public/styles/github.css b/src/web/public/styles/github.css deleted file mode 100644 index 018ce45be2..0000000000 --- a/src/web/public/styles/github.css +++ /dev/null @@ -1,94 +0,0 @@ -pre code.hljs { - display: block; - overflow-x: auto; - padding: 1em; -} -code.hljs { - padding: 3px 5px; -} /*! - Theme: GitHub - Description: Light theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-light - Current colors taken from GitHub's CSS -*/ -.hljs { - color: #24292e; - background: #fff; -} -.hljs-doctag, -.hljs-keyword, -.hljs-meta .hljs-keyword, -.hljs-template-tag, -.hljs-template-variable, -.hljs-type, -.hljs-variable.language_ { - color: #d73a49; -} -.hljs-title, -.hljs-title.class_, -.hljs-title.class_.inherited__, -.hljs-title.function_ { - color: #6f42c1; -} -.hljs-attr, -.hljs-attribute, -.hljs-literal, -.hljs-meta, -.hljs-number, -.hljs-operator, -.hljs-selector-attr, -.hljs-selector-class, -.hljs-selector-id, -.hljs-variable { - color: #005cc5; -} -.hljs-meta .hljs-string, -.hljs-regexp, -.hljs-string { - color: #032f62; -} -.hljs-built_in, -.hljs-symbol { - color: #e36209; -} -.hljs-code, -.hljs-comment, -.hljs-formula { - color: #6a737d; -} -.hljs-name, -.hljs-quote, -.hljs-selector-pseudo, -.hljs-selector-tag { - color: #22863a; -} -.hljs-subst { - color: #24292e; -} -.hljs-section { - color: #005cc5; - font-weight: 700; -} -.hljs-bullet { - color: #735c0f; -} -.hljs-emphasis { - color: #24292e; - font-style: italic; -} -.hljs-strong { - color: #24292e; - font-weight: 700; -} -.hljs-addition { - color: #22863a; - background-color: #f0fff4; -} -.hljs-deletion { - color: #b31d28; - background-color: #ffeef0; -} diff --git a/src/web/public/styles/github.min.css b/src/web/public/styles/github.min.css new file mode 100644 index 0000000000..275239a7aa --- /dev/null +++ b/src/web/public/styles/github.min.css @@ -0,0 +1,10 @@ +pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS +*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0} \ No newline at end of file