altraviolence

theme 01 - lightning

May 15th, 2017
1,552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 17.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!--
  4.  
  5. LIGHTNING theme (01) by PEACHTHMS | peachthms.tumblr.com
  6. V1.1 - new tumblr controls
  7. V1.2 - fixed ReblogURL link
  8.  
  9. - do not claim this page or any of the code as your own
  10. - do not redistribute this page or any of the code as your own
  11. - do not mix my code with another theme maker's code
  12. - do not remove or edit the credit in anyway; it must remain visible
  13.  
  14. shythemes - minimalistic soundcloud player
  15. shythemes - video resize script
  16.    
  17. -->
  18.    
  19. <head>
  20.    
  21. <title>{Title}</title>
  22.    
  23. <link rel="shortcut icon" href="{Favicon}">
  24.  
  25. <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">
  26.  
  27. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  28.  
  29. <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  30. <script>
  31.    (function($){
  32.        $(document).ready(function(){
  33.            $("[title]").style_my_tooltips({
  34.                tip_follows_cursor:true,
  35.                tip_delay_time:200,
  36.                tip_fade_speed:300
  37.            }
  38.                );
  39.        });
  40.    })(jQuery);
  41. </script>
  42.  
  43.  
  44. <!-- SHYTHEMES SOUNDCLOUD PLAYER -->
  45.  
  46. <script>
  47. // minimal soundcloud player © shythemes.tumblr
  48. $(document).ready(function(){
  49.    var color = '#acd7bb'; // color of play button (hex)
  50.    $('.soundcloud_audio_player').each(function(){
  51.        $(this).attr({ src: $(this).attr('src').split('&')[0] + '&amp;liking=false&amp;sharing=false&amp;auto_play=false&amp;show_comments=false&amp;continuous_play=false&amp;buying=false&amp;show_playcount=false&amp;show_artwork=true&amp;origin=tumblr&amp;color=' + color.split('#')[1], height: 20, width: '100%' });
  52.    });
  53. });
  54. </script>
  55.  
  56.  
  57. <script src ="//static.tumblr.com/fwgzvyf/Oj1o08f6h/shythemes.vr.js"></script>
  58. <script src="https://use.fontawesome.com/3ef4dfb6e0.js"></script>
  59.  
  60. <link href="//dl.dropbox.com/s/50g6fbds3rh4m0j/saturnicons.css" rel="stylesheet">
  61.  
  62. <script type="text/javascript">
  63.  function unhide(divID) {
  64.  var item = document.getElementById(divID);
  65.  if (item) {
  66.  item.className=(item.className=='hidden')?'unhidden':'hidden';
  67.  }
  68.  }
  69. </script>
  70.  
  71. <meta charset="UTF-8">
  72. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  73. <meta http-equiv="x-dns-prefetch-control" content="off"/>
  74. <meta name="color:background" content="#ffffff"/>
  75. <meta name="color:post background" content="#ffffff"/>
  76. <meta name="color:text" content="#686868"/>
  77. <meta name="color:links" content="#686868"/>
  78. <meta name="color:accent" content="#d1ad64"/>
  79. <meta name="color:accent2" content="#898989"/>
  80. <meta name="text:links title" content=""/>
  81. <meta name="text:link one title" content=""/>
  82. <meta name="text:link one" content=""/>
  83. <meta name="text:link two title" content=""/>
  84. <meta name="text:link two" content=""/>
  85. <meta name="text:link three title" content=""/>
  86. <meta name="text:link three" content=""/>
  87. <meta name="text:link four title" content=""/>
  88. <meta name="text:link four" content=""/>
  89. <meta name="image:sidebar" content=""/>
  90. <meta name="if:link one" content=""/>
  91. <meta name="if:link two" content=""/>
  92. <meta name="if:link three" content=""/>
  93. <meta name="if:link four" content=""/>
  94. <meta name="if:borders" content=""/>
  95. <meta name="if:circle icon" content=""/>
  96. <meta name="if:rounded corners" content=""/>
  97. <meta name="select:font size" content="10px" title="10px"/>
  98. <meta name="select:font size" content="11px" title="11px"/>
  99. <meta name="select:font size" content="12px" title="12px"/>
  100.  
  101. <style>
  102.  
  103. .tmblr-iframe-compact .tmblr-iframe--unified-controls {
  104.     transform: scale(0.5,0.5);
  105. }
  106.    
  107. #s-m-t-tooltip {
  108.     max-width: 100px;
  109.     font-size: 8px;
  110.     background-color: {color:accent};
  111.     color: {color:text};
  112.     z-index: 999;
  113.     margin: 10px;
  114.     text-transform: uppercase;
  115.     padding: 2px 7px 3px;
  116. }
  117.  
  118. ::-moz-selection {
  119.     background-color: transparent;
  120.     color: {color:accent};
  121. }
  122.  
  123. ::selection {
  124.     background-color: transparent;
  125.     color: {color:accent};
  126. }
  127.  
  128. ::-webkit-scrollbar {
  129.     width: 2px;
  130.     height: 2px;
  131. }
  132.  
  133. ::-webkit-scrollbar-thumb {
  134.     background: {color:accent};
  135. }
  136.        
  137. ::-webkit-scrollbar-track {
  138.     background: {color:post background};
  139. }
  140.  
  141. * {
  142.     padding: 0;
  143.     margin: 0;
  144. }
  145.  
  146. iframe {
  147.     margin: 20px 20px 0 0;
  148. }
  149.  
  150. body {
  151.     background-color: {color:background};
  152.     font-family: 'Karla', sans-serif;
  153.     color: {color:text};
  154. }
  155.  
  156. img, #youtube_iframe {
  157.    max-width: 100%;
  158.    height: auto;
  159. }
  160.        
  161. #container {
  162.     width: 100%;
  163.     height: 100%;
  164. }
  165.        
  166. #content {
  167.     width: 840px;
  168.     height: auto;
  169.     position: absolute;
  170.     margin: 0 auto;
  171.     left: 0;
  172.     right: 0;
  173.     display: inline-block;
  174. }
  175.  
  176. #topborder {
  177.     top: 0;
  178. }
  179.  
  180. #rightborder {
  181.     right: 0;
  182. }
  183.  
  184. #botborder {
  185.     bottom: 0;
  186. }
  187.  
  188. #leftborder {
  189.     left: 0;
  190. }
  191.  
  192. #topborder, #botborder {
  193.     width: 100%;
  194.     height: 10px;
  195. }
  196.  
  197. #leftborder, #rightborder {
  198.     width: 10px;
  199.     height: 100%;
  200. }
  201.  
  202. #topborder, #rightborder, #botborder, #leftborder {
  203.     position: fixed;
  204.     background-color: {color:accent};  
  205.     z-index: 99999;
  206. }
  207.        
  208. #sidebar {
  209.     margin-top: 100px;
  210.     width: 200px;
  211.     background-color: {color:post background};
  212.     color: {color:text};
  213.     font-size: 10px;
  214.     line-height: 140%;
  215.     padding: 15px;
  216.     position: fixed;
  217.     float: left;
  218. }
  219.  
  220. #sidebar img {
  221.     max-width: 40px;
  222.     float: left;
  223.     {block:ifcircleicon}
  224.     border-radius: 100%;
  225.     -moz-border-radius: 100%;
  226.     -webkit-border-radius: 100%;
  227.     {/block:ifcircleicon}
  228. }
  229.        
  230. #sidebar h1 {
  231.     font-family: Arial, sans-serif;
  232.     font-size: 14px;
  233.     font-style: italic;
  234.     text-align: right;
  235.     padding-bottom: 5px;
  236.     border-bottom: 1px solid {color:accent2};
  237. }
  238.  
  239. #sidebar h2 {
  240.     font-size: 10px;
  241.     letter-spacing: 2px;
  242.     background-color: {color:accent};
  243.     color: #ffffff;
  244.     text-transform: uppercase;
  245.     padding: 10px;
  246.     margin-top: 15px;
  247.     {block:ifroundedcorners}
  248.     border-radius: 10px;
  249.     -moz-border-radius: 10px;
  250.     -webkit-border-radius: 10px;
  251.     {/block:ifroundedcorners}
  252. }
  253.        
  254. #sidebar p {
  255.     margin-top: 15px;
  256. }
  257.        
  258. #links {
  259.     margin: 10px 0;
  260. }
  261.        
  262. #links ul {
  263.     list-style: none;
  264.     padding: 0;
  265. }
  266.    
  267. #links li {
  268.     margin: 2px 0;
  269.     background-color: {color:accent};
  270.     padding: 10px;
  271.     font-size: 9px;
  272.     letter-spacing: 2px;
  273.     text-transform: uppercase;
  274.     {block:ifroundedcorners}
  275.     border-radius: 10px;
  276.     -moz-border-radius: 10px;
  277.     -webkit-border-radius: 10px;
  278.     {/block:ifroundedcorners}
  279. }
  280.  
  281. #links li a {
  282.     color: #ffffff;
  283. }
  284.        
  285. #postcol {
  286.     margin: 0 auto;
  287.     margin-top: 80px;
  288.     margin-bottom: 20px;
  289.     width: 540px;
  290.     float: right;
  291. }
  292.        
  293. #posts {
  294.     width: 500px;
  295.     background-color: {color:post background};
  296.     color: {color:text};
  297.     font-size: 12px;
  298.     line-height: 140%;
  299.     padding: 15px;
  300.     margin-bottom: 100px;
  301. }
  302.        
  303. #posts h1 {
  304.     font-size: 15px;
  305.     text-transform: uppercase;    
  306. }
  307.  
  308. #posts p, #posts blockquote, #posts li {
  309.     font-size: {select:font size};
  310. }
  311.  
  312. #posts p, #posts img {
  313.     max-width: 100%;
  314. }
  315.        
  316. #postinfo {
  317.     margin-top: 10px;
  318.     font-size: 10px;
  319. }
  320.  
  321. #posttop {
  322.     margin-bottom: 10px;
  323.     font-size: 10px;
  324.     text-transform: uppercase;
  325. }
  326.  
  327. #posttop span {
  328.     float: right;
  329. }
  330.    
  331. #tags {
  332.     font-style: italic;
  333. }
  334.  
  335. #tags a {
  336.     margin-right: 15px;
  337. }
  338.  
  339. #postleft {
  340.     float: left;
  341.     width: 450px;
  342. }
  343.        
  344. #postright {
  345.     float: right;
  346. }
  347.        
  348. #pag {
  349.     margin-top: 15px;
  350.     text-transform: uppercase;
  351.     font-size: 9px;
  352.     display: inline-block;
  353. }
  354.        
  355. #pag #next {
  356.     float: left;
  357. }
  358.        
  359. #pag #previous {
  360.     float: right;
  361.     position: absolute;
  362.     right: 0;
  363.     margin-right: 14px;
  364. }
  365.        
  366. #pag a {
  367.     border-bottom: 1px solid transparent;
  368.     -webkit-transition: all 0.3s ease;
  369.     -moz-transition: all 0.3s ease;
  370.     -o-transition: all 0.3s ease;
  371.     transition: all 0.3s ease;
  372. }
  373.        
  374. #pag a:hover {
  375.     padding-bottom: 5px;
  376.     border-bottom: 1px solid {color:accent};  
  377.     -webkit-transition: all 0.3s ease;
  378.     -moz-transition: all 0.3s ease;
  379.     -o-transition: all 0.3s ease;
  380.     transition: all 0.3s ease;
  381. }
  382.  
  383. #notes {
  384.     margin-top: 30px;
  385.     font-size: 10px;
  386.     font-weight: bold;
  387.     text-transform: lowercase;
  388.     height: 200px;
  389.     overflow-y: scroll;
  390. }
  391.        
  392. #notes a {
  393.     color: {color:text};
  394. }
  395.        
  396. #notes ol {
  397.     list-style: none;
  398. }
  399.        
  400. #notes img {
  401.     margin-top: 3px;
  402.     margin-right: 15px;
  403.     width: 15px;
  404.     height: 15px;
  405.     border-radius: 100%;
  406.     -moz-border-radius: 100%;
  407.     -webkit-border-radius: 100%;
  408. }
  409.        
  410. #quote {
  411.     font-family: 'Times New Roman', serif;
  412.     font-size: 15px;
  413.     font-style: italic;
  414. }
  415.        
  416. #ask {
  417.     margin: 10px 0;
  418. }
  419.  
  420. #label {
  421.     text-transform: uppercase;
  422.     font-weight: bold;
  423. }
  424.        
  425. #line {
  426.     max-width: 75%;
  427.     padding: 5px;
  428.     margin: 10px 0;
  429.     font-style: none;
  430.     border-radius: 3px;
  431.     -moz-border-radius: 3px;
  432.     -webkit-border-radius: 3px;
  433. }
  434.        
  435. #line:nth-of-type(even) {
  436.     position: relative;
  437.     float: right;
  438.     clear: both;
  439.     background-color: {color:accent2};
  440.     color: #ffffff;
  441. }
  442.  
  443. #line:nth-of-type(even):after {
  444.     left: 100%;
  445.     top: 90%;
  446.     border: solid transparent;
  447.     content: " ";
  448.     height: 0;
  449.     width: 0;
  450.     position: absolute;
  451.     pointer-events: none;
  452.     border-left-color: {color:accent2};
  453.     border-width: 4px;
  454.     margin-top: -10px;
  455. }
  456.  
  457. #line:nth-of-type(odd) {
  458.     position: relative;
  459.     float: left;
  460.     clear: both;
  461.     background-color: {color:accent};
  462.     color: #ffffff;
  463. }
  464.  
  465. #line:nth-of-type(odd):after {
  466.     right: 100%;
  467.     top: 90%;
  468.     border: solid transparent;
  469.     content: " ";
  470.     height: 0;
  471.     width: 0;
  472.     position: absolute;
  473.     pointer-events: none;
  474.     border-right-color: {color:accent};
  475.     border-width: 4px;
  476.     margin-top: -10px;    
  477. }
  478.    
  479. a {
  480.     font-weight: bold;
  481.     text-decoration: none;
  482.     color: {color:links};
  483.     -webkit-transition: all 0.8s ease;
  484.     -moz-transition: all 0.8s ease;
  485.     -o-transition: all 0.8s ease;
  486.     transition: all 0.8s ease;
  487. }
  488.        
  489. a:hover {
  490.     color: {color:accent};
  491.     -webkit-transition: all 0.8s ease;
  492.     -moz-transition: all 0.8s ease;
  493.     -o-transition: all 0.8s ease;
  494.     transition: all 0.8s ease;
  495. }
  496.        
  497. small {
  498.     font-size: {select:font size};
  499. }        
  500.  
  501. blockquote {
  502.     border-left: 1px solid {color:accent2};
  503.     padding-left: 7px;
  504.     margin: 3px 0;
  505. }
  506.        
  507. ul, ol {
  508.     padding-left: 15px;
  509. }
  510.  
  511. pre {
  512.     margin: 10px 0;
  513.     padding: 20px;
  514.     font-family: Courier New, monospace;
  515.     white-space: pre-wrap;
  516.     white-space: -moz-pre-wrap;
  517.     white-space: -pre-wrap;
  518.     white-space: -o-pre-wrap;
  519.     word-wrap: break-word;
  520.     background-color: #393939;
  521.     color: #ffffff;
  522.     max-width: 540px;
  523.     overflow: auto;
  524. }
  525.  
  526. #tags i, #postleft i, #postright i, #posttop i {
  527.     color: {color:accent};
  528. }
  529.  
  530. #posttop i {
  531.     padding: 0 7px;
  532. }
  533.  
  534. .hidden {
  535.     display: none;
  536. }
  537.  
  538. .unhidden {
  539.     display: block;
  540. }
  541.        
  542. .clear {
  543.     clear: both;
  544. }
  545.  
  546. .credit {
  547.     position: fixed;
  548.     bottom: 20px;
  549.     left: 23px;
  550.     font-size: 14px;
  551. }
  552.  
  553. .credit a {
  554.     font-weight: normal;
  555. }
  556.  
  557. .credit span {
  558.     font-size: 10px;
  559.     background: {color:accent};
  560.     color: {color:background};
  561.     padding: 6px 9px;
  562.     border-radius: 6px;
  563.     opacity: 0;
  564.     transition-duration: 0.5s;
  565.     -moz-transition-duration: 0.5s;
  566.     -webkit-transition-duration: 0.5s;
  567. }
  568.  
  569. .credit:hover span {
  570.     margin-left: 15px;
  571.     opacity: 1;
  572. }
  573.  
  574. .credit:before {
  575.     content: '\e2b0';
  576.     font-family: 'saturnicons';
  577. }
  578.  
  579. .credit:hover:before {
  580.     color: {color:accent};
  581. }
  582.  
  583. </style>
  584.    
  585. </head>
  586.    
  587. <body>
  588.        
  589. <div id="container">
  590.  
  591. {block:ifborders}
  592. <div id="topborder"></div>
  593. <div id="rightborder"></div>
  594. <div id="botborder"></div>
  595. <div id="leftborder"></div>
  596. {/block:ifborders}
  597.  
  598.     <div id="content">
  599.        
  600.         <div id="sidebar">
  601.            
  602.         <h1><img src="{PortraitURL-40}"> {Title}</h1>
  603.  
  604.             <!-- to use a different image, simply replace {PortraitURL-40} with the link to your image -->
  605.  
  606. <div class="clear"></div>
  607.         <p>{Description}</p>
  608.            
  609.         <a href="javascript:unhide('links');"><h2><i class="fa fa-chevron-down" aria-hidden="true"></i> {text:links title}</h2></a>    
  610.         <div id="links" class="hidden">
  611.             <ul>
  612.                 <li><a href="/"><i class="fa fa-home" aria-hidden="true"></i> home</a></li>
  613.                 <li><a href="/ask"><i class="fa fa-envelope" aria-hidden="true"></i> message</a></li>
  614.                 <li><a href="/archive"><i class="fa fa-history" aria-hidden="true"></i> archive</a></li>
  615.                 {block:iflinkone}<li><a href="/{text:link one}"><i class="fa fa-user" aria-hidden="true"></i> {text:link one title}</a></li>{/block:iflinkone}
  616.                 {block:iflinktwo}<li><a href="/{text:link two}"><i class="fa fa-bars" aria-hidden="true"></i> {text:link two title}</a></li>{/block:iflinktwo}
  617.                 {block:iflinkthree}<li><a href="/{text:link three}"><i class="fa fa-folder" aria-hidden="true"></i> {text:link three title}</a></li>{/block:iflinkthree}
  618.                 {block:iflinkfour}<li><a href="/{text:link four}"><i class="fa fa-heart" aria-hidden="true"></i> {text:link four title}</a></li>{/block:iflinkfour}
  619.             </ul>
  620.         </div>
  621.        
  622.         <div id="pag">
  623.             {block:Pagination}<div id="next">{block:NextPage}<a href="{NextPage}">next</a>{/block:NextPage}</div>
  624.             <div id="previous">{block:PreviousPage}<a href="{PreviousPage}">previous</a>{/block:PreviousPage}</div>{/block:Pagination}
  625.         </div>
  626.  
  627. <div class="clear"></div>
  628.  
  629.         </div>
  630.            
  631.         <div id="postcol">
  632.                            
  633.         {block:Posts}
  634.        
  635.         {block:ContentSource}
  636. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  637. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  638. {/block:SourceLogo}
  639. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  640. {/block:ContentSource}
  641.                            
  642.         <div id="posts">
  643.         {block:PermalinkPage}
  644.         {block:Date}
  645.         <div id="posttop">
  646.         <a href="{BlogURL}">{Name}</a> {block:RebloggedFrom}<i class="fa fa-mail-forward" aria-hidden="true"></i> <a href="{ReblogParentURL}" title="via">{ReblogParentName}</a>{/block:RebloggedFrom}
  647.         <span><a href="{ReblogURL}">reblog</a></span>
  648.         </div>
  649.         {/block:Date}
  650.         {/block:PermalinkPage}
  651.  
  652. <div class="clear"></div>
  653.  
  654.         {block:Text}
  655.         {block:Title}<h1>{Title}</h1>{/block:Title}
  656.         {Body}
  657.         {/block:Text}
  658.                                    
  659.         {block:Photo}<a href="{permalink}"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="100%"/></a> {/block:Photo}
  660.        
  661.         {block:Photoset}
  662.         {Photoset}
  663.         {/block:Photoset}
  664.                                    
  665.         {block:Video}
  666.         <div class="video">
  667.         {Video-500}
  668.         </div>
  669.         {/block:Video}
  670.                                    
  671.         {block:Quote}
  672.         <div id="quote">"{Quote}"</div>
  673.         {block:Source}<br>- {Source}{/block:Source}
  674.         {/block:Quote}
  675.                                    
  676.         {block:Link}
  677.         <h1><a href="{URL}">{Name}</a></h1>
  678.         {block:Description}{Description}{/block:Description}
  679.         {/block:Link}
  680.                                    
  681.         {block:Chat}
  682.         {block:Title}<h1>{Title}</h1>{/block:Title}
  683.         {block:Lines}<div id="line">
  684.         {block:Label}<div id="label">{Label}</div>{/block:Label}
  685.         <span>{Line}<br></span></div>{/block:Lines}
  686.         <div class="clear"></div>
  687.         {/block:Chat}
  688.                                    
  689.         {block:Audio}
  690.         {AudioPlayerWhite}
  691.         {block:TrackName}Track: {TrackName}<br>{/block:TrackName}
  692.         {block:Artist}Artist: {Artist}<br>{/block:Artist}
  693.         {block:Album}Album: {Album}<br>{/block:Album}
  694.         {/block:Audio}
  695.        
  696.         {block:Answer}
  697.         <div id="ask">{Asker} asked: {Question}</div>
  698.         <blockquote>{Answer}</blockquote>
  699.         {/block:Answer}
  700.                                    
  701.         {block:Caption}
  702.         {Caption}
  703.         {/block:Caption}
  704.                                    
  705.        
  706.         <div id="postinfo">
  707.        
  708.         <div id="postleft">
  709.          {block:NoteCount}<i class="fa fa-bookmark" aria-hidden="true"></i> <a href="{Permalink}"> {NoteCountWithLabel}</a></a>{/block:NoteCount}
  710.                                        
  711.         <div id="tags">
  712.         {block:HasTags}<i class="fa fa-tags" aria-hidden="true"></i>{block:Tags} <a href="{TagURL}">{Tag}</a>{/block:Tags}{/block:HasTags}
  713.         </div>
  714.         </div>
  715.                  
  716.         <div id="postright">
  717.         {block:Date}<i class="fa fa-calendar-o" aria-hidden="true"></i> <a href="{Permalink}" title="{TimeAgo}">{DayOfMonthWithZero}.{MonthNumberWithZero}</a>{/block:Date}
  718.         </div>
  719.                                            
  720.         </div>
  721.            
  722.        
  723. <div class="clear"></div>
  724.        
  725.         {block:PostNotes}
  726.         <div id="notes">{PostNotes}</div>
  727.         {/block:PostNotes}
  728.                                    
  729.         </div>
  730.                      
  731.                                
  732.         {/block:Posts}
  733.                            
  734.         </div>
  735.                
  736. <div class="clear"></div>
  737.              
  738.     </div>
  739.            
  740.  
  741. </div>
  742.  
  743.  
  744. <div class="credit"><a href="http://peachthms.tumblr.com"><span>page by peachthms</span></a></div>
  745.  
  746. </body>
  747.    
  748. </html>
Advertisement
Add Comment
Please, Sign In to add comment