feat: style
This commit is contained in:
parent
3579b61f16
commit
338529f21a
|
|
@ -469,7 +469,7 @@
|
|||
.ant-menu-vertical-left .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-right .ant-menu-submenu-title,
|
||||
.ant-menu-inline .ant-menu-submenu-title {
|
||||
// height: 40px;
|
||||
height: --var('side-menu-line-height'); // height: 40px;
|
||||
margin-top: --var('side-menu-margin-y'); // margin-top: 4px;
|
||||
margin-bottom: --var('side-menu-margin-y'); // margin-bottom: 4px;
|
||||
margin-right: --var('side-menu-margin-x'); // new
|
||||
|
|
@ -477,7 +477,7 @@
|
|||
border-radius: --var('side-menu-radius'); // new
|
||||
// padding: 0 16px;
|
||||
// overflow: hidden;
|
||||
// line-height: 40px;
|
||||
line-height: --var('side-menu-line-height'); // line-height: 40px;
|
||||
// text-overflow: ellipsis;
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-submenu,
|
||||
|
|
@ -500,9 +500,24 @@
|
|||
.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,
|
||||
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
|
||||
// height: 40px;
|
||||
// line-height: 40px;
|
||||
height: --var('side-menu-line-height'); // height: 40px;
|
||||
line-height: --var('side-menu-line-height'); // line-height: 40px;
|
||||
}
|
||||
// new
|
||||
.ant-menu-submenu-popup {
|
||||
.ant-menu-vertical .ant-menu-item,
|
||||
.ant-menu-vertical-left .ant-menu-item,
|
||||
.ant-menu-vertical-right .ant-menu-item,
|
||||
.ant-menu-inline .ant-menu-item,
|
||||
.ant-menu-vertical .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-left .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-right .ant-menu-submenu-title,
|
||||
.ant-menu-inline .ant-menu-submenu-title {
|
||||
height: --var('popup-menu-line-height');
|
||||
line-height: --var('popup-menu-line-height');
|
||||
}
|
||||
}
|
||||
// new end
|
||||
.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,
|
||||
.ant-menu-vertical .ant-menu-submenu-title {
|
||||
// padding-right: 34px;
|
||||
|
|
@ -568,7 +583,7 @@
|
|||
.ant-menu.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon {
|
||||
// margin: 0;
|
||||
// font-size: 16px;
|
||||
// line-height: 40px;
|
||||
line-height: --var('side-menu-line-height'); // line-height: 40px;
|
||||
}
|
||||
.ant-menu.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-item-icon + span,
|
||||
.ant-menu.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-item-icon + span,
|
||||
|
|
@ -630,8 +645,8 @@
|
|||
}
|
||||
.ant-menu-sub.ant-menu-inline > .ant-menu-item,
|
||||
.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
|
||||
// height: 40px;
|
||||
// line-height: 40px;
|
||||
height: --var('side-menu-line-height'); // height: 40px;
|
||||
line-height: --var('side-menu-line-height'); // line-height: 40px;
|
||||
// list-style-position: inside;
|
||||
// list-style-type: disc;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ html, body, #app {
|
|||
@apply box-content absolute top-0 bottom-0 left-0 cursor-pointer select-none;
|
||||
>.side__header {
|
||||
@apply box-content;
|
||||
min-height: --var('header-height');
|
||||
min-height: --var('side-header-height');
|
||||
}
|
||||
>.side__body {
|
||||
>.side__scroll {
|
||||
|
|
@ -59,7 +59,7 @@ html, body, #app {
|
|||
}
|
||||
>.side__footer {
|
||||
@apply box-content;
|
||||
min-height: --var('header-height');
|
||||
min-height: --var('side-footer-height');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,9 +26,11 @@ $classname: '#{$namespace}-layout-dashboard';
|
|||
// size
|
||||
#{--key('font-size')}: 14px;
|
||||
#{--key('radius')}: 4px;
|
||||
#{--key('item-line-height')}: 40px;
|
||||
#{--key('item-box-height')}: 50px;
|
||||
// header
|
||||
#{--key('header-height')}: 50px;
|
||||
#{--key('header-line-height')}: 40px;
|
||||
#{--key('header-height')}: --var('item-box-height');
|
||||
#{--key('header-line-height')}: --var('item-line-height');
|
||||
// header menu
|
||||
#{--key('header-menu-radius')}: --var('radius');
|
||||
#{--key('header-menu-line-height')}: --var('header-line-height');
|
||||
|
|
@ -40,7 +42,14 @@ $classname: '#{$namespace}-layout-dashboard';
|
|||
#{--key('header-button-margin-y')}: calc((#{--var('header-height')} - #{--var('header-button-line-height')}) / 2);
|
||||
#{--key('header-button-margin-x')}: --var('header-button-margin-y');
|
||||
// side menu
|
||||
#{--key('side-menu-line-height')}: --var('item-line-height');
|
||||
#{--key('side-menu-radius')}: --var('radius');
|
||||
#{--key('side-menu-margin-y')}: --var('header-menu-margin-y');
|
||||
#{--key('side-menu-margin-x')}: --var('header-menu-margin-x');
|
||||
// side header
|
||||
#{--key('side-header-height')}: --var('item-box-height');
|
||||
// side footer
|
||||
#{--key('side-footer-height')}: --var('item-box-height');
|
||||
// popup
|
||||
#{--key('popup-menu-line-height')}: --var('item-line-height');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue