-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
z-index management. better messages UI
- Loading branch information
Showing
9 changed files
with
82 additions
and
39 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 |
---|---|---|
@@ -1,17 +1,29 @@ | ||
@messageHeight : 3.125em; | ||
|
||
.ck-message { | ||
position: fixed; | ||
top: 0.45em; | ||
left: 50%; | ||
z-index: 10; | ||
padding: 0.5em 1em; | ||
background-color: lighten(@themeColor, 20%); | ||
border: 1px solid darken(@themeColor, 20%); | ||
color: #333; | ||
text-shadow: 0px 1px 0px rgba(255,255,255,0.5); | ||
border-radius: 2px; | ||
box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.1); | ||
-webkit-transform: translateX(-50%); | ||
transform: translateX(-50%); | ||
-webkit-animation: fadeIn 0.3s; | ||
animation: fadeIn 0.3s; | ||
left: 0; | ||
right: 0; | ||
height: @messageHeight; | ||
line-height: @messageHeight; | ||
top: -@messageHeight; | ||
z-index: @z-index--message; | ||
padding: 0 1em; | ||
font-weight: 500; | ||
text-align: center; | ||
background-color: fade(lighten(@themeColor, 8%), 98%); | ||
border-bottom: 1px solid lighten(@themeColor, 3%); | ||
-webkit-animation: messageShowHide 3.2s; | ||
animation: messageShowHide 3.2s; | ||
} | ||
|
||
@-webkit-keyframes messageShowHide { | ||
8% { top: 0; } | ||
92% { top: 0; } | ||
100% { top: -@messageHeight; } | ||
} | ||
@keyframes messageShowHide { | ||
8% { top: 0; } | ||
92% { top: 0; } | ||
100% { top: -@messageHeight; } | ||
} |
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,7 +1,13 @@ | ||
// LESS Variables | ||
|
||
// Colors | ||
@themeColor : rgb(62, 163, 255); //rgb(76, 217, 100); | ||
@themeColorText : darken(@themeColor, 10%); | ||
|
||
// Animation speed | ||
@elementMoveSpeed : 0.1s; | ||
@colorChangeSpeed : 0.1s; | ||
|
||
// z-indexes | ||
@z-index--hilite: -1; // behind text | ||
@z-index--toolbar: 1; | ||
@z-index--message: 2; |
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