Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
b3502a92
Commit
b3502a92
authored
Oct 22, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改terminal字体
parent
a33d5cc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
12 deletions
+55
-12
celery_task_log.html
apps/ops/templates/ops/celery_task_log.html
+32
-9
command_execution_create.html
apps/ops/templates/ops/command_execution_create.html
+23
-3
No files found.
apps/ops/templates/ops/celery_task_log.html
View file @
b3502a92
...
...
@@ -6,15 +6,37 @@
<script
src=
"{% static 'js/plugins/xterm/xterm.js' %}"
></script>
<script
src=
"{% static 'js/plugins/xterm/addons/fit/fit.js' %}"
></script>
<link
rel=
"stylesheet"
href=
"{% static 'js/plugins/xterm/xterm.css' %}"
/>
<link
rel=
"shortcut icon"
href=
"{{ FAVICON_URL }}"
type=
"image/x-icon"
>
<style>
body
{
background-color
:
black
;
}
.xterm-rows
{
{#
padding
:
15px
;
#
}
font-family
:
"Bitstream Vera Sans Mono"
,
Monaco
,
"Consolas"
,
Courier
,
monospace
;
font-size
:
13px
;
}
{
#body
{#
}
{
#
background-color
:
black
;
#
}
{
#
}
#}
{
#.xterm-rows
{#
}
{
#
font-family
:
"Bitstream Vera Sans Mono"
,
Monaco
,
"Consolas"
,
Courier
,
monospace
;
#
}
{
#
font-size
:
13px
;
#
}
{
#
}
#}
{
#.terminal
.xterm-viewport
{#
}
{
#
background-color
:
#1f1b1b
;
#
}
{
#
overflow
:
auto
;
#
}
{
#
}
#}
{
#
body
::
-webkit-scrollbar-track
{#
}
{
#
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.3
);
#
}
{
#
background-color
:
#272323
;
#
}
{
#
border-radius
:
6px
;
#
}
{
#
}
#}
{
##
}
{
#
body
::
-webkit-scrollbar
{#
}
{
#
width
:
8px
;
#
}
{
#
height
:
8px
;
#
}
{
#
}
#}
{
##
}
{
#
body
::
-webkit-scrollbar-thumb
{#
}
{
#
background-color
:
#494141
;
#
}
{
#
border-radius
:
6px
;
#
}
{
#
}
#}
</style>
</head>
<div
id=
"term"
style=
"height: 100%;width: 100%"
>
...
...
@@ -36,7 +58,8 @@
cursorBlink
:
false
,
screenKeys
:
false
,
fontFamily
:
'"Monaco", "Consolas", "monospace"'
,
fontSize
:
12
,
fontSize
:
13
,
lineHeight
:
1.2
,
rightClickSelectsWord
:
true
,
disableStdin
:
true
});
...
...
apps/ops/templates/ops/command_execution_create.html
View file @
b3502a92
...
...
@@ -34,6 +34,27 @@
.select2-container
.select2-selection--single
{
height
:
34px
;
}
.terminal
.xterm-viewport
{
background-color
:
#1f1b1b
;
overflow
:
auto
;
}
body
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.3
);
background-color
:
#272323
;
border-radius
:
6px
;
}
body
::-webkit-scrollbar
{
width
:
8px
;
height
:
8px
;
}
body
::-webkit-scrollbar-thumb
{
background-color
:
#494141
;
border-radius
:
6px
;
}
</style>
{% endblock %}
...
...
@@ -201,11 +222,10 @@
cursorBlink
:
false
,
screenKeys
:
false
,
fontFamily
:
'monaco, Consolas, "Lucida Console", monospace'
,
fontSize
:
14
,
lineHeight
:
1
,
fontSize
:
13
,
rightClickSelectsWord
:
true
,
disableStdin
:
true
,
cursorBlink
:
false
,
lineHeight
:
1.2
,
theme
:
{
background
:
'#1f1b1b'
}
...
...
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