Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding notification window and footer tweaks
- Loading branch information
1 parent
15b0ab3
commit 8316220
Showing
12 changed files
with
316 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"./tools/dotless/dotless.Compiler.exe" -w ./dovetail.less ./%1 |
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,12 @@ | ||
footer { | ||
background: darken(@white, 20%); | ||
.border-radius(0 0 4px 4px); | ||
margin-top:0; | ||
padding-top:5px; | ||
text-align:left; | ||
overflow:hidden; | ||
|
||
p { | ||
padding-bottom:6px; | ||
} | ||
} |
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,18 @@ | ||
#notification { | ||
background: @red; | ||
padding:5px; | ||
margin: -3px 0 0 0; | ||
.border-radius(4px); | ||
width:15px; | ||
text-align:center; | ||
color:@white; | ||
font-weight:bold; | ||
} | ||
|
||
#notification-window { | ||
border:2px solid @gray; | ||
.border-radius(0 0 4px 4px); | ||
width:200px; | ||
min-height:300px; | ||
background:@white; | ||
} |
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,3 @@ | ||
<viewdata model="DovetailTheme.Actions.Updates.UpdatesListView" /> | ||
|
||
stuff hi |
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,31 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace DovetailTheme.Actions.Updates | ||
{ | ||
public class UpdatesViewAction | ||
{ | ||
public UpdatesListView Execute(UpdatesRequest request) | ||
{ | ||
return new UpdatesListView() | ||
{ | ||
Items = {new UpdateItem(){Description = "hi"}} | ||
}; | ||
} | ||
} | ||
|
||
|
||
public class UpdatesListView | ||
{ | ||
public IList<UpdateItem> Items { get; set; } | ||
} | ||
|
||
public class UpdateItem | ||
{ | ||
public string Description { get; set; } | ||
} | ||
|
||
public class UpdatesRequest | ||
{ | ||
|
||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
src/DovetailTheme/content/scripts/dovetail.notification.js
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,24 @@ | ||
(function ($) { | ||
$(function () { | ||
$button = $('#notification'); | ||
$window = $("<div>DRU</div>"); | ||
$window.attr("id", "notification-window"); | ||
$window.hide(); | ||
$('body').append($window); | ||
|
||
$button.click(function (event) { | ||
$window.toggle(); | ||
|
||
//TODO: track scroll on window? | ||
$window.position({ | ||
of: $button, | ||
my: 'left top', | ||
at: 'left bottom', | ||
offset: '0 11' | ||
}); | ||
event.preventDefault(); | ||
}); | ||
|
||
//TODO: add hide | ||
}); | ||
})(jQuery); |
Oops, something went wrong.