responsive show pages [ci skip]
This commit is contained in:
parent
aa35519bf0
commit
bdcbf5b985
3 changed files with 67 additions and 58 deletions
|
|
@ -12,6 +12,10 @@
|
||||||
%meta{:name => "description", :content => "Diaspora*"}
|
%meta{:name => "description", :content => "Diaspora*"}
|
||||||
%meta{:name => "author", :content => "Diaspora, Inc."}
|
%meta{:name => "author", :content => "Diaspora, Inc."}
|
||||||
|
|
||||||
|
%meta{:name => "HandheldFriendly", :content => "True"}
|
||||||
|
%meta{:name => "MobileOptimized", :content => "320"}
|
||||||
|
%meta{:name => "viewport", :content => "initial-scale=1, maximum-scale=1"}
|
||||||
|
|
||||||
%link{:rel => 'shortcut icon', :href => '/favicon.png'}
|
%link{:rel => 'shortcut icon', :href => '/favicon.png'}
|
||||||
%link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'}
|
%link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,11 +101,15 @@ javascripts:
|
||||||
- public/javascripts/vendor/jquery.autoSuggest.custom.js
|
- public/javascripts/vendor/jquery.autoSuggest.custom.js
|
||||||
ie:
|
ie:
|
||||||
- public/javascripts/ie.js
|
- public/javascripts/ie.js
|
||||||
|
|
||||||
stylesheets:
|
stylesheets:
|
||||||
bootstrap:
|
bootstrap:
|
||||||
|
- public/stylesheets/bootstrap-responsive.css
|
||||||
- public/stylesheets/bootstrap.css
|
- public/stylesheets/bootstrap.css
|
||||||
|
|
||||||
blueprint:
|
blueprint:
|
||||||
- public/stylesheets/blueprint/screen.css
|
- public/stylesheets/blueprint/screen.css
|
||||||
|
|
||||||
login:
|
login:
|
||||||
- public/stylesheets/login.css
|
- public/stylesheets/login.css
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,11 @@ $pane-width: 420px;
|
||||||
box-shadow: $left $top $blur $color;
|
box-shadow: $left $top $blur $color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin pane-width() {
|
||||||
|
width: $pane-width;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
@mixin background-cover() {
|
@mixin background-cover() {
|
||||||
background: no-repeat center center fixed;
|
background: no-repeat center center fixed;
|
||||||
-webkit-background-size: cover;
|
-webkit-background-size: cover;
|
||||||
|
|
@ -64,6 +69,7 @@ $pane-width: 420px;
|
||||||
@include box-shadow(0, 6px, 20px, #000);
|
@include box-shadow(0, 6px, 20px, #000);
|
||||||
@include border-radius(3px, 0px);
|
@include border-radius(3px, 0px);
|
||||||
@include dark-hatched-bg();
|
@include dark-hatched-bg();
|
||||||
|
@include pane-width();
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -74,8 +80,6 @@ $pane-width: 420px;
|
||||||
|
|
||||||
padding-top: 25px;
|
padding-top: 25px;
|
||||||
|
|
||||||
width: $pane-width;
|
|
||||||
|
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
|
||||||
/* webkit acceleration */
|
/* webkit acceleration */
|
||||||
|
|
@ -92,46 +96,14 @@ $pane-width: 420px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin media-text() {
|
@mixin media-text() {
|
||||||
font-weight: bold;
|
font: {
|
||||||
font-size: 20px;
|
weight: bold;
|
||||||
}
|
size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
/* keyframes */
|
line-height: 2em;
|
||||||
|
padding-bottom: 0;
|
||||||
@-webkit-keyframes bump-left {
|
margin-bottom: 0;
|
||||||
0% { left: 0; }
|
|
||||||
40% { left: 20px; }
|
|
||||||
100% { left: 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@-moz-keyframes bump-left {
|
|
||||||
0% { left: 0; }
|
|
||||||
40% { left: 20px; }
|
|
||||||
100% { left: 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@-ms-keyframes bump-left {
|
|
||||||
0% { left: 0; }
|
|
||||||
40% { left: 20px; }
|
|
||||||
100% { left: 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@-webkit-keyframes bump-right {
|
|
||||||
0% { left: 0; }
|
|
||||||
40% { left: -20px; }
|
|
||||||
100% { left: 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@-moz-keyframes bump-right {
|
|
||||||
0% { left: 0; }
|
|
||||||
40% { left: -20px; }
|
|
||||||
100% { left: 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@-ms-keyframes bump-right {
|
|
||||||
0% { left: 0; }
|
|
||||||
40% { left: 20px; }
|
|
||||||
100% { left: 0; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* bootstrap extentions */
|
/* bootstrap extentions */
|
||||||
|
|
@ -179,17 +151,19 @@ $pane-width: 420px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-content {
|
.note-content {
|
||||||
min-width: 350px;
|
min-width: 250px;
|
||||||
|
width: 90%;
|
||||||
max-width: 550px;
|
max-width: 550px;
|
||||||
padding-bottom: 50px;
|
padding-bottom: 2em;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 20px;
|
font-size: 1.25em;
|
||||||
line-height: 28px;
|
line-height: 1.5em;
|
||||||
font-family: Palatino, times, georgia, serif;
|
font-family: Palatino, times, georgia, serif;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 1em;
|
||||||
|
padding: 0 5%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -197,19 +171,13 @@ $pane-width: 420px;
|
||||||
.status-with-photo-backdrop
|
.status-with-photo-backdrop
|
||||||
{
|
{
|
||||||
p {
|
p {
|
||||||
font-weight: bold;
|
@include media-text();
|
||||||
font-size: 40px;
|
|
||||||
line-height: 45px;
|
|
||||||
padding-bottom: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-with-photo-backdrop {
|
.status-with-photo-backdrop {
|
||||||
p {
|
p {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 80px;
|
|
||||||
line-height: 90px;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@include transition(background-color, 0.3s);
|
@include transition(background-color, 0.3s);
|
||||||
|
|
@ -229,12 +197,12 @@ $pane-width: 420px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darken {
|
.darken {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: rgba(0,0,0,0.5);
|
background-color: rgba(0,0,0,0.3);
|
||||||
|
|
||||||
display: table;
|
display: table;
|
||||||
|
|
||||||
|
|
@ -306,6 +274,8 @@ $pane-width: 420px;
|
||||||
|
|
||||||
width: 857px;
|
width: 857px;
|
||||||
height: 480px;
|
height: 480px;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -352,7 +322,8 @@ body.idle {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 0 13px;
|
padding: 0 1.2%;
|
||||||
|
|
||||||
background-color: rgba(0,0,0,0);
|
background-color: rgba(0,0,0,0);
|
||||||
|
|
||||||
.nav-arrow-inner {
|
.nav-arrow-inner {
|
||||||
|
|
@ -366,6 +337,12 @@ body.idle {
|
||||||
|
|
||||||
height: 30px;
|
height: 30px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
|
|
||||||
|
/* half the size of the nav arrows on mobile phones */
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
height: 15px;
|
||||||
|
width: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.left {
|
&.left {
|
||||||
|
|
@ -384,15 +361,28 @@ body.idle {
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
||||||
|
/* position absolute for mobile */
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
position: absolute !important;
|
||||||
|
}
|
||||||
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-container {
|
#header-container {
|
||||||
padding: 20px;
|
padding: 1.2%;
|
||||||
|
|
||||||
|
/* don't pad the header if we're mobile */
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|
@ -425,6 +415,16 @@ body.idle {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
|
||||||
background-color: rgba(255,255,255,0.6);
|
background-color: rgba(255,255,255,0.6);
|
||||||
|
|
||||||
|
/* don't pad the header if we're mobile */
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
@include border-radius(0);
|
||||||
|
background-color: rgba(255,255,255,0.4);
|
||||||
|
width: 100% !important;
|
||||||
|
border: none !important;
|
||||||
|
padding: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
max-height: 35px;
|
max-height: 35px;
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|
@ -448,6 +448,7 @@ body.idle {
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-reactions {
|
#post-reactions {
|
||||||
|
height: 80%;
|
||||||
max-height: 350px;
|
max-height: 350px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
|
@ -734,7 +735,7 @@ body.idle {
|
||||||
top: -3px;
|
top: -3px;
|
||||||
|
|
||||||
#close-reactions-pane-container {
|
#close-reactions-pane-container {
|
||||||
width: $pane-width;
|
@include pane-width();
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue