Skip to content

Commit

Permalink
下拉菜单样式同步 Github
Browse files Browse the repository at this point in the history
  • Loading branch information
lutinglt committed Dec 27, 2024
1 parent 3489fc9 commit 5a20380
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/release.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
优化设置界面折叠项的显示效果
下拉菜单样式同步 Github
36 changes: 36 additions & 0 deletions src/dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
// Made by Luting ^-^
// 下拉菜单动画
@keyframes overlay-appear {
0% {
opacity: 0;
transform: translateY(-5%);
}

100% {
opacity: 1;
transform: translateY(0);
}
}

.ui.dropdown .menu {
margin-top: 3.75px !important;
border-radius: 12px !important;
overflow: hidden auto;
box-shadow: #30363d 0px 0px 0px 0.5px;
animation: 200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running overlay-appear;
}

.ui.dropdown .menu,
.branch-tag-item.active,
.ui.pointing.dropdown > .menu:not(.hidden):after {
Expand Down Expand Up @@ -29,3 +50,18 @@
}
}

// 按钮菜单选项(主要为仓库)
.ui.button.dropdown .menu .item {
border-radius: var(--border-radius);
margin: 0 6px;

&:first-of-type {
border-radius: var(--border-radius);
margin-top: 6px;
}

&:last-of-type {
border-radius: var(--border-radius);
margin-bottom: 6px;
}
}
5 changes: 2 additions & 3 deletions src/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ textarea,
.ui.form input[type='time'],
.ui.form input[type='url'],
.ui.selection.dropdown {
&:focus {
border-color: #1f6feb;
}
&:focus,
&:focus-visible {
border-radius: var(--border-radius);
border-color: #1f6feb;
outline: none;
box-shadow: inset 0 0 0 1px #1f6feb;
Expand Down

0 comments on commit 5a20380

Please sign in to comment.