Skip to content

Commit

Permalink
fix: resolve checkbox style issues and improve code formatting
Browse files Browse the repository at this point in the history
- Adjust checkbox after element positioning
- Add transform property and adjust transition for better animation
- Improve code readability by formatting long lines
- Fix folder open button style
  • Loading branch information
mustakshif committed Oct 22, 2024
1 parent 716d5cb commit 31d8ff2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions style/components/misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,22 @@

// 关闭状态指示点
&::after {
left: 2px;
top: 2px;
left: 2px;
@include theme-variant-color(background-color, light-components);
box-shadow: 0 1px 4px -1px #0003;
border: none;
z-index: auto;
transform: none;
transition-property: transform;
transition-duration: .2s;
transition-timing-function: $timing-function-decelerate;
}

&::after, &:checked::after, &:checked:active:not(:disabled)::after, &:active:not(:disabled)::after {

&::after,
&:checked::after,
&:checked:active:not(:disabled)::after,
&:active:not(:disabled)::after {
width: 16px;
height: 16px;
}
Expand All @@ -136,6 +140,8 @@
background-color: var(--b3-theme-primary);

&::after {
top: 2px;
left: 2px;
transform: translateX(12px);
@include theme-variant-color(background-color, light-components);
box-shadow: 0 1px 4px -1px #0003;
Expand Down Expand Up @@ -420,6 +426,7 @@ textarea {

@include menu-shadow(var(--b3-theme-primary));
}

// 打开文件夹 按钮
.b3-button--white {
@include button-action('primary') {
Expand Down
2 changes: 1 addition & 1 deletion theme.css

Large diffs are not rendered by default.

0 comments on commit 31d8ff2

Please sign in to comment.