Skip to content

Commit 49317ba

Browse files
committed
Csscomb for menus
1 parent 6f9b880 commit 49317ba

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

components/menu/_config.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ $menu-item-height: 4.8 * $unit;
1111
$menu-item-padding: 1.6 * $unit;
1212
$menu-item-font-size: 1.6 * $unit;
1313
$menu-divider-height: (4.8 * $unit) / 4;
14+
$menu-icon-size: 2.3 * $unit;
15+
$menu-icon-ripple-duration: 650ms;

components/menu/style.icon_menu.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "../base";
2+
@import "./config";
23

34
.root {
45
position: relative;
@@ -7,12 +8,12 @@
78
}
89

910
.icon {
10-
font-size: 2.3 * $unit;
11+
font-size: $menu-icon-size;
1112
vertical-align: middle;
1213
cursor: pointer;
1314
}
1415

1516
.ripple {
1617
opacity: .1;
17-
transition-duration: 650ms;
18+
transition-duration: $menu-icon-ripple-duration;
1819
}

0 commit comments

Comments
 (0)