Skip to content

Commit 0495604

Browse files
committed
css file arrangement
1 parent 364059a commit 0495604

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

pywebio/html/codemirror/base16-light.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

pywebio/html/css/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
white-space: nowrap;
9090
}
9191

92+
/* Amend markdown style */
93+
.markdown-body {
94+
font-family: inherit;
95+
color: inherit;
96+
}
9297
.markdown-body blockquote, .markdown-body dl, .markdown-body ol, .markdown-body p, .markdown-body pre, .markdown-body table, .markdown-body ul, .markdown-body details {
9398
margin-bottom: 10px;
9499
}

pywebio/html/css/codemirror.min.css

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pywebio/platform/tpl/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAwklEQVQ4T63TvU5CQRCG4WcwMfEuqOgNtQ2Nd4CxV2LHtVhJ0N7AHdjQUBtrrLwLA4ks2Rx+/Qucw3Y78807M7sz4ft5dq6mI7RQX7o/JCNzfdfetkNifRk6k9wLN9jYdxMkyZPQ1faZXYUwB/OCix8V/W4Y4zJDCsBAX7jdM7iQJY+udELu+cTrP2X/xU2+NMPAg3B3UPaVOOmFoQkapQC8Z8AUpyUBs6MAKrZQ+RErf2PlQTrKKK8gpZdpewgOXOcFTTxEjYwMoIkAAAAASUVORK5CYII=" id="favicon32">
99
<link rel="icon" type="image/png" sizes="16x16" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABmUlEQVRYR82XK0wDQRCGv21TUUUJGBwGDBggGCSGBIcAWnBAgsNAgkKhSMDgCA8HtEXgSDBIDC9DDRgcpoSiKo52yea49DiutMttsz27M/98N7s7OyNo9tujgxSTwDiCIaAXSH27l4AXJA/AFSUuWOajGWnR0ChLP3HWkWSAZEN716CM4JQKW6R5+sunPkCeJJJNBCtAosnAQTMHyS6CDWYoh2mEAxzTR4JzYOCfgYNuBRymmOc5uPAbIMswMS6BbkPBPZkiVSZIc+/X/Qng/vl1C4LXIBzG/JmoAag9hxuDaa+XwAIw6p2JGkCObQSrhtMeLifZYZY1tegCqKsW4zHCadfldqgyqK6oC3DGIZIFXZVI9oIjplkUqArXyatGkYkU1+dc5p0eQY4MghNTqlo6kjkFsI9gScvRlLHkQJDnFhgxpampc6cAikCXpqMp8zcF8AnETSlq6lTaAsD6Flg+hNavofVCZL0UW3+M2uI5VhBWGxIFYL0lUxBWm1KviFttyz0Iq4OJB2F1NPO/qdaG0+DD3qLx/AuMVJFhmC8dSgAAAABJRU5ErkJggg==" id="favicon16">
1010
<link rel="stylesheet" href="{{ base_url }}css/markdown.min.css">
11+
<link rel="stylesheet" href="{{ base_url }}css/codemirror.min.css">
12+
<link rel="stylesheet" href="{{ base_url }}css/toastify.min.css">
1113
{% if bootstrap_css %}
1214
<link rel="stylesheet" href="{{ bootstrap_css }}">
1315
{% else %}
1416
<link rel="stylesheet" href="{{ base_url }}css/bootstrap.min.css">
1517
{% end %}
16-
<link rel="stylesheet" href="{{ base_url }}css/codemirror.min.css">
17-
<link rel="stylesheet" href="{{ base_url }}codemirror/base16-light.min.css">
18-
<link rel="stylesheet" href="{{ base_url }}css/toastify.min.css">
1918
<link rel="stylesheet" href="{{ base_url }}css/app.css">
2019
{% for css in css_file %}
2120
{% if css %}<link rel="stylesheet" href="{{ css }}">{% end %}

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
# installed) and in MANIFEST.in (which determines what gets included
4141
# in the sdist tarball)
4242
"pywebio": [
43-
"html/codemirror/base16-light.min.css",
4443
"html/codemirror/active-line.js",
4544
"html/codemirror/matchbrackets.js",
4645
"html/codemirror/loadmode.js",

webiojs/src/models/input/textarea.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export class Textarea extends InputItem {
1818

1919
private code_mirror: any = null;
2020
private code_mirror_config: { [name: string]: any } = {
21-
'theme': 'base16-light',
2221
'lineNumbers': true, // 显示行数
2322
'indentUnit': 4, //缩进单位为4
2423
'styleActiveLine': true, // 当前行背景高亮

0 commit comments

Comments
 (0)