Advertisement
ogaraster

Steel Theme

Apr 16th, 2013
63,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.74 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <!--
  5.  
  6. Steel Theme brought to you by Atlas Designs
  7. http://atlasdesigns.co/
  8.  
  9. Do not remove credits unless given permission to do so.
  10.  
  11. Updated October 2013:
  12. - text post like/reblog buttons
  13. - redesigned permalink page
  14. - minor design tweaks
  15.  
  16. -->
  17.  
  18. <head>
  19.  
  20. <title>{Title}</title>
  21. <link rel="shortcut icon" href="{Favicon}">
  22. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  23. {block:Description}
  24. <meta name="description" content="{MetaDescription}" />
  25. {/block:Description}
  26.  
  27. <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400' rel='stylesheet' type='text/css'>
  28.  
  29. {block:IndexPage}
  30.  
  31. <script type="text/javascript"
  32. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  33.  
  34. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  35.  
  36. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  37. <script type="text/javascript">
  38. $(window).load(function () {
  39. var $content = $('#content');
  40. $content.masonry({itemSelector: '.entry'}),
  41. $content.infinitescroll({
  42. navSelector : 'div#pagination',
  43. nextSelector : 'div#pagination a#nextPage',
  44. itemSelector : '.entry',
  45. loading: {
  46. finishedMsg: '',
  47. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  48. },
  49. bufferPx : 600,
  50. debug : false,
  51. },
  52. // call masonry as a callback.
  53. function( newElements ) {
  54. var $newElems = $( newElements );
  55. $newElems.hide();
  56. // ensure that images load before adding to masonry layout
  57. $newElems.imagesLoaded(function(){
  58. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);} );});});});</script>
  59. {/block:IndexPage}
  60.  
  61. <meta name="color:background" content="#ffffff" />
  62. <meta name="color:post background" content="#f0f0f0" />
  63. <meta name="color:text" content="#000" />
  64. <meta name="color:title" content="#000" />
  65. <meta name="color:link" content="#828282" />
  66. <meta name="color:link hover" content="#eee" />
  67. <meta name="color:scrollbar" content="#000" />
  68.  
  69. <meta name="if:banner" content="0">
  70. <meta name="if:two columns" content="0">
  71. <meta name="if:fixed header" content="1">
  72. <meta name="if:long description" content="0">
  73. <meta name="if: show captions" content="0">
  74.  
  75. <meta name="text:reblog" content="reblog">
  76. <meta name="text:home" content="Home">
  77. <meta name="text:message" content="Message">
  78. <meta name="text:archive" content="Archive">
  79.  
  80. <meta name="image:background" content="" />
  81. <meta name="image:banner" content="" />
  82.  
  83. <style type="text/css">
  84.  
  85.  
  86. ::-webkit-scrollbar {width: 5px; height: 0px; background:{color:background};}
  87. ::-webkit-scrollbar-thumb {background: {color:scrollbar};}
  88.  
  89. iframe#tumblr_controls {position:fixed; z-index:9999999999; top: 3px; margin: 0 0 0 0; right:4px; -webkit-filter: invert(100%);}
  90.  
  91. body {
  92. background-color: {color:background};
  93. background-image:url({image:Background});
  94. background-attachment: fixed;
  95. background-repeat: repeat;
  96. font-size:12px;
  97. font-family:Source Sans Pro;
  98. font-weight:300;
  99. line-height:14px;
  100. text-transform:none;
  101. color: {color:text};
  102. }
  103.  
  104. #header{
  105. {block:iffixedheader}
  106. position:fixed;
  107. {/block:iffixedheader}
  108. {block:ifnotfixedheader}
  109. position:absolute;
  110. {/block:ifnotfixedheader}
  111. top:0px;
  112. padding-top:10px;
  113. padding-bottom:20px;
  114. width:100%;
  115. left:0px;
  116. padding-left:0px;
  117. text-align:center;
  118. background-color:{color:background};
  119. opacity:.9;
  120. z-index:99;
  121. }
  122.  
  123. .blogtitle{
  124. font-weight:200;
  125. font-size:32px;
  126. line-height:34px;
  127. text-transform:none;
  128. letter-spacing:1px;
  129. color: {color:title};
  130. }
  131.  
  132. .nav{
  133. word-spacing:20px;
  134. margin-bottom:10px;
  135. font-weight:400;
  136. }
  137.  
  138. .nav a{
  139. font-size:12px;
  140. line-height:12px;
  141. letter-spacing:1px;
  142. text-transform:uppercase;
  143. padding-bottom:8px;
  144. -moz-transition: all 0.2s ease-in-out;
  145. -webkit-transition: all 0.2s ease-in-out;
  146. -o-transition: all 0.2s ease-in-out;
  147. -ms-transition: all 0.2s ease-in-out;
  148. transition: all 0.2s ease-in-out;
  149. }
  150.  
  151. .nav a:hover{
  152. padding-bottom:1px;
  153. border-bottom:2px solid {color:link hover};
  154. -moz-transition: all 0.2s ease-in-out;
  155. -webkit-transition: all 0.2s ease-in-out;
  156. -o-transition: all 0.2s ease-in-out;
  157. -ms-transition: all 0.2s ease-in-out;
  158. transition: all 0.2s ease-in-out;
  159. }
  160.  
  161. .description{
  162.  
  163. }
  164.  
  165. .answer{
  166. width:90%;
  167. padding:5%;
  168. background-color:{color:post background};
  169. }
  170. .answer img {
  171. width:100%;
  172. }
  173.  
  174. a {
  175. text-decoration:none;
  176. color:{color:link};
  177. }
  178.  
  179. a:link, a:active, a:visited{
  180. color: {color:link};
  181. -webkit-transition: all 0.1s linear;
  182. -webkit-transition: all 0.1s linear;
  183. -moz-transition: all 0.1s linear;
  184. transition: all 0.1s linear;
  185. }
  186.  
  187. a:hover{
  188. color: {color:link hover};
  189. -webkit-transition: all 0.1s linear;
  190. -webkit-transition: all 0.1s linear;
  191. -moz-transition: all 0.1s linear;
  192. transition: all 0.1s linear;
  193. }
  194.  
  195. #center{
  196. width: 100%;
  197. height: auto;
  198. overflow-x:hidden;
  199. }
  200.  
  201. #content {
  202. width: 1120px;
  203. left:50%;
  204. margin-left:-560px;
  205. {block:iftwocolumns}
  206. width:560px;
  207. margin-left:-280px;
  208. {/block:iftwocolumns}
  209. margin-top:120px;
  210. {block:ifbanner}
  211. margin-top:180px;
  212. {/block:ifbanner}
  213. {block:iflongdescription}
  214. margin-top:170px;
  215. {block:ifbanner}
  216. margin-top:220px;
  217. {/block:ifbanner}
  218. {/block:iflongdescription}
  219. position: absolute;
  220. }
  221.  
  222. .entry{
  223. margin:15px;
  224. height:auto;
  225. background-color: #trans;
  226. {block:IndexPage}
  227. width:250px;
  228. overflow:hidden;
  229. {/block:IndexPage}
  230. {block:PermalinkPage}
  231. margin-left:75px;
  232. width:450px;
  233. height:auto;
  234. {/block:PermalinkPage}
  235. }
  236.  
  237. .title{
  238. font-weight:200;
  239. font-size:22px;
  240. line-height:22px;
  241. text-transform:none;
  242. color: {color:text};
  243. }
  244.  
  245. blockquote{
  246. padding:0px 0px 0px 3px;
  247. margin:0px 0px 0px 2px;
  248. border-left: 2px solid #ddd;
  249. }
  250.  
  251. .entry .reperma{
  252. position:absolute;
  253. left:50%;
  254. margin-left:-55px;
  255. top:50%;
  256. margin-top:0px;
  257. opacity: 0;
  258. -webkit-transition: all 0.4s linear;
  259. -webkit-transition: all 0.4s linear;
  260. -moz-transition: all 0.4s linear;
  261. transition: all 0.4s linear;
  262. }
  263.  
  264. .reperma img{
  265. height:25px;
  266. width:25px;
  267. padding:5px;
  268. background-color:rgba(255,255,255,.2);
  269. border-radius:100%;
  270. -webkit-filter: invert(100%);
  271. }
  272. .my-like {
  273. background-image: url("http://static.tumblr.com/j1tjexd/aeQmam5ia/like1.png") !important;
  274. height:35px;
  275. width:35px;
  276. cursor:pointer;
  277. display:inline-block;
  278. vertical-align:top;
  279. background-color:rgba(0,0,0,.1);
  280. border-radius:100%;
  281. }
  282. .my-liked, .my-like:hover {
  283. background-image: url("http://static.tumblr.com/j1tjexd/5YOmanh18/like2.png") !important;
  284. height:35px;
  285. width:35px;
  286. cursor:pointer;
  287. display:inline-block;
  288. vertical-align:top;
  289. background-color:rgba(0,0,0,.1);
  290. border-radius:100%;
  291. }
  292.  
  293. .entry:hover .reperma{
  294. left:50%;
  295. margin-left:-55px;
  296. margin-top:-16px;
  297. opacity: 1;
  298. -webkit-transition: all 0.4s linear;
  299. -webkit-transition: all 0.4s linear;
  300. -moz-transition: all 0.4s linear;
  301. transition: all 0.4s linear;
  302. }
  303.  
  304. .entry .permalink{
  305. padding:0px;
  306. line-height:0px;
  307. opacity:0;
  308. -webkit-transition: all 0.2s linear;
  309. -webkit-transition: all 0.2s linear;
  310. -moz-transition: all 0.2s linear;
  311. transition: all 0.2s linear;
  312. }
  313.  
  314. .permalink{
  315. font-size:11px;
  316. line-height:12px;
  317. text-transform:uppercase;
  318. text-align:center;
  319. }
  320. .entry:hover .permalink{
  321. line-height:12px;
  322. opacity:1;
  323. -webkit-transition: all 0.2s linear;
  324. -webkit-transition: all 0.2s linear;
  325. -moz-transition: all 0.2s linear;
  326. transition: all 0.2s linear;
  327. }
  328. .lowerc{
  329. text-transform:lowercase;
  330. }
  331.  
  332. .speclink{
  333. word-spacing:1px;
  334. }
  335.  
  336. .notess{
  337. height:450px;
  338. width:500px;
  339. overflow:scroll;
  340. }
  341. .notess img{
  342. border-radius:100%;
  343. }
  344. .notess li{
  345. list-style:none;
  346. line-height:30px;
  347. margin-left:-40px;
  348. }
  349. .permaside{
  350. position:absolute;
  351. width:500px;
  352. left:50%;
  353. top:20px;
  354. }
  355.  
  356. .textbuttons ul{
  357. list-style:none;
  358. position:relative;
  359. }
  360. .textbuttons li {
  361. list-style:None;
  362. float: right;
  363. }
  364. .textbuttons li:first-child {
  365. margin-left:12px;
  366. }
  367.  
  368. .textnote{
  369. position:absolute;
  370. margin-left:0px;
  371. bottom:10px;
  372. font-weight:700;
  373. font-family:arial;
  374. }
  375. .textnote a{
  376. font-size:11px;
  377. color:#a3a3a3;
  378. }
  379.  
  380. .caption{
  381. width:90%;
  382. padding:5%;
  383. background:{color:post background};
  384. margin-top:-3px;
  385. }
  386.  
  387. .chat li {
  388. list-style-type:none;
  389. margin-left:-40px;
  390. padding:5px;
  391. border-bottom:2px solid #dddddd;
  392. }
  393. .label{
  394. font-weight:600;
  395. }
  396.  
  397. {CustomCSS}
  398. </style>
  399.  
  400. <title>{title}</title>
  401.  
  402. <link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
  403.  
  404. </head>
  405. <body>
  406.  
  407. <div id="header">
  408. <div class="nav">
  409. <a href="/">{text:home}</a>
  410. <a href="/ask">{text:message}</a>
  411. <a href="/archive">{text:archive}</a>
  412. {block:HasPages}{block:Pages}<a href="{URL}"><span class="speclink">{Label}</span></a> {/block:Pages}{/block:HasPages}
  413. <a href="http://atlasdesigns.co/">Theme</a>
  414. </div>
  415. {block:ifnotbanner}
  416. <span class="blogtitle">{Title}</span>
  417. {/block:ifnotbanner}
  418. {block:ifbanner}
  419. <span class="banner"><img src="{image:banner}" alt="{title}" height="100"></span>
  420. {/block:ifbanner}
  421. <span class="description"><br>{Description}</span>
  422. </div>
  423.  
  424.  
  425. <div id="content">
  426. {block:Posts}
  427. <div class="entry">
  428.  
  429. {block:Text}
  430. <div class="answer">{block:Title}<span class="title">{Title}</span>{/block:Title}{Body}
  431. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  432. <ul class="textbuttons">
  433. <li>{ReblogButton color="gray" size=15}</li>
  434. <li>{LikeButton color="gray" size=15}</li>
  435. </ul><br>
  436. {/block:IndexPage}
  437. </div>
  438. {/block:Text}
  439.  
  440. {block:Link}
  441. <div class="answer"><a href="{URL}"><span class="title">{Name}</span></a>
  442. {block:Description}{Description}{/block:Description}
  443. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  444. <ul class="textbuttons">
  445. <li>{ReblogButton color="gray" size=15}</li>
  446. <li>{LikeButton color="gray" size=15}</li>
  447. </ul><br>
  448. {/block:IndexPage}
  449. </div>
  450. {block:Link}
  451.  
  452. {block:Photo}
  453. {block:IndexPage}{LinkOpenTag}<div class="photo"><a href="{permalink}"><img src="{PhotoURL-500}" alt="{PhotoAlt}" width=100%/></a></div>{LinkCloseTag}
  454. <div class="reperma">
  455. <a href="{ReblogURL}" target="_blank"><img src="http://static.tumblr.com/qqwi01i/7IDmlddc5/refresh-32.png"></a>
  456. <a href="{Permalink}" target="_blank"><img src="http://static.tumblr.com/qqwi01i/d1nmlddfq/link-2-32.png"></a>
  457. <div class="my-like" data-reblog="{ReblogURL}" data-id="{PostID}"></div>
  458. </div>
  459. {/block:IndexPage}{block:PermalinkPage}{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"width=100%/>{LinkCloseTag}{/block:PermalinkPage}
  460. {/block:Photo}
  461.  
  462. {block:Photoset}
  463. <center>
  464. {block:IndexPage}{Photoset-250}{/block:IndexPage}
  465. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  466. </center>
  467. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  468. <ul class="textbuttons">
  469. <li>{ReblogButton color="gray" size=15}</li>
  470. <li>{LikeButton color="gray" size=15}</li>
  471. </ul><br>
  472. {/block:IndexPage}
  473. {/block:Photoset}
  474.  
  475. {block:Quote}
  476. <div class="answer"><div class="title">{Quote}</div>- {Source}
  477. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  478. <ul class="textbuttons">
  479. <li>{ReblogButton color="gray" size=15}</li>
  480. <li>{LikeButton color="gray" size=15}</li>
  481. </ul><br>
  482. {/block:IndexPage}
  483. </div>
  484. {/block:Quote}
  485.  
  486. {block:Chat}
  487. <div class="answer">
  488. <div style="margin-left:3px;">
  489. {block:Title}<span class="title">{Title}</span>{/block:Title}
  490. <ul class="chat">
  491. {block:Lines}
  492. <li class="user_{UserNumber}">
  493. {block:Label}
  494. <span class="label">{Label}</span>
  495. {/block:Label}
  496. {Line}
  497. </li>
  498. {/block:Lines}
  499. </ul>
  500. </div>
  501. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  502. <ul class="textbuttons">
  503. <li>{ReblogButton color="gray" size=15}</li>
  504. <li>{LikeButton color="gray" size=15}</li>
  505. </ul><br>
  506. {/block:IndexPage}
  507. </div>
  508. {/block:Chat}
  509.  
  510. {block:Audio}
  511. {block:AlbumArt}
  512. <center><a href="{Permalink}"><img src="{AlbumArtURL}" width="100%"></a></center>
  513. {/block:AlbumArt}
  514. <div class="play">{AudioPlayerWhite}</div>
  515. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  516. {/block:IndexPage}
  517. {/block:Audio}
  518.  
  519. {block:Answer}
  520. <div class="answer"><div style="font-size:11px;line-height:11px;font-style:italic;color:{color:links}"><i>{Asker} asked:</i></div><br><span class="title">{Question}</span><hr color={color:title}>{Answer}
  521. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  522. <ul class="textbuttons">
  523. <li>{ReblogButton color="gray" size=15}</li>
  524. <li>{LikeButton color="gray" size=15}</li>
  525. </ul><br>
  526. {/block:IndexPage}
  527. </div>
  528. {/block:Answer}
  529.  
  530. {block:Video}
  531. {block:IndexPage}
  532. <center>
  533. {Video-250}</center>
  534. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  535. <ul class="textbuttons">
  536. <li>{ReblogButton color="gray" size=15}</li>
  537. <li>{LikeButton color="gray" size=15}</li>
  538. </ul><br>
  539. {/block:IndexPage}
  540. {/block:IndexPage}
  541. {block:PermalinkPage}
  542. <center>
  543. {Video-500}</center>
  544. {/block:PermalinkPage}
  545. {block:Video}
  546.  
  547. {block:PermalinkPage}
  548. <div class="permaside">
  549. {block:PostNotes}
  550. {block:Caption}{Caption}{/block:caption}
  551. <img src="http://static.tumblr.com/twte3d7/qg3lo2lcg/heart_fill_8x7.png"> {block:NoteCount}{NoteCountwithLabel}{/block:NoteCount}<br>
  552. <img src="http://static.tumblr.com/twte3d7/xn4lo2lba/clock_8x8.png"> {Timeago}<br>
  553. <div class="notess">{PostNotes}</div>{/block:PostNotes}
  554. </div>
  555. {/block:PermalinkPage}
  556.  
  557. </div>
  558.  
  559. {/block:Posts}
  560.  
  561. {block:IndexPage}
  562. {block:Pagination}
  563. <div id="pagination">
  564. {block:NextPage}
  565. <a id="nextPage" href="{NextPage}"></a>
  566. {/block:NextPage}
  567. {block:PreviousPage}
  568. <a href="{PreviousPage}"></a>
  569. {/block:PreviousPage}
  570. </div>
  571. {/block:Pagination}
  572. {/block:IndexPage}
  573. </div>
  574.  
  575. <div style="position:absolute;z-index:99999999999999999999999999999999999; !important;top:24px;right:3px;-webkit-filter:invert(100%);"><a href="http://atlasdesigns`.tumblr.com/"><img src="http://static.tumblr.com/2w7y46r/wuvmba8c2/installtheme.png"></a></div>
  576.  
  577. <script>
  578. window.onload = function () {
  579. document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame" style="display:none;"></iframe>' );
  580. document.addEventListener( 'click', function ( event ) {
  581. var myLikeLink = event.target;
  582. if( myLikeLink.className.indexOf( 'my-like' ) > -1 ) {
  583. var myLikeFrame = document.getElementById( 'my-like-frame' ),
  584. liked = ( myLikeLink.className == 'my-liked' ),
  585. command = liked ? 'unlike' : 'like',
  586. reblog = myLikeLink.getAttribute( 'data-reblog' ),
  587. postId = myLikeLink.getAttribute( 'data-id' ),
  588. oauth = reblog.slice( -8 ),
  589. likeUrl = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + postId;
  590. myLikeFrame.src = likeUrl;
  591. liked ? myLikeLink.className = 'my-like'
  592. : myLikeLink.className = 'my-liked';
  593. };
  594. }, false );
  595. };
  596. </script>
  597.  
  598. </body>
  599. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement