Commit f21ff396 authored by Sendya's avatar Sendya

chore: remove sideEffects

parent 6b423e1a
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"version": "0.2.4", "version": "0.2.4",
"main": "./lib/index.js", "main": "./lib/index.js",
"module": "./es/index.js", "module": "./es/index.js",
"sideEffects": false,
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/vueComponent/pro-layout" "url": "https://github.com/vueComponent/pro-layout"
......
@import "~ant-design-vue/es/style/themes/default"; @import "~ant-design-vue/es/style/themes/default.less";
@sider-menu-prefix-cls: ~'@{ant-prefix}-pro-sider-menu'; @sider-menu-prefix-cls: ~'@{ant-prefix}-pro-sider-menu';
...@@ -17,52 +17,63 @@ ...@@ -17,52 +17,63 @@
svg, h1 { svg, h1 {
display: inline-block; display: inline-block;
} }
svg { svg {
height: 32px; height: 32px;
width: 32px; width: 32px;
vertical-align: middle; vertical-align: middle;
} }
h1 { h1 {
color: @white; color: @white;
font-size: 20px; font-size: 20px;
margin: 0 0 0 12px; margin: 0 0 0 12px;
font-family: Avenir,Helvetica Neue,Arial,Helvetica,sans-serif; font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
font-weight: 600; font-weight: 600;
vertical-align: middle; vertical-align: middle;
} }
} }
&-sider { &-sider {
position: relative; position: relative;
z-index: 10; z-index: 10;
min-height: 100vh; min-height: 100vh;
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35); box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
&.fix-sider-bar { &.fix-sider-bar {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05); box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
.ant-menu-root { .ant-menu-root {
height: ~'calc(100vh - @{nav-header-height})'; height: ~'calc(100vh - @{nav-header-height})';
overflow-y: auto; overflow-y: auto;
} }
.ant-menu-inline { .ant-menu-inline {
border-right: 0; border-right: 0;
.ant-menu-item, .ant-menu-item,
.ant-menu-submenu-title { .ant-menu-submenu-title {
width: 100%; width: 100%;
} }
} }
} }
&.light { &.light {
background-color: white; background-color: white;
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05); box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
.@{sider-menu-prefix-cls}-logo { .@{sider-menu-prefix-cls}-logo {
background: white; background: white;
box-shadow: 1px 1px 0 0 @border-color-split; box-shadow: 1px 1px 0 0 @border-color-split;
h1 { h1 {
color: @primary-color; color: @primary-color;
} }
} }
.ant-menu-light { .ant-menu-light {
border-right-color: transparent; border-right-color: transparent;
} }
...@@ -73,36 +84,41 @@ ...@@ -73,36 +84,41 @@
width: 14px; width: 14px;
vertical-align: baseline; vertical-align: baseline;
} }
.top-nav-menu li.ant-menu-item { .top-nav-menu li.ant-menu-item {
height: @nav-header-height; height: @nav-header-height;
line-height: @nav-header-height; line-height: @nav-header-height;
} }
.drawer .drawer-content { .drawer .drawer-content {
background: @layout-sider-background; background: @layout-sider-background;
} }
.ant-menu-inline-collapsed { .ant-menu-inline-collapsed {
& > .ant-menu-item .sider-menu-item-img + span, & > .ant-menu-item .sider-menu-item-img + span,
& &
> .ant-menu-item-group > .ant-menu-item-group
> .ant-menu-item-group-list > .ant-menu-item-group-list
> .ant-menu-item > .ant-menu-item
.sider-menu-item-img .sider-menu-item-img
+ span, + span,
& &
> .ant-menu-submenu > .ant-menu-submenu
> .ant-menu-submenu-title > .ant-menu-submenu-title
.sider-menu-item-img .sider-menu-item-img
+ span { + span {
display: inline-block; display: inline-block;
max-width: 0; max-width: 0;
opacity: 0; opacity: 0;
} }
} }
.ant-menu-item .sider-menu-item-img + span, .ant-menu-item .sider-menu-item-img + span,
.ant-menu-submenu-title .sider-menu-item-img + span { .ant-menu-submenu-title .sider-menu-item-img + span {
opacity: 1; opacity: 1;
transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out; transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
} }
.ant-drawer-body { .ant-drawer-body {
padding: 0; padding: 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment