diff --git a/app/assets/stylesheets/admin_back_end.css.erb b/app/assets/stylesheets/admin_back_end.css.erb index f5ba3ccc..42b6453e 100644 --- a/app/assets/stylesheets/admin_back_end.css.erb +++ b/app/assets/stylesheets/admin_back_end.css.erb @@ -344,6 +344,7 @@ body{ #person label { display: block; margin: 15px 0 0; + width: auto; } #person label input { } @@ -362,10 +363,10 @@ body{ padding: 0; width: 140px; } -#porfile .users{ +#profile .users{ margin-left: 180px; } -.roles_block { +.roles_block, .attributes_block { background: url(<%= asset_path "75.png" %>) repeat left top; min-width:710px; margin-bottom:50px; @@ -378,7 +379,7 @@ body{ -webkit-box-shadow: 0px 0px 4px #180902;/* Safari 和 Chrome */ box-shadow: 0px 0px 4px #180902; /* Opera 10.5 + */ } -.roles_block h2 { +.roles_block>h2, .attributes_block>h2 { color: #FFFFFF; font-weight: normal; margin: 0; @@ -387,7 +388,18 @@ body{ text-shadow: 0 3px 2px #000000; top: -30px; } +.group>h2 { + color: #FFFFFF; + margin: 0 20px; + padding: 10px 0; +} +.group>.info_input { + border: 1px solid #686868; + margin: 0 20px; + padding: 10px; +} .main hr { + background-color: #222222; height:8px; border:none; margin:0; @@ -399,11 +411,11 @@ body{ #basic_block hr { background-color: #666666; } -#teacher_block hr { - background-color: #0071A9; +hr.teacher_block { + background-color: #0071A9 !important; } -#student_block hr { - background-color: #AF0045; +hr.student_block { + background-color: #AF0045 !important; } .info_input { padding:10px 20px; @@ -425,15 +437,41 @@ body{ .info_input .list_item { color:#AEAEAE; } -.info_input .add { +#add_attribute { + +} +.add { + -moz-box-shadow:inset 0px 1px 0px 0px #8c8c8c; + -webkit-box-shadow:inset 0px 1px 0px 0px #8c8c8c; + box-shadow:inset 0px 1px 0px 0px #8c8c8c; + background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #303030), color-stop(1, #1a1a1a) ); + background:-moz-linear-gradient( center top, #303030 5%, #1a1a1a 100% ); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#303030', endColorstr='#1a1a1a'); + background-color:#303030; + -moz-border-radius:3px; + -webkit-border-radius:3px; + border-radius:3px; + border:1px solid #000; display:block; - padding-left:22px; + color:#999; + font-family:arial; font-size:12px; - line-height:21px; - height:19px; - background:url(<%= asset_path "icon.png" %>) no-repeat -59px 0; - margin-top: 10px; - color: #DDDDDD; + font-weight:bold; + padding:0px; + text-decoration:none; + text-shadow:0px -1px 0px #000000; + text-align: center; + line-height: 26px; +} +.add:hover { + background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #1a1a1a), color-stop(1, #303030) ); + background:-moz-linear-gradient( center top, #1a1a1a 5%, #303030 100% ); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#1a1a1a', endColorstr='#303030'); + background-color:#1a1a1a; +} +.add:active { + position:relative; + top:1px; } .main table { @@ -466,7 +504,6 @@ body{ -webkit-border-radius: 0 5px 5px 0; } .main thead td { - line-height:40px; font-size:16px; text-shadow: 0px 1px 1px #3e2914; } diff --git a/app/views/admin/attributes/_attribute_field.html.erb b/app/views/admin/attributes/_attribute_field.html.erb index 56d0b3ad..63ee5953 100644 --- a/app/views/admin/attributes/_attribute_field.html.erb +++ b/app/views/admin/attributes/_attribute_field.html.erb @@ -15,9 +15,8 @@ <%= f.select "select_list_options", attribute_field.select_list_options, :style => "width:130px" %> -
- <%= hidden_field_tag 'attribute_field_count', sub_role.attribute_fields.count %> - <%= t(:add) %> - <%= hidden_field_tag 'sub_role_temp_id', (i rescue 'new_sub_roles') %> + |
+
+ <%= hidden_field_tag 'attribute_field_count', sub_role.attribute_fields.count %>
+ <%= t(:add) %>
+ <%= hidden_field_tag 'sub_role_temp_id', (i rescue 'new_sub_roles') %>
+
|