Merge pull request #5781 from svbergerem/various-style-fixes

Various style fixes
This commit is contained in:
Jonne Haß 2015-03-15 04:13:47 +01:00
commit 25e80fddc8
13 changed files with 63 additions and 73 deletions

View file

@ -103,6 +103,7 @@ diaspora.yml file**. The existing settings from 0.4.x and before will not work a
* Move registration form to a partial [#5764](https://github.com/diaspora/diaspora/pull/5764) * Move registration form to a partial [#5764](https://github.com/diaspora/diaspora/pull/5764)
* Add tests for liking and unliking posts [#5741](https://github.com/diaspora/diaspora/pull/5741) * Add tests for liking and unliking posts [#5741](https://github.com/diaspora/diaspora/pull/5741)
* Rewrite slide effect in conversations as css transition for better performance [#5776](https://github.com/diaspora/diaspora/pull/5776) * Rewrite slide effect in conversations as css transition for better performance [#5776](https://github.com/diaspora/diaspora/pull/5776)
* Various cleanups and improvements in the frontend code [#5781](https://github.com/diaspora/diaspora/pull/5781) [#5769](https://github.com/diaspora/diaspora/pull/5769) [#5763](https://github.com/diaspora/diaspora/pull/5763) [#5762](https://github.com/diaspora/diaspora/pull/5762) [#5758](https://github.com/diaspora/diaspora/pull/5758) [#5755](https://github.com/diaspora/diaspora/pull/5755) [#5747](https://github.com/diaspora/diaspora/pull/5747) [#5734](https://github.com/diaspora/diaspora/pull/5734)
## Bug fixes ## Bug fixes
* orca cannot see 'Add Contact' button [#5158](https://github.com/diaspora/diaspora/pull/5158) * orca cannot see 'Add Contact' button [#5158](https://github.com/diaspora/diaspora/pull/5158)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 B

View file

@ -10,7 +10,7 @@ app.views.Location = Backbone.View.extend({
}, },
render: function(){ render: function(){
$(this.el).append('<img alt="delete location" src="'+ImagePaths.get('ajax-loader.gif')+'">'); $(this.el).append('<img alt="ajax-loader" src="'+ImagePaths.get('ajax-loader.gif')+'">');
}, },
getLocation: function(){ getLocation: function(){
@ -20,7 +20,6 @@ app.views.Location = Backbone.View.extend({
locator.getAddress(function(address, latlng){ locator.getAddress(function(address, latlng){
$(element).html('<input id="location_address" type="text" class="input-block-level" value="' + address + '"/>'); $(element).html('<input id="location_address" type="text" class="input-block-level" value="' + address + '"/>');
$('#location_coords').val(latlng.latitude + "," + latlng.longitude); $('#location_coords').val(latlng.latitude + "," + latlng.longitude);
$(element).append('<a id="hide_location"><img alt="delete location" src="'+ImagePaths.get('deletelabel.png')+'"></a>');
}); });
}, },
}); });

View file

@ -11,12 +11,6 @@ textarea::input-placeholder {
} }
// A popover hack
.popover h3 {
margin-bottom: 0;
font-weight: bold;
}
// A temporary fix for mention modal #5329 // A temporary fix for mention modal #5329
#new_status_message_pane .modal { #new_status_message_pane .modal {

View file

@ -39,3 +39,39 @@
} }
} }
} }
.popover h3 {
font-weight: bold;
.close { line-height: 18px; }
}
#welcome-to-diaspora {
background: orange;
box-shadow: inset 0 -2px 10px rgba(0,0,0,0.35);
margin-bottom: 20px;
margin-top: -40px;
padding-bottom: 30px;
padding-top: 60px;
h1,h3 {
color: $white;
margin: 0;
text-overflow: ellipsis;
white-space: nowrap;
}
#gs-skip-x {
font-size: 40px;
}
&:hover {
#gs-skip-x {
opacity: .4;
@include transition(opacity, 0.25s);
&:hover {
opacity: 1;
}
}
}
}

View file

@ -54,34 +54,3 @@
} }
} }
} }
#welcome-to-diaspora {
-webkit-box-shadow: inset 0 -2px 10px rgba(0,0,0,0.35);
-moz-box-shadow: inset 0 -2px 10px rgba(0,0,0,0.35);
position: relative;
width: 100%;
left: 0;
top: 0;
padding: 10px;
.right {
position: absolute;
right: 0;
top: 10px;
}
h1,h3 {
color: #fff;
text-overflow: ellipsis;
white-space: nowrap;
}
background: orange;
&:hover {
#gs-skip-x {
opacity: .4;
@include transition(opacity, 0.25s);
&:hover {
opacity: 1;
}
}
}
}

