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
85f47477
Commit
85f47477
authored
Nov 05, 2020
by
Himanshu Kapoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Monokai theme for the Web IDE
parent
456bec4c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
1 deletion
+73
-1
app/assets/javascripts/behaviors/markdown/render_mermaid.js
app/assets/javascripts/behaviors/markdown/render_mermaid.js
+1
-1
app/assets/stylesheets/page_bundles/ide.scss
app/assets/stylesheets/page_bundles/ide.scss
+1
-0
app/assets/stylesheets/page_bundles/ide_themes/_monokai.scss
app/assets/stylesheets/page_bundles/ide_themes/_monokai.scss
+66
-0
changelogs/unreleased/235385-ide-monokai-theme.yml
changelogs/unreleased/235385-ide-monokai-theme.yml
+5
-0
No files found.
app/assets/javascripts/behaviors/markdown/render_mermaid.js
View file @
85f47477
...
@@ -25,7 +25,7 @@ function importMermaidModule() {
...
@@ -25,7 +25,7 @@ function importMermaidModule() {
return
import
(
/* webpackChunkName: 'mermaid' */
'
mermaid
'
)
return
import
(
/* webpackChunkName: 'mermaid' */
'
mermaid
'
)
.
then
(
mermaid
=>
{
.
then
(
mermaid
=>
{
let
theme
=
'
neutral
'
;
let
theme
=
'
neutral
'
;
const
ideDarkThemes
=
[
'
dark
'
,
'
solarized-dark
'
];
const
ideDarkThemes
=
[
'
dark
'
,
'
solarized-dark
'
,
'
monokai
'
];
if
(
if
(
ideDarkThemes
.
includes
(
window
.
gon
?.
user_color_scheme
)
&&
ideDarkThemes
.
includes
(
window
.
gon
?.
user_color_scheme
)
&&
...
...
app/assets/stylesheets/page_bundles/ide.scss
View file @
85f47477
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
@import
'./ide_themes/dark'
;
@import
'./ide_themes/dark'
;
@import
'./ide_themes/solarized-dark'
;
@import
'./ide_themes/solarized-dark'
;
@import
'./ide_themes/monokai'
;
$search-list-icon-width
:
18px
;
$search-list-icon-width
:
18px
;
$ide-activity-bar-width
:
60px
;
$ide-activity-bar-width
:
60px
;
...
...
app/assets/stylesheets/page_bundles/ide_themes/_monokai.scss
0 → 100644
View file @
85f47477
// -------
// Please see `app/assets/stylesheets/page_bundles/ide_themes/README.md` for a guide on contributing new themes
// -------
.ide.theme-monokai
{
--ide-border-color
:
#1a1a18
;
--ide-border-color-alt
:
#3f4237
;
--ide-highlight-accent
:
#fff
;
--ide-text-color
:
#ccc
;
--ide-text-color-secondary
:
#b7b7b7
;
--ide-background
:
#282822
;
--ide-background-hover
:
#2d2d2d
;
--ide-highlight-background
:
#1f1f1d
;
--ide-link-color
:
#428fdc
;
--ide-footer-background
:
#404338
;
--ide-empty-state-background
:
#1a1a18
;
--ide-input-border
:
#7d8175
;
--ide-input-background
:
transparent
;
--ide-input-color
:
#fff
;
--ide-btn-default-background
:
transparent
;
--ide-btn-default-border
:
#7d8175
;
--ide-btn-default-hover-border
:
#b5bda5
;
--ide-btn-default-hover-border-width
:
2px
;
--ide-btn-default-focus-box-shadow
:
0
0
0
1px
#bfbfbf
;
--ide-btn-primary-background
:
#1068bf
;
--ide-btn-primary-border
:
#428fdc
;
--ide-btn-primary-hover-border
:
#63a6e9
;
--ide-btn-primary-hover-border-width
:
2px
;
--ide-btn-primary-focus-box-shadow
:
0
0
0
1px
#63a6e9
;
--ide-btn-success-background
:
#217645
;
--ide-btn-success-border
:
#108548
;
--ide-btn-success-hover-border
:
#2da160
;
--ide-btn-success-hover-border-width
:
2px
;
--ide-btn-success-focus-box-shadow
:
0
0
0
1px
#2da160
;
// Danger styles should be the same as default styles in dark theme
--ide-btn-danger-secondary-background
:
var
(
--
ide-btn-default-background
);
--ide-btn-danger-secondary-border
:
var
(
--
ide-btn-default-border
);
--ide-btn-danger-secondary-hover-border
:
var
(
--
ide-btn-default-hover-border
);
--ide-btn-danger-secondary-hover-border-width
:
var
(
--
ide-btn-default-hover-border-width
);
--ide-btn-danger-secondary-focus-box-shadow
:
var
(
--
ide-btn-default-focus-box-shadow
);
--ide-btn-disabled-background
:
transparent
;
--ide-btn-disabled-border
:
rgba
(
223
,
223
,
223
,
0
.24
);
--ide-btn-disabled-hover-border
:
rgba
(
223
,
223
,
223
,
0
.24
);
--ide-btn-disabled-hover-border-width
:
1px
;
--ide-btn-disabled-focus-box-shadow
:
0
0
0
0
transparent
;
--ide-btn-disabled-color
:
rgba
(
145
,
145
,
145
,
0
.48
);
--ide-dropdown-background
:
#36382f
;
--ide-dropdown-hover-background
:
#404338
;
--ide-dropdown-btn-hover-border
:
#b5bda5
;
--ide-dropdown-btn-hover-background
:
#3f4237
;
--ide-file-row-btn-hover-background
:
#404338
;
--ide-diff-insert
:
rgba
(
155
,
185
,
85
,
0
.2
);
--ide-diff-remove
:
rgba
(
255
,
0
,
0
,
0
.2
);
--ide-animation-gradient-1
:
#404338
;
--ide-animation-gradient-2
:
#36382f
;
}
changelogs/unreleased/235385-ide-monokai-theme.yml
0 → 100644
View file @
85f47477
---
title
:
Monokai theme for the Web IDE
merge_request
:
46901
author
:
type
:
added
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