post viewer styling cleanup

This commit is contained in:
Maxwell Salzberg 2012-02-27 17:28:04 -08:00
parent 0e9f825208
commit fce3cba946
8 changed files with 53 additions and 31 deletions

View file

@ -3,11 +3,11 @@
var text = model.get("text"); var text = model.get("text");
var mentions = model.get("mentioned_people"); var mentions = model.get("mentioned_people");
return $(textFormatter.mentionify( return textFormatter.mentionify(
textFormatter.hashtagify( textFormatter.hashtagify(
textFormatter.markdownify(text) textFormatter.markdownify(text)
), mentions ), mentions
)).html() )
}; };
textFormatter.markdownify = function markdownify(text){ textFormatter.markdownify = function markdownify(text){

View file

@ -1,6 +1,4 @@
<h3>
{{{text}}} {{{text}}}
</h3>
<div class="photoset"> <div class="photoset">
{{#each photos}} {{#each photos}}

View file

@ -1,8 +1,3 @@
<div class="note-content"> <div class="note-content">
<h1>
A HEADING
</h1>
<p>
{{{text}}} {{{text}}}
</p>
</div> </div>

View file

@ -1,4 +1,4 @@
{{#each photos}} {{#each photos}}
<div class="photo-fill" style="background-image: url({{sizes.large}})"> <div class="photo-fill" style="background-image: url({{sizes.large}})"> </div>
</div> <img src="{{sizes.large}}" />
{{/each}} {{/each}}

View file

@ -5,7 +5,5 @@
<br> <br>
<br> <br>
<h3>
{{{text}}} {{{text}}}
</h3>
</div> </div>

View file

@ -2,9 +2,7 @@
<div class="photo-fill" style="background-image: url({{sizes.large}})"> <div class="photo-fill" style="background-image: url({{sizes.large}})">
<div class="darken"> <div class="darken">
<div class="darken-content"> <div class="darken-content">
<h1>
{{{../text}}} {{{../text}}}
</h1>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,3 +1 @@
<h1>
{{{text}}} {{{text}}}
</h1>

View file

@ -87,6 +87,10 @@ $pane-width: 420px;
background-image: url("../images/hatched-bg-dark.png"); background-image: url("../images/hatched-bg-dark.png");
} }
@mixin photo-shadow() {
@include box-shadow(0, 3px, 15px, #999);
}
/* keyframes */ /* keyframes */
@-webkit-keyframes bump-left { @-webkit-keyframes bump-left {
@ -153,7 +157,7 @@ $pane-width: 420px;
} }
img { img {
@include box-shadow(0, 3px, 15px, #999); @include photo-shadow();
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;
@ -175,26 +179,40 @@ $pane-width: 420px;
p { p {
font-size: 20px; font-size: 20px;
line-height: 28px; line-height: 28px;
} font-family: georgia, times, serif;
h1 {
margin-bottom: 1em;
} }
} }
.status, .status,
.status-with-photo-backdrop .status-with-photo-backdrop
{ {
h1 { p {
font-weight: bold; font-weight: bold;
font-size: 40px; font-size: 40px;
line-height: 45px;
padding-bottom: 0;
margin-bottom: 0;
} }
} }
.status-with-photo-backdrop { .status-with-photo-backdrop {
h1 { p {
font-size: 100px;
color: #fff; color: #fff;
a {
@include transition(background-color, 0.3s);
color: #000;
background-color: #fff;
background-color: rgba(255,255,255,0.7);
padding: 0 5px;
&:hover {
text-decoration: none;
background-color: #fff;
background-color: rgba(255,255,255,1);
}
}
} }
} }
@ -213,6 +231,8 @@ $pane-width: 420px;
vertical-align: middle; vertical-align: middle;
text-align: center; text-align: center;
padding: 70px 10%;
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
@ -235,10 +255,18 @@ $pane-width: 420px;
} }
.photo-backdrop { .photo-backdrop {
h1 { p {
color: #fff; color: #fff;
z-index: 2; z-index: 2;
} }
img {
position: relative;
}
.photo-fill {
@include opacity(0.2)
}
} }
.rich-media { .rich-media {
@ -381,6 +409,7 @@ body.idle {
bottom: 0; bottom: 0;
left: 0; left: 0;
text-align: center; text-align: center;
z-index: 100;
} }
#post-reactions { #post-reactions {
@ -639,9 +668,15 @@ body.idle {
#post-content { #post-content {
display: table; display: table;
padding: 70px 10%;
position: absolute; position: absolute;
height: 100%; height: 100%;
width: 100%; width: 100%;
img {
@include photo-shadow();
}
} }
#post-feedback { #post-feedback {