quick5.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <style>
  2. .quick.quick-quick5 {height:50px; text-align:center; padding:0; margin:0; list-style:none; border-top:1px solid #4b3e38; position:fixed; z-index:200; bottom:0; left:0; width:100%; display: -webkit-box; display: -moz-box; -webkit-box-orient: horizontal; -webkit-box-sizing: border-box; background:-webkit-gradient(linear, 0 0, 0 100%, from(#5e544f), to(#433c38));}
  3. .quick.quick-quick5 li{width:20%;}
  4. .quick.quick-quick5 li span{overflow:hidden;}
  5. .quick.quick-quick5 li a.fa.fa-home{font-size:40px; margin-top:5px;}
  6. .quick.quick-quick5 li a.fa.fa-home:hover{text-decoration:none;}
  7. .quick.quick-quick5 li>a{color:#8c8f94; text-decoration:none; -webkit-box-sizing:border-box; box-sizing:border-box; border-bottom:0; display:block; height:50px; text-align:center; -webkit-tap-highlight-color:rgba(0,0,0,0);}
  8. .quick.quick-quick5 li>a>*{pointer-events:none;}
  9. .quick.quick-quick5 li>a>p{display: block; width:25px; height:25px; padding-top:5px; margin:auto; -webkit-background-size:100px auto;}
  10. .quick.quick-quick5 li>a>p i{ display:block; width:20px; height:20px; font-size:20px;}
  11. @-moz-document url-prefix(){
  12. .quick.quick-quick5{background:#594F4A;overflow:hidden;}
  13. .quick.quick-quick5 li{width:20%;float:left;}
  14. }
  15. </style>
  16. <div class="quick quick-quick5">
  17. {php $i = 1;}
  18. {loop $_W['quickmenu']['menus'] $nav}
  19. <li>
  20. {if $i==3}
  21. <a href="{$nav['url']}" class="fa fa-home"></a>
  22. {else}
  23. <a href="{$nav['url']}" title="{$nav['name']}">
  24. <p>
  25. {if !empty($nav['icon'])}
  26. <i style="background:url({media $nav['icon']}) no-repeat;background-size:cover;{$nav['css']['icon']['style']}"></i>
  27. {else}
  28. <i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
  29. {/if}
  30. </p>
  31. <span style="{$nav['css']['name']}">{$nav['name']}</span>
  32. </a>
  33. {/if}
  34. </li>
  35. {php if($i>=5) break;}
  36. {php $i++;}
  37. {/loop}
  38. </div>