more responsive stuffs [ci skip]
This commit is contained in:
parent
31049fe1c4
commit
f14907e64c
5 changed files with 29 additions and 9 deletions
|
|
@ -79,9 +79,17 @@ app.views.SmallFrame = app.views.Post.extend({
|
||||||
if(!(this.model.get("photos") || [])[0]) { return }
|
if(!(this.model.get("photos") || [])[0]) { return }
|
||||||
|
|
||||||
var modifiers = [this.dimensionsClass(), this.colorClass()].join(' ')
|
var modifiers = [this.dimensionsClass(), this.colorClass()].join(' ')
|
||||||
|
, width;
|
||||||
|
|
||||||
|
/* mobile width
|
||||||
|
*
|
||||||
|
* currently does not re-calculate on orientation change */
|
||||||
|
if($(window).width() <= 767) {
|
||||||
|
width = $(window).width();
|
||||||
|
}
|
||||||
|
|
||||||
var firstPhoto = this.model.get("photos")[0]
|
var firstPhoto = this.model.get("photos")[0]
|
||||||
, width = (modifiers.search("x2") != -1 ? this.DOUBLE_COLUMN_WIDTH : this.SINGLE_COLUMN_WIDTH)
|
, width = width || (modifiers.search("x2") != -1 ? this.DOUBLE_COLUMN_WIDTH : this.SINGLE_COLUMN_WIDTH)
|
||||||
, ratio = width / firstPhoto.dimensions.width;
|
, ratio = width / firstPhoto.dimensions.width;
|
||||||
|
|
||||||
return(ratio * firstPhoto.dimensions.height)
|
return(ratio * firstPhoto.dimensions.height)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
body {
|
body {
|
||||||
background-image : image_url("pattern.png");
|
background-image : image_url("pattern.png");
|
||||||
padding : none !important;
|
padding : none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* new link color */
|
/* new link color */
|
||||||
|
|
@ -473,3 +473,10 @@ div[data-template=flow] {
|
||||||
font-family : Roboto-Bold;
|
font-family : Roboto-Bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* responsive */
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
body {
|
||||||
|
padding : 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -338,7 +338,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* canvas responsive */
|
/* responsive */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
body {
|
body {
|
||||||
padding : 0;
|
padding : 0;
|
||||||
|
|
@ -352,6 +352,7 @@
|
||||||
margin-bottom : 10px;
|
margin-bottom : 10px;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
font-size : 0.9em;
|
||||||
margin : 0 20px;
|
margin : 0 20px;
|
||||||
width : auto !important;
|
width : auto !important;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* canvas responsive */
|
/* responsive */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.profile-image-container {
|
.profile-image-container {
|
||||||
height : 100px;
|
height : 100px;
|
||||||
|
|
@ -228,7 +228,8 @@
|
||||||
padding-bottom : 20px;
|
padding-bottom : 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wallpaper-upload {
|
#wallpaper-upload,
|
||||||
|
.edit-control {
|
||||||
display : none;
|
display : none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -36,10 +36,13 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{{#if is_own_profile}}
|
{{#if is_own_profile}}
|
||||||
<span class="divider">•</span>
|
<span class="edit-control">
|
||||||
<a href="/profile/edit" title="Edit Profile" rel="tooltip" style="margin-left:2px;">
|
<span class="divider">•</span>
|
||||||
<i class="icon-cog icon-white"></i>
|
<a href="/profile/edit" title="Edit Profile" rel="tooltip" style="margin-left:2px;">
|
||||||
</a>
|
<i class="icon-cog icon-white"></i>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue