Skip to content

Commit e217026

Browse files
committed
⬆️
1 parent 88b386b commit e217026

File tree

7 files changed

+253
-227
lines changed

7 files changed

+253
-227
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# 更新日志 20/1/2025
1+
# 更新日志 24/5/2025
2+
3+
## v0.10.0
4+
5+
新增 `select` 樣式
26

37
## v0.9.0
48

docs/components/markdown/a.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ interface Props {
77
const href = Astro.props.href.replace(/^\//, import.meta.env.BASE_URL)
88
---
99

10-
<a class={`${prefix}-link`} href={href}>
10+
<a
11+
class={`${prefix}-link`}
12+
href={href}
13+
target={/^\//.test(Astro.props.href) ? "_self" : "_blank"}
14+
>
1115
<slot />
1216
</a>

docs/pages/menu/form/select.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ select.☘-select(disabled style="width:120px")
6767

6868
## `.sm` & `.lg`
6969

70-
全局变量控制内边距
70+
全局变量控制内边距,数值和预设都与 `input.☘-input` 一致
7171

7272
- `--padding-horizonal-select` 纵向内边距
7373
- `--padding-vertical-select` 横向内边距
@@ -77,7 +77,7 @@ select.☘-select(disabled style="width:120px")
7777
- <T class="☘-form-item">
7878
<label>更小 `select.☘-select.sm`</label>
7979
<T class="☘-input-wrapper" data-primary>
80-
<T tag="select" class="☘-select sm" style="width:120px">
80+
<T tag="select" class="☘-select sm" style="width:90px">
8181
<option value="genshin">原神</option>
8282
<option value="hsr">崩鉄</option>
8383
<option value="zzz">絕區零</option>
@@ -87,7 +87,7 @@ select.☘-select(disabled style="width:120px")
8787
- <T class="☘-form-item">
8888
<label>更大 `select.☘-select.lg`</label>
8989
<T class="☘-input-wrapper" data-primary>
90-
<T tag="select" class="☘-select lg" style="width:120px">
90+
<T tag="select" class="☘-select lg" style="width:90px">
9191
<option value="genshin">原神</option>
9292
<option value="hsr">崩鉄</option>
9393
<option value="zzz">絕區零</option>
@@ -97,9 +97,9 @@ select.☘-select(disabled style="width:120px")
9797

9898

9999

100-
## custom
100+
## custom style
101101

102-
自定义图标很容易
102+
自定义图标很容易,不需要覆盖 `select::picker-icon` 直接使用 `select>button:first-of-type` 来狸猫换太子
103103

104104
<T class="☘-form-item">
105105
<label>故障机型</label>

docs/pages/menu/layout.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: "docs/layouts/main.astro"
33
title: 布局
44
---
55

6+
import T from "docs/components/T.astro"
67
import Layouts from "docs/components/kanban/layouts.astro"
78
import Menu from "docs/components/kanban/menu-tree.astro"
89
import watermark from "docs/assets/images/watermark.svg?raw";
@@ -31,7 +32,7 @@ export {components}
3132

3233
- 全局变量 `--opacity-watermark` 水印调整透明度(默认0.1)
3334
- 全局变量 `--border-radius-watermark` 水印调整圆角(默认unset)
34-
- 全局变量 `--background-watermark` 水印调整图案(默认<a class="na-link" href="https://github.com/nanarino/stylus/blob/main/docs/assets/images/watermark.svg" style="vertical-align: top; box-shadow: var(--box-shadow-drop-right);"><Fragment set:html={watermark} /></a>)填充色推荐是 `fill="#808080"`
35+
- 全局变量 `--background-watermark` 水印调整图案(默认<T tag="a" class="-link" href="https://github.com/nanarino/stylus/blob/main/docs/assets/images/watermark.svg" style="vertical-align: top; box-shadow: var(--box-shadow-drop-right);"><Fragment set:html={watermark} /></T>)填充色推荐是 `fill="#808080"`
3536

3637

3738
## menu

lib/components/select.styl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ select.{prefix}-select
7171
^[0]:open^[-1..-1]
7272
display grid
7373

74-
&:where(:has(selectedcontent))
75-
&::picker-icon
76-
display none
77-
button
78-
color rgb(var(--black))
74+
&:where(:has(selectedcontent))::picker-icon
75+
display none
76+
77+
button
78+
color rgb(var(--black))
7979

8080
selectedcontent
8181
flex 1

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nanarinostyl",
33
"description": "style lib",
4-
"version": "0.10.0",
4+
"version": "0.10.1",
55
"main": "./dist/style.min.css",
66
"scripts": {
77
"dev": "astro dev --host",
@@ -30,10 +30,10 @@
3030
"stylus": "^0.64.0"
3131
},
3232
"devDependencies": {
33-
"@astrojs/mdx": "^4.2.6",
33+
"@astrojs/mdx": "^4.3.0",
3434
"@holy-two/data-theme": "^0.0.6",
35-
"@types/node": "^22.15.15",
36-
"astro": "^5.7.11",
35+
"@types/node": "^22.15.21",
36+
"astro": "^5.8.0",
3737
"astro-icon": "^1.1.5",
3838
"copy-to-clipboard": "^3.3.3",
3939
"css-doodle": "^0.42.3",

0 commit comments

Comments
 (0)