File size: 2,618 Bytes
e66cfb4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
/* ? Radio ?????????????? */
.quiz-option .mantine-Radio-body {
  display: flex;
  align-items: center; /* ?????? flex-start????????? */
}

/* ????????????????? flex ?? */
.quiz-option .mantine-Radio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;          /* ?? Python ? inline-flex ? gap ?? */
}




/* ???????????????????? marker */
.math-ol {
  counter-reset: mathitem;
  list-style: none;       /* ???????? 1. 2. 3. */
  margin-left: 1.5rem;    /* ????????? */
  padding-left: 0;
}

.math-ol > li {
  counter-increment: mathitem;
  display: flex;
  align-items: center;    /* ????????????????????? */
  gap: 0.5rem;            /* ?????????? */
}

/* ????? marker */
.math-ol > li::before {
  content: counter(mathitem) ".";
  flex: 0 0 auto;
  min-width: 1.5rem;      /* ???????????? */
  text-align: right;
}

/* ?????? marker ??????????????????? */

/* ?? ListItem??????marker + ?? */
.mantine-List-item.themed-color {
  display: flex;
  align-items: center;      /* marker ????????? */
}

/* ??? span ?????????? "1." "2." ?? marker */
.mantine-List-item.themed-color > span:first-child {
  position: static !important;   /* ? render_list ?? absolute ?? */
  left: auto !important;
  top: auto !important;
  transform: none !important;

  min-width: 1.8rem;            /* ???????????? */
  text-align: right;
  margin-right: 0.5rem;
}

/* ??? div ????????????? */
.mantine-List-item.themed-color > div:last-child {
  flex: 1 1 auto;
}


/* 讓數學式的顏色跟外層 .themed-color 一樣 */
.themed-color .katex,
.themed-color .katex * {
  color: inherit;
}


/* 只調整 \text{} 的字型,跟主題 body font 一致 */
.katex .text,
.katex .text * {
  font-family: var(--mantine-font-family, system-ui, -apple-system,
                   BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-weight: 400;
}


/* 讓數學式整體跟隨主題色 */
.themed-color .katex {
  color: inherit !important;
}

/* 特別是 \text{...} 產生的文字 span */
.themed-color .katex .text,
.themed-color .katex .mord.text,
.themed-color .katex .mathnormal {
  color: inherit !important;
}


/* 只調整 KaTeX 裡 \text{} 的字型與大小 */
.katex .text,
.katex .mord.text,
.katex .text * {
  font-family: var(--mantine-font-family,
                   system-ui, -apple-system, BlinkMacSystemFont,
                   "Segoe UI", "Microsoft JhengHei", sans-serif) !important;
  font-size: 0.9em !important;   /* 比周圍數學略小一點,自己可改 0.8em / 1em */
  font-weight: 400;              /* 回到正常粗細 */
  font-style: normal;            /* 不要斜體就設 normal */
}