Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made favicon sexier; extracted form-block into its own custom class; …
…made the title of pages less caps-lock.
- Loading branch information
1 parent
0fc3992
commit a5f34e6
Showing
14 changed files
with
170 additions
and
261 deletions.
There are no files selected for viewing
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,105 @@ | ||
form.block-form { | ||
display : inline-block; | ||
|
||
label { | ||
color : #555; | ||
} | ||
|
||
input { | ||
&:invalid, | ||
&:invalid:required, | ||
&:invalid:required:focus { | ||
-webkit-box-shadow : none; | ||
-moz-box-shadow : none; | ||
box-shadow : none; | ||
box-shadow : none; | ||
|
||
border : none; | ||
color : #555; | ||
} | ||
} | ||
|
||
fieldset { | ||
@include border-radius(5px); | ||
|
||
-webkit-box-shadow : inset 0 1px 1px rgba(0,0,0,0.2), 0 1px 2px rgba(255,255,255,0.7); | ||
|
||
margin-bottom : 1em; | ||
|
||
background-color : #fff; | ||
|
||
border : 1px solid #888; | ||
|
||
input[type=text], | ||
input[type=email], | ||
input[type=password] { | ||
@include box-shadow(0,0,0,0); | ||
@include border-radius(0); | ||
|
||
background : transparent; | ||
|
||
padding : 10px; | ||
|
||
margin-bottom : 0; | ||
border : none; | ||
} | ||
|
||
/* mainly bootstrap overrides */ | ||
.control-group { | ||
margin : 0; | ||
border-bottom : 1px solid #ddd; | ||
|
||
.control-label, | ||
input[type=text], | ||
input[type=password], | ||
.field_with_errors label { | ||
padding : 10px; | ||
margin : 0; | ||
} | ||
|
||
.controls { margin-left : 100px; position : relative; } | ||
.control-label { width : 80px; } | ||
|
||
.controls .field_with_errors input { | ||
background : { | ||
image : image-url('invalid_fat@2x.png'); | ||
repeat : no-repeat; | ||
position : 197px; | ||
size: 20px 20px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
input[type=submit] { | ||
text-align : center; | ||
display : block; | ||
width : 100%; | ||
padding : 8px 0; | ||
} | ||
} | ||
|
||
|
||
/* buttons to be extracted? */ | ||
.new-btn { | ||
@include transition(box-shadow); | ||
@include border-radius(5px); | ||
@include linear-gradient(#fff, rgb(233,233,233)); | ||
@include box-shadow(0, 1px, 2px, rgba(0,0,0,0)); | ||
|
||
background-color : rgb(233,233,233); | ||
color : #888; | ||
border : 1px solid #888; | ||
|
||
//font-family : Roboto-Bold; | ||
font-size : 14px; | ||
text-shadow : 0 1px 2px #eee; | ||
|
||
&:hover { | ||
@include box-shadow(0, 1px, 2px, rgba(0,0,0,0.3)); | ||
} | ||
|
||
&:active { | ||
box-shadow : inset 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(255,255,255,0.7); | ||
} | ||
} |
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 @@ | ||
#login { | ||
position : absolute; | ||
top : 0; | ||
left : 0; | ||
margin-top : 200px; | ||
//background-color : #afc652; | ||
min-height : 100%; | ||
min-width : 100%; | ||
|
||
//color : #fff; | ||
text-align : center; | ||
|
||
input[type=text], | ||
input[type=password] { | ||
width : 120px; | ||
} | ||
|
||
#huge-text { | ||
font-family : Roboto-Light; | ||
font-size : 200px; | ||
color : #ddd; | ||
text-shadow : 0 1px 0 #fff; | ||
} | ||
} |
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
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,32 @@ | ||
<div id="login"> | ||
|
||
<h1 id="huge-text"> | ||
DIASPORA | ||
</h1> | ||
|
||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => "form-horizontal block-form", :autocomplete => 'off'}) do |f| %> | ||
<fieldset> | ||
<div class="control-group"> | ||
<label class="control-label" for="user_username"> | ||
USERNAME | ||
</label> | ||
|
||
<div class="controls"> | ||
<%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_]+" %> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<label class="control-label" for="user_password"> | ||
PASSWORD | ||
</label> | ||
|
||
<div class="controls"> | ||
<%= f.password_field :password, :placeholder => "••••••••", :required => true, :pattern => "......+" %> | ||
</div> | ||
</div> | ||
</fieldset> | ||
|
||
<%= f.submit "Sign In", :class => "new-btn" %> | ||
<% end %> | ||
</div> |
Oops, something went wrong.