forked from AugurProject/augur-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial transition of notification component + established custom pro…
…perties for animation speeds to be more easily accessible via JS + updated documentation
- Loading branch information
1 parent
10ab7e7
commit 2b8fa43
Showing
4 changed files
with
78 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,42 @@ | ||
#notifications_view { | ||
.border(true); | ||
|
||
background-color: @color-white; | ||
#transition_notifications_view { | ||
bottom: 0; | ||
margin: 0; | ||
position: absolute; | ||
transform: translateY(100%); | ||
width: 300px; | ||
|
||
#notifications_view { | ||
.border(true); | ||
|
||
background-color: @color-white; | ||
margin: 0; | ||
width: 300px; | ||
|
||
&.notifications-enter { | ||
opacity: 0; | ||
|
||
&.notifications-enter-active { | ||
opacity: 1; | ||
transition-duration: @animation-speed-fast; | ||
transition-property: opacity; | ||
transition-timing-function: @animation-default-type; | ||
} | ||
} | ||
|
||
&.notifications-leave { | ||
opacity: 1; | ||
|
||
&.notifications-leave-active { | ||
opacity: 0; | ||
transition-duration: @animation-speed-very-fast; | ||
transition-property: opacity; | ||
transition-timing-function: @animation-default-type; | ||
} | ||
} | ||
|
||
h3 { | ||
.border(true, @border-bottom); | ||
.font-color-dark(); | ||
|
||
padding-left: 1em; | ||
} | ||
} | ||
} |