perf(logo): optimize logo code

This commit is contained in:
vben
2020-11-03 21:00:14 +08:00
parent 69af37ec88
commit e79e540b48
10 changed files with 56 additions and 46 deletions

View File

@@ -73,7 +73,7 @@
&.is-link,
a {
font-weight: 700;
font-weight: 500;
color: @text-color-base;
text-decoration: none;
transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);

View File

@@ -48,7 +48,7 @@
const searchClass = computed(() => {
const cls: string[] = [];
cls.push(props.theme ? `menu-search-input__search--${props.theme}` : '');
// cls.push(props.collapsed ? 'hide-search-icon' : '');
cls.push(props.collapsed ? 'hide-search-icon' : '');
return cls;
});
@@ -66,12 +66,13 @@
.menu-search-input {
margin: 12px 8px;
// &.hide-search-icon {
// .ant-input,
// .ant-input-suffix {
// opacity: 0;
// }
// }
&.hide-search-icon {
.ant-input,
.ant-input-suffix {
opacity: 0;
transition: all 0.5s;
}
}
&__search--dark {
.ant-input-affix-wrapper,