-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31aa15c
commit 40bd772
Showing
14 changed files
with
248 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './menu.module'; | ||
export * from './menu.module'; |
File renamed without changes.
112 changes: 56 additions & 56 deletions
112
...d/menu/menu-item/menu-item.component.scss → ...e/menu/menu-item/menu-item.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
.menu-item { | ||
line-height: 40px; | ||
height: 40px; | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
border-right: 0; | ||
margin-left: 0; | ||
left: 0; | ||
&:after { | ||
content: ""; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
border-right: 3px solid #1890ff; | ||
transform: scaleY(0.0001); | ||
opacity: 0; | ||
transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); | ||
} | ||
>a { | ||
display: block; | ||
color: rgba(0, 0, 0, 0.65); | ||
&:before { | ||
position: absolute; | ||
background-color: transparent; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
content: ''; | ||
} | ||
&:after { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
background-image: radial-gradient(circle, #ffffff 10%, transparent 10.01%); | ||
background-repeat: no-repeat; | ||
background-size: 1000% 1000%; | ||
background-position: 50%; | ||
opacity: 0; | ||
pointer-events: none; | ||
transition: background .5s, opacity 1s; | ||
} | ||
&:active:after { | ||
-webkit-background-size: 0% 0%; | ||
background-size: 0% 0%; | ||
opacity: .2; | ||
transition: 0s; | ||
} | ||
} | ||
.menu-item { | ||
line-height: 40px; | ||
height: 40px; | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
border-right: 0; | ||
margin-left: 0; | ||
left: 0; | ||
&:after { | ||
content: ""; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
border-right: 3px solid #1890ff; | ||
transform: scaleY(0.0001); | ||
opacity: 0; | ||
transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); | ||
} | ||
>a { | ||
display: block; | ||
color: rgba(0, 0, 0, 0.65); | ||
&:before { | ||
position: absolute; | ||
background-color: transparent; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
content: ''; | ||
} | ||
&:after { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
background-image: radial-gradient(circle, #ffffff 10%, transparent 10.01%); | ||
background-repeat: no-repeat; | ||
background-size: 1000% 1000%; | ||
background-position: 50%; | ||
opacity: 0; | ||
pointer-events: none; | ||
transition: background .5s, opacity 1s; | ||
} | ||
&:active:after { | ||
-webkit-background-size: 0% 0%; | ||
background-size: 0% 0%; | ||
opacity: .2; | ||
transition: 0s; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
114 changes: 57 additions & 57 deletions
114
src/app/shared/menu/menu.component.scss → src/app/simple/menu/menu.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
.m-menu { | ||
margin: 16px 0px; | ||
width: 100%; | ||
font-family: "Helvetica Neue For Number", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 14px; | ||
line-height: 1.5; | ||
color: rgba(0, 0, 0, 0.65); | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
padding: 0; | ||
outline: none; | ||
margin-bottom: 0; | ||
padding-left: 0; | ||
list-style: none; | ||
z-index: 1050; | ||
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | ||
background: #fff; | ||
-webkit-transition: background .3s, width .2s; | ||
-o-transition: background .3s, width .2s; | ||
transition: background .3s, width .2s; | ||
zoom: 1; | ||
&:before, | ||
&:after { | ||
content: " "; | ||
display: table; | ||
} | ||
ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.menu-item, | ||
.menu-submenu, | ||
.menu-submenu-title { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.menu-item, | ||
.menu-submenu-title { | ||
margin-top: 4px; | ||
margin-bottom: 4px; | ||
position: relative; | ||
display: block; | ||
white-space: nowrap; | ||
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); | ||
.menu-icon { | ||
min-width: 14px; | ||
margin-right: 8px; | ||
transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); | ||
} | ||
} | ||
|
||
.menu-submenu .menu-sub { | ||
cursor: initial; | ||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); | ||
.m-menu { | ||
margin: 16px 0px; | ||
width: 100%; | ||
font-family: "Helvetica Neue For Number", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 14px; | ||
line-height: 1.5; | ||
color: rgba(0, 0, 0, 0.65); | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
padding: 0; | ||
outline: none; | ||
margin-bottom: 0; | ||
padding-left: 0; | ||
list-style: none; | ||
z-index: 1050; | ||
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | ||
background: #fff; | ||
-webkit-transition: background .3s, width .2s; | ||
-o-transition: background .3s, width .2s; | ||
transition: background .3s, width .2s; | ||
zoom: 1; | ||
&:before, | ||
&:after { | ||
content: " "; | ||
display: table; | ||
} | ||
ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.menu-item, | ||
.menu-submenu, | ||
.menu-submenu-title { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.menu-item, | ||
.menu-submenu-title { | ||
margin-top: 4px; | ||
margin-bottom: 4px; | ||
position: relative; | ||
display: block; | ||
white-space: nowrap; | ||
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); | ||
.menu-icon { | ||
min-width: 14px; | ||
margin-right: 8px; | ||
transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); | ||
} | ||
} | ||
|
||
.menu-submenu .menu-sub { | ||
cursor: initial; | ||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.