Move highlight themes to subfolder

This commit is contained in:
Simon Knox 2019-02-22 11:58:37 +11:00
parent 5996fd145f
commit a1e0f387bf
10 changed files with 11 additions and 16 deletions

View file

@ -1,6 +1,6 @@
/* https://github.com/MozMorris/tomorrow-pygments */
@import "./common";
@import "../common";
/*
* Dark syntax colors

View file

@ -1,6 +1,6 @@
/* https://github.com/richleland/pygments-css/blob/master/monokai.css */
@import "./common";
@import "../common";
/*
* Monokai Colors

View file

@ -2,7 +2,7 @@
* None Syntax Colors
*/
@import "./common";
@import "../common";
@mixin match-line {
color: $black-transparent;

View file

@ -1,6 +1,6 @@
/* https://gist.github.com/qguv/7936275 */
@import "./common";
@import "../common";
/*
* Solarized dark colors

View file

@ -1,6 +1,6 @@
/* https://gist.github.com/qguv/7936275 */
@import "./common";
@import "../common";
/*
* Solarized light syntax colors

View file

@ -0,0 +1,3 @@
.code.white {
@import "../white_base";
}

View file

@ -1,3 +0,0 @@
.code.white {
@import "white_base";
}

View file

@ -38,7 +38,7 @@
= stylesheet_link_tag 'performance_bar' if performance_bar_enabled?
= 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

View file

@ -147,12 +147,7 @@ module Gitlab
config.assets.precompile << "errors.css"
config.assets.precompile << "csslab.css"
config.assets.precompile << "highlight/dark.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"
config.assets.precompile << "highlight/themes/*.css"
# Import gitlab-svgs directly from vendored directory
config.assets.paths << "#{config.root}/node_modules/@gitlab/svgs/dist"

View file

@ -67,7 +67,7 @@ describe 'layouts/_head' do
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
def stub_helper_with_safe_string(method)