Skip to content

Commit

Permalink
doc: update docs/css.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 27, 2023
1 parent 5815147 commit 68b7bf3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
39 changes: 29 additions & 10 deletions docs/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,24 @@ input[type="text"]:autofill {

另见: [:autofill](https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill)

### 修改 input type="color" 样式
<!--rehype:wrap-class=col-span-2 row-span-2-->

```css
input[type="color"] {
-webkit-appearance: none;
border: none;
width: 32px;
height: 32px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0;
}
input[type="color"]::-webkit-color-swatch {
border: none;
}
```

### 忽略用作间距的换行符 \<br />

```css
Expand Down Expand Up @@ -1590,6 +1608,7 @@ body {
这样文本元素可以很容易地从 `body` 继承

### 使用图像作为光标
<!--rehype:wrap-class=col-span-2-->

```css
div {
Expand Down Expand Up @@ -1912,16 +1931,6 @@ body {
}
```

### 逗号分隔列表

```css
ul > li:not(:last-child)::after {
content: ",";
}
```

使列表项看起来像一个真实的逗号分隔列表,使用 `:not()` 伪类,最后一项不会添加逗号

### 图片对齐不变形

```css
Expand Down Expand Up @@ -1958,6 +1967,16 @@ img:hover {
</p>
```

### 逗号分隔列表

```css
ul > li:not(:last-child)::after {
content: ",";
}
```

使列表项看起来像一个真实的逗号分隔列表,使用 `:not()` 伪类,最后一项不会添加逗号

另见
---------

Expand Down
1 change: 1 addition & 0 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ Docker 快捷键
<!--rehype:body-class=cols-2-->

### 退出

| Docker 快捷键 | 说明 |
|------------|------|
`ctrl+c` | 将关闭容器,并删除当前的容器实例
Expand Down

0 comments on commit 68b7bf3

Please sign in to comment.