altraviolence

theme 03 - rosewater

Aug 16th, 2017
1,647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 16.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!--
  4.  
  5. ROSEWATER theme (03) by PEACHTHMS | peachthms.tumblr.com
  6. V1.1 - new tumblr controls
  7. V1.2 - fixed page bug, link error
  8. V1.3 - final page fix
  9.  
  10.  
  11. - do not claim this page or any of the code as your own
  12. - do not redistribute this page or any of the code as your own
  13. - do not mix my code with another theme maker's code
  14. - do not remove or edit the credit in anyway; it must remain visible
  15.  
  16. magnusthemes, neothm - unnested captions
  17.  
  18. -->
  19.    
  20. <head>
  21.    
  22. <title>{Title} {block:PostSummary}| {PostSummary}{/block:PostSummary}</title>
  23.    
  24. <link rel="shortcut icon" href="{Favicon}">
  25.  
  26. <link href="https://fonts.googleapis.com/css?family=Droid+Serif|Karla|Lora|Merriweather|Muli|Noto+Sans" rel="stylesheet">
  27.  
  28. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  29.  
  30. <script type="text/javascript">
  31.  function unhide(divID) {
  32.  var item = document.getElementById(divID);
  33.  if (item) {
  34.  item.className=(item.className=='hidden')?'unhidden':'hidden';
  35.  }
  36.  }
  37. </script>
  38.  
  39. <meta charset="UTF-8">
  40. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  41. <meta http-equiv="x-dns-prefetch-control" content="off"/>
  42. <meta name="color:background" content="#aa8d8d"/>
  43. <meta name="color:post background" content="#ffffff"/>
  44. <meta name="color:text" content="#686868"/>
  45. <meta name="color:links" content="#686868"/>
  46. <meta name="color:accent" content="#aa8d8d"/>
  47. <meta name="color:accent2" content="#898989"/>
  48. <meta name="text:post gutter" content=""/>
  49. <meta name="text:ask link" content=""/>
  50. <meta name="text:link one title" content=""/>
  51. <meta name="text:link one" content=""/>
  52. <meta name="text:link two title" content=""/>
  53. <meta name="text:link two" content=""/>
  54. <meta name="text:link three title" content=""/>
  55. <meta name="text:link three" content=""/>
  56. <meta name="if:link one" content=""/>
  57. <meta name="if:link two" content=""/>
  58. <meta name="if:link three" content=""/>
  59. <meta name="if:justified captions" content=""/>
  60. <meta name="if:captions on index page" content=""/>
  61. <meta name="select:font" content="Karla" title="Karla"/>
  62. <meta name="select:font" content="Noto Sans" title="Noto Sans"/>
  63. <meta name="select:font" content="Muli" title="Muli"/>
  64. <meta name="select:font" content="Droid Serif" title="Droid Serif"/>
  65. <meta name="select:font" content="Lora" title="Lora"/>
  66. <meta name="select:font" content="Merriweather" title="Merriweather"/>
  67. <meta name="select:font size" content="11px" title="11px"/>
  68. <meta name="select:font size" content="12px" title="12px"/>
  69. <meta name="select:font size" content="14px" title="13px"/>
  70. <meta name="select:font size" content="14px" title="14px"/>
  71. <meta name="select:font size" content="15px" title="15px"/>
  72.  
  73. <style>
  74.  
  75. ::-moz-selection {
  76.     background-color: {color:accent2};
  77.     color: {color:text};
  78. }
  79.  
  80. ::selection {
  81.     background-color: {color:accent2};
  82.     color: {color:text};
  83. }
  84.  
  85. ::-webkit-scrollbar {
  86.     width: 1px;
  87.     height: 1px;
  88. }
  89.  
  90. ::-webkit-scrollbar-thumb {
  91.     background-color: {color:accent};
  92. }
  93.        
  94. ::-webkit-scrollbar-track {
  95.     background-color: {color:post background};
  96. }
  97.  
  98. .tmblr-iframe-compact .tmblr-iframe--unified-controls {
  99.     margin-top: 3px;
  100.     right: 5px;
  101.     z-index: 99999999999;
  102.     transform: scale(0.7,0.7);
  103.     -webkit-filter: invert(50%);
  104.     filter: invert(50%);
  105. }
  106.  
  107. * {
  108.     padding: 0;
  109.     margin: 0;
  110. }  
  111.  
  112. a {
  113.     font-weight: bold;
  114.     text-decoration: none;
  115.     color: {color:links};
  116.     -webkit-transition: all 0.8s ease;
  117.     -moz-transition: all 0.8s ease;
  118.     -o-transition: all 0.8s ease;
  119.     transition: all 0.8s ease;
  120. }
  121.        
  122. a:hover {
  123.     color: {color:accent};
  124.     -webkit-transition: all 0.8s ease;
  125.     -moz-transition: all 0.8s ease;
  126.     -o-transition: all 0.8s ease;
  127.     transition: all 0.8s ease;
  128. }
  129.        
  130. small {
  131.     font-size: {select:font size};
  132. }        
  133.        
  134. ul, ol {
  135.     padding-left: 15px;
  136. }
  137.  
  138. body {
  139.     background-color: {color:background};
  140.     font-family: '{select:font}', sans-serif, serif;
  141.     color: {color:text};
  142.     font-size: {select:font size};
  143.     line-height: 1.75em;
  144. }
  145.        
  146. #container {
  147.     width: 100%;
  148.     height: 100%;  
  149.     display: flex;
  150. }
  151.  
  152. section {
  153.     display: flex;
  154.     flex-direction: column;
  155.     justify-content: center;
  156.     flex: 1;
  157. }
  158.  
  159. section#right {
  160.     {block:PermalinkPage}
  161.     justify-content: flex-start;
  162.     {/block:PermalinkPage}
  163. }
  164.  
  165. #left {
  166.     background-color: {color:background};
  167. }
  168.  
  169. #intro {
  170.     width: 260px;
  171.     height: 260px;
  172.     border: 1px solid white;
  173.     background-color: rgba(255,255,255,0.3);
  174.     position: fixed;
  175.     left: calc(25vw - 150px);
  176.     top: calc(50vh - 150px);
  177.     color: white;
  178.     text-align: center;
  179.     display: flex;
  180.     padding: 10px;
  181. }
  182.  
  183. #intro span {
  184.     margin: auto;    
  185. }
  186.  
  187. #intro h1 {
  188.     text-transform: uppercase;
  189.     letter-spacing: 2px;
  190. }
  191.  
  192. #intro p {
  193.     max-height: 150px;
  194.     overflow-y: auto;
  195.     margin-top: 15px;
  196.     font-size: calc({select:font size} - 1px);
  197.     font-style: italic;
  198.     padding: 0 3px;
  199. }
  200.  
  201. #right {
  202.     background-color: #eeeeee;
  203.     overflow-y: scroll;
  204.     overflow-x: hidden;
  205.     {block:PermalinkPage}
  206.     height: 100vh;
  207.     {/block:PermalinkPage}
  208. }
  209.  
  210. nav {
  211.     padding: 15px;
  212.     width: 100%;
  213.     height: auto;
  214.     position: fixed;
  215.     bottom: 0;
  216.     background-color: {color:post background};
  217.     text-align: center;
  218. }
  219.  
  220. nav a {
  221.     font-size: calc({select:font size} - 1px);
  222.     padding: 10px;
  223. }
  224.  
  225. nav a::after {
  226.     content: '\2022';
  227.     padding-left: 20px;
  228. }
  229.  
  230. nav a:last-of-type::after {
  231.     content: none;
  232. }
  233.  
  234. #pag {
  235.     margin-bottom: 100px;
  236.     text-align: center;
  237. }
  238.  
  239. #pag a {
  240.     color: {color:links};
  241.     text-decoration: none;
  242. }
  243.  
  244. #pag a:hover {
  245.     color: {color:accent};
  246. }
  247.  
  248. #pag .jump_page, .current_page {
  249.     color: {color:links};
  250.     padding: 5px;
  251. }
  252.  
  253. #pag .current_page {
  254.     font-weight: bold;
  255. }
  256.  
  257. #postcol {
  258.     margin: 0 auto;
  259.     width: 75%;
  260.     max-width: 700px;
  261. }
  262.  
  263. .posts {
  264.     background-color: {color:post background};
  265.     margin: {text:post gutter}px 0;
  266.     padding: 20px;
  267.     padding-bottom: 5px;
  268. }
  269.  
  270. .info {
  271.     width: 100%;
  272.     display: flex;
  273.     justify-content: space-between;
  274.     margin-bottom: 10px;
  275. }
  276.  
  277. .info, #tags {
  278.     font-size: calc({select:font size} - 1px);
  279. }  
  280.  
  281. #tags {
  282.     text-align: center;
  283.     font-size: calc({select:font size} -0.5px);
  284. }
  285.  
  286. #tags a {
  287.     margin: 0 5px;
  288. }
  289.  
  290. .info a, #tags a {
  291.     color: #aaaaaa;
  292.     text-transform: lowercase;
  293. }
  294.  
  295. #quote {
  296.     text-align: center;
  297. }
  298.  
  299. #source {
  300.     font-style: italic;
  301.     text-align: center;
  302.     margin-top: 20px;
  303. }
  304.  
  305. #lines {
  306.     margin: 10px 0;
  307. }
  308.  
  309. #notes {
  310.     background-color: {color:post background};
  311.     margin-bottom: 100px;
  312.     padding: 10px;
  313.     font-size: calc({select:font size} - 1px);
  314. }
  315.  
  316. #notes ol {
  317.     list-style: none;
  318. }
  319.  
  320. #notes img {
  321.     display: none;
  322. }
  323.  
  324. #notes a {
  325.     font-weight: normal;
  326. }
  327.  
  328. .caption {
  329.     width: 100%;
  330.     {block:ifjustifiedcaptions}
  331.     text-align: justify;
  332.     {/block:ifjustifiedcaptions}
  333.     border: 0;
  334. }
  335.  
  336. .tumblr_parent a.tumblr_blog {
  337.     display: block;
  338.     vertical-align: middle;
  339.     margin-bottom: 5px;
  340.     font-weight: bold;
  341.     color: {color:accent3};
  342. }
  343.  
  344. .tumblr_parent .tumblr_avatar {
  345.     width: 20px;
  346.     height: 20px;
  347.     margin-right: 10px;
  348.     display: inline-block;
  349.     float: left;
  350.     clear: left;
  351.     border-radius: 4px;
  352. }
  353.  
  354. .tumblr_avatar img {
  355.     vertical-align: middle;
  356. }
  357.  
  358. .tumblr_parent {
  359.     margin: 0 0 5px 0;
  360. }
  361.  
  362. .tumblr_parent p {
  363. }
  364.  
  365. .hidden {
  366.     display: none;
  367. }
  368.  
  369. .unhidden {
  370.     display: block;
  371. }
  372.  
  373. /** DO NOT TOUCH OR REMOVE **/        
  374. #credit {
  375.     font-size: 8px;
  376.     letter-spacing: 2px;
  377.     bottom: 15px;
  378.     right: 15px;
  379.     position: fixed;
  380. }
  381.  
  382. #credit a {
  383.     color: {color:text};
  384.     text-decoration: none;
  385.     -webkit-transition: all .8;
  386.     -moz-transition: all .8s;
  387.     -o-transition: all .8s;
  388.     -ms-transition: all .8s;    
  389.     transition: all .8s;
  390. }
  391.  
  392. #credit a:hover {
  393.     color: {color:accent};
  394.     -webkit-transition: all .8s;
  395.     -moz-transition: all .8s;
  396.     -o-transition: all .8s;
  397.     -ms-transition: all .8s;    
  398.     transition: all .8s;
  399. }
  400.  
  401. #mobileheader, #mobilecredit, #mobilenav, #verticalphotoset {
  402.     display: none;
  403. }
  404.  
  405. /** DO NOT TOUCH OR REMOVE **/
  406.  
  407. @media only screen and (min-device-width : 319px) and (max-device-width : 736px) {
  408.         #left, nav, #credit, #photoset  {
  409.             display: none;
  410.         }
  411.        
  412.         #mobileheader, #mobilecredit, #mobilenav, #verticalphotoset {
  413.             display: block;
  414.         }
  415.        
  416.         .posts {
  417.             margin: 50px 0;
  418.         }
  419.        
  420.         #postcol {
  421.             width: 100%;
  422.         }
  423.        
  424.         #mobileheader {
  425.             margin: 0 auto;
  426.             width: 100vw;
  427.             padding: 30px 20px;
  428.             background-color: {color:post background};
  429.         }
  430.        
  431.         #mobileheader p {
  432.             width: 90vw;
  433.             padding: 10px 0;
  434.         }
  435.        
  436.         #mobilecredit {
  437.             margin-bottom: 50px;
  438.             text-align: center;
  439.         }
  440.        
  441.         #mobilenav {
  442.             width: inherit;
  443.             text-transform: uppercase;
  444.         }
  445.        
  446.         #mobilenav li {
  447.             list-style: none;
  448.             margin-left: -15px;
  449.         }
  450.     }
  451.  
  452. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px)  {
  453.    
  454.     #left, #credit, #photoset {
  455.         display: none;
  456.     }
  457.    
  458.     #verticalphotoset, #mobilecredit {
  459.         display: block;
  460.     }
  461.    
  462.     .posts:first-of-type {
  463.         margin-top: 200px;
  464.     }
  465.    
  466.     #mobileheader {
  467.         display: block;
  468.         width: 100vw;
  469.         padding: 30px 20px;
  470.         background-color: {color:post background};
  471.         position: fixed;
  472.         top: 0;
  473.         z-index: 2;
  474.     }
  475.    
  476.     #mobilecredit {
  477.         margin-bottom: 150px;
  478.         text-align: center;
  479.     }
  480. }  
  481.  
  482.  
  483. </style>
  484.    
  485. </head>
  486.    
  487. <body>
  488.        
  489. <div id="container">
  490.  
  491. <nav>
  492.     <a href="/">home</a>
  493.     <a href="{text:ask link}">message</a>
  494.     <a href="/archive">archive</a>
  495.     {block:iflinkone}<a href="/{text:link one}">{text:link one title}</a>{/block:iflinkone}
  496.     {block:iflinktwo}<a href="/{text:link two}">{text:link two title}</a>{/block:iflinktwo}
  497.     {block:iflinkthree}<a href="/{text:link three}">{text:link three title}</a>{/block:iflinkthree}
  498. </nav>
  499.  
  500. <section id="left">
  501.  
  502. <div id="intro">
  503.     <span><h1>{Title}</h1>
  504.     <p>{Description}</p></span>
  505. </div>
  506.    
  507. </section>
  508.  
  509. <section id="right">
  510. <div id="mobileheader">
  511.    
  512.     <h1>{Title}</h1>
  513.    
  514.     <p>{Description}</p>
  515.    
  516.     <div id="mobilenav">
  517.        
  518.         <a href="javascript:unhide('links');">navigation</a>
  519.        
  520.         <div id="links" class="hidden">
  521.             <ul>
  522.                 <li><a href="/">home</a></li>
  523.                 <li><a href="{text:ask link}">message</a></li>
  524.                 <li><a href="/archive">archive</a></li>
  525.                 <li>{block:iflinkone}<a href="/{text:link one}">{text:link one title}</a>{/block:iflinkone}</li>
  526.                 <li>{block:iflinktwo}<a href="/{text:link two}">{text:link two title}</a>{/block:iflinktwo}</li>
  527.                 <li>{block:iflinkthree}<a href="/{text:link three}">{text:link three title}</a>{/block:iflinkthree}</li>
  528.             </ul>
  529.         </div>
  530.        
  531.     </div>
  532.    
  533. </div>
  534. <div id="postcol">
  535.  
  536.  
  537.                            
  538. {block:Posts}
  539.  
  540. {block:ContentSource}
  541. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}
  542. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  543. {/block:ContentSource}
  544.  
  545. <!-- {block:NoRebloggedFrom}
  546. {block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}
  547. {/block:NoRebloggedFrom} -->
  548.                            
  549. <article class="posts">
  550.        
  551. {block:Text}
  552. {block:Title}<h1>{Title}</h1>{/block:Title}
  553. <div class="caption">{Body}</div>
  554. {/block:Text}
  555.                                    
  556. {block:Photo}<a href="{permalink}"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="100%"/></a>
  557. {/block:Photo}
  558.        
  559. <div id="photoset">
  560. {block:Photoset}
  561. {Photoset}
  562. {/block:Photoset}    
  563. </div>
  564.  
  565. <div id="verticalphotoset">
  566. {block:Photoset}
  567. {block:Photos}
  568. <img src="{PhotoURL-HighRes}" width="100%" />
  569. {/block:Photos}
  570. {/block:Photoset}
  571. </div>                                
  572.                                    
  573. {block:Video}
  574. {Video-540}
  575. {/block:Video}
  576.                                    
  577. {block:Quote}
  578. <div id="quote">"{Quote}"</div>
  579. {block:Source}<div id="source">&mdash; {Source}</div>{/block:Source}
  580. {/block:Quote}
  581.                                    
  582. {block:Link}
  583. <h1><a href="{URL}">{Name}</a></h1>
  584. {block:Description}{Description}{/block:Description}
  585. {/block:Link}
  586.                                    
  587. {block:Chat}
  588. {block:Title}<h1>{Title}</h1>{/block:Title}
  589. {block:Lines}<div id="lines">
  590. {block:Label}{Label}{/block:Label}
  591. <span>{Line}<br></span></div>{/block:Lines}
  592. {/block:Chat}
  593.                                    
  594. {block:Audio}
  595. {AudioPlayerWhite}
  596. {block:TrackName}Track: {TrackName}<br>{/block:TrackName}
  597. {block:Artist}Artist: {Artist}<br>{/block:Artist}
  598. {block:Album}Album: {Album}<br>{/block:Album}
  599. {/block:Audio}
  600.        
  601. {block:Answer}
  602. {Asker} asked {Question}
  603. <div id="answer">{Answer}</div>
  604. {/block:Answer}
  605.  
  606. {block:ifcaptionsonindexpage}            
  607. {block:indexpage}
  608. {block:Caption}
  609. <div class="caption">{Caption}</div>
  610. {/block:Caption}
  611. {/block:indexpage}
  612. {/block:ifcaptionsonindexpage}
  613.  
  614. {block:PermalinkPage}                          
  615. {block:Caption}
  616. <div class="caption">{Caption}</div>
  617. {/block:Caption}
  618. {/block:PermalinkPage}
  619. {block:Date}
  620.    
  621. {block:RebloggedFrom}
  622. <div class="info">
  623.     <div class="perma">
  624.     <a href="{ReblogParentURL}">via: {ReblogParentName}</a>
  625.     </div>
  626.    
  627.     <div class="date">
  628.     <a href="{Permalink}">{DayOfWeek}, {TimeAgo}</a>
  629.     </div>
  630.  
  631. </div>
  632. {/block:RebloggedFrom}
  633.    
  634. {block:NotReblog}
  635. <div class="info">
  636.     <div class="perma">
  637.     <a href="{BlogURL}" title="posted by {Name}">{Name}</a>
  638.     </div>
  639.    
  640.     <div class="date">
  641.     <a href="{Permalink}">{DayOfWeek}, {TimeAgo}</a>
  642.     </div>
  643. </div>
  644. {/block:NotReblog}
  645. {/block:Date}
  646.  
  647. {block:HasTags}
  648. <div id="tags">
  649. {block:Tags}<a href="{TagUrl}">{Tag}</a>{/block:Tags}
  650. </div>
  651. {/block:HasTags}
  652.  
  653. </article>
  654.  
  655.                                    
  656. {block:PostNotes}
  657. <div id="notes">{PostNotes}</div>
  658. {/block:PostNotes}
  659.                  
  660.  
  661.  
  662.  
  663.                                
  664. {/block:Posts}    
  665.  
  666. {block:Pagination}
  667. <div id="pag">
  668.     {block:PreviousPage}<a href="{PreviousPage}" class="jump_page">previous</a>{/block:PreviousPage}
  669.     {block:JumpPagination length="5"}
  670.     {block:CurrentPage}<span class="current_page">{PageNumber}</span>{/block:CurrentPage}
  671.     {block:JumpPage}<a class="jump_page" href="{URL}">{PageNumber}</a>{/block:JumpPage}{/block:JumpPagination}
  672.     {block:NextPage}<a href="{NextPage}" class="jump_page">forward</a>{/block:NextPage}
  673. </div>
  674. {/block:Pagination}
  675.  
  676. <!-- DO NOT TOUCH OR REMOVE -->
  677.  
  678. <div id="mobilecredit">  
  679. <a href="http://peachthms.tumblr.com">theme by peachthms</a>
  680. </div>
  681.  
  682. </div>
  683.    
  684. </section>
  685.            
  686. </div>
  687.    
  688. <!-- DO NOT TOUCH OR REMOVE -->
  689.  
  690. <div id="credit">
  691. <a href="http://peachthms.tumblr.com" title="theme by peachthms">< / ></a>
  692. </div>
  693.  
  694. </body>
  695.  
  696. <script src="//code.jquery.com/jquery-2.2.4.min.js"></script>
  697.  
  698. <script src="http://static.tumblr.com/wgg6svp/OoTofxa0c/unnest.min.js"></script>
  699.  
  700. <script> $(function(){  $('.posts').unnest({
  701.     yourCaption: ".caption", //your caption selector, the div wrapping {Caption}
  702.     wrapName: ".tumblr_parent", //the name of the captions’ new wrapper
  703.     newCaptionUsername: true, //if the user adds a new caption, following a series of captions, show their username above the caption
  704.     originalPostCaptionUsername: false, //for the original captions, or a user-added caption that previously didn’t have any, have their username on it
  705.     tumblrAvatars: true, //”dashboard style” caption, have the avatar of the blog next to the username
  706.     tumblrAvatarClass: ".tumblr_avatar", //class of the avatar next to the username
  707.     usernameColon: false //if turned to false, removes the colon at the end of usernames
  708.   }); });
  709. </script>
  710.  
  711. </html>
Add Comment
Please, Sign In to add comment