Move highlight themes to subfolder
This commit is contained in:
parent
5996fd145f
commit
a1e0f387bf
10 changed files with 11 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
/* https://github.com/MozMorris/tomorrow-pygments */
|
||||
|
||||
@import "./common";
|
||||
@import "../common";
|
||||
|
||||
/*
|
||||
* Dark syntax colors
|
|
@ -1,6 +1,6 @@
|
|||
/* https://github.com/richleland/pygments-css/blob/master/monokai.css */
|
||||
|
||||
@import "./common";
|
||||
@import "../common";
|
||||
|
||||
/*
|
||||
* Monokai Colors
|
|
@ -2,7 +2,7 @@
|
|||
* None Syntax Colors
|
||||
*/
|
||||
|
||||
@import "./common";
|
||||
@import "../common";
|
||||
|
||||
@mixin match-line {
|
||||
color: $black-transparent;
|
|
@ -1,6 +1,6 @@
|
|||
/* https://gist.github.com/qguv/7936275 */
|
||||
|
||||
@import "./common";
|
||||
@import "../common";
|
||||
|
||||
/*
|
||||
* Solarized dark colors
|
|
@ -1,6 +1,6 @@
|
|||
/* https://gist.github.com/qguv/7936275 */
|
||||
|
||||
@import "./common";
|
||||
@import "../common";
|
||||
|
||||
/*
|
||||
* Solarized light syntax colors
|
3
app/assets/stylesheets/highlight/themes/white.scss
Normal file
3
app/assets/stylesheets/highlight/themes/white.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
.code.white {
|
||||
@import "../white_base";
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
.code.white {
|
||||
@import "white_base";
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue