aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/chroma/base.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-11 17:38:47 +0100
committerGitHub <noreply@github.com>2020-12-11 17:38:47 +0100
commit160f606a15a38fef9c0345cb07860dbeee4bee26 (patch)
tree7474897d2ff88e90d91312b636a05bfdbd4536a4 /web_src/less/chroma/base.less
parent5fdf500aced60be007b49936ec8d732080bcc92d (diff)
downloadgitea-160f606a15a38fef9c0345cb07860dbeee4bee26.tar.gz
gitea-160f606a15a38fef9c0345cb07860dbeee4bee26.zip
Reorganize Chroma styles (#13934)
This moves the Chroma styles into separate files with base,light and dark variants. Should work exactly as before.
Diffstat (limited to 'web_src/less/chroma/base.less')
-rw-r--r--web_src/less/chroma/base.less50
1 files changed, 50 insertions, 0 deletions
diff --git a/web_src/less/chroma/base.less b/web_src/less/chroma/base.less
new file mode 100644
index 0000000000..597ee2a72d
--- /dev/null
+++ b/web_src/less/chroma/base.less
@@ -0,0 +1,50 @@
+.chroma {
+ background-color: var(--color-code-bg);
+}
+
+/* LineTableTD */
+.chroma .lntd {
+ vertical-align: top;
+ padding: 0;
+ margin: 0;
+ border: 0;
+}
+
+/* LineTable */
+.chroma .lntable {
+ border-spacing: 0;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ width: auto;
+ overflow: auto;
+ display: block;
+}
+
+/* LineHighlight */
+.chroma .hl {
+ display: block;
+ width: 100%;
+}
+
+/* LineNumbersTable */
+.chroma .lnt {
+ margin-right: .4em;
+ padding: 0 .4em;
+}
+
+/* LineNumbers */
+.chroma .ln {
+ margin-right: .4em;
+ padding: 0 .4em;
+}
+
+/* GenericStrong */
+.chroma .gs {
+ font-weight: 600;
+}
+
+/* GenericUnderline */
+.chroma .gl {
+ text-decoration: underline;
+}