Spaces:
Running
Running
Update bin_public/config/presets.py
Browse files- bin_public/config/presets.py +71 -89
bin_public/config/presets.py
CHANGED
@@ -4,25 +4,6 @@ description = """<div align=center>
|
|
4 |
</div>
|
5 |
"""
|
6 |
customCSS = """
|
7 |
-
code {
|
8 |
-
display: inline;
|
9 |
-
white-space: break-spaces;
|
10 |
-
border-radius: 6px;
|
11 |
-
margin: 0 2px 0 2px;
|
12 |
-
padding: .2em .4em .1em .4em;
|
13 |
-
background-color: rgba(175,184,193,0.2);
|
14 |
-
}
|
15 |
-
pre code {
|
16 |
-
display: block;
|
17 |
-
white-space: pre;
|
18 |
-
background-color: hsla(0, 0%, 0%, 72%);
|
19 |
-
border: solid 5px var(--color-border-primary) !important;
|
20 |
-
border-radius: 10px;
|
21 |
-
padding: 0 1.2rem 1.2rem;
|
22 |
-
margin-top: 1em !important;
|
23 |
-
color: #FFF;
|
24 |
-
box-shadow: inset 0px 8px 16px hsla(0, 0%, 0%, .2)
|
25 |
-
}
|
26 |
/* 表格 */
|
27 |
table {
|
28 |
margin: 1em 0;
|
@@ -30,7 +11,7 @@ table {
|
|
30 |
empty-cells: show;
|
31 |
}
|
32 |
td,th {
|
33 |
-
border: 1.2px solid var(--color-
|
34 |
padding: 0.2em;
|
35 |
}
|
36 |
thead {
|
@@ -51,6 +32,7 @@ code {
|
|
51 |
/* 代码块 */
|
52 |
pre code {
|
53 |
display: block;
|
|
|
54 |
white-space: pre;
|
55 |
background-color: hsla(0, 0%, 0%, 80%)!important;
|
56 |
border-radius: 10px;
|
@@ -60,75 +42,75 @@ pre code {
|
|
60 |
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
|
61 |
}
|
62 |
/* 代码高亮样式 */
|
63 |
-
.
|
64 |
-
.
|
65 |
-
.
|
66 |
-
.
|
67 |
-
.
|
68 |
-
.
|
69 |
-
.
|
70 |
-
.
|
71 |
-
.
|
72 |
-
.
|
73 |
-
.
|
74 |
-
.
|
75 |
-
.
|
76 |
-
.
|
77 |
-
.
|
78 |
-
.
|
79 |
-
.
|
80 |
-
.
|
81 |
-
.
|
82 |
-
.
|
83 |
-
.
|
84 |
-
.
|
85 |
-
.
|
86 |
-
.
|
87 |
-
.
|
88 |
-
.
|
89 |
-
.
|
90 |
-
.
|
91 |
-
.
|
92 |
-
.
|
93 |
-
.
|
94 |
-
.
|
95 |
-
.
|
96 |
-
.
|
97 |
-
.
|
98 |
-
.
|
99 |
-
.
|
100 |
-
.
|
101 |
-
.
|
102 |
-
.
|
103 |
-
.
|
104 |
-
.
|
105 |
-
.
|
106 |
-
.
|
107 |
-
.
|
108 |
-
.
|
109 |
-
.
|
110 |
-
.
|
111 |
-
.
|
112 |
-
.
|
113 |
-
.
|
114 |
-
.
|
115 |
-
.
|
116 |
-
.
|
117 |
-
.
|
118 |
-
.
|
119 |
-
.
|
120 |
-
.
|
121 |
-
.
|
122 |
-
.
|
123 |
-
.
|
124 |
-
.
|
125 |
-
.
|
126 |
-
.
|
127 |
-
.
|
128 |
-
.
|
129 |
-
.
|
130 |
-
.
|
131 |
-
.
|
132 |
*{
|
133 |
transition: all 0.6s;
|
134 |
}
|
|
|
4 |
</div>
|
5 |
"""
|
6 |
customCSS = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
/* 表格 */
|
8 |
table {
|
9 |
margin: 1em 0;
|
|
|
11 |
empty-cells: show;
|
12 |
}
|
13 |
td,th {
|
14 |
+
border: 1.2px solid var(--border-color-primary) !important;
|
15 |
padding: 0.2em;
|
16 |
}
|
17 |
thead {
|
|
|
32 |
/* 代码块 */
|
33 |
pre code {
|
34 |
display: block;
|
35 |
+
overflow: auto;
|
36 |
white-space: pre;
|
37 |
background-color: hsla(0, 0%, 0%, 80%)!important;
|
38 |
border-radius: 10px;
|
|
|
42 |
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
|
43 |
}
|
44 |
/* 代码高亮样式 */
|
45 |
+
.highlight .hll { background-color: #49483e }
|
46 |
+
.highlight .c { color: #75715e } /* Comment */
|
47 |
+
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
|
48 |
+
.highlight .k { color: #66d9ef } /* Keyword */
|
49 |
+
.highlight .l { color: #ae81ff } /* Literal */
|
50 |
+
.highlight .n { color: #f8f8f2 } /* Name */
|
51 |
+
.highlight .o { color: #f92672 } /* Operator */
|
52 |
+
.highlight .p { color: #f8f8f2 } /* Punctuation */
|
53 |
+
.highlight .ch { color: #75715e } /* Comment.Hashbang */
|
54 |
+
.highlight .cm { color: #75715e } /* Comment.Multiline */
|
55 |
+
.highlight .cp { color: #75715e } /* Comment.Preproc */
|
56 |
+
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
|
57 |
+
.highlight .c1 { color: #75715e } /* Comment.Single */
|
58 |
+
.highlight .cs { color: #75715e } /* Comment.Special */
|
59 |
+
.highlight .gd { color: #f92672 } /* Generic.Deleted */
|
60 |
+
.highlight .ge { font-style: italic } /* Generic.Emph */
|
61 |
+
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
|
62 |
+
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
63 |
+
.highlight .gu { color: #75715e } /* Generic.Subheading */
|
64 |
+
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
|
65 |
+
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
|
66 |
+
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
|
67 |
+
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
|
68 |
+
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
|
69 |
+
.highlight .kt { color: #66d9ef } /* Keyword.Type */
|
70 |
+
.highlight .ld { color: #e6db74 } /* Literal.Date */
|
71 |
+
.highlight .m { color: #ae81ff } /* Literal.Number */
|
72 |
+
.highlight .s { color: #e6db74 } /* Literal.String */
|
73 |
+
.highlight .na { color: #a6e22e } /* Name.Attribute */
|
74 |
+
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
|
75 |
+
.highlight .nc { color: #a6e22e } /* Name.Class */
|
76 |
+
.highlight .no { color: #66d9ef } /* Name.Constant */
|
77 |
+
.highlight .nd { color: #a6e22e } /* Name.Decorator */
|
78 |
+
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
|
79 |
+
.highlight .ne { color: #a6e22e } /* Name.Exception */
|
80 |
+
.highlight .nf { color: #a6e22e } /* Name.Function */
|
81 |
+
.highlight .nl { color: #f8f8f2 } /* Name.Label */
|
82 |
+
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
|
83 |
+
.highlight .nx { color: #a6e22e } /* Name.Other */
|
84 |
+
.highlight .py { color: #f8f8f2 } /* Name.Property */
|
85 |
+
.highlight .nt { color: #f92672 } /* Name.Tag */
|
86 |
+
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
|
87 |
+
.highlight .ow { color: #f92672 } /* Operator.Word */
|
88 |
+
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
|
89 |
+
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
|
90 |
+
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
|
91 |
+
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
|
92 |
+
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
|
93 |
+
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
|
94 |
+
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
|
95 |
+
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
|
96 |
+
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
|
97 |
+
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
|
98 |
+
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
|
99 |
+
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
|
100 |
+
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
|
101 |
+
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
|
102 |
+
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
|
103 |
+
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
|
104 |
+
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
|
105 |
+
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
|
106 |
+
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
|
107 |
+
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
|
108 |
+
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
|
109 |
+
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
|
110 |
+
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
|
111 |
+
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
|
112 |
+
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
|
113 |
+
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
|
114 |
*{
|
115 |
transition: all 0.6s;
|
116 |
}
|