Keldos commited on
Commit
b64596d
1 Parent(s): 9752af9

feat: 调整表格样式

Browse files
Files changed (1) hide show
  1. theme.py +11 -19
theme.py CHANGED
@@ -83,15 +83,23 @@ def adjust_theme():
83
 
84
  advanced_css = """
85
  .markdown-body table {
86
- border: 1px solid #ddd;
87
  border-collapse: collapse;
 
88
  }
89
-
90
  .markdown-body th, .markdown-body td {
91
- border: 1px solid #ddd;
92
  padding: 5px;
93
  }
 
 
 
 
 
 
 
94
  # 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。
 
95
  /* list */
96
  ol:not(.options), ul:not(.options) {
97
  padding-inline-start: 2em !important;
@@ -115,22 +123,6 @@ ol:not(.options), ul:not(.options) {
115
  width: auto !important;
116
  border-bottom-right-radius: 0 !important;
117
  }
118
- /* 表格
119
- table {
120
- margin: 1em 0;
121
- border-collapse: collapse;
122
- empty-cells: show;
123
- }
124
- td,th {
125
- border: 1.2px solid var(--border-color-primary) !important;
126
- padding: 0.2em;
127
- }
128
- thead {
129
- background-color: rgba(175,184,193,0.2);
130
- }
131
- thead th {
132
- padding: .5em .2em;
133
- } */
134
  /* 行内代码 */
135
  code {
136
  display: inline;
 
83
 
84
  advanced_css = """
85
  .markdown-body table {
86
+ margin: 1em 0;
87
  border-collapse: collapse;
88
+ empty-cells: show;
89
  }
 
90
  .markdown-body th, .markdown-body td {
91
+ border: 1.2px solid var(--border-color-primary);
92
  padding: 5px;
93
  }
94
+ .markdown-body thead {
95
+ background-color: rgba(175,184,193,0.2);
96
+ }
97
+ .markdown-body thead th {
98
+ padding: .5em .2em;
99
+ }
100
+
101
  # 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。
102
+
103
  /* list */
104
  ol:not(.options), ul:not(.options) {
105
  padding-inline-start: 2em !important;
 
123
  width: auto !important;
124
  border-bottom-right-radius: 0 !important;
125
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  /* 行内代码 */
127
  code {
128
  display: inline;