Post view: safety marked with color

This commit is contained in:
Marcin Kurczewski 2013-10-31 13:14:09 +01:00
parent 9110a27167
commit bd05123cfc
4 changed files with 18 additions and 7 deletions

View file

@ -55,6 +55,17 @@ embed {
background-image: url('http://www.gravatar.com/avatar/0?f=y&d=mm&s=16'); background-image: url('http://www.gravatar.com/avatar/0?f=y&d=mm&s=16');
} }
#sidebar .safety-safe {
color: #43aa43;
}
#sidebar .safety-sketchy {
color: #d4a627;
}
#sidebar .safety-unsafe {
color: #df4b0d;
}
i.icon-prev { i.icon-prev {
background-position: -12px -1px; background-position: -12px -1px;
} }

View file

@ -131,13 +131,13 @@
line-height: 33px; line-height: 33px;
} }
.safety-sfw { .safety-safe {
color: #63ca63; color: #43aa43;
} }
.safety-sketchy { .safety-sketchy {
color: #f4c657; color: #d4a627;
} }
.safety-nsfw { .safety-unsafe {
color: #df4b0d; color: #df4b0d;
} }

View file

@ -6,8 +6,8 @@
<div class="unit"> <div class="unit">
<h1>file upload</h1> <h1>file upload</h1>
<p>Use tags to describe uploaded images. Try to specify characters, their look and shows they are from.</p> <p>Use tags to describe uploaded images. Try to specify characters, their look and shows they are from.</p>
<p>Set proper visibility setting if the image isn&rsquo;t safe for work or you&rsquo;re not sure it&rsquo;s 100% <span class="safety-sfw">safe</span>.</p> <p>Set proper visibility setting if the image isn&rsquo;t safe for work or you&rsquo;re not sure it&rsquo;s 100% <span class="safety-safe">safe</span>.</p>
<p>Only registered users can view <span class="safety-sketchy">sketchy</span> or <span class="safety-nsfw">NSFW</span> content.</p> <p>Only registered users can view <span class="safety-sketchy">sketchy</span> or <span class="safety-unsafe">NSFW</span> content.</p>
<p>Click submit when you&rsquo;re done.</p> <p>Click submit when you&rsquo;re done.</p>
</div> </div>
</div> </div>

View file

@ -63,7 +63,7 @@
<div class="key-value safety"> <div class="key-value safety">
<span class="key">Safety:</span> <span class="key">Safety:</span>
<span class="value" title="<?php echo $val = TextHelper::camelCaseToHumanCase(PostSafety::toString($this->context->transport->post->safety)) ?>"> <span class="value safety-<?php echo $val = TextHelper::camelCaseToHumanCase(PostSafety::toString($this->context->transport->post->safety)) ?>" title="<?php echo $val ?>">
<?php echo $val ?> <?php echo $val ?>
</span> </span>
</div> </div>