Skip to content

Commit

Permalink
2021-12-09
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedwuu committed Dec 9, 2021
1 parent 7b579d2 commit e343fa1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ body {
//drag item ghost class
.customGhost {
position: relative;
width: auto;
// width: auto;
}

// el-tree btns
Expand Down
4 changes: 3 additions & 1 deletion src/styles/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
height: 100%;
}

@mixin transform($attr:all, $time:.3s) {


@mixin transition($attr:all, $time:.3s) {
transition: $attr $time;
-moz-transition: $attr $time; /* Firefox 4 */
-webkit-transition: $attr $time; /* Safari 和 Chrome */
Expand Down
8 changes: 7 additions & 1 deletion src/views/Editor/Header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,19 @@ export default {
line-height: 40px;
cursor: pointer;
position: relative;
@include transform(all, .3s);
@include transition(all, .3s);
&:hover {
background-color: $--color-primary;
.header__subbtns {
display: block;
}
}
svg {
@include transition(all, .3s);
}
&:hover svg {
transform: scale(1.1);
}
}
// header__subbtns
.header__subbtns {
Expand Down

0 comments on commit e343fa1

Please sign in to comment.