Advertisement
srikat

Untitled

Sep 3rd, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. functions.php:
  2.  
  3. // =========================================
  4. // = Builder Child Alternate Module Styles =
  5. // =========================================
  6. if ( ! function_exists( 'it_builder_loaded' ) ) {
  7. function it_builder_loaded() {
  8.  
  9. builder_register_module_style( 'widget-bar', 'Service Boxes', 'service-boxes' );
  10.  
  11. }
  12. add_action( 'it_libraries_loaded', 'it_builder_loaded' );
  13. }
  14.  
  15.  
  16.  
  17. Widget:
  18.  
  19. <div class="box">
  20. <div class="icon"><img alt="" src="http://kallyas.dev/wp-content/uploads/2013/01/ico-01.png"></div><h4 class="title">WEB DESIGN SERVICES</h4><ul class="list-style1"><li>Content management systens
  21. </li><li>Virtual shops and ecommerce
  22. </li><li>Presentation websites
  23. </li><li>Online catalogues
  24. </li><li>Portal systems
  25. </li><li>&amp; any other dynamic website</li></ul>
  26. </div>
  27.  
  28.  
  29.  
  30. CSS:
  31.  
  32. /* Service Boxes */
  33.  
  34. .widget-bar-service-boxes .box {
  35. margin-bottom: 15px;
  36. }
  37.  
  38. .widget-bar-service-boxes .title {
  39. font-size: 14px;
  40. font-weight: 700;
  41. color: #CD2122;
  42. text-shadow: 1px 1px 0 white;
  43. vertical-align: middle;
  44. }
  45.  
  46. .widget-bar-service-boxes .icon {
  47. float: left;
  48. width: 80px;
  49. line-height: 76px;
  50. background: #646464;
  51. text-align: center;
  52. margin-right: 20px;
  53. vertical-align: middle;
  54. -webkit-border-radius: 50%;
  55. -moz-border-radius: 50%;
  56. border-radius: 50%;
  57. height: 80px;
  58. -webkit-transition: all 0.2s ease-out;
  59. -moz-transition: all 0.2s ease-out;
  60. -o-transition: all 0.2s ease-out;
  61. -ms-transition: all 0.2s ease-out;
  62. transition: all 0.2s ease-out;
  63. -moz-backface-visibility: hidden;
  64. }
  65.  
  66. .widget-bar-service-boxes .box:hover .icon {
  67. background: #cd2122;
  68. }
  69.  
  70. .widget-bar-service-boxes ul {
  71. float: left;
  72. margin-left: 0;
  73. }
  74.  
  75. ul.list-style1 li {
  76. list-style: none;
  77. background: url('images/list-style1.png') no-repeat 2px 8px;
  78. padding-left: 15px;
  79. margin-bottom: 4px;
  80. }
  81.  
  82. .widget-bar-service-boxes img {
  83. vertical-align: middle;
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement