menu overflow-x hidden

This commit is contained in:
zuiidea
2017-02-03 19:01:03 +08:00
parent a2abe411c4
commit a1642fa671
+138 -127
View File
@@ -144,164 +144,175 @@
.ant-menu-root {
height: ~"calc(100vh - 144px)";
overflow-y: scroll;
}
overflow-x: hidden;
.ant-menu {
transition: @transition-ease-out;
&::-webkit-scrollbar-thumb {
background-color: transparent;
}
.ant-menu-item,
.ant-menu-submenu-title {
overflow: auto;
white-space: normal;
&:hover {
&::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
}
}
.ant-menu {
transition: @transition-ease-out;
.ant-menu-item,
.ant-menu-submenu-title {
overflow: auto;
white-space: normal;
}
}
}
}
}
.header {
:global .ant-menu-horizontal {
& > .ant-menu-submenu {
float: right;
.header {
:global .ant-menu-horizontal {
& > .ant-menu-submenu {
float: right;
}
border: none;
}
border: none;
}
box-shadow: @shadow-2;
position: relative;
box-shadow: @shadow-2;
position: relative;
.siderbutton {
height: 47px;
width: 47px;
line-height: 47px;
text-align: center;
font-size: 18px;
cursor: pointer;
position: absolute;
transition: @transition-ease-in;
.siderbutton {
height: 47px;
width: 47px;
line-height: 47px;
text-align: center;
font-size: 18px;
cursor: pointer;
position: absolute;
transition: @transition-ease-in;
&:hover {
color: @primary-color;
background-color: fade(@primary-color, 15%);
&:hover {
color: @primary-color;
background-color: fade(@primary-color, 15%);
}
}
}
}
.bread {
height: 64px;
line-height: 64px;
padding: 0 24px;
margin-bottom: -24px;
}
.bread {
height: 64px;
line-height: 64px;
padding: 0 24px;
margin-bottom: -24px;
}
.main {
margin-left: 224px;
overflow: auto;
height: 100vh;
transition: @transition-ease-out;
.main {
margin-left: 224px;
overflow: auto;
height: 100vh;
transition: @transition-ease-out;
.container {
margin: 24px;
.container {
margin: 24px;
.content {
min-height: e("calc(100vh - 184px)");
position: relative;
:global .content-inner {
background: #fff;
padding: 24px;
box-shadow: @shadow-1;
.content {
min-height: e("calc(100vh - 184px)");
position: relative;
:global .content-inner {
background: #fff;
padding: 24px;
box-shadow: @shadow-1;
min-height: e("calc(100vh - 184px)");
}
}
}
}
}
.footer {
height: 48px;
line-height: 48px;
text-align: center;
font-size: 12px;
color: #999;
background: #fff;
box-shadow: @shadow-2;
width: 100%;
}
}
:global .ant-menu-dark {
color: #999;
background-color: #3e3e3e;
.ant-menu-submenu-title:hover,
.ant-menu-submenu:hover {
color: @primary-color;
}
.ant-menu-sub {
color: #999;
}
.ant-menu-submenu-selected {
color: @primary-color;
&:not(.ant-menu-submenu-open) {
background-color: @dark-half;
.footer {
height: 48px;
line-height: 48px;
text-align: center;
font-size: 12px;
color: #999;
background: #fff;
box-shadow: @shadow-2;
width: 100%;
}
}
.ant-menu-item,
.ant-menu-submenu-title {
& > a {
:global .ant-menu-dark {
color: #999;
background-color: #3e3e3e;
.ant-menu-submenu-title:hover,
.ant-menu-submenu:hover {
color: @primary-color;
}
.ant-menu-sub {
color: #999;
}
&:hover > a {
.ant-menu-submenu-selected {
color: @primary-color;
}
}
&.ant-menu-inline {
&:not(.ant-menu-submenu-open) {
background-color: @dark-half;
}
}
.ant-menu-item,
.ant-menu-submenu-title {
& > a {
color: #999;
}
&:hover > a {
color: @primary-color;
}
}
&.ant-menu-inline {
.ant-menu-item-selected {
background-color: @dark-half;
}
}
.ant-menu-item-selected {
background-color: @dark-half;
}
}
.ant-menu-item-selected {
color: @primary-color;
background-color: @dark-half;
& > a {
color: @primary-color;
}
&:hover {
background-color: @dark-half;
& > a {
color: @primary-color;
}
&:hover {
background-color: @dark-half;
}
}
}
.popovermenu {
width: 280px;
left: 12px!important;
:global .ant-popover-inner-content {
padding: 0;
.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-item {
border-right: 0;
height: 48px;
line-height: 48px;
}
.ant-menu-inline .ant-menu-item-selected,
.ant-menu-inline .ant-menu-selected {
border-right: 0;
}
}
}
.spin {
:global .ant-spin-container {
height: 100vh;
}
}
}
.popovermenu {
width: 280px;
left: 12px!important;
:global .ant-popover-inner-content {
padding: 0;
.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-item {
border-right: 0;
height: 48px;
line-height: 48px;
}
.ant-menu-inline .ant-menu-item-selected,
.ant-menu-inline .ant-menu-selected {
border-right: 0;
}
}
}
.spin {
:global .ant-spin-container {
height: 100vh;
}
}