From b7b43804df2d81c8da567a8e55aa1b7d7858ec07 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 16 Oct 2018 23:13:09 +0200 Subject: [PATCH] Add classes for the "language-markdown" package So now the "Ax Monokai" syntax theme supports the "language-markdown" package, too. See for details. --- index.less | 1 + styles/markup-and-down.less | 73 +++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 styles/markup-and-down.less diff --git a/index.less b/index.less index 95470c6..15123b8 100644 --- a/index.less +++ b/index.less @@ -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 index 0000000..9bf1b2d --- /dev/null +++ b/styles/markup-and-down.less @@ -0,0 +1,73 @@ +// Classes for the "language-markdown" package, +// See . + +@_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; + } +} -- 2.39.2