View file

@ -104,7 +104,6 @@
&.with_location .row-fluid#location_container { &.with_location .row-fluid#location_container {
height: 30px; height: 30px;
#hide_location { display: none !important; }
border-top: 1px dashed $border-grey; border-top: 1px dashed $border-grey;
input[type='text'] { input[type='text'] {
margin-bottom: 0; margin-bottom: 0;

View file

@ -42,7 +42,7 @@ module ApplicationHelper
end end
def popover_with_close_html(without_close_html) def popover_with_close_html(without_close_html)
without_close_html + link_to(content_tag(:div, nil, :class => 'icons-deletelabel'), "#", :class => 'close') without_close_html + link_to('&times;'.html_safe, "#", :class => 'close')
end end
# Require jQuery from CDN if possible, falling back to vendored copy, and require # Require jQuery from CDN if possible, falling back to vendored copy, and require

View file

@ -2,8 +2,6 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
.bootstrap_header_padding
.container .container
.row-fluid .row-fluid
.span12 .span12
@ -19,7 +17,7 @@
- content_for :submit_block do - content_for :submit_block do
= link_to t('cancel'), local_or_remote_person_path(current_user.person), :class => "btn" = link_to t('cancel'), local_or_remote_person_path(current_user.person), :class => "btn"
= submit_tag t('.update_profile'), :class => "creation", :id => "update_profile", :class => "btn" = submit_tag t('.update_profile'), :class => "creation", :id => "update_profile", :class => "btn"
= render :partial => 'edit', :locals => {:person => @person, = render :partial => 'edit', :locals => {:person => @person,
:profile => @profile, :aspect => @aspect, :step => @step} :profile => @profile, :aspect => @aspect, :step => @step}
.span3 .span3

View file

@ -5,8 +5,6 @@
- content_for :page_title do - content_for :page_title do
= t('.edit_services') = t('.edit_services')
.bootstrap_header_padding
.container .container
.row-fluid .row-fluid
.span12 .span12

View file

@ -7,18 +7,18 @@
= javascript_include_tag :jsxc, :id => 'jsxc', = javascript_include_tag :jsxc, :id => 'jsxc',
:data => { :endpoint => get_bosh_endpoint } :data => { :endpoint => get_bosh_endpoint }
.bootstrap_header_padding
- if current_user.getting_started? - if current_user.getting_started?
#welcome-to-diaspora #welcome-to-diaspora
.container{:style => "position: relative;"} .container-fluid
.right .row-fluid
= link_to image_tag('close_label.png'), getting_started_completed_path, :id => "gs-skip-x" .span8.offset1
.span12 %h1
%h1 = t('aspects.index.welcome_to_diaspora', :name => current_user.first_name)
= t('aspects.index.welcome_to_diaspora', :name => current_user.first_name) %h3
%h3 = t('aspects.index.introduce_yourself')
= t('aspects.index.introduce_yourself') .span2
.pull-right
= link_to '&times;'.html_safe, getting_started_completed_path, :id => "gs-skip-x", :class => "close"
.container-fluid .container-fluid
.row-fluid .row-fluid

View file

@ -5,8 +5,6 @@
- content_for :page_title do - content_for :page_title do
= t('.edit_account') = t('.edit_account')
.bootstrap_header_padding
.container .container
.row-fluid .row-fluid
.span12 .span12
@ -41,7 +39,7 @@
.row-fluid .row-fluid
.span12 .span12
%h3 %h3
= t('.change_password') = t('.change_password')
= form_for @user, :url => user_path, :html => { :method => :put } do |f| = form_for @user, :url => user_path, :html => { :method => :put } do |f|
- if (@user.errors.keys & [:password, :password_confirmation, :current_password]).present? - if (@user.errors.keys & [:password, :password_confirmation, :current_password]).present?
@ -65,7 +63,7 @@
.row-fluid .row-fluid
.span-12 .span-12
%h3 %h3
= t('.change_language') = t('.change_language')
= form_for 'user', :url => user_path, :html => { :method => :put } do |f| = form_for 'user', :url => user_path, :html => { :method => :put } do |f|
.form-inline .form-inline
@ -100,7 +98,7 @@
.row-fluid .row-fluid
.span-12 .span-12
%h3#auto-follow-back-preferences %h3#auto-follow-back-preferences
= t('.following') = t('.following')
= form_for current_user, :url => user_path, :html => { :method => :put } do |f| = form_for current_user, :url => user_path, :html => { :method => :put } do |f|
@ -119,7 +117,7 @@
.row-fluid .row-fluid
.span-12 .span-12
%h3 %h3
= t('.receive_email_notifications') = t('.receive_email_notifications')
= form_for 'user', :url => user_path, :html => { :method => :put } do |f| = form_for 'user', :url => user_path, :html => { :method => :put } do |f|
= f.fields_for :email_preferences do |type| = f.fields_for :email_preferences do |type|
@ -140,40 +138,40 @@
= type.check_box :mentioned, {:checked => @email_prefs['mentioned']}, false, true = type.check_box :mentioned, {:checked => @email_prefs['mentioned']}, false, true
= t('.mentioned') = t('.mentioned')
.small-horizontal-spacer .small-horizontal-spacer
= type.label :liked, :class => "checkbox" do = type.label :liked, :class => "checkbox" do
= type.check_box :liked, {:checked => @email_prefs['liked']}, false, true = type.check_box :liked, {:checked => @email_prefs['liked']}, false, true
= t('.liked') = t('.liked')
.small-horizontal-spacer .small-horizontal-spacer
= type.label :reshared, :class => "checkbox" do = type.label :reshared, :class => "checkbox" do
= type.check_box :reshared, {:checked => @email_prefs['reshared']}, false, true = type.check_box :reshared, {:checked => @email_prefs['reshared']}, false, true
= t('.reshared') = t('.reshared')
.small-horizontal-spacer .small-horizontal-spacer
= type.label :comment_on_post, :class => "checkbox" do = type.label :comment_on_post, :class => "checkbox" do
= type.check_box :comment_on_post, {:checked => @email_prefs['comment_on_post']}, false, true = type.check_box :comment_on_post, {:checked => @email_prefs['comment_on_post']}, false, true
= t('.comment_on_post') = t('.comment_on_post')
.small-horizontal-spacer .small-horizontal-spacer
= type.label :also_commented, :class => "checkbox" do = type.label :also_commented, :class => "checkbox" do
= type.check_box :also_commented, {:checked => @email_prefs['also_commented']}, false, true = type.check_box :also_commented, {:checked => @email_prefs['also_commented']}, false, true
= t('.also_commented') = t('.also_commented')
.small-horizontal-spacer .small-horizontal-spacer
= type.label :private_message, :class => "checkbox" do = type.label :private_message, :class => "checkbox" do
= type.check_box :private_message, {:checked => @email_prefs['private_message']}, false, true = type.check_box :private_message, {:checked => @email_prefs['private_message']}, false, true
= t('.private_message') = t('.private_message')
.small-horizontal-spacer .small-horizontal-spacer
= f.submit t('.change'), :class => "btn", :id => "change_email_preferences" = f.submit t('.change'), :class => "btn", :id => "change_email_preferences"
%hr %hr
.row-fluid .row-fluid
#account_data.span6 #account_data.span6
%h3 %h3
= t('.export_data') = t('.export_data')
- if current_user.exporting - if current_user.exporting
.export-in-progress= t('.export_in_progress') .export-in-progress= t('.export_in_progress')
@ -184,7 +182,7 @@
= link_to t('.request_export_update'), export_profile_user_path, class: "btn" = link_to t('.request_export_update'), export_profile_user_path, class: "btn"
- else - else
= link_to t('.request_export'), export_profile_user_path, :class => "btn" = link_to t('.request_export'), export_profile_user_path, :class => "btn"
- if current_user.exporting_photos - if current_user.exporting_photos
.small-horizontal-spacer .small-horizontal-spacer
.export-in-progress= t('.export_photos_in_progress') .export-in-progress= t('.export_photos_in_progress')

View file

@ -5,8 +5,6 @@
- content_for :page_title do - content_for :page_title do
= t('.title') = t('.title')
.bootstrap_header_padding
.container .container
.row-fluid .row-fluid
.span12 .span12
@ -20,7 +18,7 @@
.span5 .span5
%h3 %h3
= t('.title') = t('.title')
= form_for current_user, :url => user_path, :html => { :method => :put } do |f| = form_for current_user, :url => user_path, :html => { :method => :put } do |f|
= f.error_messages = f.error_messages