Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a1e0f387
Commit
a1e0f387
authored
Feb 22, 2019
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move highlight themes to subfolder
parent
5996fd14
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
13 deletions
+11
-13
app/assets/stylesheets/highlight/themes/dark.scss
app/assets/stylesheets/highlight/themes/dark.scss
+1
-1
app/assets/stylesheets/highlight/themes/monokai.scss
app/assets/stylesheets/highlight/themes/monokai.scss
+1
-1
app/assets/stylesheets/highlight/themes/none.scss
app/assets/stylesheets/highlight/themes/none.scss
+1
-1
app/assets/stylesheets/highlight/themes/solarized-dark.scss
app/assets/stylesheets/highlight/themes/solarized-dark.scss
+1
-1
app/assets/stylesheets/highlight/themes/solarized-light.scss
app/assets/stylesheets/highlight/themes/solarized-light.scss
+1
-1
app/assets/stylesheets/highlight/themes/white.scss
app/assets/stylesheets/highlight/themes/white.scss
+3
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-1
config/application.rb
config/application.rb
+1
-6
spec/views/layouts/_head.html.haml_spec.rb
spec/views/layouts/_head.html.haml_spec.rb
+1
-1
No files found.
app/assets/stylesheets/highlight/dark.scss
→
app/assets/stylesheets/highlight/
themes/
dark.scss
View file @
a1e0f387
/* https://github.com/MozMorris/tomorrow-pygments */
@import
"./common"
;
@import
".
.
/common"
;
/*
* Dark syntax colors
...
...
app/assets/stylesheets/highlight/monokai.scss
→
app/assets/stylesheets/highlight/
themes/
monokai.scss
View file @
a1e0f387
/* https://github.com/richleland/pygments-css/blob/master/monokai.css */
@import
"./common"
;
@import
".
.
/common"
;
/*
* Monokai Colors
...
...
app/assets/stylesheets/highlight/none.scss
→
app/assets/stylesheets/highlight/
themes/
none.scss
View file @
a1e0f387
...
...
@@ -2,7 +2,7 @@
* None Syntax Colors
*/
@import
"./common"
;
@import
".
.
/common"
;
@mixin
match-line
{
color
:
$black-transparent
;
...
...
app/assets/stylesheets/highlight/solarized-dark.scss
→
app/assets/stylesheets/highlight/
themes/
solarized-dark.scss
View file @
a1e0f387
/* https://gist.github.com/qguv/7936275 */
@import
"./common"
;
@import
".
.
/common"
;
/*
* Solarized dark colors
...
...
app/assets/stylesheets/highlight/solarized-light.scss
→
app/assets/stylesheets/highlight/
themes/
solarized-light.scss
View file @
a1e0f387
/* https://gist.github.com/qguv/7936275 */
@import
"./common"
;
@import
".
.
/common"
;
/*
* Solarized light syntax colors
...
...
app/assets/stylesheets/highlight/white.scss
→
app/assets/stylesheets/highlight/
themes/
white.scss
View file @
a1e0f387
.code.white
{
@import
"white_base"
;
@import
"
../
white_base"
;
}
app/views/layouts/_head.html.haml
View file @
a1e0f387
...
...
@@ -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
...
...
config/application.rb
View file @
a1e0f387
...
...
@@ -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"
...
...
spec/views/layouts/_head.html.haml_spec.rb
View file @
a1e0f387
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment