Advertisement
Guest User

base code II by nathesykes

a guest
Jul 31st, 2013
1,422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.23 KB | None | 0 0
  1. <!-- * BASE CODE BY NATHESYKES *-->
  2.  
  3.  
  4.  
  5. <script type="text/javascript"
  6. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  7.  
  8.  
  9. <!-- COLORS -->
  10. <meta name="color:background" content="#f7f7f7"/>
  11. <meta name="color:link" content="#c2bebe">
  12. <meta name="color:text" content="#777"/>
  13. <meta name="color:title" content="#fd8585"/>
  14. <meta name="color:hover" content="#a3a3a0"/>
  15. <meta name="color:border" content="#e4e4e4">
  16. <meta name="color:sidebg" content="#3c3b3b">
  17.  
  18.  
  19. <!--SIDEBAR AND BACKGROUND IMAGES-->
  20. <meta name="image:sidebar" content="1"/>
  21. <meta name="image:background" content="1"/>
  22.  
  23. <!--IF YOU DON'T WANT A TITLE REMOVE THE FIRST META-->
  24. <meta name="text:sidetitle" content="" />
  25. <meta name="text:Link1" content="/" />
  26. <meta name="text:Link1 Title" content="" />
  27. <meta name="text:Link2" content="/" />
  28. <meta name="text:Link2 Title" content="" />
  29. <meta name="text:Link3" content="/" />
  30. <meta name="text:Link3 Title" content="" />
  31.  
  32.  
  33. <style type="text/css">
  34.  
  35.  
  36. ::-webkit-scrollbar {width: 9px; height: 3px; background: #FFFFFF;}
  37.  
  38. ::-webkit-scrollbar-thumb {background-color:{color:background} ; border: 0px solid #f8f8f8;}
  39.  
  40.  
  41.  
  42.  
  43. iframe#tumblr_controls {right:2px !important; position: fixed !important;-webkit-transition: opacity 0.7s linear;opacity: 0.05;-webkit-transition: all 0.8s ease-out;-moz-
  44.  
  45. transition: all 0.8s ease-out;transition: all 0.8s ease-out;}
  46.  
  47. iframe#tumblr_controls:hover{-webkit-transition: opacity 0.7s linear;opacity: 0.8;-webkit-transition: all 0.4s ease-out;-moz-transition: all 0.4s ease-out;transition: all 0.4s ease-out;}
  48.  
  49. p {
  50. margin:0px;
  51. margin-top:0px;
  52. }
  53.  
  54.  
  55. body {
  56. padding:10px;
  57. margin: 1px;
  58. color:{color:text};
  59. font-family: new york;
  60. line-height:10px;
  61. font-size:10px;
  62. background-color: {color:Background};
  63. background-image:url({image:Background});
  64. background-attachment: fixed;
  65. background-repeat: repeat;
  66. }
  67.  
  68.  
  69.  
  70.  
  71.  
  72. a:link, a:active, a:visited{
  73. text-decoration: none;
  74. -webkit-transition: color 0.3s ease-out;
  75. -moz-transition: color 0.3s ease-out;
  76. transition: color 0.3s ease-out;
  77. color:{color:link};
  78. }
  79.  
  80. a:hover {
  81. text-decoration: none;
  82. font-style:;
  83. color: {color:Hover};
  84. }
  85.  
  86. /* DON'T MAKE THE WIDTH NUMBER TOO BIG OR ELSE YOU'LL HAVE A HORIZONTAL SCROLLBAR */
  87.  
  88. div#center{
  89. margin:auto;
  90. position:relative;
  91. width:1340px;
  92. overflow:auto;
  93. overflow-y:hidden;
  94. }
  95.  
  96.  
  97. /* EDIT ENTRY SETTINGS HERE */
  98.  
  99. .entry {
  100. padding:5px;
  101. padding-bottom:4px;
  102. border-radius:2px;
  103. border:1px solid {color:border};
  104. float:left;
  105. margin:2px;
  106. overflow:hidden;
  107. width:270px; /*MAKE IT SMALLER FOR MORE COLUMNS AND BIGGER FOR LESS*/
  108. {block:PermalinkPage}
  109. width:450px;
  110. text-align:left;
  111. line-height:10px;
  112. {/block:PermalinkPage}
  113. background:white;
  114. }
  115.  
  116.  
  117.  
  118. /*EDIT POSTS HERE*/
  119.  
  120. #posts {
  121. width:1000px;
  122. margin-top:50px;
  123. margin-left:320px;
  124. right:auto;
  125. background:transparent;
  126. margin-right:auto;
  127. overflow-y: hidden;
  128. position:inherit;
  129. }
  130.  
  131.  
  132. /*EDIT SIDEBAR HERE*/
  133.  
  134.  
  135. #sidebar {
  136. z-index:99999;
  137. margin-left:0px;
  138. margin-top:0px;
  139. position:fixed;
  140. background:transparent;
  141. }
  142.  
  143. #sidebar img {
  144. position:fixed;
  145. width:150px;
  146. height:150px;
  147. margin-top:200px;
  148. margin-left:80px;
  149. border:1px solid {color:border};
  150. background: white;
  151. padding:3px;
  152. opacity:1;
  153. -moz-transition-duration:1s;
  154. -webkit-transition-duration:1s;
  155. -o-transition-duration:1s;
  156. }
  157.  
  158. #sidebar img:hover {
  159. position:center;
  160. border:1px solid {color:border};
  161. padding:3px;
  162. -moz-transition-duration:1s;
  163. -webkit-transition-duration:1s;
  164. -o-transition-duration:1s;
  165. }
  166.  
  167. /*EDIT SIDEBAR TITLE HERE NOTE: IF YOU DON'T WANT THE TITLE TO APPEAR DELETE THIS AND GO TO THE <BODY> TAG AND DELETE <div class="sidetitle">{text:sidetitle}</div> */
  168.  
  169. .sidetitle{
  170. width:500px;
  171. text-transform:none;
  172. font-size:15px;
  173. font-family:new york;
  174. font-style:italic;
  175. line-height:100%;
  176. text-align:center;
  177. height:auto;
  178. letter-spacing:0px;
  179. word-spacing:0px;
  180. margin-left:-90px;
  181. margin-top:180px;
  182. padding-bottom:10px;
  183. padding-right:5px;
  184. color:{color:title};
  185. position:fixed;
  186. -moz-transition-duration:1s;
  187. -webkit-transition-duration:1s;
  188. -o-transition-duration:1s;
  189. }
  190.  
  191.  
  192.  
  193. .links {
  194. z-index:2;
  195. font-family:new york;
  196. width:155px;
  197. font-size:10px;
  198. opacity:1;
  199. letter-spacing:1px;
  200. text-transform:lowercase;
  201. padding-top:5px;
  202. padding-bottom:7px;
  203. border-top:1px solid {color:border};
  204. border-bottom:1px solid {color:border};
  205. margin-top:370px;
  206. margin-left:80px;
  207. line-height: 0px;
  208. opacity:1;
  209. position:fixed;
  210. font-style:none;
  211. -moz-transition-duration:1s;
  212. -webkit-transition-duration:1s;
  213. -o-transition-duration:1s;
  214. }
  215.  
  216.  
  217.  
  218. .links a{
  219. height:5px;
  220. padding:2px;
  221. float:center;
  222. margin-left:1px;
  223. color:{color:link};
  224. letter-spacing:0px;
  225. text-decoration:none;
  226. -moz-transition-duration:1s;
  227. -webkit-transition-duration:1s;
  228. -o-transition-duration:1s;
  229. }
  230.  
  231. .links a:hover{
  232. text-shadow:1px 2px 3px #ffffff;
  233. color:{color:title};
  234. -moz-transition-duration:1s;
  235. -webkit-transition-duration:1s;
  236. -o-transition-duration:1s;
  237. }
  238.  
  239. .desc {
  240. position:fixed;
  241. padding-top:0px;
  242. padding-bottom:5px;
  243. margin-top:390px;
  244. margin-left:80px;
  245. text-align:justify;
  246. font-size:11px;
  247. font-family:new york;
  248. width:155px;
  249. height:auto;
  250. color:{color:text};
  251. letter-spacing:0px;
  252. line-height:100%;
  253. background-color:transparent;
  254. opacity:1;
  255. text-transform:none;
  256. -moz-transition-duration:0.7s;
  257. -webkit-transition-duration:0.7s;
  258. -o-transition-duration:0.7s;
  259. }
  260.  
  261. .desc a{
  262. color:{color:text};
  263. }
  264.  
  265.  
  266. /*CUSTOMIZE TITLE OF ENTRIES HERE*/
  267. .title{
  268. line-height: 12px;
  269. color:{color:Title};
  270. font-weight: normal;
  271. }
  272.  
  273.  
  274. /*EDIT PERMALINK OF POSTS AND STUFF HERE*/
  275.  
  276. .permalink {
  277. color:black;
  278. font-size:12px;
  279. opacity: 0;
  280. width:265px;
  281. height:15px;
  282. padding-bottom:0px;
  283. padding-left:5px;
  284. padding-top:5px;
  285. background-color: #fff;
  286. position: absolute;
  287. top:10px;
  288. text-align:center;
  289. text-transform:uppercase;
  290. font-family:calibri;
  291. letter-spacing:0px;
  292. line-height:12px;
  293. border-top:1px solid {color:border};
  294. border-bottom:1px solid {color:border};
  295. display:block;
  296. -webkit-transition-duration: .75s;
  297. }
  298.  
  299. .entry:hover .permalink {
  300. position: absolute;
  301. width:265px;
  302. opacity:1;
  303. z-index:99;
  304. padding-top:5px;
  305. padding-bottom:0px;
  306. -moz-transition-duration:0.7s;
  307. -webkit-transition-duration:0.7s;
  308. -o-transition-duration:0.7s;
  309. }
  310.  
  311.  
  312.  
  313.  
  314. /* SCROLLBAR */
  315.  
  316. #infscr-loading{
  317. bottom: -70px;
  318. position: absolute;
  319. left: 50%;
  320. margin-left:-8px;
  321. width:16px;
  322. height:11px;
  323. overflow:hidden;
  324. margin-bottom: 50px;
  325. }
  326.  
  327. /* BLOCKQUOTES AND STUFF */
  328.  
  329. #postnotes{
  330. text-align: justify;}
  331.  
  332. #postnotes blockquote{
  333. border: 1px;}
  334.  
  335. blockquote{
  336. padding:0px 0px 2px 5px;
  337. margin:0px 0px 2px 5px;
  338. border-left: 1px solid {color:border};
  339. }
  340.  
  341. blockquote p, ul{
  342. margin:0px;
  343. padding:0px;
  344. }
  345.  
  346. a img{border: 0px;}
  347.  
  348.  
  349. ul, ol, li{list-style:none; margin:0px; padding:0px;}
  350.  
  351. .user_1 .label, .user_2 .label, .user_3 .label, .user_4 .label, .user_5 .label, .user_6 .label,
  352. .user_7 .label, .user_8 .label, .user_9 .label {color:{color:text};}
  353.  
  354. .notes img{width:10px; position:relative; top:3px;}
  355. <--ses-->
  356. small{font-size: 90%;}
  357.  
  358. /* --- EDIT CREDIT HERE ---*/
  359.  
  360. #credit{
  361. font-size: 10px;
  362. font-style:none;
  363. letter-spacing: 0px;
  364. float: center;
  365. position: fixed;
  366. bottom: 10px;
  367. right: 10px;
  368. text-transform:none;
  369. font-family:new york;
  370. -moz-transition-duration:0.7s;
  371. -webkit-transition-duration:0.7s;
  372. -o-transition-duration:0.7s;
  373. }
  374.  
  375. #credit a{
  376. color: #fff;
  377. background:{color:border};
  378. padding:5px;
  379. -moz-transition-duration:0.7s;
  380. -webkit-transition-duration:0.7s;
  381. -o-transition-duration:0.7s;
  382. }
  383.  
  384. #credit a:hover{
  385. color:{color:border};
  386. background:{color:background};
  387. -moz-transition-duration:0.7s;
  388. -webkit-transition-duration:0.7s;
  389. -o-transition-duration:0.7s;
  390. }
  391.  
  392. {CustomCSS}
  393.  
  394. </style>
  395.  
  396. <!-- INFINITE SCROLL THING -->
  397.  
  398. {block:IndexPage}
  399. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  400. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  401.  
  402. <script type="text/javascript">
  403. $(window).load(function(){
  404. var $wall = $('#posts');
  405. $wall.imagesLoaded(function(){
  406. $wall.masonry({
  407. itemSelector: '.entry, .entry_photo',
  408. isAnimated : false
  409. });
  410. });
  411.  
  412. $wall.infinitescroll({
  413. navSelector : '#pagination',
  414. nextSelector : '#pagination a',
  415. itemSelector : '.entry, .entry_photo',
  416. bufferPx : 2000,
  417. debug : false,
  418. errorCallback: function() {
  419. $('#infscr-loading').fadeOut('normal');
  420. }},
  421. function( newElements ) {
  422. var $newElems = $( newElements );
  423. $newElems.hide();
  424. $newElems.imagesLoaded(function(){
  425. $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
  426. });
  427. }); $('#posts').show(500);
  428. });
  429. </script>
  430.  
  431.  
  432. {/block:IndexPage}
  433.  
  434.  
  435. <title>{title}</title>
  436.  
  437. <link rel="shortcut icon" href="{Favicon}" />
  438. <meta name="viewport" content="width=820" />
  439.  
  440.  
  441.  
  442. </head>
  443.  
  444. <body>
  445. <BODY onselectstart="return false;" ondragstart="return false;">
  446. <div class="wrapper">
  447. <div class="header">
  448. </div>
  449. <div id="cage">
  450. <div id="center">
  451.  
  452. <!--SIDEBAR STUFF--> <!--REMOVE <div class="sidetitle">{text:sidetitle}</div> IF YOU DON'T WANT A TITLE-->
  453.  
  454. <div id="sidebar"><div class="sidetitle">{text:sidetitle}</div>
  455. <center>
  456. <a href="/"><img src="{image:sidebar}" width=10%></a>
  457. <div class="links">
  458. <a href="/">home</a>
  459. <a href="/ask">msg</a>
  460. {block:ifLink1}<a href="{text:Link1}">{text:Link1 Title}</a>{/block:ifLink1}
  461. {block:ifLink2}<a href="{text:Link2}">{text:Link2 Title}</a>{/block:ifLink2}
  462. {block:ifLink3}<a href="{text:Link3}">{text:Link3 Title}</a>{/block:ifLink2}
  463. </div>
  464. <div class="desc">
  465. {Description}
  466. </center>
  467. </div>
  468.  
  469. <div class="left">
  470. <div id="posts">
  471. {block:Posts}
  472. <div class="entry">
  473.  
  474. {block:Text}{block:Title}<span class="title">{Title}</span>{/block:Title}<span class="body">{Body}</span><p align=right>
  475. <!--EDIT THE PERMALINK STUFF ON TEXT POSTS-->
  476. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes - </a><a href="{ReblogURL}" target="_blank"> reblog </a>
  477. {/block:Text}
  478.  
  479. {block:Link}<a href="{URL}" class="title">{Name}</a>{block:Description}<div class="body">{Description}</div>{/block:Description} <p align=right><span
  480. class="permalink"><a href="{Permalink}"><a href="{Permalink}"></a> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth}</a><a href="{Permalink}">{NoteCount} notes {notecountwithlabel}</a> <a href="{Permalink}"></span></align>{block:Link}
  481.  
  482.  
  483. <!--EDIT THE PERMALINK STUFF ON PHOTOS-->
  484. {block:Photo}
  485. {block:IndexPage}
  486. <center>
  487. <div class="permalink">
  488. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes </a><a href="{ReblogURL}" target="_blank"> - reblog </a> </div>
  489. <div class="photo"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="100%"/></a></div>
  490. {/block:IndexPage}
  491. {block:PermalinkPage}
  492. {LinkOpenTag}<div class="photo"><a href="{permalink}"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="100%"/></a></div>
  493.  
  494. {LinkCloseTag}
  495. {/block:PermalinkPage}
  496. {/block:Photo}
  497. {block:Photoset}
  498. {block:IndexPage}
  499. <center>
  500. <!--EDIT THE PERMALINK STUFF ON PHOTOSETS-->
  501. <div class="permalink">
  502. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes -</a><a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  503. {Photoset-250}</center>
  504. {/block:IndexPage}
  505. {block:PermalinkPage}
  506. <center>
  507. {/block:PermalinkPage}
  508. {/block:Photoset}
  509.  
  510. {block:Quote}<span class="title">"{Quote}"</span> — {block:Source}<b>{Source}</b>{/block:Source}<br><p align=right>
  511. <!--EDIT THE PERMALINK STUFF ON QUOTES-->
  512. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes-</a><a href="{ReblogURL}" target="_blank"> reblog </a> <a
  513. </span>{/block:Quote}
  514.  
  515. {block:Chat}{block:Title}<span class="title">{Title}</span>{/block:Title}
  516. <ul class="chat">
  517. {block:Lines}
  518. <li class="user_{UserNumber}">
  519. {block:Label}
  520. <span class="label">{Label}</span>
  521. <div class="permalink">
  522. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes - </a><a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  523. {/block:Label}
  524.  
  525. {Line}
  526. </li>
  527. {/block:Lines}
  528. <!--EDIT THE PERMALINK STUFF ON CHATS-->
  529. <div class="permalink">
  530. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes -</a><a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  531. {/block:Chat}
  532.  
  533. {block:Audio}
  534. <div style="width:200px; height:30px;">
  535. {AudioPlayerBlack}
  536. </div>
  537. <!--EDIT THE PERMALINK STUFF ON AUDIO POSTS-->
  538. <div class="permalink">
  539. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes -</a><a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  540. {/block:Audio}
  541.  
  542. {block:Video}
  543. {block:IndexPage}
  544. <center>
  545. <!--EDIT THE PERMALINK STUFF ON VIDEO POSTS-->
  546. <div class="permalink">
  547. <a href="{Permalink}"> <a href="{Permalink}">{DayOfMonthWithZero} {ShortMonth} - </a><a href="{Permalink}">{NoteCount} notes -</a><a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  548. {Video-250}</center>
  549. {/block:IndexPage}
  550. {block:PermalinkPage}
  551. <center>
  552. {Video-400}</center>
  553. {/block:PermalinkPage}
  554. {block:Video}
  555.  
  556. <!--EDIT QUESTIONS AND ANSWERS ONLY HERE-->
  557. {block:Answer}
  558. <img src="{AskerPortraitURL-30}" align="left" style="margin-right:3px; border: 1px solid {color:border};"/>
  559. <div style="font-family:new york; font-size:20px; margin-top:5px; font-style:none;"> <b>{Asker} </div> <div style="font-family:new york; font-style:italic">- {Question}</b> </div>
  560. <br>
  561. <div style="font-family:new york; text-transform:none;">{Answer} </div>
  562. {/block:Answer}
  563.  
  564.  
  565. {block:PostNotes}<div align="middle">{caption}</div>
  566. <center>
  567.  
  568. {block:NoteCount}{NoteCountWithLabel}<br>{/block:NoteCount}
  569.  
  570. {block:HasTags}
  571. tags: {block:Tags}<a href="{TagURL}">{Tag}. </a>{/block:Tags}<br> {/block:HasTags}
  572. {block:RebloggedFrom}
  573. reblogged from <a href="{ReblogParentURL}">{ReblogParentName}</a><br>
  574. posted by <a href="{ReblogRootURL}">{ReblogRootName}</a>
  575.  
  576. {/block:RebloggedFrom}
  577. </center></span>
  578. <br>
  579. <div id="postnotes">{PostNotes}</div><br>
  580.  
  581. <center>{block:ContentSource}
  582. <br><a href="{SourceURL}">
  583. {lang:Source}:
  584. {block:SourceLogo}
  585. <img src="{BlackLogoURL}" width="{LogoWidth}"
  586. height="{LogoHeight}" alt="{SourceTitle}" />
  587. {/block:SourceLogo}
  588. {block:NoSourceLogo}
  589. {SourceLink}
  590. {/block:NoSourceLogo}
  591. </a>
  592. {/block:ContentSource}</center>
  593.  
  594. {/block:PostNotes}
  595. </div>
  596. {/block:Posts}
  597. </div></div>
  598.  
  599.  
  600.  
  601. {block:IndexPage}
  602. {block:Pagination}
  603. <div id="pagination">
  604. {block:NextPage}
  605. <a id="nextPage" href="{NextPage}"></a>
  606. {/block:NextPage}
  607. {block:PreviousPage}
  608. <a href="{PreviousPage}"></a>
  609. {/block:PreviousPage}
  610. </div>
  611. {/block:Pagination}
  612. {/block:IndexPage}
  613.  
  614. <div id="credit"> <a href="http://nathesykes.tumblr.com">base code credit</a></div>
  615.  
  616.  
  617. </body>
  618. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement