Advertisement
Hardrockdesign

Caja de perfil Frankenstein's monster

May 2nd, 2015
2,311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. ----------------------- CSS -----------------------
  2.  
  3. .postprofile {
  4. width: 220px;
  5. background: #ec474f;
  6. margin-top: -2px;
  7. height: 436px;
  8. overflow: hidden;
  9. border-left: transparent;
  10. }
  11.  
  12. .fotoavatar img {
  13. margin-top: 10px;
  14. margin-left: 10px;
  15. max-height: 350px;
  16. max-width: 200px;
  17. }
  18.  
  19. .postprofile dd {
  20. text-align: left;
  21. margin-left: 10px;
  22. color: #eeeeee;
  23. font-weight: 700;
  24. letter-spacing: 1px;
  25. font-family: Calibri;
  26. font-size: 10px;
  27. }
  28.  
  29. #nombreusuario {
  30. width: 200px;
  31. padding-top: 7px;
  32. padding-bottom: 7px;
  33. text-transform: uppercase;
  34. font-family: Oswald;
  35. text-align: center;
  36. background: #f1f1f1;
  37. margin-left: 10px;
  38. margin-top: 10px;
  39. font-size: 11px;
  40. }
  41.  
  42. span.label {
  43. padding-top: 3px;
  44. padding-bottom: 3px;
  45. font-weight: 700;
  46. letter-spacing: 1px;
  47. font-size: 10px;
  48. color: #ec474f;
  49. }
  50.  
  51. /*Pestañas del perfil*/
  52. #pestanas {
  53. list-style: none;
  54. width: 201px;
  55. margin-top: 10px;
  56. margin-left: 9px;
  57. background-color: transparent;
  58. }
  59. #pestanas li a {
  60. font-family: Calibri;
  61. margin-left: 1px;
  62. margin-right: 1px;
  63. font-size: 9px;
  64. text-transform: uppercase;
  65. line-height: 100%;
  66. display: inline-block;
  67. color: #fff;
  68. padding-top: 3px;
  69. padding-bottom: 3px;
  70. text-decoration: none;
  71. width: 65px;
  72. text-align: center;
  73. background: #000;
  74. transition: 0.8s;
  75. }
  76. #pestanas li {display: inline-block;}
  77. #pestanas:hover li a {
  78. transition: 0.8s;
  79. box-shadow: inset 0 0 0 #000000;
  80. }
  81.  
  82. .tab_content {
  83. display: none;
  84. color: #1c1c1c;
  85. width: 220px;
  86. margin: 0px;
  87. background: #000;
  88. height: 370px;
  89. }
  90.  
  91. #TAB2 img {width: 200px; height: 80px; margin-top: 10px; margin-bottom: 10px;}
  92.  
  93. #TAB3 img {margin-top: 10px;}
  94.  
  95. #tabs_content_container {
  96. width: 220px;
  97. height: 370px;
  98. overflow:hidden;
  99. background: #000;
  100. }
  101. .campocontacto {
  102. margin-top: 10px;
  103. }
  104. .campocontacto a {
  105. margin-left: 10px;
  106. width: 200px;
  107. background: #fff;
  108. display: block;
  109. line-height: 100%;
  110. margin-bottom: 3px;
  111. font-size: 9px;
  112. text-transform: uppercase;
  113. font-family: calibri;
  114. text-align: center;
  115. padding-top: 3px;
  116. padding-bottom: 3px;
  117. }
  118.  
  119. .campocontacto:hover a {
  120. text-decoration: none;
  121. }
  122.  
  123. /* latin-ext */
  124. @font-face {
  125. font-family: 'Oswald';
  126. font-style: normal;
  127. font-weight: 400;
  128. src: local('Oswald Regular'), local('Oswald-Regular'), url(http://fonts.gstatic.com/s/oswald/v10/yg0glPPxXUISnKUejCX4qfesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
  129. unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
  130. }
  131. /* latin */
  132. @font-face {
  133. font-family: 'Oswald';
  134. font-style: normal;
  135. font-weight: 400;
  136. src: local('Oswald Regular'), local('Oswald-Regular'), url(http://fonts.gstatic.com/s/oswald/v10/pEobIV_lL25TKBpqVI_a2w.woff2) format('woff2');
  137. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
  138. }
  139.  
  140.  
  141. ----------------------- JAVASCRIPT 1 -----------------------
  142.  
  143. $(document).ready(function(){
  144. $("#pestanas li").click(function() {
  145. currentprofile = $(this).parent().parent().parent().parent();
  146. $("#pestanas li", currentprofile).removeClass('active');
  147. $(this).addClass("active");
  148. $(".tab_content", currentprofile).hide();
  149. var selected_tab = $(this).find("a").attr("href");
  150. $(selected_tab, currentprofile).fadeIn();
  151. return false;
  152. });
  153. });
  154.  
  155. ----------------------- JAVASCRIPT 2 -----------------------
  156.  
  157. $(function(){
  158. $(".tab_content").each(function(){
  159. $(this).html($(this).html()
  160. .replace("Imagen personal:", " "));
  161. });
  162. });
  163.  
  164. ----------------------- PA>VISUALIZACIÓN>TEMPLATES>GENERAL>VIEWTOPIC_BODY -----------------------
  165.  
  166. <div class="postprofile" id="profile{postrow.displayed.U_POST_ID}">
  167. <div id="nombreusuario"><strong style="font-size:1.2em">{postrow.displayed.POSTER_NAME}</strong></div>
  168. <!-- div class="online2"></div-->
  169. <ul id='pestanas'><li class='active'><a href='#TAB1'> avatar</a></li><li><a href='#TAB2'>datos</a></li><li><a href='#TAB3'>Contacto</a></li></ul>
  170. <div id='tabs_content_container'><div id='TAB1' class='tab_content' style="display: block;"> <div class="fotoavatar">{postrow.displayed.POSTER_AVATAR}
  171. </div></div>
  172. <div id='TAB2' class='tab_content' style="display: block;"><dd>
  173. <!-- BEGIN profile_field -->
  174. {postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
  175. <!-- END profile_field -->
  176. {postrow.displayed.POSTER_RPG}
  177. </dd></div>
  178. <div id='TAB3' class='tab_content' style="display: block;">
  179. <dd>{postrow.displayed.RANK_IMAGE}</dd> <div class="campocontacto">{postrow.displayed.PROFILE} {postrow.displayed.PM} {postrow.displayed.EMAIL}</div> <!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT} <!-- END contact_field -->
  180. </div></div>
  181. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement