forked from xaviershay/enki
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style login page so that its interface is similar to admin pages.
- Loading branch information
1 parent
25118b6
commit 9812496
Showing
3 changed files
with
73 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<h1>Stop! Who are you?</h1> | ||
<h1><%=h config[:title] %></h1> | ||
<% if flash[:error] %><p><%= flash[:error] %></p><% end %> | ||
<% form_tag(admin_session_path) do -%> | ||
<div> | ||
<%= text_field_tag 'openid_url' %> | ||
<% if allow_login_bypass? -%> | ||
<p><label for="bypass_login">Bypass credentials check</label><%= check_box_tag 'bypass_login' %></p> | ||
<% end -%> | ||
<%= submit_tag("Login with OpenID") %> | ||
</div> | ||
<h2>Stop! Who are you?</h2> | ||
<p><%= text_field_tag 'openid_url' %></p> | ||
<% if allow_login_bypass? -%> | ||
<p><%= check_box_tag 'bypass_login' %> <label for="bypass_login">Bypass credentials check</label></p> | ||
<% end -%> | ||
<p><%= submit_tag("Login with OpenID") %></p> | ||
<% end -%> |
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,41 +1,60 @@ | ||
body | ||
{ | ||
color: black; | ||
|
||
font: normal 12px verdana, arial, helvetica, sans-serif; | ||
line-height: 1.5; | ||
padding: 0px; | ||
margin: 0px; | ||
} | ||
|
||
#page_container | ||
{ | ||
width: 70em; | ||
min-height: 400px; | ||
|
||
border: solid 1px #aaaaaa; | ||
margin-top: 5px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
|
||
position: relative; | ||
text-align: center; | ||
body { | ||
padding-top: 30px; | ||
background-color: #dddddd; | ||
font-family: Helvetica, Sans-serif; | ||
font-size: 10pt; | ||
margin: 10px; | ||
} | ||
|
||
#nav { | ||
position: absolute; | ||
width: 100%; | ||
top: 0px; | ||
left: 0px; | ||
background-color: #222222; | ||
} | ||
|
||
padding-top: 10em; | ||
#nav ul { | ||
list-style-type: none; | ||
margin: 10px; | ||
padding: 0; | ||
} | ||
|
||
label, input | ||
{ | ||
display: block; | ||
margin-left: auto; | ||
margin-right: auto; | ||
margin-bottom: 10px; | ||
#nav ul li { | ||
display: inline; | ||
margin-right: 10px; | ||
} | ||
|
||
input[type='text'] | ||
{ | ||
font-size: 2em; | ||
#nav a { | ||
color: #eeeeee; | ||
text-decoration: none; | ||
font-weight: bold; | ||
width: 20em; | ||
} | ||
#nav a.current { | ||
border-bottom: solid 3px #eeeeee; | ||
} | ||
|
||
#content { | ||
text-align: center; | ||
color: #222222; | ||
} | ||
|
||
form { | ||
margin: 10px auto; | ||
background-color: #ececec; | ||
padding: 0.2em 1em; | ||
width: 34em; | ||
} | ||
|
||
input[type="checkbox"] { | ||
vertical-align: bottom; | ||
} | ||
|
||
input[type="text"] { | ||
padding: 0.2em; | ||
font-size: 1.3em; | ||
font-family: "lucida grande", "lucida sans unicode", "lucida", sans-serif; | ||
width: 24em; | ||
color: #222222; | ||
text-align: center; | ||
} |