calliearambulo

Pillow Themes' Base Code

May 23rd, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.28 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!---
  4. ___ ___ _ _ _____ __ _____ _ _ ___ __ __ ___ ___
  5. | _ \_ _| | | | / _ \ \ / / |_ _| || | __| \/ | __/ __|
  6. | _/| || |__| |_| (_) \ \/\/ / | | | __ | _|| |\/| | _|\__ \
  7. |_| |___|____|____\___/ \_/\_/ |_| |_||_|___|_| |_|___|___/
  8.  
  9. BY CARA
  10.  
  11. Rules:
  12. 1. Do not steal snippets or all of my codes.
  13. 2. Do not claim theme as yours.
  14. 3. Do not remove the credit.
  15. -->
  16.  
  17. <head>
  18. <title>{Title}</title>
  19.  
  20. <link rel="shortcut icon" href="{FavIcon}" />
  21. <link rel="alternate" type="application/rss+xml" href="{RSS}" />
  22. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  23. <link href="https://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css"/>
  24. <link rel="stylesheet" href="https://static.tumblr.com/vowb075/m9vpc1yxe/animate.min.css">
  25.  
  26. <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">
  27.  
  28. <!--- START META TAGS --->
  29. <meta name="color:Background" content="#fbfbfb"/>
  30. <meta name="color:Text" content="#000000"/>
  31. <meta name="color:Accent" content="#ace0f9"/>
  32. <meta name="color:Border" content="#eeeeee"/>
  33.  
  34. <meta name="if:infinite scroll" content="1"/>
  35.  
  36. <meta name="text:link 1 name" content=""/>
  37. <meta name="text:link 1 url" content=""/>
  38.  
  39. <meta name="text:link 2 name" content=""/>
  40. <meta name="text:link 2 url" content=""/>
  41.  
  42. <meta name="text:link 3 name" content=""/>
  43. <meta name="text:link 3 url" content=""/>
  44. <!-- END OF META TAGS -->
  45.  
  46. </head>
  47. <style type="text/css">
  48.  
  49. /* SCROLLBAR */
  50. ::-webkit-scrollbar {
  51. width:12px;
  52. }
  53.  
  54. ::-webkit-scrollbar-track {
  55. background-color:#ffffff;
  56. }
  57.  
  58. ::-webkit-scrollbar-thumb {
  59. border-top:5px solid #fff;
  60. border-bottom:5px solid #fff;
  61. border-left:5px solid #fff;
  62. border-right:5px solid #fff;
  63. background-color:{color:accent};
  64. }
  65.  
  66. body {
  67. color:{color:text};
  68. background-color:{color:background};
  69. font-size:11px;
  70. font-family: 'Karla', sans-serif;
  71. line-height:1.5;
  72. }
  73.  
  74. a {
  75. text-decoration:none;
  76. color:{color:text};
  77. }
  78.  
  79. iframe, img, embed, object, video {
  80. max-width: 100%;
  81. }
  82.  
  83. blockquote {
  84. border-left:1.5px solid {color:accent};
  85. color:{color:text};
  86. margin-left:20px;
  87. padding-left:10px;
  88. }
  89.  
  90. /* DO NOT REMOVE MY CREDITS */
  91. #pillowthemes {
  92. right:20px;
  93. bottom:20px;
  94. position:fixed;
  95. background-image: linear-gradient(to right, #fff1eb 0%, #ace0f9 100%);
  96. width:30px;
  97. height:30px;
  98. border-radius:50%;
  99. }
  100. /* DO NOT REMOVE MY CREDITS */
  101.  
  102. #container {
  103. width:800px;
  104. height:auto;
  105. margin-top:100px;
  106. margin-right:auto;
  107. margin-left:auto;
  108. margin-bottom:100px;
  109. background-color:red;
  110. }
  111.  
  112. #content {
  113. width:500px;
  114. height:auto;
  115. float:right;
  116. }
  117.  
  118. /* Individual Posts */
  119. article {
  120. width:500px;
  121. background-color:#fff;
  122. border:1px solid {color:border};
  123. margin-bottom:50px;
  124. {block:PermalinkPage}
  125. width:500px;
  126. {/block:PermalinkPage}
  127. }
  128.  
  129. #sidebar {
  130. width:250px;
  131. height:50%;
  132. float:left;
  133. background-color:#fff;
  134. border:1px solid {color:border};
  135. position:fixed;
  136. }
  137.  
  138. {block:ifnotsidebarimage}
  139. #sidebarim {
  140. display:none;
  141. }
  142.  
  143. #sidebarim img {
  144. }
  145.  
  146. {/block:ifnotsidebarimage}
  147.  
  148. {block:ifsidebarimage}
  149. #sidebarim {
  150. width:64px;
  151. height:64px;
  152. /* ADD THIS margin:0 auto; if you want your image in the center */
  153. }
  154.  
  155. #sidebarim img {
  156. }
  157.  
  158. {/block:ifsidebarimage}
  159.  
  160. #blogt {
  161. font-size:20px;
  162. text-align:left;
  163. text-transform:uppercase;
  164. letter-spacing:1px;
  165. margin:10px 0px 10px 0px;
  166. color:{color:accent};
  167. }
  168.  
  169. #description {
  170. text-align:left;
  171. }
  172.  
  173. #links {
  174. margin-top:20px;
  175. text-align:left;
  176. }
  177.  
  178. #links a {
  179. margin:0px 7px 0px 0px;
  180. color:{color:text};
  181. }
  182.  
  183. /* PERMALINKS */
  184. #perma {
  185. text-align:center;
  186. text-transform:uppercase;
  187. background:{color:accent};
  188. padding:10px;
  189. position: relative;
  190. font-size:10px;
  191. {block:PermalinkPage}
  192. display:none;
  193. {/block:PermalinkPage}
  194. }
  195.  
  196. #perma a {
  197. margin:15px;
  198. color:{color:text};
  199. }
  200.  
  201. /* TAGS */
  202. .tags {
  203. padding:0px 10px 0px 20px;
  204. display:inline;
  205. }
  206.  
  207. /* TEXT POSTS */
  208. .ptitle {
  209. font-size:16px;
  210. text-transform:uppercase;
  211. margin:10px 0px 0px 10px;
  212. }
  213.  
  214. .pbody {
  215. padding:0px 10px 5px 10px;
  216. }
  217.  
  218. /* QUOTE POSTS */
  219. .quo {
  220. padding:10px;
  221. font-style:italic;
  222. }
  223.  
  224. .source {
  225. margin:0px 10px 10px 10px;
  226. }
  227.  
  228. /* ASK POSTS */
  229. .as {
  230. margin:10px;
  231. text-transform:uppercase;
  232. font-size:16px;
  233. color:{color:accent};
  234. }
  235.  
  236. .q {
  237. padding:0px 10px 15px 10px;
  238. border-bottom:1.5px solid {color:accent};
  239. font-style:italic;
  240. }
  241.  
  242. .ans {
  243. padding:0px 10px 5px 10px;
  244. }
  245.  
  246. /* AUDIO POSTS */
  247. .albumart {
  248. width:250px;
  249. height:250px;
  250. }
  251.  
  252. .aplayer {
  253. width:250px;
  254. }
  255.  
  256. .acaption {
  257. padding:5px 10px 10px 10px;
  258. }
  259.  
  260. .tumblr_audio_player {
  261. height: 30px;
  262. width: 270px;
  263. }
  264.  
  265. /* POST CAPTION */
  266. .caption {
  267. padding:0px 10px 0px 20px;
  268. }
  269.  
  270. /* CREDITS TO TUMBLR DOCS */
  271. ol.notes {
  272. padding: 0px;
  273. margin: 25px 0px;
  274. list-style-type: none;
  275. border-bottom: solid 1px {color:accent};
  276. }
  277.  
  278. ol.notes li.note {
  279. border-top: solid 1px {color:accent};
  280. padding: 10px;
  281. }
  282.  
  283. ol.notes li.note img.avatar {
  284. vertical-align: -4px;
  285. margin-right: 10px;
  286. width: 16px;
  287. height: 16px;
  288. }
  289.  
  290. ol.notes li.note span.action {
  291. font-weight: bold;
  292. }
  293.  
  294. ol.notes li.note .answer_content {
  295. font-weight: normal;
  296. }
  297.  
  298. ol.notes li.note blockquote {
  299. border-color: #eee;
  300. padding: 4px 10px;
  301. margin: 10px 0px 0px 25px;
  302. }
  303.  
  304. ol.notes li.note blockquote a {
  305. text-decoration: none;
  306. }
  307. /* CREDITS TO TUMBLR DOCS */
  308.  
  309. /* INFINITE SCROLL */
  310. {block:ifnotinfinitescroll}
  311. .pagi {
  312. text-align:left;
  313. margin-top:10px;
  314. }
  315. {/block:ifnotinfinitescroll}
  316.  
  317. {block:ifinfinitescroll}
  318. .pagi {
  319. display:none;
  320. }
  321. {/block:ifinfinitescroll}
  322.  
  323. /* TUMBLR CONTROLS */
  324. .tmblr-iframe {
  325. position:fixed!important;
  326. top:0;
  327. right:0;
  328. z-index:999999!important;
  329. -webkit-transform:scale(0.8,0.8);
  330. -webkit-transform-origin: 100% 0%;
  331. -ms-transform-origin:100% 0%;
  332. -ms-transform:scale(0.8,0.8);
  333. transform:scale(0.8,0.8);
  334. transform-origin:100% 0%;
  335. }
  336.  
  337. </style>
  338. <body>
  339.  
  340. <div id="container">
  341. <div id="sidebar">
  342. hello
  343. </div>
  344.  
  345. <div id="content">
  346. {block:Posts}
  347. <article>
  348.  
  349. {block:Photo}
  350. <div class="photo">
  351. {LinkOpenTag}<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" />{LinkCloseTag}
  352. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  353. {/block:Photo}
  354.  
  355. {block:Photoset}
  356. <div class="photoset">
  357. {block:IndexPage}
  358. <!-- CHANGE PHOTOSET-250 TO PHOTOSET-500 IF YOUR POST SIZE IS 500 -->
  359. {Photoset-250}
  360. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  361. {/block:IndexPage}
  362. {block:PermalinkPage}
  363. <!-- CHANGE PHOTOSET-250 TO PHOTOSET-500 IF YOUR POST SIZE IS 500 -->
  364. {Photoset-250}
  365. {/block:PermalinkPage}
  366. {/block:Photoset}
  367.  
  368. {block:Text}
  369. <div id="post text">
  370. {block:Title}<div class="ptitle"><a href="{Permalink}">{Title}</a></div>{/block:Title}
  371. <div class="pbody">{Body}</div>
  372. {/block:Text}
  373.  
  374. {block:Link}
  375. <div class="link">
  376. <a href="{URL}">{Name}</a>
  377. {block:Description}{Description}{/block:Description}
  378. {/block:Link}
  379.  
  380. {block:Quote}
  381. <div class="quote">
  382. <div class="quo">“{Quote}”</div>
  383. {block:Source}<div class="source">—&nbsp;&nbsp;{Source}</div>{/block:Source}
  384. {/block:Quote}
  385.  
  386. {block:Chat}
  387. <div class="chat">
  388. <ul>
  389. {block:Lines}
  390. {block:Label}<b>{Label}</b>{/block:Label} {Line}<br>
  391. {/block:Lines}
  392. </ul>
  393. {/block:Chat}
  394.  
  395. {block:Audio}
  396. {block:AlbumArt}<img class="albumart" src="{AlbumArtURL}">{/block:AlbumArt}
  397. {block:AudioPlayer}<div class="aplayer">{AudioPlayer}</div>{/block:AudioPlayer}
  398. <!-- CHANGE AUDIO-250 TO AUDIO-500 IF YOUR POST SIZE IS 500 -->
  399. {block:AudioEmbed}{AudioEmbed-250}{/block:AudioEmbed}
  400. {block:IndexPage}<div class="acaption">{block:TrackName}Track: {TrackName}<br>{/block:TrackName}
  401. {block:Artist}Artist: {Artist}<br>{/block:Artist}
  402. {block:PlayCount}Played: {PlayCount}{/block:PlayCount}</div>
  403. {/block:IndexPage}
  404. {block:PermalinkPage}
  405. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  406. {/block:PermalinkPage}
  407. {/block:Audio}
  408.  
  409. {block:Video}
  410. <div id="post video">
  411. <!-- CHANGE VIDEO-250 TO VIDEO-500 IF YOUR POST SIZE IS 500 -->
  412. {Video-250}
  413. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  414. </div>
  415. {/block:Video}
  416.  
  417. {block:Answer}
  418. <div class="as">{Asker} asked:</div>
  419. <div class="q">{Question}</div>
  420. <div class="ans">{Answer}</div>
  421. {/block:Answer}
  422.  
  423. {block:IndexPage}
  424. <div id="perma">
  425. <a href="{Permalink}" title="{NoteCountWithLabel}">{Month} {DayofMonthwithZero}, {Year}</a><a href="{ReblogURL}">reblog</a>
  426. </div>
  427. {/block:IndexPage}
  428.  
  429. {block:PermalinkPage}
  430. {block:HasTags}{block:Tags}<div class="tags"><a href="{TagURL}"> #{Tag} </a></div>{/block:Tags}{/block:HasTags}
  431. {block:PostNotes}{PostNotes}{/block:PostNotes}
  432. {/block:PermalinkPage}
  433.  
  434. </article>
  435. {/block:Posts}
  436. </div>
  437. </div>
  438.  
  439. <!--- DO NOT TOUCH THIS PART --->
  440. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
  441. <script src="https://static.tumblr.com/wgijwsy/Ebfm2v4gy/jquery.masonry.min.js"></script>
  442. {block:IfInfiniteScroll}
  443. <script src="https://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  444. <script src="https://static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
  445. {/block:IfInfiniteScroll}
  446.  
  447. <script>
  448. (function() {
  449. var $tumblelog = $('#content');
  450. {block:IfInfiniteScroll}
  451. $tumblelog.infinitescroll({
  452. navSelector : ".pagination",
  453. nextSelector : ".pagination a:first",
  454. itemSelector : "article",
  455. bufferPx : 50,
  456. done : "",
  457. loading: {
  458. img : "",
  459. msgText: ""
  460. },
  461. },
  462. function( newElements ) {
  463. var $newElems = $( newElements ).css({ opacity: 0 });
  464. $newElems.imagesLoaded(function(){
  465. $newElems.animate({ opacity: 1 });
  466. $tumblelog.masonry( 'appended', $newElems);
  467. });
  468. }
  469. );
  470. {/block:IfInfiniteScroll}
  471. $tumblelog.imagesLoaded( function(){
  472. $tumblelog.masonry({
  473. columnWidth: function( containerWidth ) {
  474. return containerWidth / 100;
  475. }
  476. });
  477. });
  478. })();
  479. </script>
  480. <!--- DO NOT TOUCH THIS PART --->
  481.  
  482.  
  483. <!-- DO NOT REMOVE MY CREDITS -->
  484. <a href="https://pillowthemes.tumblr.com/"><div id="pillowthemes"></div></a>
  485. <!-- DO NOT REMOVE MY CREDITS -->
  486.  
  487. </body>
  488. </html>
Add Comment
Please, Sign In to add comment