MS DC; text now overlays for wallpaper; ALSO. really sorry @danielgrippis stuff does not work in firefox. or safari.

or konqueror. we will talk to him about it later
This commit is contained in:
Dennis Collinson 2012-04-23 17:30:20 -07:00
parent 88a17474f7
commit d64eb529d2
4 changed files with 41 additions and 3 deletions

View file

@ -16,7 +16,12 @@ app.views.SmallFrame = app.views.Base.extend({
},
postRenderTemplate : function() {
this.$el.addClass(this.dimensionsClass() + " " + this.colorClass())
this.$el.addClass([this.dimensionsClass(), this.colorClass(), this.frameClass()].join(' '))
},
frameClass : function(){
var name = this.model.get("frame_name") || ""
return name.toLowerCase()
},
colorClass : function() {

View file

@ -76,6 +76,7 @@ body {
/* used in masking photos with overflow: hidden; */
.image-container {
overflow : hidden;
width : 100%;
@ -188,4 +189,37 @@ body {
&.x2.width .content { @include wide(); }
&.sticky-note.x2.height .content { @include tall(); }
&.wallpaper {
.info {
}
.content{
display: table;
}
.image-container {
background-color: black;
display: table-cell;
img {
@include opacity(0.7);
}
}
.text-content {
position: absolute;
left: 0;
width: 100%;
top: 40%;
@include centered-frame();
font-size: 3em;
color: white;
@include opacity(1);
text-shadow : none;
font-weight: bold;
}
}
}

View file

@ -30,14 +30,12 @@
</div>
{{/if}}
{{#unless photos}}
<div class="text-content">
{{{text}}}
</div>
{{#if text}}
<div class="background-color"></div>
{{/if}}
{{/unless}}
</div>
<div class="info">

View file

@ -45,6 +45,7 @@ class Post < ActiveRecord::Base
t.add :photos
t.add :nsfw
t.add :favorite
t.add :frame_name
end
xml_attr :provider_display_name