Advertisement
ogaraster

Silk Theme

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