Skip to content

Commit 5ab076f

Browse files
committed
chore: 优化 SectionLayout 和 Toolbar 组件样式
1 parent 1fd1e55 commit 5ab076f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/shared/section-layout/index.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
:where(.kit-section),
2-
:where(.kit-section) [class^='kit-section__'] {
2+
:where(.kit-section) :is(.kit-section__main, .kit-section__item) {
33
box-sizing: border-box;
4+
position: relative;
45
}
56

67
:where(.kit-section) {
7-
--gap: 0.75rem;
8+
--gap: 0.75em;
89

910
display: flex;
1011
gap: var(--gap);

src/shared/toolbar/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222

2323
:where(.kit-toolbar) > .kit-toolbar__left > .kit-toolbar__title {
24+
position: relative;
2425
font-size: var(--title-font-size);
2526
font-weight: var(--title-font-weight);
2627
line-height: 1;
@@ -32,7 +33,6 @@
3233
height: 1em;
3334
border-left: 1px var(--divider-color) solid;
3435
margin: 0 0.75em;
35-
vertical-align: middle;
3636
}
3737

3838
:where(.kit-toolbar)

0 commit comments

Comments
 (0)