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() {
|
View.Tips = function() {
|
||||||
var wrapper = $('#tips');
|
var wrapper = $('#tips');
|
||||||
var children = wrapper.children();
|
var tips = wrapper.find('li');
|
||||||
var index = Math.floor(Math.random() * children.length);
|
var index = Math.floor(Math.random() * tips.length);
|
||||||
children.eq(index).show();
|
tips.eq(index).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
var userbar_sessions_link = $('#userbar a:last');
|
var userbar_sessions_link = $('#userbar a:last');
|
||||||
|
|
|
@ -262,8 +262,19 @@ body.outfits-edit
|
||||||
/* don't bounce the header around kthx */
|
/* don't bounce the header around kthx */
|
||||||
min-height: 180px
|
min-height: 180px
|
||||||
#tips
|
#tips
|
||||||
|
padding-top: 1em
|
||||||
|
|
||||||
li
|
li
|
||||||
|
+module
|
||||||
|
background-image: image-url("tip.png")
|
||||||
|
background-position: top left
|
||||||
|
background-repeat: no-repeat
|
||||||
display: none
|
display: none
|
||||||
|
list-style: none
|
||||||
|
margin: 0 auto
|
||||||
|
padding-left: image-width("tip.png") + 12px
|
||||||
|
width: 400px
|
||||||
|
|
||||||
#preview-search-advanced
|
#preview-search-advanced
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
|
|
@ -107,11 +107,12 @@
|
||||||
#preview-search-form-no-results
|
#preview-search-form-no-results
|
||||||
= t '.search.no_results_html', :query => content_tag(:span)
|
= t '.search.no_results_html', :query => content_tag(:span)
|
||||||
%ul#preview-search-results
|
%ul#preview-search-results
|
||||||
%ul#tips
|
#tips
|
||||||
- WardrobeTip.by_index.each do |tip|
|
%ul
|
||||||
%li
|
- WardrobeTip.by_index.each do |tip|
|
||||||
%h3 Did you know?
|
%li
|
||||||
%div= md tip.body
|
%h3 Did you know?
|
||||||
|
%div= md tip.body
|
||||||
%form#preview-search-advanced
|
%form#preview-search-advanced
|
||||||
%header
|
%header
|
||||||
%h2= t '.search.advanced.header'
|
%h2= t '.search.advanced.header'
|
||||||
|
|
Loading…
Reference in a new issue