aboutsummaryrefslogtreecommitdiffstats
path: root/interface/css
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-07-14 11:47:12 +0300
committermoisseev <moiseev@mezonplus.ru>2020-07-14 11:47:12 +0300
commit903b0905432ca4e160e482c4c9c3157f74762b1a (patch)
treebcaf647258a8580fd92f07c99ff7c0b96555413b /interface/css
parentefd377128a2944900550cb08810878202e6808c5 (diff)
downloadrspamd-903b0905432ca4e160e482c4c9c3157f74762b1a.tar.gz
rspamd-903b0905432ca4e160e482c4c9c3157f74762b1a.zip
[WebUI] Add map editor (requires a modern browser)
Diffstat (limited to 'interface/css')
-rw-r--r--interface/css/prism.css161
-rw-r--r--interface/css/rspamd.css32
2 files changed, 190 insertions, 3 deletions
diff --git a/interface/css/prism.css b/interface/css/prism.css
new file mode 100644
index 000000000..93e23c3b6
--- /dev/null
+++ b/interface/css/prism.css
@@ -0,0 +1,161 @@
+/* PrismJS 1.20.0
+https://prismjs.com/download.html#themes=prism-okaidia&languages=clike&plugins=show-invisibles */
+/**
+ * okaidia theme for JavaScript, CSS and HTML
+ * Loosely based on Monokai textmate theme by http://www.monokai.nl/
+ * @author ocodia
+ */
+
+code[class*="language-"],
+pre[class*="language-"] {
+ color: #f8f8f2;
+ background: none;
+ text-shadow: 0 1px rgba(0, 0, 0, 0.3);
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
+ font-size: 1em;
+ text-align: left;
+ white-space: pre;
+ word-spacing: normal;
+ word-break: normal;
+ word-wrap: normal;
+ line-height: 1.5;
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+ padding: 1em;
+ margin: .5em 0;
+ overflow: auto;
+ border-radius: 0.3em;
+}
+
+:not(pre) > code[class*="language-"],
+pre[class*="language-"] {
+ background: #272822;
+}
+
+/* Inline code */
+:not(pre) > code[class*="language-"] {
+ padding: .1em;
+ border-radius: .3em;
+ white-space: normal;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+ color: #8292a2;
+}
+
+.token.punctuation {
+ color: #f8f8f2;
+}
+
+.token.namespace {
+ opacity: .7;
+}
+
+.token.property,
+.token.tag,
+.token.constant,
+.token.symbol,
+.token.deleted {
+ color: #f92672;
+}
+
+.token.boolean,
+.token.number {
+ color: #ae81ff;
+}
+
+.token.selector,
+.token.attr-name,
+.token.string,
+.token.char,
+.token.builtin,
+.token.inserted {
+ color: #a6e22e;
+}
+
+.token.operator,
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string,
+.token.variable {
+ color: #f8f8f2;
+}
+
+.token.atrule,
+.token.attr-value,
+.token.function,
+.token.class-name {
+ color: #e6db74;
+}
+
+.token.keyword {
+ color: #66d9ef;
+}
+
+.token.regex,
+.token.important {
+ color: #fd971f;
+}
+
+.token.important,
+.token.bold {
+ font-weight: bold;
+}
+.token.italic {
+ font-style: italic;
+}
+
+.token.entity {
+ cursor: help;
+}
+
+.token.tab:not(:empty),
+.token.cr,
+.token.lf,
+.token.space {
+ position: relative;
+}
+
+.token.tab:not(:empty):before,
+.token.cr:before,
+.token.lf:before,
+.token.space:before {
+ color: #808080;
+ opacity: 0.6;
+ position: absolute;
+}
+
+.token.tab:not(:empty):before {
+ content: '\21E5';
+}
+
+.token.cr:before {
+ content: '\240D';
+}
+
+.token.crlf:before {
+ content: '\240D\240A';
+}
+.token.lf:before {
+ content: '\240A';
+}
+
+.token.space:before {
+ content: '\00B7';
+}
+
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 4330962b0..5fefb4b9a 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -285,9 +285,6 @@ table#symbolsTable input[type="number"] {
background-color: #cddbff;
}
-#map-textarea {
- height: 360px;
-}
td.maps-cell {
vertical-align: middle;
}
@@ -536,3 +533,32 @@ td.maps-cell {
#clusterTable tr:last-child td:last-child {
border-radius: 0 0 calc(.25rem - 1px) 0;
}
+
+textarea#editor {
+ height: calc(100vh - 178px);
+}
+.codejar-wrap {
+ background: rgb(0, 47, 79);
+ border-radius: 6px;
+ max-height: calc(100vh - 178px);
+ overflow-y: auto;
+}
+.codejar-linenumbers {
+ background: rgba(255, 255, 255, 0.07) !important;
+ bottom: unset !important;
+ color: rgba(120, 120, 120, 1) !important;
+ mix-blend-mode: unset !important;
+ text-align: right;
+ overflow: unset !important;
+}
+.editor {
+ color: #fff;
+ font-family: monospace;
+ font-size: 14px;
+ font-weight: 400;
+ letter-spacing: normal;
+ min-height: 1.5em;
+ resize: unset !important;
+ tab-size: 4;
+ overflow-y: visible !important;
+}