-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit: [06bbe01] remove InputBoolean [f460201] updated code style [dd9b61a] updated wallaby config [6da021f] fix unit [7a54c1e] fix unit [5a169ef] fix build [455cff9] updated modal confirm [7735fdf] added example with component [93c0299] added mc-buttons [78cad3c] added animation [205e841] added some styles
- Loading branch information
1 parent
fe2143d
commit 29593a3
Showing
18 changed files
with
509 additions
and
502 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
@import '../core/styles/functions/timing'; | ||
|
||
|
||
$animation-duration-base: 0.2s; | ||
|
||
@mixin _motion-common($duration: $animation-duration-base) { | ||
animation-duration: $duration; | ||
animation-fill-mode: both; | ||
} | ||
|
||
@mixin _motion-common-leave($duration: $animation-duration-base) { | ||
animation-duration: $duration; | ||
animation-fill-mode: both; | ||
} | ||
|
||
@mixin _make-motion($className, $keyframeName, $duration: $animation-duration-base) { | ||
.#{$className}-enter, | ||
.#{$className}-appear { | ||
@include _motion-common($duration); | ||
animation-play-state: paused; | ||
} | ||
.#{$className}-leave { | ||
@include _motion-common-leave($duration); | ||
animation-play-state: paused; | ||
} | ||
|
||
.#{$className}-enter.#{$className}-enter-active, | ||
.#{$className}-appear.#{$className}-appear-active { | ||
animation-name: #{$keyframeName}In; | ||
animation-play-state: running; | ||
} | ||
|
||
.#{$className}-leave.#{$className}-leave-active { | ||
animation-name: #{$keyframeName}Out; | ||
animation-play-state: running; | ||
pointer-events: none; | ||
} | ||
} | ||
|
||
@mixin zoom-motion($className, $keyframeName, $duration: $animation-duration-base) { | ||
@include _make-motion($className, $keyframeName, $duration); | ||
.#{className}-enter, | ||
.#{className}-appear { | ||
transform: scale(0); | ||
animation-timing-function: $ease-out-circ; | ||
} | ||
.#{className}-leave { | ||
animation-timing-function: $ease-in-out-circ; | ||
} | ||
} | ||
|
||
@mixin fade-motion($className, $keyframeName) { | ||
@include _make-motion($className, $keyframeName); | ||
.#{className}-enter, | ||
.#{className}-appear { | ||
opacity: 0; | ||
animation-timing-function: linear; | ||
} | ||
.#{className}-leave { | ||
animation-timing-function: linear; | ||
} | ||
} | ||
|
||
@keyframes mcFadeIn { | ||
0% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes mcFadeOut { | ||
0% { | ||
opacity: 1; | ||
} | ||
100% { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes mcZoomIn { | ||
0% { | ||
opacity: 0; | ||
transform: scale(0.2); | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
@keyframes mcZoomOut { | ||
0% { | ||
transform: scale(1); | ||
} | ||
100% { | ||
opacity: 0; | ||
transform: scale(0.2); | ||
} | ||
} | ||
|
||
@include fade-motion(fade, mcFade); | ||
@include zoom-motion(zoom, mcZoom); |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
.mc-confirm { | ||
.mc-modal-header { | ||
display: none; | ||
} | ||
|
||
.mc-modal-close { | ||
display: none; | ||
} | ||
|
||
.mc-modal-body { | ||
padding: 32px 32px 16px; | ||
} | ||
|
||
// TODO | ||
&-body-wrapper { | ||
//.clearfix() | ||
zoom: 1; | ||
&:before, | ||
&:after { | ||
content: ""; | ||
display: table; | ||
} | ||
&:after { | ||
clear: both; | ||
} | ||
} | ||
|
||
&-body { | ||
.mc-confirm-title { | ||
display: block; | ||
overflow: auto; | ||
} | ||
|
||
.mc-confirm-content { | ||
margin-top: 8px; | ||
} | ||
} | ||
|
||
.mc-confirm-btns { | ||
text-align: right; | ||
// GRAY-600 | ||
border-top: 1px solid #f0f0f0; | ||
|
||
button + button { | ||
margin: 16px 16px 16px; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.