ditch unused css rules; move js to body bottom
This commit is contained in:
parent
00e561dd01
commit
9e3ff7338e
2 changed files with 29 additions and 135 deletions
|
|
@ -8,18 +8,17 @@
|
||||||
%title
|
%title
|
||||||
DIASPORA*
|
DIASPORA*
|
||||||
|
|
||||||
|
%meta{:name => "description", :content => "Diaspora* Mobile"}
|
||||||
|
%meta{:name => "author", :content => "Diaspora, Inc."}
|
||||||
|
|
||||||
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
|
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
|
||||||
%meta{:name =>'viewport', :content => "width=device-width, minimum-scale=1, maximum-scale=1"}
|
%meta{:name =>'viewport', :content => "width=device-width, minimum-scale=1, maximum-scale=1"}
|
||||||
%meta{:name => "HandheldFriendly", :content => "True"}
|
%meta{:name => "HandheldFriendly", :content => "True"}
|
||||||
%meta{:name => "MobileOptimized", :content => "320"}
|
%meta{:name => "MobileOptimized", :content => "320"}
|
||||||
%meta{'http-equiv' => "cleartype", :content => 'on'}
|
%meta{'http-equiv' => "cleartype", :content => 'on'}
|
||||||
|
|
||||||
= include_javascripts :mobile
|
= include_stylesheets :mobile
|
||||||
-if current_user
|
|
||||||
:javascript
|
|
||||||
Diaspora.I18n.loadLocale(#{get_javascript_strings_for(current_user.language).to_json}, "#{current_user.language}");
|
|
||||||
|
|
||||||
=include_stylesheets :mobile
|
|
||||||
= csrf_meta_tag
|
= csrf_meta_tag
|
||||||
|
|
||||||
- if rtl?
|
- if rtl?
|
||||||
|
|
@ -27,6 +26,25 @@
|
||||||
|
|
||||||
= yield(:head)
|
= yield(:head)
|
||||||
|
|
||||||
|
%body
|
||||||
|
%header
|
||||||
|
= link_to(image_tag('white@2x.png', :height => 22, :width => 136, :id => 'header_title'), aspects_path)
|
||||||
|
|
||||||
|
- if flash.present?
|
||||||
|
%p
|
||||||
|
- flash.each do |name, msg|
|
||||||
|
= content_tag :div, msg, :id => "flash_#{name}"
|
||||||
|
|
||||||
|
= yield
|
||||||
|
|
||||||
|
/= render :partial =>'shared/footer' if user_signed_in?
|
||||||
|
|
||||||
|
/ javascripts at the bottom
|
||||||
|
= include_javascripts :mobile
|
||||||
|
-if current_user
|
||||||
|
:javascript
|
||||||
|
Diaspora.I18n.loadLocale(#{get_javascript_strings_for(current_user.language).to_json}, "#{current_user.language}");
|
||||||
|
|
||||||
-if AppConfig[:google_a_site]
|
-if AppConfig[:google_a_site]
|
||||||
:javascript
|
:javascript
|
||||||
var _gaq=[["_setAccount","#{AppConfig[:google_a_site]}"],["_trackPageview"]];
|
var _gaq=[["_setAccount","#{AppConfig[:google_a_site]}"],["_trackPageview"]];
|
||||||
|
|
@ -44,21 +62,3 @@
|
||||||
piwikTracker.trackPageView();
|
piwikTracker.trackPageView();
|
||||||
piwikTracker.enableLinkTracking();
|
piwikTracker.enableLinkTracking();
|
||||||
} catch( err ) {}
|
} catch( err ) {}
|
||||||
|
|
||||||
|
|
||||||
%body
|
|
||||||
%header
|
|
||||||
/- if current_user
|
|
||||||
/ /= link_to(image_tag('icons/list_white.png'), '#menu', :id => "menu_button")
|
|
||||||
/ /= link_to(image_tag('icons/search_white.png'), people_path, :class => "right")
|
|
||||||
= link_to(image_tag('white@2x.png', :height => 22, :width => 136, :id => 'header_title'), aspects_path)
|
|
||||||
|
|
||||||
- if flash.present?
|
|
||||||
%p
|
|
||||||
- flash.each do |name, msg|
|
|
||||||
= content_tag :div, msg, :id => "flash_#{name}"
|
|
||||||
|
|
||||||
= yield
|
|
||||||
|
|
||||||
/= render :partial =>'shared/footer' if user_signed_in?
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,42 +23,11 @@ body {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#landing_content {
|
|
||||||
text-align: center;
|
|
||||||
.info_pane {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#login_form {
|
#login_form {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#diaspora_description {
|
|
||||||
background: {
|
|
||||||
image: url("../images/ball_small.png");
|
|
||||||
repeat: no-repeat;
|
|
||||||
position: top center; };
|
|
||||||
padding: {
|
|
||||||
top: 195px; };
|
|
||||||
margin: {
|
|
||||||
top: -18px; };
|
|
||||||
font: {
|
|
||||||
size: 1.3em;
|
|
||||||
weight: bold; };
|
|
||||||
text-shadow: 0 1px 3px #999999;
|
|
||||||
line-height: 1.5;
|
|
||||||
p {
|
|
||||||
padding: 12px;
|
|
||||||
background: {
|
|
||||||
color: white; };
|
|
||||||
-webkit-box-shadow: 0 1px 3px #cccccc;
|
|
||||||
-moz-box-shadow: 0 1px 3px #cccccc;
|
|
||||||
box-shadow: 0 1px 3px #cccccc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.login_form {
|
.login_form {
|
||||||
@include mobile-box;
|
@include mobile-box;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
@ -109,8 +78,6 @@ body {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 19px; }
|
line-height: 19px; }
|
||||||
.black {
|
|
||||||
color: #333333; }
|
|
||||||
margin: 10px {
|
margin: 10px {
|
||||||
top: 10px;
|
top: 10px;
|
||||||
bottom: 0; };
|
bottom: 0; };
|
||||||
|
|
@ -186,60 +153,23 @@ body {
|
||||||
text-shadow: 0 -2px 0 black; } }
|
text-shadow: 0 -2px 0 black; } }
|
||||||
|
|
||||||
.time, .via {
|
.time, .via {
|
||||||
color: #cccccc;
|
color: #ccc;
|
||||||
font: {
|
font: {
|
||||||
size: smaller;
|
size: smaller;
|
||||||
weight: bold; };
|
weight: bold; };
|
||||||
|
}
|
||||||
|
.via {
|
||||||
a {
|
a {
|
||||||
color: #cccccc; } }
|
color: #ccc; } }
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
.time {
|
.time {
|
||||||
color: #777777; } }
|
color: #777; } }
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
margin: {
|
margin: {
|
||||||
top: -2px; }; }
|
top: -2px; }; }
|
||||||
|
|
||||||
#show_content {
|
|
||||||
padding: 12px {
|
|
||||||
bottom: 24px; };
|
|
||||||
border: {
|
|
||||||
bottom: 1px solid #bbbbbb; };
|
|
||||||
background: {
|
|
||||||
color: white; };
|
|
||||||
font: {
|
|
||||||
size: larger; };
|
|
||||||
img {
|
|
||||||
max-width: 100%; }
|
|
||||||
.photo {
|
|
||||||
text-align: center; }
|
|
||||||
.controls {
|
|
||||||
font: {
|
|
||||||
size: smaller; }; }
|
|
||||||
&.photo {
|
|
||||||
background: {
|
|
||||||
color: black; }; } }
|
|
||||||
|
|
||||||
#photo_controls {
|
|
||||||
margin: {
|
|
||||||
bottom: -42px; }; }
|
|
||||||
|
|
||||||
.arrow {
|
|
||||||
color: white !important;
|
|
||||||
font: {
|
|
||||||
size: 26pt; };
|
|
||||||
text: {
|
|
||||||
shadow: 0 1px 2px #333333;
|
|
||||||
decoration: none; };
|
|
||||||
padding: 0; }
|
|
||||||
|
|
||||||
ul {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
list: {
|
|
||||||
style: none; }; }
|
|
||||||
|
|
||||||
#author_info.profile {
|
#author_info.profile {
|
||||||
background: {
|
background: {
|
||||||
color: #eeeeee; };
|
color: #eeeeee; };
|
||||||
|
|
@ -262,42 +192,9 @@ ul {
|
||||||
size: small; };
|
size: small; };
|
||||||
color: #999999; } }
|
color: #999999; } }
|
||||||
|
|
||||||
.stream_marker {
|
|
||||||
background: {
|
|
||||||
color: #eeeeee; };
|
|
||||||
border: {
|
|
||||||
bottom: 1px solid #aaaaaa;
|
|
||||||
top: 1px solid #cccccc; };
|
|
||||||
font: {
|
|
||||||
weight: bold;
|
|
||||||
size: smaller; };
|
|
||||||
color: #666666;
|
|
||||||
padding: 3px 6px; }
|
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
float: right; }
|
float: right; }
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none; }
|
|
||||||
|
|
||||||
.grey_back {
|
|
||||||
background: {
|
|
||||||
color: #eeeeee; };
|
|
||||||
border: {
|
|
||||||
bottom: 1px solid #999999; };
|
|
||||||
padding: 8px {
|
|
||||||
top: 3px; };
|
|
||||||
margin: {
|
|
||||||
bottom: 12px; }; }
|
|
||||||
|
|
||||||
#aspect_title {
|
|
||||||
padding: 0 6px {
|
|
||||||
bottom: 6px; };
|
|
||||||
font: {
|
|
||||||
weight: bold; };
|
|
||||||
text: {
|
|
||||||
align: left; }; }
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@include linear-gradient(#444444, black);
|
@include linear-gradient(#444444, black);
|
||||||
padding: 12px 5px;
|
padding: 12px 5px;
|
||||||
|
|
@ -309,8 +206,7 @@ header {
|
||||||
footer {
|
footer {
|
||||||
background: {
|
background: {
|
||||||
color: #cccccc; };
|
color: #cccccc; };
|
||||||
.inset {
|
}
|
||||||
padding: 10px; } }
|
|
||||||
|
|
||||||
.notification_day_header {
|
.notification_day_header {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
|
@ -335,8 +231,6 @@ footer {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
font: {
|
font: {
|
||||||
size: larger; };
|
size: larger; };
|
||||||
img {
|
|
||||||
height: 24px; }
|
|
||||||
a {
|
a {
|
||||||
color: #999999 !important;
|
color: #999999 !important;
|
||||||
font-weight: bold !important; } }
|
font-weight: bold !important; } }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue