]> arthur.barton.de Git - atom-ax-monokai-syntax.git/commitdiff
Add classes for the "language-markdown" package
authorAlexander Barton <alex@barton.de>
Tue, 16 Oct 2018 21:13:09 +0000 (23:13 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 16 Oct 2018 21:13:09 +0000 (23:13 +0200)
So now the "Ax Monokai" syntax theme supports the "language-markdown"
package, too.

See <https://github.com/burodepeper/language-markdown> for details.

index.less
styles/markup-and-down.less [new file with mode: 0644]

index 95470c61fc96d94e531f1eb1e832163e43ba7d37..15123b86b1becd25c7bd3ba58c74764dc1df801e 100644 (file)
@@ -1,4 +1,5 @@
 @import './styles/syntax-variables';
+@import './styles/markup-and-down.less';
 
 atom-text-editor {
   background-color: @syntax-background-color;
diff --git a/styles/markup-and-down.less b/styles/markup-and-down.less
new file mode 100644 (file)
index 0000000..9bf1b2d
--- /dev/null
@@ -0,0 +1,73 @@
+// Classes for the "language-markdown" package,
+// See <https://github.com/burodepeper/language-markdown>.
+
+@_background: @syntax-background-color;
+@_text: @syntax-text-color;
+@_syntax: #A6E22E;
+@_syntax_alt: darken(@_syntax, 15%);
+@_content: #009900;
+@_variable: #0099CC;
+@_constant: #EE1100;
+@_highlight: #FFDD00;
+@_comment: #75715E;
+@_neutral: mix(@_text, @_background);
+
+// Generic markup styles
+
+.syntax--markup {
+
+  &.syntax--bold,
+  &.syntax--heading,
+  &.syntax--strong.syntax--emphasis {
+    font-weight: bold;
+  }
+
+  &.syntax--italic,
+  &.syntax--emphasis:not(.syntax--strong) {
+    font-style: italic;
+  }
+
+  &.syntax--underline {
+    text-decoration: underline;
+  }
+
+  &.syntax--strike {
+    text-decoration: line-through;
+  }
+
+  &.syntax--heading,
+  &.syntax--substitution,
+  &.syntax--changed {
+    color: @_syntax;
+  }
+
+  &.syntax--inserted,
+  &.syntax--addition,
+  &.syntax--quote {
+    color: @_content;
+  }
+
+  &.syntax--deletion,
+  &.syntax--hr {
+    color: @_constant;
+  }
+
+  &.syntax--link {
+    color: @_variable;
+  }
+
+  &.syntax--list {
+    & > .syntax--punctuation {
+      color: @_syntax_alt;
+    }
+  }
+
+  &.syntax--raw,
+  &.syntax--code {
+    color: @_neutral;
+  }
+
+ .syntax--punctuation {
+   opacity: 0.5;
+ }
+}