From cc9707bd3551d1769f2d41f0b94499c6cf7a812b Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 12 Feb 2013 12:00:54 -0800 Subject: [PATCH 1/6] add markdown.css --- src/app/window.coffee | 1 + static/markdown.css | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 static/markdown.css diff --git a/src/app/window.coffee b/src/app/window.coffee index 901c6dea8..255ba2f9b 100644 --- a/src/app/window.coffee +++ b/src/app/window.coffee @@ -124,6 +124,7 @@ requireStylesheet 'fuzzy-finder.css' requireStylesheet 'overlay.css' requireStylesheet 'popover-list.css' requireStylesheet 'notification.css' +requireStylesheet 'markdown.css' if nativeStylesheetPath = require.resolve("#{platform}.css") requireStylesheet(nativeStylesheetPath) diff --git a/static/markdown.css b/static/markdown.css new file mode 100644 index 000000000..ee7c9e93f --- /dev/null +++ b/static/markdown.css @@ -0,0 +1,25 @@ +.source.gfm { + color: #ccc; + -webkit-font-smoothing: antialiased; +} + +.gfm .markup.heading { + color: #eee; + font-weight: bold; +} + +.gfm .link { + color: #666; +} + +.gfm .bold { + font-weight: bold; +} + +.gfm .italic { + font-style: italic; +} + +.gfm .variable.list { + color: #666; +} From f7893f4e21f74c437119b900b42600e7f0bba237 Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 12 Feb 2013 12:01:07 -0800 Subject: [PATCH 2/6] name the link match --- src/packages/gfm.tmbundle/Syntaxes/gfm.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packages/gfm.tmbundle/Syntaxes/gfm.cson b/src/packages/gfm.tmbundle/Syntaxes/gfm.cson index 066a345cc..95b3b8eb1 100644 --- a/src/packages/gfm.tmbundle/Syntaxes/gfm.cson +++ b/src/packages/gfm.tmbundle/Syntaxes/gfm.cson @@ -62,6 +62,7 @@ } { 'match': '\\!?\\[([^\\]]*)\\]\\(([^\\)]+)\\)' + 'name': 'link' 'captures': '1': 'name': 'entity.gfm' '2': 'name': 'markup.underline.gfm' From 5acf544fce0c15f5aae7a2002d58c00e221c2dac Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 12 Feb 2013 12:08:30 -0800 Subject: [PATCH 3/6] remove colors from main stylesheet They won't work for light and dark styles --- static/markdown.css | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/static/markdown.css b/static/markdown.css index ee7c9e93f..b73e91bf0 100644 --- a/static/markdown.css +++ b/static/markdown.css @@ -1,25 +1,15 @@ .source.gfm { - color: #ccc; -webkit-font-smoothing: antialiased; } .gfm .markup.heading { - color: #eee; font-weight: bold; } -.gfm .link { - color: #666; -} - .gfm .bold { font-weight: bold; } .gfm .italic { font-style: italic; -} - -.gfm .variable.list { - color: #666; -} +} \ No newline at end of file From be94f14d61769fe9f672aa759b52bdc704fa56e3 Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 12 Feb 2013 12:08:38 -0800 Subject: [PATCH 4/6] dark markdown --- themes/atom-dark-ui/markdown.css | 15 +++++++++++++++ themes/atom-dark-ui/package.cson | 1 + 2 files changed, 16 insertions(+) create mode 100644 themes/atom-dark-ui/markdown.css diff --git a/themes/atom-dark-ui/markdown.css b/themes/atom-dark-ui/markdown.css new file mode 100644 index 000000000..c2e3028bb --- /dev/null +++ b/themes/atom-dark-ui/markdown.css @@ -0,0 +1,15 @@ +.source.gfm { + color: #ccc; +} + +.gfm .markup.heading { + color: #eee; +} + +.gfm .link { + color: #666; +} + +.gfm .variable.list { + color: #666; +} diff --git a/themes/atom-dark-ui/package.cson b/themes/atom-dark-ui/package.cson index 53831688d..759272a9d 100644 --- a/themes/atom-dark-ui/package.cson +++ b/themes/atom-dark-ui/package.cson @@ -8,4 +8,5 @@ 'command-panel.css' 'command-logger.css' 'blurred.css' + 'markdown.css' ] From 609342af16625cf05c394483e184a359f39f65b5 Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 12 Feb 2013 12:08:48 -0800 Subject: [PATCH 5/6] light markdown --- themes/atom-light-ui/markdown.css | 15 +++++++++++++++ themes/atom-light-ui/package.cson | 1 + 2 files changed, 16 insertions(+) create mode 100644 themes/atom-light-ui/markdown.css diff --git a/themes/atom-light-ui/markdown.css b/themes/atom-light-ui/markdown.css new file mode 100644 index 000000000..43ac710a5 --- /dev/null +++ b/themes/atom-light-ui/markdown.css @@ -0,0 +1,15 @@ +.source.gfm { + color: #444; +} + +.gfm .markup.heading { + color: #111; +} + +.gfm .link { + color: #888; +} + +.gfm .variable.list { + color: #888; +} \ No newline at end of file diff --git a/themes/atom-light-ui/package.cson b/themes/atom-light-ui/package.cson index 53831688d..759272a9d 100644 --- a/themes/atom-light-ui/package.cson +++ b/themes/atom-light-ui/package.cson @@ -8,4 +8,5 @@ 'command-panel.css' 'command-logger.css' 'blurred.css' + 'markdown.css' ] From b5ddbe9043c63a26fae7797a9daab51dba910bc6 Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 12 Feb 2013 13:31:16 -0800 Subject: [PATCH 6/6] tweak colors, make link label different shade than link --- themes/atom-dark-ui/markdown.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/themes/atom-dark-ui/markdown.css b/themes/atom-dark-ui/markdown.css index c2e3028bb..d1e0fc115 100644 --- a/themes/atom-dark-ui/markdown.css +++ b/themes/atom-dark-ui/markdown.css @@ -1,5 +1,5 @@ .source.gfm { - color: #ccc; + color: #999; } .gfm .markup.heading { @@ -7,9 +7,13 @@ } .gfm .link { - color: #666; + color: #555; } .gfm .variable.list { - color: #666; + color: #555; +} + +.gfm .link .entity { + color: #ddd; }