From: Jakub Steiner <[email protected]>
---
src/app/stylesheets/aggregator.scss | 56 +++++++++++++++++++++++++++++++++-
src/app/views/user_sessions/new.haml | 13 ++++----
2 files changed, 61 insertions(+), 8 deletions(-)
diff --git a/src/app/stylesheets/aggregator.scss
b/src/app/stylesheets/aggregator.scss
index 88ee331..81cae58 100644
--- a/src/app/stylesheets/aggregator.scss
+++ b/src/app/stylesheets/aggregator.scss
@@ -4,6 +4,37 @@
html {
}
+input[type='submit'],button {
+ background: -moz-linear-gradient(top, #f9f9f9, #f0f0f0, #e5e5e5, #e9e9e9);
+ background: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9),
color-stop(0.9, #e5e5e5), to(#e9e9e9));
+ border: 1px solid #555753;
+ color: #221e1f;
+ cursor: pointer;
+ font-size: 10px;
+ margin: 20px 0;
+ padding: 4px 12px;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ text-shadow: 0 1px 0 #fff;
+ -webkit-text-shadow: 0 1px 0 #fff;
+ .nomargin {
+ margin: 0;
+ }
+ &:hover {
+ background: -moz-linear-gradient(top, #fff, #fff, #cfcfcf);
+ background: -webkit-gradient(linear, left top, left bottom, from(#fff),
color-stop(0.6, #fff), to(#cfcfcf));
+ /* @import box-shadow(0, 1px, 2px, rgba(0,0,0,0.5)); */
+ }
+ &:active {
+ background: -moz-linear-gradient(top, #c2c3c0, #e4e5e4);
+ background: -webkit-gradient(linear, left top, left bottom, from(#c2c3c0),
to(#e4e5e4));
+ box-shadow: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ padding: 5px 12px 3px;
+ }
+}
+
#head {
background-color: $headerbg;
border-bottom: 2px solid desaturate(lighten($headerbg,30%),50%);
@@ -30,6 +61,7 @@ html {
margin: 150px auto;
@include box-shadow(0,1px,5px,rgba(0, 0, 0, 0.6));
width: 500px;
+ overflow: hidden;
h2 {
background-color: $formheadbg;
color: $formheadfg;
@@ -37,7 +69,29 @@ html {
font-size: 120%;
padding: 10px;
}
- dcloud_form {
+ .dcloud_form {
margin: 10px;
+ overflow: hidden;
+ ul {
+ display: block;
+ li {
+ display: block;
+ }
+ }
+ }
+}
+
+.dcloud_form {
+ fieldset {
+ overflow: hidden;
+ label {
+ width: 140px;
+ float: left;
+ text-align: right;
+ font-weight: bold;
+ }
+ input {
+ float: right;
+ }
}
}
diff --git a/src/app/views/user_sessions/new.haml
b/src/app/views/user_sessions/new.haml
index 65e5a24..9228cba 100644
--- a/src/app/views/user_sessions/new.haml
+++ b/src/app/views/user_sessions/new.haml
@@ -3,13 +3,12 @@
.dcloud_form
- form_for @user_session, :url => user_session_path do |f|
= f.error_messages
- %ul
- %li
- = f.label :login, "Username"
- = f.text_field :login
- %li
- = f.label :password
- = f.password_field :password
+ %fieldset
+ = f.label :login, "Username"
+ = f.text_field :login
+ %fieldset
+ = f.label :password
+ = f.password_field :password
= f.check_box :remember_me
= f.label :remember_me
= f.submit "Login", :class => "submit"
--
1.7.2.3
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel