Advertisement
tanaxmercedes

Whimsy's Base Code

Aug 19th, 2018
5,325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.94 KB | None | 0 0
  1. <!--
  2.  
  3. Ⓒ𝙒𝙝𝙞𝙢𝙨𝙮𝙏𝙝𝙚𝙢𝙚𝙨
  4. designed and coded by @tanaboo
  5.  
  6. you do not have to keep the credit link or
  7. this text part of the code if you're using it as a base
  8. however, if you use it as a theme by itself
  9. or plan to make money off your themes,
  10. you must credit me
  11.  
  12. release date: 11.18.018
  13. last update: 01.19.019
  14.  
  15. -->
  16.  
  17. <!DOCTYPE html>
  18. <html>
  19. <head>
  20.  
  21.  
  22. <meta name="color:Background" content="#f6f6f6"/>
  23. <meta name="color:Text" content="#909090"/>
  24. <meta name="color:Link" content="#B49594"/>
  25. <meta name="color:Post BG" content="#ffffff"/>
  26. <meta name="color:Border" content="#e9e9e9"/>
  27. <meta name="color:Accent" content="#B49594">
  28. <meta name="color:Highlight" content="#B49594">
  29.  
  30. <meta name="image:Background" content=""/>
  31.  
  32. <meta name="if:Show Blog Title" content="1"/>
  33. <meta name="if:Show Description" content="1"/>
  34. <meta name="if:Show Links" content="1"/>
  35. <meta name="if:Show Tags" content="1"/>
  36. <meta name="if:Infinite Scroll" content="1"/>
  37. <meta name="if:Two Columns" content="1"/>
  38. <meta name="if:Three Columns" content="0"/>
  39. <meta name="if:Custom Link 1" content="1"/>
  40. <meta name="if:Custom Link 2" content="1"/>
  41. <meta name="if:Custom Link 3" content="1"/>
  42.  
  43. <meta name="text:Title Font Size" content="14px"/>
  44. <meta name="text:Font Size" content="10px"/>
  45. <meta name="text:Link 1 Title" content="one"/>
  46. <meta name="text:Link 1 url" content="/"/>
  47. <meta name="text:Link 2 Title" content="two"/>
  48. <meta name="text:Link 2 url" content="/"/>
  49. <meta name="text:Link 3 Title" content="three"/>
  50. <meta name="text:Link 3 url" content="/"/>
  51.  
  52. <meta name="select:Font" content="trebuchet ms">
  53. <meta name="select:Font" content="lucida console">
  54. <meta name="select:Font" content="times new roman">
  55. <meta name="select:Font" content="georgia">
  56. <meta name="select:Font" content="verdana">
  57. <meta name="select:Font" content="courier new">
  58. <meta name="select:Font" content="arial">
  59. <meta name="select:Font" content="calibri">
  60. <meta name="select:Font" content="consolas">
  61. <meta name="select:Font" content="ms gothic">
  62.  
  63. <meta name="select:Title Font" content="trebuchet ms">
  64. <meta name="select:Title Font" content="lucida console">
  65. <meta name="select:Title Font" content="times new roman">
  66. <meta name="select:Title Font" content="georgia">
  67. <meta name="select:Title Font" content="verdana">
  68. <meta name="select:Title Font" content="courier new">
  69. <meta name="select:Title Font" content="arial">
  70. <meta name="select:Title Font" content="calibri">
  71. <meta name="select:Title Font" content="consolas">
  72. <meta name="select:Title Font" content="ms gothic">
  73.  
  74. <meta name="select:Description Text Align" content="justify">
  75. <meta name="select:Description Text Align" content="center">
  76. <meta name="select:Description Text Align" content="left">
  77. <meta name="select:Description Text Align" content="right">
  78.  
  79. <title>{Title}</title>
  80. <link rel="shortcut icon" href="{Favicon}">
  81. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  82. <link href="https://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  83.  
  84. <style type="text/css">
  85.  
  86. /* TUMBLR CONTROLS */
  87.  
  88. iframe.tmblr-iframe {
  89. z-index:99999999999999!important;
  90. top:0!important;
  91. right:0!important;
  92. opacity:0.4;
  93. /* delete invert(1) from here */
  94. filter:invert(1) contrast(150%);
  95. -webkit-filter:invert(1) contrast(150%);
  96. -o-filter:invert(1) contrast(150%);
  97. -moz-filter:invert(1) contrast(150%);
  98. -ms-filter:invert(1) contrast(150%);
  99. /* to here if your blog has a dark background */
  100. transform:scale(0.65);
  101. transform-origin:100% 0;
  102. -webkit-transform:scale(0.65);
  103. -webkit-transform-origin:100% 0;
  104. -o-transform:scale(0.65);
  105. -o-transform-origin:100% 0;
  106. -moz-transform:scale(0.65);
  107. -moz-transform-origin:100% 0;
  108. -ms-transform:scale(0.65);
  109. -ms-transform-origin:100% 0;}
  110.  
  111. iframe.tmblr-iframe:hover {
  112. opacity:0.6!important;}
  113.  
  114. /* TOOLTIPS */
  115.  
  116. #s-m-t-tooltip{
  117. font-size:8px;
  118. color:#000;
  119. background-color:#fff;
  120. letter-spacing:2px;
  121. min-width:50px;
  122. max-width:200px;
  123. overflow:auto;
  124. text-transform:uppercase;
  125. font-style:italic;
  126. display: none;
  127. position: absolute;
  128. z-index: 999999999999;
  129. padding:5px;
  130. margin:30px 0 15px 10px;
  131. -webkit-transition: all 0.2s ease-in-out;
  132. -moz-transition: all 0.2s ease-in-out;
  133. transition: all 0.2s ease-in-out;}
  134.  
  135. /* SCROLLBAR */
  136.  
  137. ::-webkit-scrollbar {
  138. width: 5px;
  139. height: 5px;
  140. }
  141. ::-webkit-scrollbar-button {
  142. width: 0px;
  143. height: 0px;
  144. }
  145. ::-webkit-scrollbar-thumb {
  146. background: #e1e1e1;
  147. border: 0px none #ffffff;
  148. border-radius: 50px;
  149. }
  150.  
  151. /* SELECTION */
  152.  
  153. ::selection {
  154. color: {color:Accent};
  155. background: {color:Background};
  156. }
  157. ::-moz-selection {
  158. color: {color:Accent};
  159. background: {color:Background};
  160. }
  161.  
  162. #content {
  163. margin-left:30%;
  164. margin-top:30px;
  165. width: 900px; /*changes # of columns*/
  166. float: left;
  167. }
  168.  
  169. body {
  170. background-color: {color:background};
  171. background-image: url({image:background});
  172. background-attachment:fixed;
  173. background-repeat:repeat;
  174. background-position:center;
  175. font-family: {select:Font};
  176. font-size: {text:Font Size};
  177. color: {color:text};
  178. }
  179.  
  180. a {
  181. color: {color:link};
  182. text-decoration:none;
  183. }
  184.  
  185. blockquote {
  186. padding-left:5px;
  187. border-left:1px dotted;
  188. color: {color:text};
  189. margin-left:3px;
  190. margin-bottom:5px;
  191. }
  192.  
  193. iframe, img, embed, object, video {
  194. max-width: 100%;
  195. }
  196.  
  197. img {
  198. height: auto;
  199. width: auto;
  200. }
  201.  
  202. #sidebar {
  203. height:auto;
  204. width:150px;
  205. margin-top:210px;
  206. padding:10px;
  207. margin-left:156px;
  208. position:fixed;
  209. background: {color:post bg};
  210. color:{color:text};
  211. border: 1px solid {color:border};
  212. font-size: 10px;
  213. font-family:arial;
  214. text-align:center;
  215. }
  216.  
  217. #blogtitle {
  218. font-size:2em;
  219. color:{color:accent}!important;
  220. }
  221.  
  222. .description {
  223. text-align:{select:description text align};
  224. padding:4px;
  225. }
  226.  
  227. #navlinks {
  228. margin:4px;
  229. }
  230.  
  231. article {
  232. background: {color:post bg};
  233. margin: 12px;
  234. padding: 8px;
  235. border: 1px solid {color:border};
  236. width: 450px!important;
  237. {block:iftwocolumns}
  238. width: 350px!important;
  239. {/block:iftwocolumns}
  240. {block:ifthreecolumns}
  241. width: 250px!important;
  242. {/block:ifthreecolumns}
  243. overflow:auto;
  244. }
  245.  
  246. article img {
  247. }
  248.  
  249. .title {
  250. text-align:center;
  251. text-transform:uppercase;
  252. font-family: {select:Title Font};
  253. font-size: {text:Title Font Size};
  254. }
  255.  
  256. .text {
  257. font-family: {select:Font};
  258. font-size: {text:Font Size};
  259. color: {color:text};
  260. width:100%;
  261. }
  262.  
  263. .photo {
  264. }
  265.  
  266. .photoset {
  267. }
  268.  
  269. .quote {
  270. text-align:center;
  271. }
  272.  
  273. .link {
  274. }
  275.  
  276. .audio {
  277. width:100%;
  278. }
  279.  
  280. .video{
  281. }
  282.  
  283. .video-player {
  284.  
  285. }
  286.  
  287. .answer {
  288. }
  289.  
  290. .ques {
  291. font-weight:bolder;
  292. }
  293.  
  294. .ans {
  295. font-style:italic;
  296. }
  297.  
  298. .chat{
  299. margin-left:-30px;
  300. }
  301.  
  302. .chat span {
  303. float: left;
  304. margin-right: 10px;
  305. }
  306.  
  307. .chat:nth-child(even) {
  308. background:#f9f9f9;
  309. }
  310.  
  311. .odd{
  312. background:#f6f6f6;
  313. }
  314.  
  315.  
  316. #perma {
  317. text-align: center;
  318. position: relative;
  319. text-transform:uppercase;
  320. margin-top:2px;
  321. padding:4px;
  322. font-size: 8px;
  323. {block:PermalinkPage}
  324. display:none;
  325. {/block:PermalinkPage}
  326. }
  327.  
  328. .tumblr_audio_player {
  329. width: 100%;
  330. height: 100px;
  331. overflow: hidden;
  332. position: relative;
  333. z-index: 1000;
  334. }
  335.  
  336. .pagination {
  337.  
  338. }
  339.  
  340. {block:ifnotinfinitescroll}
  341. .pagi {
  342. font-size:15px;
  343. font: {select:font};
  344. color: {color:link};
  345. text-align:center;
  346. padding:2px;
  347. padding-top:5px;
  348. }
  349. {/block:ifnotinfinitescroll}
  350.  
  351. {block:ifinfinitescroll}
  352. .pagi {
  353. display:none;
  354. }
  355. {/block:ifinfinitescroll}
  356.  
  357. hr {
  358. width:75%;
  359. border-top:1px solid {color:Borders};
  360. }
  361.  
  362. caption {
  363. margin:12px;
  364. }
  365.  
  366.  
  367. </style>
  368. </head>
  369. <body>
  370.  
  371. <div id="sidebar">
  372. {block:ifshowblogtitle}
  373. <div id="blogtitle"><a href="/">{Title}</a></div><hr>
  374. {/block:ifshowblogtitle}
  375. {block:ifshowdescription}
  376. <div class="description">{Description}</div>
  377. {/block:ifshowdescription}
  378. {block:ifshowlinks}
  379. <div id="navlinks">
  380. <a href="{text:ask link}">ask</a>
  381. <a href="/archive">grid</a>
  382. {block:ifcustomlink1}<a href="{text:link 1 url}">{text:link 1 title}</a>{/block:ifcustomlink1}
  383. {block:ifcustomlink2}<a href="{text:link 2 url}">{text:link 2 title}</a>{/block:ifcustomlink2}
  384. {block:ifcustomlink3}<a href="{text:link 3 url}">{text:link 3 title}</a>{/block:ifcustomlink3}
  385. <a href="https://whimsythemes.tumblr.com" title="theme by whimsythemes">thm</a>
  386. </div>
  387. {/block:ifshowlinks}
  388.  
  389. {block:Pagination}
  390. <div class="pagination">
  391. <div class="pagi">
  392. {block:PreviousPage}<a href="{PreviousPage}"><i class="fas fa-chevron-left"></i></a>{/block:PreviousPage}
  393. {block:NextPage}<a href="{NextPage}"><i class="fas fa-chevron-right"></i></a>{/block:NextPage}
  394. </div></div>
  395. {/block:Pagination}
  396. </div>
  397. <nav>
  398. <ul>
  399. {block:HasPages}
  400. {block:Pages}
  401. <li> <a href="{URL}">{Label}</a></li>
  402. {/block:Pages}
  403. {/block:HasPages}
  404. </ul>
  405. </nav>
  406.  
  407. <div id="content">
  408. {block:Posts}
  409. <article>
  410. {block:Text}
  411. <div class="text">
  412. {block:Title}<h1 class="title">
  413. <a href="{Permalink}">{Title}</a>
  414. </h1><hr>{/block:Title}
  415. {Body}
  416. {/block:Text}
  417.  
  418. {block:Photo}
  419. <div class="photo">
  420. {LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" />{LinkCloseTag}
  421. {block:Caption}{Caption}{/block:Caption}
  422. {/block:Photo}
  423.  
  424. {block:Photoset}
  425. <div class="photoset">
  426. {block:IndexPage}
  427. {Photoset-500}
  428. {/block:IndexPage}
  429. {block:PermalinkPage}
  430. {Photoset-500}
  431. {/block:PermalinkPage}
  432. {block:Caption}{Caption}{/block:Caption}
  433. {/block:Photoset}
  434.  
  435. {block:Quote}
  436. <div class="quote">
  437. ❝ {Quote} ❞
  438. <br><br>{block:Source}<cite>&mdash; {Source}</cite>{/block:Source}
  439. {/block:Quote}
  440.  
  441. {block:Link}
  442. <div class="link">
  443. <h1 class="title"><a href="{URL}">{Name}</a><hr></h1>
  444. {block:Description}{Description}{/block:Description}
  445. {/block:Link}
  446.  
  447. {block:Chat}
  448. <div class="chat">
  449. <ul>
  450. {block:Lines}
  451. <div class="{Alt} user_{UserNumber}">
  452. {block:Label}
  453. <b>{Label}</b>{/block:Label}
  454. {Line}
  455. </div>
  456. {/block:Lines}
  457. </ul>
  458. {/block:Chat}
  459.  
  460. {block:Audio}
  461. <div class="audio">
  462. {block:AlbumArt}
  463. <img src="{AlbumArtURL}" width="100px" height="100px"/>
  464. {/block:AlbumArt}
  465.  
  466. {block:AudioEmbed}
  467. {AudioEmbed}
  468. {/block:AudioEmbed}<br>
  469.  
  470. {block:TrackName}
  471. <b>track:</b> {TrackName}
  472. {/block:TrackName}</span><br>
  473. {block:Artist}
  474. <b>artist:</b> {Artist}
  475. {/block:Artist}
  476. {block:Caption}
  477. {Caption}
  478. {/block:Caption}
  479. {/block:Audio}
  480.  
  481. {block:Video}
  482. <div class="video">
  483. <div class="video-player">{Video-500}</div>
  484. {block:Caption}{Caption}{/block:Caption}
  485. {/block:Video}
  486.  
  487. {block:Answer}
  488. <div class="answer">
  489. {Asker} asked: <b><div class="ques">{Question}</div></b>
  490. <div class="ans">{Answer}</div>
  491. {/block:Answer}
  492. </div>
  493.  
  494. <div id="perma">
  495.  
  496. <hr><a href="{Permalink}" title="this post has {NoteCount} notes">{NoteCount} <i class="fas fa-heart"></i></a> &nbsp; <a href="{reblogURL}" title="reblog this post">reblog</a> &nbsp; <a href="{Permalink}" title="posted &mdash; {ShortMonth} {DayOfMonth} {Year} {12Hour}:{Minutes}{AmPm}">{TimeAgo}</a> &nbsp; {block:ifShowTags}{block:HasTags} <a style="font-size:9px;" title="{block:Tags}#{Tag} {/block:Tags}"><i class="fas fa-hashtag"></i></a>{block:HasTags} {block:ifShowTags}
  497.  
  498. </div>
  499.  
  500.  
  501. {block:PermalinkPage}
  502. {block:Date}{Month} {DayOfMonth}{DayOfMonthSuffix}, {Year}{/block:Date}
  503. {block:NoteCount} - {NoteCountWithLabel}{/block:NoteCount}
  504. {block:HasTags}</br>tagged as: {block:Tags}#<a href="{TagURL}">{Tag}</a> {/block:Tags}{/block:HasTags}
  505. {block:RebloggedFrom}</br>source: <a href="{ReblogRootURL}">{ReblogRootName}</a> - via: <a href="{ReblogParentURL}">{ReblogParentName}</a><br>{/block:RebloggedFrom}
  506. {block:PostNotes}{PostNotes-16}{/block:PostNotes}
  507. </div></div>
  508. {/block:PermalinkPage}
  509. </footer>
  510. </article>
  511. {/block:Posts}
  512. </div>
  513.  
  514. <!-- SCRIPTS -->
  515.  
  516. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
  517. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
  518. <script src="https://static.tumblr.com/wgijwsy/Ebfm2v4gy/jquery.masonry.min.js"></script>
  519. {block:IfInfiniteScroll}
  520. <script src="https://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  521. <script src="https://static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
  522. {/block:IfInfiniteScroll}
  523.  
  524. <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  525. <script>
  526. (function($){
  527. $(document).ready(function(){
  528. $("[title]").style_my_tooltips({
  529. tip_follows_cursor:true,
  530. tip_delay_time:0,
  531. tip_fade_speed:0
  532. }
  533. );
  534. });
  535. })(jQuery);
  536. </script>
  537.  
  538. <script>
  539. (function() {
  540. var $tumblelog = $('#content');
  541. {block:IfInfiniteScroll}
  542. $tumblelog.infinitescroll({
  543. navSelector : ".pagination",
  544. nextSelector : ".pagination a:first",
  545. itemSelector : "article",
  546. bufferPx : 50,
  547. done : "",
  548. loading: {
  549. img : "",
  550. msgText: ""
  551. },
  552. },
  553. function( newElements ) {
  554. var $newElems = $( newElements ).css({ opacity: 0 });
  555. $newElems.imagesLoaded(function(){
  556. $newElems.animate({ opacity: 1 });
  557. $tumblelog.masonry( 'appended', $newElems);
  558. });
  559. }
  560. );
  561. {/block:IfInfiniteScroll}
  562. $tumblelog.imagesLoaded( function(){
  563. $tumblelog.masonry({
  564. columnWidth: function( containerWidth ) {
  565. return containerWidth / 100;
  566. }
  567. });
  568. });
  569. })();
  570. </script>
  571.  
  572. <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.js"></script>
  573. <script>
  574. SmoothScroll({
  575. // Scrolling Core
  576. animationTime : 700, // [ms]
  577. stepSize : 100, // [px]
  578. // Acceleration
  579. accelerationDelta : 50, // 50
  580. accelerationMax : 3, // 3
  581. // Keyboard Settings
  582. keyboardSupport : true, // option
  583. arrowScroll : 100, // [px]
  584. // Pulse (less tweakable)
  585. // ratio of "tail" to "acceleration"
  586. pulseAlgorithm : true,
  587. pulseScale : 4,
  588. pulseNormalize : 1,
  589. // Other
  590. touchpadSupport : false, // ignore touchpad by default
  591. fixedBackground : true,
  592. excluded : ''
  593. });
  594. </script>
  595.  
  596. <a href="https://whimsythemes.tumblr.com" title="theme by whimsythemes." style="position:fixed;font-size:18px;bottom:3px;right:5px;">
  597. <i class="fas fa-signature"></i>
  598. </a>
  599.  
  600. </body>
  601.  
  602.  
  603. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement