yum, tip styling
This commit is contained in:
parent
8fc156833f
commit
f00a8f5d3b
4 changed files with 20 additions and 8 deletions
BIN
app/assets/images/tip.png
Normal file
BIN
app/assets/images/tip.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -107,7 +107,8 @@
|
|||
#preview-search-form-no-results
|
||||
= t '.search.no_results_html', :query => content_tag(:span)
|
||||
%ul#preview-search-results
|
||||
%ul#tips
|
||||
#tips
|
||||
%ul
|
||||
- WardrobeTip.by_index.each do |tip|
|
||||
%li
|
||||
%h3 Did you know?
|
||||
|
|
Loading…
Reference in a new issue