website: update style. d796def71c

This commit is contained in:
jaywcjlove
2022-11-12 01:19:30 +00:00
parent 5431da2900
commit a7e70e0150
2 changed files with 14 additions and 11 deletions

View File

@ -1339,7 +1339,7 @@
<table class="show-header"><thead><tr><th align="left">表达式</th><th>匹配示例</th></tr></thead><tbody><tr><td align="left"><code>.ar</code></td><td>The <code>car</code> <code>par</code>ked in the <code>gar</code>age.</td></tr><tr><td align="left"><code>ar[.]</code></td><td>A garage is a good place to park a c<code>ar</code>.</td></tr></tbody></table> <table class="show-header"><thead><tr><th align="left">表达式</th><th>匹配示例</th></tr></thead><tbody><tr><td align="left"><code>.ar</code></td><td>The <code>car</code> <pur><code>par</code></pur>ked in the <code>gar</code>age.</td></tr><tr><td align="left"><code>ar[.]</code></td><td>A garage is a good place to park a c<code>ar</code>.</td></tr></tbody></table>
<!--rehype:className=show-header--> <!--rehype:className=show-header-->
<p>方括号的句号就表示句号。表达式 <code>ar[.]</code> 匹配 <code>ar.</code> 字符串</p> <p>方括号的句号就表示句号。表达式 <code>ar[.]</code> 匹配 <code>ar.</code> 字符串</p>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="否定字符集"><a aria-hidden="true" tabindex="-1" href="#否定字符集"><span class="icon icon-link"></span></a>否定字符集</h3><div class="wrap-body"> </div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="否定字符集"><a aria-hidden="true" tabindex="-1" href="#否定字符集"><span class="icon icon-link"></span></a>否定字符集</h3><div class="wrap-body">
@ -1379,7 +1379,7 @@
<table><thead><tr><th align="left">表达式</th><th>匹配示例</th></tr></thead><tbody><tr><td align="left"><code>[a-z]*</code></td><td>T<code>he</code> <code>car</code> <code>parked</code> <code>in</code> <code>the</code> <code>garage</code> #21.</td></tr><tr><td align="left"><code>\s*cat\s*</code></td><td>The fat <code>cat</code> sat on the con<code>cat</code>enation.</td></tr></tbody></table> <table><thead><tr><th align="left">表达式</th><th>匹配示例</th></tr></thead><tbody><tr><td align="left"><code>[a-z]*</code></td><td>T<code>he</code> <pur><code>car</code></pur> <code>parked</code> <pur><code>in</code></pur> <code>the</code> <pur><code>garage</code></pur> #21.</td></tr><tr><td align="left"><code>\s*cat\s*</code></td><td>The fat <code>cat</code> sat on the con<code>cat</code>enation.</td></tr></tbody></table>
<p>表达式 <code>[a-z]*</code> 匹配一个行中所有以小写字母开头的字符串。</p> <p>表达式 <code>[a-z]*</code> 匹配一个行中所有以小写字母开头的字符串。</p>
<h4 id="-号-1"><a aria-hidden="true" tabindex="-1" href="#-号-1"><span class="icon icon-link"></span></a><code>+</code></h4> <h4 id="-号-1"><a aria-hidden="true" tabindex="-1" href="#-号-1"><span class="icon icon-link"></span></a><code>+</code></h4>
@ -1439,8 +1439,8 @@
<table class="show-header"><thead><tr><th align="left">表达式</th><th>匹配示例</th></tr></thead><tbody><tr><td align="left"><code>[0-9]{2,3}</code></td><td>The number was 9.<code>999</code>7 but we rounded it off to <code>10</code>.0.</td></tr><tr><td align="left"><code>[0-9]{2,}</code></td><td>The number was 9.<code>9997</code> but we rounded it off to <code>10</code>.0.</td></tr><tr><td align="left"><code>[0-9]{3}</code></td><td>The number was 9.<code>999</code>7 but we rounded it off to 10.0.</td></tr></tbody></table> <table class="style-list-arrow"><thead><tr><th align="left">表达式</th><th>匹配示例</th></tr></thead><tbody><tr><td align="left"><code>[0-9]{2,3}</code></td><td>The number was 9.<code>999</code>7 but we rounded it off to <code>10</code>.0.</td></tr><tr><td align="left"><code>[0-9]{2,}</code></td><td>The number was 9.<code>9997</code> but we rounded it off to <code>10</code>.0.</td></tr><tr><td align="left"><code>[0-9]{3}</code></td><td>The number was 9.<code>999</code>7 but we rounded it off to 10.0.</td></tr></tbody></table>
<!--rehype:className=show-header--> <!--rehype:className=style-list-arrow-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="-特征标群"><a aria-hidden="true" tabindex="-1" href="#-特征标群"><span class="icon icon-link"></span></a><code>(...)</code> 特征标群</h3><div class="wrap-body"> </div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="-特征标群"><a aria-hidden="true" tabindex="-1" href="#-特征标群"><span class="icon icon-link"></span></a><code>(...)</code> 特征标群</h3><div class="wrap-body">
@ -1834,7 +1834,7 @@
<table><thead><tr><th align="left">函数</th><th>说明</th></tr></thead><tbody><tr><td align="left"><code>re.findall</code></td><td>返回包含所有匹配项的列表</td></tr><tr><td align="left"><code>re.finditer</code></td><td>返回一个可迭代的匹配对象(每个匹配一个)</td></tr><tr><td align="left"><code>re.search</code></td><td>如果字符串中的任何位置存在匹配项,则返回 Match 对象</td></tr><tr><td align="left"><code>re.split</code></td><td>返回一个列表,其中字符串在每次匹配时被拆分</td></tr><tr><td align="left"><code>re.sub</code></td><td>用字符串替换一个或多个匹配项</td></tr><tr><td align="left"><code>re.compile</code></td><td>编译正则表达式模式供以后使用</td></tr><tr><td align="left"><code>re.escape</code></td><td>返回所有非字母数字反斜杠的字符串</td></tr></tbody></table> <table><thead><tr><th align="left">函数</th><th>说明</th></tr></thead><tbody><tr><td align="left"><code>re.findall</code></td><td>返回包含所有匹配项的列表</td></tr><tr><td align="left"><code>re.finditer</code></td><td>返回一个可迭代的匹配对象<br> <em>(每个匹配一个)</em></td></tr><tr><td align="left"><code>re.search</code></td><td>如果字符串中的任何位置存在匹配项,则返回 Match 对象</td></tr><tr><td align="left"><code>re.split</code></td><td>返回一个列表,其中字符串在每次匹配时被拆分</td></tr><tr><td align="left"><code>re.sub</code></td><td>用字符串替换一个或多个匹配项</td></tr><tr><td align="left"><code>re.compile</code></td><td>编译正则表达式模式供以后使用</td></tr><tr><td align="left"><code>re.escape</code></td><td>返回所有非字母数字反斜杠的字符串</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="flags-标志"><a aria-hidden="true" tabindex="-1" href="#flags-标志"><span class="icon icon-link"></span></a>Flags 标志</h3><div class="wrap-body"> </div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="flags-标志"><a aria-hidden="true" tabindex="-1" href="#flags-标志"><span class="icon icon-link"></span></a>Flags 标志</h3><div class="wrap-body">

View File

@ -162,14 +162,17 @@ menu {
padding: 0; padding: 0;
} }
yel { yel,
color: var(--color-prettylights-syntax-variable); yel code {
color: var(--color-prettylights-syntax-variable) !important;
} }
red { red,
color: var(--color-danger-fg); red code {
color: var(--color-danger-fg) !important;
} }
pur { pur,
color: var(--color-prettylights-syntax-entity); pur code {
color: var(--color-prettylights-syntax-entity) !important;
} }
:is(.h3wrap-body, .wrap-body) p > code, :is(.h3wrap-body, .wrap-body) p > code,