Advertisement
helpdesigns

Theme reforma #3 | Juh

Feb 4th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.34 KB | None | 0 0
  1.  
  2. <html>
  3. <!--- Theme Reforma by Helpdesigns - Juliane Meira --->
  4.  
  5. <html>
  6.  
  7. <script type="text/javascript"
  8. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  9. <script>
  10. $(document).ready(function() {
  11. //
  12. //When you click on a link with class of poplight and the href starts with a #
  13.  
  14. $('a.poplight[href^=#]').click(function() {
  15.  
  16. var popID = $(this).attr('rel'); //Get Popup Name
  17.  
  18. var popURL = $(this).attr('href'); //Get Popup href to define size
  19.  
  20. //Pull Query & Variables from href URL
  21.  
  22. var query= popURL.split('?');
  23.  
  24. var dim= query[1].split('&');
  25.  
  26. var popWidth = dim[0].split('=')[1]; //Gets the first query string value
  27.  
  28. //Fade in the Popup and add close button
  29.  
  30. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="http://static.tumblr.com/fyc2dbo/Pufn974z0/sem_t__tulo-1.jpg" class="btn_close" title="Close Window" alt="Close" /></a>');
  31.  
  32. //Define margin for center alignment (vertical horizontal) - we add 80px to the height/width to accomodate for the padding and border width defined in the css
  33.  
  34. var popMargTop = ($('#' + popID).height() + 80) / 2;
  35.  
  36. var popMargLeft = ($('#' + popID).width() + 80) / 2;
  37.  
  38. //Apply Margin to Popup
  39.  
  40. $('#' + popID).css({
  41.  
  42. 'margin-top' : -popMargTop,
  43.  
  44. 'margin-left' : -popMargLeft
  45.  
  46. });
  47.  
  48. //Fade in Background
  49.  
  50. $('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
  51.  
  52. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies
  53.  
  54. return false;
  55.  
  56. });
  57.  
  58.  
  59. //Close Popups and Fade Layer
  60.  
  61. $('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
  62.  
  63. $('#fade , .popup_block').fadeOut(function() {
  64.  
  65. $('#fade, a.close').remove(); //fade them both out
  66. });
  67. return false;
  68. });
  69.  
  70. });
  71. </script>
  72.  
  73.  
  74. <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# blog: http://ogp.me/ns/blog#">
  75. <style type="text/css">
  76.  
  77. body {background-color:#eee; font-family: verdana; color: ; text-align: center; font-size: 11px; background-image:url('http://static.tumblr.com/fyc2dbo/A8bnj9dx0/fundo.png'); background-attachment: fixed; overflow-y:hidden;
  78. 5.
  79. overflow-x:hidden;}
  80.  
  81. a {color: #aaa; text-decoration: none; text-transform: none;}
  82. a:hover {color: #aaa; background-color: transparent; text-decoration: none;}
  83.  
  84. #header {background: url('http://static.tumblr.com/fyc2dbo/Af8nj9f07/theme_em_psd.png'); background-repeat: repeat-x; width:492px; margin-top: 175px; height:200px; margin-left: 450px;}
  85.  
  86.  
  87. /*******Mexe no margin left desse codigo e troque a foto com a %*** *******/
  88. #botão {background: url('http://static.tumblr.com/fyc2dbo/K27nj9dzf/10.png'); background-repeat: no-repeat; width:55px; margin-top: -89px; height:55px; margin-left: 555px;z-index: 99999}
  89.  
  90.  
  91. /*** NÃO MEXA ***/
  92. #linksbolis {width: 190px; padding: 2px;margin-left: 780px; height:44px; margin-top: -109px; position: fixed;}
  93.  
  94. #linksbolis a {float: left;font-family:'Baumans';font-size:11px;text-align: center; margin-bottom:2px; width: 44px;height:16px; color:#dbc3c8; line-height:16px; text-shadow: 0px 15px 1px transparent, 0px -15px 1px transparent;}
  95.  
  96.  
  97. #linksbolis a:hover{-webkit-transition: all .4s ease-in-out;color: #891d35;}
  98.  
  99.  
  100. @font-face {
  101. font-family: 'Baumans';
  102. font-style: normal;
  103. font-weight: 400;
  104. src: local('Baumans'), local('Baumans-Regular'), url(http://themes.googleusercontent.com/static/fonts/baumans/v3/3DEdKAl82M5rDSLBVcU5jA.woff) format('woff');
  105. }
  106.  
  107.  
  108. #fade { /*--Transparent background layer--*/
  109. display: none; /*--hidden by default--*/
  110. background: #0a0a0a;
  111. position: fixed; left: 0; top: 0;
  112. width: 100%; height: 100%;
  113. opacity: .80;
  114. z-index: 9999;
  115. }
  116. .popup_block{
  117. display: none; /*--hidden by default--*/
  118. background: #eee;
  119. padding: 20px;
  120. float: left;
  121. font-size: 1.2em;
  122. position: fixed;
  123. top: 50%; left: 50%;
  124. z-index:10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; background: #eee;
  125. /*--CSS3 Box Shadows--*/
  126. -webkit-box-shadow: 0px 0px 20px #000; /*--Sombras--*/
  127. -moz-box-shadow: 0px 0px 20px #000; /*--Sombras--*/
  128. box-shadow: 0px 0px 20px #000; /*--Sombras--*/
  129. /*--CSS3 Rounded Corners--*/
  130. -webkit-border-radius: 10px;
  131. -moz-border-radius: 10px;
  132. border-radius: 10px;
  133. }
  134. img.btn_close {
  135. float: right;
  136. margin: -17px -18px 0 0;
  137. }
  138. /*--Making IE6 Understand Fixed Positioning--*/
  139. *html #fade {
  140. position: absolute;
  141. }
  142. *html .popup_block {
  143. position: absolute;
  144. }
  145.  
  146.  
  147. .wishlist {font: 8px 'PF Arma Five'; line-height: 10px; text-indent : 5px; vertical-align : middle; no-repeat left; text-align: left; color:#aaa;
  148. padding-bottom : 2px;padding:5px; padding-left:1px; background:; -webkit-transition-duration: .80s; -moz-transition-duration: .80s; -o-transition-duration: .80s; -ms-transition-duration: .80s;}
  149. @font-face {src: url('http://static.tumblr.com/08l8cbl/bxDmeztw0/pf_arma_five.ttf'); font-family: PF Arma Five;}
  150.  
  151.  
  152. /**Se usar credite ao helpdesigns***/
  153. #parr a {float: left; display: block; letter-spacing:2px; font-size:11px; font-family:Calibri; text-align: center; margin-bottom:2px; margin-left:2px; color:#fff;text-decoration: none; line-height:37px;-webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; height:38px;width:38px;background-color:#dbc3c8;opacity: 0.7;}
  154. #parr a:hover { -webkit-transition: all 0.9s ease-out;opacity:0.8; color:#fff; font-weight:calibri;-webkit-transition: all 0.5s ease-out;background-color:#891d35}
  155. #parr:hover a {opacity: 0.4;}
  156. #parr a:hover {opacity: 1;-webkit-transition: background 0.9s linear; -webkit-transition: all 0.9s ease-out; -moz-transition: all 0.9s ease-out;}
  157.  
  158.  
  159. #s-m-t-tooltip {max-width:300px; padding:3px 4px 5px 4px;margin:15px 20px;background-color:#fff; font: 8px 'PF Arma Five'; text-transform:uppercase; color:#aaa; z-index:99999999999999999999999999; border: 1px solid #dbc3c8;}/*********helpdesigns******/
  160.  
  161.  
  162. .list {float:left;text-align: left; margin-left:4px;margin-bottom:4px;width: 250px;background: #eee; padding: 3px;margin-bottom: 1px;height:15px;line-height:15px;text-indent:4px;font-family:PF Arma Five;font-size: 8px;color:#aaa;border-left:3px solid #dbc3c8;}
  163.  
  164. .list:hover{color:;text-shadow:none;-webkit-transition: all .4s ease-out;text-indent:20px;border-left:3px solid #891d35;}
  165.  
  166.  
  167. </style>
  168. <script type="text/javascript"
  169. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  170. <script type="text/javascript" src="http://static.tumblr.com/7qjmkr5/IUmmdsy41/jquery.style-my-tooltips.js"></script>
  171. <script>
  172. (function($){
  173.  
  174. $(document).ready(function(){
  175. $("[title]").style_my_tooltips();
  176. });
  177. })(jQuery);
  178. </script>
  179.  
  180.  
  181. <body>
  182.  
  183. <div id="header">
  184.  
  185. </div>
  186.  
  187. <div id="linksbolis">
  188. <a href="#?w=500" rel="motivo" class="poplight">Ask-me</a>
  189. <a href="#?w=500" rel="par" class="poplight">Partners</a>
  190. <a href="http://helpdesigns.tumblr.com/">Credits</a>
  191. </div>
  192.  
  193. <div id="botão"></div>
  194.  
  195.  
  196. </body>
  197.  
  198. <div id="motivo" class="popup_block">
  199. <div class="wishlist"><p><iframe frameborder="0" height="200" id="ask_form" scrolling="no" src="http://www.tumblr.com/ask_form/SEUTUMBLR.tumblr.com/ask" width="100%"></iframe></p></div>
  200. </div></div></div>
  201.  
  202. <div id="par" class="popup_block"><center><div id="parr">
  203. <a href="/" title="Nome">??</a>
  204. <a href="/" title="Nome">??</a>
  205. <a href="/" title="Nome">??</a>
  206. <a href="/" title="Nome">??</a>
  207. <a href="/" title="Nome">??</a>
  208. <a href="/" title="Nome">??</a>
  209. <a href="/" title="Nome">??</a>
  210. <a href="/" title="Nome">??</a>
  211. <a href="/" title="Nome">??</a>
  212. <a href="/" title="Nome">??</a>
  213. <a href="/" title="Nome">??</a>
  214. <a href="/" title="Nome">??</a>
  215. </div></center>
  216.  
  217. </div></div></div></div></div></div>
  218.  
  219.  
  220. </div></div></div>
  221.  
  222.  
  223.  
  224. </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
  225. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement