ant-design-vue/components/menu/style/index.less

503 lines
11 KiB
Plaintext
Raw Normal View History

2019-01-02 13:01:56 +00:00
@import '../../style/themes/default';
@import '../../style/mixins/index';
2018-01-16 07:41:00 +00:00
2019-01-02 13:01:56 +00:00
@menu-prefix-cls: ~'@{ant-prefix}-menu';
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
// default theme
.@{menu-prefix-cls} {
.reset-component;
2018-01-02 11:05:02 +00:00
outline: none;
margin-bottom: 0;
padding-left: 0; // Override default ul/ol
list-style: none;
2018-01-16 07:41:00 +00:00
box-shadow: @box-shadow-base;
2018-01-30 08:52:56 +00:00
color: @menu-item-color;
background: @menu-bg;
2018-01-16 07:41:00 +00:00
line-height: 0; // Fix display inline-block gap
2019-01-02 13:01:56 +00:00
transition: background 0.3s, width 0.2s;
2018-01-16 07:41:00 +00:00
.clearfix;
ul,
ol {
list-style: none;
margin: 0;
padding: 0;
}
2018-01-02 11:05:02 +00:00
&-hidden {
display: none;
}
2018-01-16 07:41:00 +00:00
&-item-group-title {
2018-01-30 08:52:56 +00:00
color: @menu-item-group-title-color;
2018-01-16 07:41:00 +00:00
font-size: @font-size-base;
line-height: @line-height-base;
padding: 8px 16px;
2019-01-02 13:01:56 +00:00
transition: all 0.3s;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
&-submenu,
&-submenu-inline {
2019-01-02 13:01:56 +00:00
transition: border-color 0.3s @ease-in-out, background 0.3s @ease-in-out,
padding 0.15s @ease-in-out;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
&-item:active,
&-submenu-title:active {
2018-01-30 08:52:56 +00:00
background: @menu-item-active-bg;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
&-submenu &-sub {
cursor: initial;
2019-01-02 13:01:56 +00:00
transition: background 0.3s @ease-in-out, padding 0.3s @ease-in-out;
2018-01-16 07:41:00 +00:00
}
&-item > a {
display: block;
2018-01-30 08:52:56 +00:00
color: @menu-item-color;
2018-01-16 07:41:00 +00:00
&:hover {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
}
&:focus {
text-decoration: none;
}
&:before {
position: absolute;
background-color: transparent;
top: 0;
left: 0;
bottom: 0;
right: 0;
2019-01-02 13:01:56 +00:00
content: '';
2018-01-16 07:41:00 +00:00
}
}
&-item-divider {
height: 1px;
overflow: hidden;
background-color: @border-color-split;
line-height: 0;
}
&-item:hover,
2018-01-02 11:05:02 +00:00
&-item-active,
2018-01-16 07:41:00 +00:00
&:not(&-inline) &-submenu-open,
&-submenu-active,
&-submenu-title:hover {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
}
&-horizontal &-item,
&-horizontal &-submenu {
margin-top: -1px;
}
&-horizontal > &-item:hover,
&-horizontal > &-item-active,
&-horizontal > &-submenu &-submenu-title:hover {
background-color: transparent;
2018-01-02 11:05:02 +00:00
}
&-item-selected {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
> a,
> a:hover {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
}
}
&:not(&-horizontal) &-item-selected {
2018-01-30 08:52:56 +00:00
background-color: @menu-item-active-bg;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
&-inline,
&-vertical,
&-vertical-left {
border-right: @border-width-base @border-style-base @border-color-split;
}
&-vertical-right {
border-left: @border-width-base @border-style-base @border-color-split;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
&-vertical&-sub,
&-vertical-left&-sub,
&-vertical-right&-sub {
border-right: 0;
2018-01-02 11:05:02 +00:00
padding: 0;
2018-01-16 07:41:00 +00:00
transform-origin: 0 0;
.@{menu-prefix-cls}-item {
border-right: 0;
margin-left: 0;
left: 0;
&:after {
border-right: 0;
}
}
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-submenu {
transform-origin: 0 0;
}
2018-01-02 11:05:02 +00:00
}
&-horizontal&-sub,
&-vertical&-sub,
&-vertical-left&-sub,
&-vertical-right&-sub {
min-width: 160px;
}
2018-01-16 07:41:00 +00:00
&-item,
&-submenu-title {
cursor: pointer;
2018-01-02 11:05:02 +00:00
margin: 0;
2018-01-16 07:41:00 +00:00
padding: 0 20px;
2018-01-02 11:05:02 +00:00
position: relative;
display: block;
white-space: nowrap;
2019-01-02 13:01:56 +00:00
transition: color 0.3s @ease-in-out, border-color 0.3s @ease-in-out,
background 0.3s @ease-in-out, padding 0.15s @ease-in-out;
2018-01-16 07:41:00 +00:00
.@{iconfont-css-prefix} {
min-width: 14px;
margin-right: 10px;
2018-11-14 13:33:56 +00:00
font-size: @font-size-base;
2019-01-02 13:01:56 +00:00
transition: font-size 0.15s @ease-out, margin 0.3s @ease-in-out;
2018-01-16 07:41:00 +00:00
+ span {
2019-01-02 13:01:56 +00:00
transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
2018-01-16 07:41:00 +00:00
opacity: 1;
}
2018-01-02 11:05:02 +00:00
}
}
2018-01-16 07:41:00 +00:00
2018-01-02 11:05:02 +00:00
& > &-item-divider {
height: 1px;
margin: 1px 0;
overflow: hidden;
padding: 0;
line-height: 0;
2018-01-16 07:41:00 +00:00
background-color: @border-color-split;
2018-01-02 11:05:02 +00:00
}
&-submenu {
&-popup {
position: absolute;
2018-01-16 07:41:00 +00:00
border-radius: @border-radius-base;
z-index: @zindex-dropdown;
2018-12-09 11:30:35 +00:00
background: @menu-popup-bg;
2018-09-16 13:36:22 +00:00
2018-11-14 13:33:56 +00:00
.submenu-title-wrapper {
padding-right: 20px;
}
2018-09-16 13:36:22 +00:00
&:before {
position: absolute;
top: -7px;
2018-11-14 13:33:56 +00:00
left: 0;
right: 0;
2018-09-16 13:36:22 +00:00
bottom: 0;
content: ' ';
2019-01-02 13:01:56 +00:00
opacity: 0.0001;
2018-09-16 13:36:22 +00:00
}
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
> .@{menu-prefix-cls} {
2018-01-30 08:52:56 +00:00
background-color: @menu-bg;
2018-01-16 07:41:00 +00:00
border-radius: @border-radius-base;
&-submenu-title:after {
2019-01-02 13:01:56 +00:00
transition: transform 0.3s @ease-in-out;
2018-01-16 07:41:00 +00:00
}
}
&-vertical,
&-vertical-left,
&-vertical-right,
&-inline {
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
2019-01-02 13:01:56 +00:00
transition: transform 0.3s @ease-in-out;
2018-01-16 07:41:00 +00:00
position: absolute;
top: 50%;
right: 16px;
width: 10px;
&:before,
&:after {
2019-01-02 13:01:56 +00:00
content: '';
2018-01-16 07:41:00 +00:00
position: absolute;
vertical-align: baseline;
background: #fff;
2018-01-30 08:52:56 +00:00
background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
2018-01-16 07:41:00 +00:00
width: 6px;
height: 1.5px;
border-radius: 2px;
2019-01-02 13:01:56 +00:00
transition: background 0.3s @ease-in-out, transform 0.3s @ease-in-out,
top 0.3s @ease-in-out;
2018-01-16 07:41:00 +00:00
}
&:before {
transform: rotate(45deg) translateY(-2px);
}
&:after {
transform: rotate(-45deg) translateY(2px);
}
}
> .@{menu-prefix-cls}-submenu-title:hover .@{menu-prefix-cls}-submenu-arrow {
&:after,
&:before {
2018-01-30 08:52:56 +00:00
background: linear-gradient(to right, @menu-highlight-color, @menu-highlight-color);
2018-01-16 07:41:00 +00:00
}
}
}
&-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
&:before {
transform: rotate(-45deg) translateX(2px);
}
&:after {
transform: rotate(45deg) translateX(-2px);
}
}
&-open {
2019-01-02 13:01:56 +00:00
&.@{menu-prefix-cls}-submenu-inline
> .@{menu-prefix-cls}-submenu-title
.@{menu-prefix-cls}-submenu-arrow {
2018-01-16 07:41:00 +00:00
transform: translateY(-2px);
&:after {
transform: rotate(-45deg) translateX(-2px);
}
&:before {
transform: rotate(45deg) translateX(2px);
}
}
2018-01-02 11:05:02 +00:00
}
}
2018-01-16 07:41:00 +00:00
&-vertical &-submenu-selected,
&-vertical-left &-submenu-selected,
&-vertical-right &-submenu-selected {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
> a {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-02 11:05:02 +00:00
}
}
&-horizontal {
2018-01-16 07:41:00 +00:00
border: 0;
border-bottom: @border-width-base @border-style-base @border-color-split;
2018-01-02 11:05:02 +00:00
box-shadow: none;
2018-01-16 07:41:00 +00:00
line-height: 46px;
2018-11-14 13:33:56 +00:00
white-space: nowrap;
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-submenu {
position: relative;
top: 1px;
2018-11-14 13:33:56 +00:00
display: inline-block;
vertical-align: bottom;
2018-01-02 11:05:02 +00:00
border-bottom: 2px solid transparent;
2018-01-16 07:41:00 +00:00
&:hover,
&-active,
&-open,
&-selected {
2018-01-30 08:52:56 +00:00
border-bottom: 2px solid @menu-highlight-color;
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
}
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
}
2018-01-16 07:41:00 +00:00
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
> .@{menu-prefix-cls}-item {
2018-01-16 07:41:00 +00:00
> a {
display: block;
2018-01-30 08:52:56 +00:00
color: @menu-item-color;
2018-01-16 07:41:00 +00:00
&:hover {
2018-01-30 08:52:56 +00:00
color: @menu-highlight-color;
2018-01-16 07:41:00 +00:00
}
2018-04-07 06:29:59 +00:00
&:before {
bottom: -2px;
}
2018-01-02 11:05:02 +00:00
}
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
&-selected > a {
color: @menu-highlight-color;
}
2018-01-02 11:05:02 +00:00
}
&:after {
2019-01-02 13:01:56 +00:00
content: '\20';
2018-01-02 11:05:02 +00:00
display: block;
height: 0;
clear: both;
}
}
2018-01-16 07:41:00 +00:00
2018-01-02 11:05:02 +00:00
&-vertical,
&-vertical-left,
&-vertical-right,
&-inline {
2018-01-16 07:41:00 +00:00
.@{menu-prefix-cls}-item {
position: relative;
&:after {
2019-01-02 13:01:56 +00:00
content: '';
2018-01-16 07:41:00 +00:00
position: absolute;
right: 0;
top: 0;
bottom: 0;
2018-11-14 13:33:56 +00:00
border-right: @menu-item-active-border-width solid @menu-highlight-color;
2019-01-02 13:01:56 +00:00
transform: scaleY(0.0001);
2018-01-16 07:41:00 +00:00
opacity: 0;
2019-01-02 13:01:56 +00:00
transition: transform 0.15s @ease-out, opacity 0.15s @ease-out;
2018-01-02 11:05:02 +00:00
}
}
2018-01-16 07:41:00 +00:00
.@{menu-prefix-cls}-item,
.@{menu-prefix-cls}-submenu-title {
padding: 0 16px;
font-size: @font-size-base;
line-height: @menu-item-height;
height: @menu-item-height;
margin-top: 4px;
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
// disable margin collapsed
.@{menu-prefix-cls}-submenu {
padding-bottom: 0.01px;
}
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
.@{menu-prefix-cls}-item:not(:last-child) {
margin-bottom: 8px;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
line-height: @menu-inline-toplevel-item-height;
height: @menu-inline-toplevel-item-height;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
}
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
&-inline {
width: 100%;
.@{menu-prefix-cls}-selected,
.@{menu-prefix-cls}-item-selected {
&:after {
2019-01-02 13:01:56 +00:00
transition: transform 0.15s @ease-in-out, opacity 0.15s @ease-in-out;
2018-01-16 07:41:00 +00:00
opacity: 1;
transform: scaleY(1);
}
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
.@{menu-prefix-cls}-item,
.@{menu-prefix-cls}-submenu-title {
2019-01-02 13:01:56 +00:00
width: ~'calc(100% + 1px)';
2018-01-02 11:05:02 +00:00
}
2018-01-30 08:52:56 +00:00
.@{menu-prefix-cls}-submenu-title {
padding-right: 34px;
}
2018-01-16 07:41:00 +00:00
}
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
&-inline-collapsed {
width: @menu-collapsed-width;
> .@{menu-prefix-cls}-item,
2019-01-02 13:01:56 +00:00
> .@{menu-prefix-cls}-item-group
> .@{menu-prefix-cls}-item-group-list
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-item-group
> .@{menu-prefix-cls}-item-group-list
> .@{menu-prefix-cls}-submenu
> .@{menu-prefix-cls}-submenu-title,
2018-01-16 07:41:00 +00:00
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
left: 0;
text-overflow: clip;
padding: 0 (@menu-collapsed-width - 16px) / 2 !important;
.@{menu-prefix-cls}-submenu-arrow {
display: none;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
.@{iconfont-css-prefix} {
font-size: 16px;
line-height: @menu-item-height;
margin: 0;
+ span {
max-width: 0;
display: inline-block;
opacity: 0;
}
2018-01-02 11:05:02 +00:00
}
}
2018-01-16 07:41:00 +00:00
&-tooltip {
pointer-events: none;
.@{iconfont-css-prefix} {
display: none;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
a {
color: @text-color-dark;
2018-01-02 11:05:02 +00:00
}
}
2018-01-16 07:41:00 +00:00
.@{menu-prefix-cls}-item-group-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding-left: 4px;
padding-right: 4px;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
}
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
&-item-group-list {
margin: 0;
padding: 0;
.@{menu-prefix-cls}-item,
.@{menu-prefix-cls}-submenu-title {
padding: 0 16px 0 28px;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
}
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
&-root&-vertical,
&-root&-vertical-left,
&-root&-vertical-right,
&-root&-inline {
box-shadow: none;
}
2018-01-02 11:05:02 +00:00
2018-01-16 07:41:00 +00:00
&-sub&-inline {
padding: 0;
border: 0;
box-shadow: none;
border-radius: 0;
& > .@{menu-prefix-cls}-item,
& > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
line-height: @menu-item-height;
height: @menu-item-height;
list-style-type: disc;
list-style-position: inside;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
& .@{menu-prefix-cls}-item-group-title {
padding-left: 32px;
2018-01-02 11:05:02 +00:00
}
2018-01-16 07:41:00 +00:00
}
2018-01-08 10:31:04 +00:00
2018-01-16 07:41:00 +00:00
// Disabled state sets text to gray and nukes hover/tab effects
&-item-disabled,
&-submenu-disabled {
color: @disabled-color !important;
cursor: not-allowed;
background: none;
border-color: transparent !important;
> a {
color: @disabled-color !important;
pointer-events: none;
}
> .@{menu-prefix-cls}-submenu-title {
color: @disabled-color !important;
cursor: not-allowed;
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
> .@{menu-prefix-cls}-submenu-arrow {
&:before,
&:after {
background: @disabled-color !important;
}
}
2018-01-02 11:05:02 +00:00
}
}
}
2018-01-16 07:41:00 +00:00
@import './dark';