Skip to content

Commit

Permalink
docs(site): fix menu style (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyhehe authored Oct 21, 2024
1 parent 58b551e commit 9397afb
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions examples/sites/src/views/layout/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,19 @@ export default defineComponent({
}
}
.tiny-dropdown-item.is-actived {
background-color: var(--ti-dropdown-item-hover-bg-color);
color: var(--ti-dropdown-item-hover-text-color);
border-radius: var(--ti-dropdown-item-border-radius);
}
.is-collapsed + .main-menu.tiny-tree-menu {
height: 100%;
}
.main-menu.tiny-tree-menu {
--ti-tree-menu-node-current-text-color: #191919;
height: 100%;
padding-top: 30px;
padding-left: 10px;
width: 276px;
&.is-collapsed {
width: 0;
}
&::before {
display: none;
Expand All @@ -251,20 +248,18 @@ export default defineComponent({
.tiny-tree-node__content:hover {
border-radius: 20px;
}
&.is-current {
> .tiny-tree-node__content .node-name-label {
font-weight: 600;
}
.menu-type-icon {
fill: #191919;
.tiny-tree-node__content {
height: 40px;
line-height: 40px;
&::before {
display: none;
}
}
}
.node-float-tip {
border-radius: 0;
margin-right: 8px;
}
}
Expand All @@ -281,11 +276,7 @@ export default defineComponent({
.tiny-input {
margin: 0 10px 12px;
width: auto;
.tiny-input__inner {
width: 100%;
border: 1px solid #f0f0f0;
}
max-width: unset;
}
.tiny-tree-node__content-box {
Expand Down

0 comments on commit 9397afb

Please sign in to comment.