Commit a1e0f387 authored by Simon Knox's avatar Simon Knox

Move highlight themes to subfolder

parent 5996fd14
/* https://github.com/MozMorris/tomorrow-pygments */ /* https://github.com/MozMorris/tomorrow-pygments */
@import "./common"; @import "../common";
/* /*
* Dark syntax colors * Dark syntax colors
......
/* https://github.com/richleland/pygments-css/blob/master/monokai.css */ /* https://github.com/richleland/pygments-css/blob/master/monokai.css */
@import "./common"; @import "../common";
/* /*
* Monokai Colors * Monokai Colors
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* None Syntax Colors * None Syntax Colors
*/ */
@import "./common"; @import "../common";
@mixin match-line { @mixin match-line {
color: $black-transparent; color: $black-transparent;
......
/* https://gist.github.com/qguv/7936275 */ /* https://gist.github.com/qguv/7936275 */
@import "./common"; @import "../common";
/* /*
* Solarized dark colors * Solarized dark colors
......
/* https://gist.github.com/qguv/7936275 */ /* https://gist.github.com/qguv/7936275 */
@import "./common"; @import "../common";
/* /*
* Solarized light syntax colors * Solarized light syntax colors
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
= stylesheet_link_tag 'performance_bar' if performance_bar_enabled? = stylesheet_link_tag 'performance_bar' if performance_bar_enabled?
= stylesheet_link_tag 'csslab' if Feature.enabled?(:csslab) = stylesheet_link_tag 'csslab' if Feature.enabled?(:csslab)
= stylesheet_link_tag "highlight/#{user_color_scheme}", media: "all" = stylesheet_link_tag "highlight/themes/#{user_color_scheme}", media: "all"
= Gon::Base.render_data = Gon::Base.render_data
......
...@@ -147,12 +147,7 @@ module Gitlab ...@@ -147,12 +147,7 @@ module Gitlab
config.assets.precompile << "errors.css" config.assets.precompile << "errors.css"
config.assets.precompile << "csslab.css" config.assets.precompile << "csslab.css"
config.assets.precompile << "highlight/dark.css" config.assets.precompile << "highlight/themes/*.css"
config.assets.precompile << "highlight/monokai.css"
config.assets.precompile << "highlight/solarized-dark.css"
config.assets.precompile << "highlight/solarized-light.css"
config.assets.precompile << "highlight/white.css"
config.assets.precompile << "highlight/none.css"
# Import gitlab-svgs directly from vendored directory # Import gitlab-svgs directly from vendored directory
config.assets.paths << "#{config.root}/node_modules/@gitlab/svgs/dist" config.assets.paths << "#{config.root}/node_modules/@gitlab/svgs/dist"
......
...@@ -67,7 +67,7 @@ describe 'layouts/_head' do ...@@ -67,7 +67,7 @@ describe 'layouts/_head' do
render render
expect(rendered).to match('<link rel="stylesheet" media="all" href="/stylesheets/highlight/solarised-light.css" />') expect(rendered).to match('<link rel="stylesheet" media="all" href="/stylesheets/highlight/themes/solarised-light.css" />')
end end
def stub_helper_with_safe_string(method) def stub_helper_with_safe_string(method)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment