1
0
Fork 0
forked from OpenNeo/impress

yum, tip styling

This commit is contained in:
Emi Matchu 2014-04-02 23:26:51 -05:00
parent 8fc156833f
commit f00a8f5d3b
4 changed files with 20 additions and 8 deletions

BIN
app/assets/images/tip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View file

@ -1362,9 +1362,9 @@ View.PrankColorMessage = function(wardrobe) {
View.Tips = function() {
var wrapper = $('#tips');
var children = wrapper.children();
var index = Math.floor(Math.random() * children.length);
children.eq(index).show();
var tips = wrapper.find('li');
var index = Math.floor(Math.random() * tips.length);
tips.eq(index).show();
}
var userbar_sessions_link = $('#userbar a:last');

View file

@ -262,8 +262,19 @@ body.outfits-edit
/* don't bounce the header around kthx */
min-height: 180px
#tips
padding-top: 1em
li
+module
background-image: image-url("tip.png")
background-position: top left
background-repeat: no-repeat
display: none
list-style: none
margin: 0 auto
padding-left: image-width("tip.png") + 12px
width: 400px
#preview-search-advanced
display: none

View file

@ -107,11 +107,12 @@
#preview-search-form-no-results
= t '.search.no_results_html', :query => content_tag(:span)
%ul#preview-search-results
%ul#tips
- WardrobeTip.by_index.each do |tip|
%li
%h3 Did you know?
%div= md tip.body
#tips
%ul
- WardrobeTip.by_index.each do |tip|
%li
%h3 Did you know?
%div= md tip.body
%form#preview-search-advanced
%header
%h2= t '.search.advanced.header'