Skip to content

Commit

Permalink
css: fixed login div with navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Martikos committed Apr 24, 2013
1 parent 4823179 commit 2de45ef
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 17 deletions.
24 changes: 14 additions & 10 deletions Views/Layout.master
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

</div>
<div id="login" class="right">
<div class="login_frank">
<span class="ep">Hello
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
Expand All @@ -50,16 +51,19 @@

!<br />
</span>
<asp:LoginView ID="LoginView2" runat="server">
<AnonymousTemplate>
<asp:HyperLink ID="RegisterLink" runat="server" NavigateUrl="~/Views/UserRegistration.aspx">Register</asp:HyperLink>
&nbsp;or
<asp:HyperLink ID="LoginLink" runat="server" NavigateUrl="~/Views/Login.aspx">Login</asp:HyperLink>
</AnonymousTemplate>
<LoggedInTemplate>
<asp:LoginStatus ID="LoginStatus1" runat="server" OnLoggingOut="LoginStatus1_LoggingOut" />
</LoggedInTemplate>
</asp:LoginView>

<asp:LoginView ID="LoginView2" runat="server">
<AnonymousTemplate>
<asp:HyperLink ID="RegisterLink" runat="server" NavigateUrl="~/Views/UserRegistration.aspx">Register</asp:HyperLink>
&nbsp;or
<asp:HyperLink ID="LoginLink" runat="server" NavigateUrl="~/Views/Login.aspx">Login</asp:HyperLink>
</AnonymousTemplate>
<LoggedInTemplate>
<asp:LoginStatus ID="LoginStatus1" runat="server" OnLoggingOut="LoginStatus1_LoggingOut" />
</LoggedInTemplate>
</asp:LoginView>
</div>

<nav id="navbar" runat="server">
<ul class="menu" id="menu" runat="server">
<li>
Expand Down
3 changes: 2 additions & 1 deletion Views/Search.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ private void putHighlights()
location = UserDataService.getUser(userId).location;
}

returnList = ListingDataService.getListingsBy("Location", location, 5);
/* no limit on the number of items */
returnList = ListingDataService.getListingsBy("Location", location);

featured3.InnerHtml = "";
for (int i = returnList.Count - 1; i >= 0; i--)
Expand Down
25 changes: 19 additions & 6 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,22 @@ h2 {


}
.login_frank {
text-align: right;
float: right;
clear: both;
}
.login_frank a {
color: #00a9ff;
text-decoration: none;
}
.login_frank a:hover {
color: #fff;
}
.login_frank a:visited {
color: #ffd303;
}




Expand Down Expand Up @@ -380,6 +396,8 @@ div.featured_item_div:hover {
}
nav .menu {
text-align: center;
float: right;
clear: both;
// background-color: #eee;
// background: url('../../public/img/bg-middle-top.gif');
//height: 40px;
Expand All @@ -396,18 +414,13 @@ nav .menu li span.nav_icon {

nav .menu li {





list-style: none;
display: inline;
width: 400px;


// padding-top: 10px;
padding-left: 15px;
padding-right: 15px;
padding-right: 0px;


}
Expand Down

0 comments on commit 2de45ef

Please sign in to comment.