oph

outrageous theme

oph
Nov 10th, 2017
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.41 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <head>
  3.  
  4. <!-----
  5.  
  6. outrageous theme by poisons! base code by animecharacter
  7. feel free to change around while using, but dont steal!
  8. shoot me an ask if theres any bugs! this is my third theme
  9.  
  10. ----->
  11.  
  12. <meta charset="utf-8">
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  14. {block:Description}
  15. <meta name="description" content="{MetaDescription}" />
  16. {/block:Description}
  17.  
  18. <meta name="image:sidebar img" content="" />
  19. <meta name="image:bg image" content="" />
  20. <meta name="image:favicon" content="" />
  21.  
  22. <meta name="text:font" content="arial" />
  23. <meta name="text:font size" content="17" />
  24. <meta name="text:sidebar margin left" content="-150" />
  25. <meta name="text:sidebar margin top" content="100" />
  26. <meta name="text:sidebar width" content="170" />
  27. <meta name="text:sidebar img size" content="150" />
  28. <meta name="text:link 1" content="" />
  29. <meta name="text:link 1 url" content="" />
  30. <meta name="text:link 2" content="" />
  31. <meta name="text:link 2 url" content="" />
  32. <meta name="text:link 3" content="" />
  33. <meta name="text:link 3 url" content="" />
  34. <meta name="text:dropdown title" content="" />
  35. <meta name="text:permalink divider" content=""/>
  36.  
  37. <meta name="color:bg" content="#fff" />
  38. <meta name="color:text" content="#fff" />
  39. <meta name="color:link" content="#fff" />
  40. <meta name="color:link hover" content="#fff" />
  41. <meta name="color:highlight" content="#fff" />
  42. <meta name="color:cursor sparkles" content="fff"/>
  43. <meta name="color:blockquote" content="fff"/>
  44. <meta name="color:tooltip bg" content="#fff" />
  45. <meta name="color:tooltip text" content="#fff" />
  46. <meta name="color:scrollbar" content="fff" />
  47. <meta name="color:scrollbar thumb" content="fff"/>
  48.  
  49. <meta name="if:DropdownLinks" content="2">
  50. <meta name="if:cursor sparkles" content="" />
  51. <meta name="if:rainbow links" content="" />
  52.  
  53. <title>{Title}</title>
  54.  
  55. <link rel="shortcut icon" href="{favicon}">
  56. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  57. <link rel="stylesheet" href="http://static.tumblr.com/qxrkgx6/RWPmgn2qa/normalize.min.css">
  58.  
  59. <script src="http://static.tumblr.com/qxrkgx6/LuRmgn2rm/modernizr-2.6.2.min.js"></script>
  60.  
  61. <style type="text/css">
  62.  
  63.  
  64. /*
  65. general text styles, fonts and colours
  66. */
  67.  
  68.  
  69. body {
  70. margin:0px;
  71. background: {color:bg} url({image:bg image});
  72. font-family: {text:font};
  73. font-size: {text:font size}px;
  74. line-height:140%;
  75. color: #000;
  76. }
  77.  
  78. p{
  79. margin:0 0 10px 0;
  80. padding:0;
  81. }
  82.  
  83. pre {
  84. white-space: pre-wrap;
  85. white-space: -moz-pre-wrap;
  86. white-space: -pre-wrap;
  87. white-space: -o-pre-wrap;
  88. word-wrap: break-word;
  89. }
  90.  
  91. a{
  92. color:{color:link};
  93. }
  94.  
  95. a:hover{
  96. color:{color:link hover};
  97. }
  98.  
  99. li{
  100. margin-left:-15px;
  101. }
  102.  
  103. /*
  104. containers etc
  105. */
  106. #wrapper{
  107. width:600px;
  108. margin:50px auto;
  109. }
  110.  
  111. #sidebar{
  112. width:{text:sidebar width}px;
  113. position:fixed;
  114. text-align:center;
  115. margin-top:{text:sidebar margin top}px;
  116. margin-left:{text:sidebar margin left}px;
  117. }
  118.  
  119. #sidebar img{
  120. width:{text:sidebar img size}px;
  121. margin-top:10px;
  122. }
  123.  
  124. #content{
  125. width:400px;
  126. margin-left:200px;
  127. overflow:hidden;
  128. }
  129.  
  130. .post{
  131. width:400px;
  132. margin:0 0 50px 0;
  133. overflow:hidden;
  134. }
  135.  
  136. #sidebar img, .post img{
  137. max-width:100%;
  138. }
  139.  
  140. #nav{
  141. margin:50px 0 0 0;
  142. }
  143.  
  144. /*
  145. content in the body of the posts - quotes, asks, etc
  146. "media" contains photos, photosets, videos, audio posts
  147. */
  148. .media{
  149. margin:0 0 10px 0;
  150. }
  151.  
  152. .title{
  153. font-weight:normal;
  154. font-size:18px;
  155. margin:0 0 10px 0;
  156. }
  157.  
  158. .quote{
  159. font-weight:normal;
  160. font-size:16px;
  161. font-style:italic;
  162. margin:0 0 10px 0;
  163. }
  164.  
  165. .question{
  166. margin-bottom:10px;
  167. }
  168.  
  169. blockquote{
  170. margin:0 0 10px 10px;
  171. padding:0 0 0 10px;
  172. border-left:solid 1px {color:blockquote};
  173. }
  174.  
  175. #credit{
  176. padding:10px;
  177. width:15px;
  178. height:15px;
  179. position:fixed;
  180. border-radius:100%;
  181. bottom:5px;
  182. left:3px;
  183. font-size:18px;
  184. }
  185.  
  186. ::-webkit-scrollbar {
  187. width: 10px;
  188. background: {color:scrollbar};
  189. border: px solid #000;
  190. }
  191.  
  192. ::-webkit-scrollbar-thumb {
  193. background: {color:scrollbar thumb};
  194. border: px solid #000;
  195. }
  196.  
  197. /*
  198. post footers - date, tags, via and source
  199. */
  200. .post .footer{
  201. margin:0;
  202. text-align:left;
  203. }
  204.  
  205. /*
  206. post notes
  207. */
  208. ol.notes{
  209. list-style-type:none;
  210. padding:0;
  211. margin:0;
  212. }
  213.  
  214. ol.notes li.note img{
  215. width:16px;
  216. height:16px;
  217. }
  218.  
  219. ol.notes li.note{
  220. margin:0px;
  221. }
  222.  
  223. {CustomCSS}
  224. </style>
  225.  
  226. {block:ifcursorsparkles}
  227. <script type="text/javascript">
  228. // <![CDATA[
  229. var colour="{color:cursor sparkles}";
  230. var sparkles=120;
  231.  
  232. /****************************
  233. * Tinkerbell Magic Sparkle *
  234. * (c) 2005 mf2fm web-design *
  235. * http://www.mf2fm.com/rv *
  236. * DON'T EDIT BELOW THIS BOX *
  237. ****************************/
  238. var x=ox=400;
  239. var y=oy=300;
  240. var swide=800;
  241. var shigh=600;
  242. var sleft=sdown=0;
  243. var tiny=new Array();
  244. var star=new Array();
  245. var starv=new Array();
  246. var starx=new Array();
  247. var stary=new Array();
  248. var tinyx=new Array();
  249. var tinyy=new Array();
  250. var tinyv=new Array();
  251.  
  252. window.onload=function() { if (document.getElementById) {
  253. var i, rats, rlef, rdow;
  254. for (var i=0; i<sparkles; i++) {
  255. var rats=createDiv(3, 3);
  256. rats.style.visibility="hidden";
  257. document.body.appendChild(tiny[i]=rats);
  258. starv[i]=0;
  259. tinyv[i]=0;
  260. var rats=createDiv(5, 5);
  261. rats.style.backgroundColor="transparent";
  262. rats.style.visibility="hidden";
  263. var rlef=createDiv(1, 5);
  264. var rdow=createDiv(5, 1);
  265. rats.appendChild(rlef);
  266. rats.appendChild(rdow);
  267. rlef.style.top="2px";
  268. rlef.style.left="0px";
  269. rdow.style.top="0px";
  270. rdow.style.left="2px";
  271. document.body.appendChild(star[i]=rats);
  272. }
  273. set_width();
  274. sparkle();
  275. }}
  276.  
  277. function sparkle() {
  278. var c;
  279. if (x!=ox || y!=oy) {
  280. ox=x;
  281. oy=y;
  282. for (c=0; c<sparkles; c++) if (!starv[c]) {
  283. star[c].style.left=(starx[c]=x)+"px";
  284. star[c].style.top=(stary[c]=y)+"px";
  285. star[c].style.clip="rect(0px, 5px, 5px, 0px)";
  286. star[c].style.visibility="visible";
  287. starv[c]=50;
  288. break;
  289. }
  290. }
  291. for (c=0; c<sparkles; c++) {
  292. if (starv[c]) update_star(c);
  293. if (tinyv[c]) update_tiny(c);
  294. }
  295. setTimeout("sparkle()", 40);
  296. }
  297.  
  298. function update_star(i) {
  299. if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
  300. if (starv[i]) {
  301. stary[i]+=1+Math.random()*3;
  302. if (stary[i]<shigh+sdown) {
  303. star[i].style.top=stary[i]+"px";
  304. starx[i]+=(i%5-2)/5;
  305. star[i].style.left=starx[i]+"px";
  306. }
  307. else {
  308. star[i].style.visibility="hidden";
  309. starv[i]=0;
  310. return;
  311. }
  312. }
  313. else {
  314. tinyv[i]=50;
  315. tiny[i].style.top=(tinyy[i]=stary[i])+"px";
  316. tiny[i].style.left=(tinyx[i]=starx[i])+"px";
  317. tiny[i].style.width="2px";
  318. tiny[i].style.height="2px";
  319. star[i].style.visibility="hidden";
  320. tiny[i].style.visibility="visible"
  321. }
  322. }
  323.  
  324. function update_tiny(i) {
  325. if (--tinyv[i]==25) {
  326. tiny[i].style.width="1px";
  327. tiny[i].style.height="1px";
  328. }
  329. if (tinyv[i]) {
  330. tinyy[i]+=1+Math.random()*3;
  331. if (tinyy[i]<shigh+sdown) {
  332. tiny[i].style.top=tinyy[i]+"px";
  333. tinyx[i]+=(i%5-2)/5;
  334. tiny[i].style.left=tinyx[i]+"px";
  335. }
  336. else {
  337. tiny[i].style.visibility="hidden";
  338. tinyv[i]=0;
  339. return;
  340. }
  341. }
  342. else tiny[i].style.visibility="hidden";
  343. }
  344.  
  345. document.onmousemove=mouse;
  346. function mouse(e) {
  347. set_scroll();
  348. y=(e)?e.pageY:event.y+sdown;
  349. x=(e)?e.pageX:event.x+sleft;
  350. }
  351.  
  352. function set_scroll() {
  353. if (typeof(self.pageYOffset)=="number") {
  354. sdown=self.pageYOffset;
  355. sleft=self.pageXOffset;
  356. }
  357. else if (document.body.scrollTop || document.body.scrollLeft) {
  358. sdown=document.body.scrollTop;
  359. sleft=document.body.scrollLeft;
  360. }
  361. else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
  362. sleft=document.documentElement.scrollLeft;
  363. sdown=document.documentElement.scrollTop;
  364. }
  365. else {
  366. sdown=0;
  367. sleft=0;
  368. }
  369. }
  370.  
  371. window.onresize=set_width;
  372. function set_width() {
  373. if (typeof(self.innerWidth)=="number") {
  374. swide=self.innerWidth;
  375. shigh=self.innerHeight;
  376. }
  377. else if (document.documentElement && document.documentElement.clientWidth) {
  378. swide=document.documentElement.clientWidth;
  379. shigh=document.documentElement.clientHeight;
  380. }
  381. else if (document.body.clientWidth) {
  382. swide=document.body.clientWidth;
  383. shigh=document.body.clientHeight;
  384. }
  385. }
  386.  
  387. function createDiv(height, width) {
  388. var div=document.createElement("div");
  389. div.style.position="absolute";
  390. div.style.height=height+"px";
  391. div.style.width=width+"px";
  392. div.style.overflow="hidden";
  393. div.style.backgroundColor=colour;
  394. return (div);
  395. }
  396. // ]]>
  397. </script>
  398. {/block:ifcursorsparkles}
  399.  
  400. {block:ifrainbowlinks}
  401. <script type='text/javascript'>
  402. //<![CDATA[
  403. var rate = 50;
  404. if (document.getElementById)
  405. window.onerror=new Function("return true")
  406.  
  407. var objActive; // The object which event occured in
  408. var act = 0; // Flag during the action
  409. var elmH = 0; // Hue
  410. var elmS = 128; // Saturation
  411. var elmV = 255; // Value
  412. var clrOrg; // A color before the change
  413. var TimerID; // Timer ID
  414. if (document.all) {
  415. document.onmouseover = doRainbowAnchor;
  416. document.onmouseout = stopRainbowAnchor;
  417. }
  418. else if (document.getElementById) {
  419. document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
  420. document.onmouseover = Mozilla_doRainbowAnchor;
  421. document.onmouseout = Mozilla_stopRainbowAnchor;
  422. }
  423. function doRainbow(obj)
  424. {
  425. if (act == 0) {
  426. act = 1;
  427. if (obj)
  428. objActive = obj;
  429. else
  430. objActive = event.srcElement;
  431. clrOrg = objActive.style.color;
  432. TimerID = setInterval("ChangeColor()",100);
  433. }
  434. }
  435. function stopRainbow()
  436. {
  437. if (act) {
  438. objActive.style.color = clrOrg;
  439. clearInterval(TimerID);
  440. act = 0;
  441. }
  442. }
  443. function doRainbowAnchor()
  444. {
  445. if (act == 0) {
  446. var obj = event.srcElement;
  447. while (obj.tagName != 'A' && obj.tagName != 'BODY') {
  448. obj = obj.parentElement;
  449. if (obj.tagName == 'A' || obj.tagName == 'BODY')
  450. break;
  451. }
  452. if (obj.tagName == 'A' && obj.href != '') {
  453. objActive = obj;
  454. act = 1;
  455. clrOrg = objActive.style.color;
  456. TimerID = setInterval("ChangeColor()",100);
  457. }
  458. }
  459. }
  460. function stopRainbowAnchor()
  461. {
  462. if (act) {
  463. if (objActive.tagName == 'A') {
  464. objActive.style.color = clrOrg;
  465. clearInterval(TimerID);
  466. act = 0;
  467. }
  468. }
  469. }
  470. function Mozilla_doRainbowAnchor(e)
  471. {
  472. if (act == 0) {
  473. obj = e.target;
  474. while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
  475. obj = obj.parentNode;
  476. if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
  477. break;
  478. }
  479. if (obj.nodeName == 'A' && obj.href != '') {
  480. objActive = obj;
  481. act = 1;
  482. clrOrg = obj.style.color;
  483. TimerID = setInterval("ChangeColor()",100);
  484. }
  485. }
  486. }
  487. function Mozilla_stopRainbowAnchor(e)
  488. {
  489. if (act) {
  490. if (objActive.nodeName == 'A') {
  491. objActive.style.color = clrOrg;
  492. clearInterval(TimerID);
  493. act = 0;
  494. }
  495. }
  496. }
  497. function ChangeColor()
  498. {
  499. objActive.style.color = makeColor();
  500. }
  501. function makeColor()
  502. {
  503. // Don't you think Color Gamut to look like Rainbow?
  504. // HSVtoRGB
  505. if (elmS == 0) {
  506. elmR = elmV; elmG = elmV; elmB = elmV;
  507. }
  508. else {
  509. t1 = elmV;
  510. t2 = (255 - elmS) * elmV / 255;
  511. t3 = elmH % 60;
  512. t3 = (t1 - t2) * t3 / 60;
  513. if (elmH < 60) {
  514. elmR = t1; elmB = t2; elmG = t2 + t3;
  515. }
  516. else if (elmH < 120) {
  517. elmG = t1; elmB = t2; elmR = t1 - t3;
  518. }
  519. else if (elmH < 180) {
  520. elmG = t1; elmR = t2; elmB = t2 + t3;
  521. }
  522. else if (elmH < 240) {
  523. elmB = t1; elmR = t2; elmG = t1 - t3;
  524. }
  525. else if (elmH < 300) {
  526. elmB = t1; elmG = t2; elmR = t2 + t3;
  527. }
  528. else if (elmH < 360) {
  529. elmR = t1; elmG = t2; elmB = t1 - t3;
  530. }
  531. else {
  532. elmR = 0; elmG = 0; elmB = 0;
  533. }
  534. }
  535. elmR = Math.floor(elmR).toString(16);
  536. elmG = Math.floor(elmG).toString(16);
  537. elmB = Math.floor(elmB).toString(16);
  538. if (elmR.length == 1) elmR = "0" + elmR;
  539. if (elmG.length == 1) elmG = "0" + elmG;
  540. if (elmB.length == 1) elmB = "0" + elmB
  541. elmH = elmH + rate;
  542. if (elmH >= 360)
  543. elmH = 0;
  544. return '#' + elmR + elmG + elmB;
  545. }
  546. //]]>
  547. </script>
  548. {/block:ifrainbowlinks}
  549.  
  550. </head>
  551.  
  552. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script><script src="https://static.tumblr.com/rtrqcib/VGGnlh8rf/jquery.style-my-tooltips.min.js"></script><script>(function($){$(document).ready(function(){$("a[title]").style_my_tooltips({tip_follows_cursor:true,tip_delay_time:0,tip_fade_speed:0,attribute:"title"});});})(jQuery);</script>
  553.  
  554. <style>
  555. .tooltip{
  556. display: inline;
  557. position: relative;}
  558.  
  559. #s-m-t-tooltip {
  560. text-align:center;
  561. max-width:200px;
  562. padding:2px;
  563. margin:15px;
  564. background-color:{color:tooltip bg};
  565. color:{color:tooltip text};
  566. font-size:17px;
  567. letter-spacing:1px;
  568. border-radius:0px;
  569. word-wrap:break-word;
  570. z-index:999999999999999999999999999999999999;
  571. }
  572. </style>
  573.  
  574. <body>
  575.  
  576. <div id="wrapper">
  577.  
  578. <div id="sidebar">
  579. <img src="{image:sidebar img}" style="max-width:{text:sidebar img size}px;position:inline;border-radius:5px;{block:roundedsidebarimg}border-radius:{text:sidebar img size}px;{/block:roundedsidebarimg}"></a>
  580. {block:Description}
  581. <p>{Description}</p>
  582. {/block:Description}
  583.  
  584. {block:ifDropdownLinks}<p>
  585. <div align="center">
  586. <select style="padding:2px;font-family: {text: font}; color:{color: text}; border: 1px solid {color: text}" onchange='location=this.options[this.selectedIndex].value;'>
  587.  
  588. <option>{text:Dropdown Title}</option><p>
  589. <option value="">{text:link 1}</option><p>
  590. <option value="">{text:link 2}</option><p>
  591. <option value="">{text:link 3}</option><p>
  592. </div>
  593. </select><br><br>
  594.  
  595. </div>
  596.  
  597. {/block:ifDropdownLinks}
  598.  
  599. {block:AskEnabled}
  600. <a href="/ask">{AskLabel}</a><br>
  601. {/block:AskEnabled}
  602. {block:SubmissionsEnabled}
  603. <a href="/ask">{SubmitLabel}</a><br>
  604. {/block:SubmissionsEnabled}
  605. {block:HasPages}
  606. {block:Pages}
  607. <a href="{URL}">{Label}</a><br>
  608. {/block:Pages}
  609. {/block:HasPages}
  610. </div>
  611.  
  612.  
  613.  
  614. <div id="content">
  615. {block:Posts}
  616.  
  617. <div class="post">
  618.  
  619. {block:Text}
  620. {block:Title}
  621. <div class="title">{Title}</div>
  622. {/block:Title}
  623. {Body}
  624. {/block:Text}
  625.  
  626. {block:Photo}
  627. <div class="media">{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{LinkCloseTag}</div>
  628. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  629. {/block:Photo}
  630.  
  631. {block:Photoset}
  632. <div class="media">{Photoset-400}</div>
  633. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  634. {/block:Photoset}
  635.  
  636. {block:Quote}
  637. <div class="quote">"{Quote}"</div>
  638. {block:Source}
  639. <div class="quotesource">{Source}</div>
  640. {/block:Source}
  641. {/block:Quote}
  642.  
  643. {block:Link}
  644. <div class="title"><a href="{URL}">{Name}</a></div>
  645. {block:Description}
  646. <div class="description">{Description}</div>
  647. {/block:Description}
  648. {/block:Link}
  649.  
  650. {block:Chat}
  651. {block:Title}
  652. <div class="title">{Title}</div>
  653. {/block:Title}
  654.  
  655. {block:Lines}
  656. <div class="{Alt} user_{UserNumber}">
  657. {block:Label}
  658. <b>{Label}</b>{/block:Label}
  659. &nbsp;{Line}
  660. </div>
  661. {/block:Lines}
  662. {/block:Chat}
  663.  
  664. {block:Video}
  665. <div class="media">{Video-400}</div>
  666. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  667. {/block:Video}
  668.  
  669. {block:Audio}
  670. <div class="media">
  671. {block:AlbumArt}<img src="{AlbumArtURL}">{/block:AlbumArt}
  672. {AudioPlayerWhite}
  673. {block:TrackName}{TrackName}<br>{/block:TrackName}
  674. {block:Artist}{Artist}<br>{/block:Artist}
  675. {block:Album}{Album}{/block:Album}
  676. </div>
  677. {block:Caption}{Caption}{/block:Caption}
  678. {/block:Audio}
  679.  
  680. {block:Answer}
  681. <div class="question">{Asker}: {Question}</div>
  682. <div class="caption">{Answer}</div>
  683. {/block:Answer}
  684.  
  685. <div id="info">
  686. <center><br>
  687. {block:RebloggedFrom}<a href="{ReblogParentURL}">via</a>{/block:RebloggedFrom}
  688. {text:permalink divider} {block:ContentSource}<a href="{SourceURL}">src</a>{/block:ContentSource}</p></center>
  689. </div>
  690.  
  691. {block:HasTags}<br>{block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags}{/block:HasTags}
  692.  
  693. {block:PermalinkPage}
  694. {block:NoteCount}
  695. {block:PostNotes}{PostNotes}{/block:PostNotes}
  696. {/block:NoteCount}
  697. {/block:PermalinkPage}
  698. {/block:Date}
  699.  
  700. </div>
  701. {/block:Posts}
  702.  
  703. {block:Pagination}
  704. <div id="nav">
  705. {block:PreviousPage}<a href="{PreviousPage}">⇐</a>{/block:PreviousPage}
  706.  
  707. {block:NextPage}<a href="{NextPage}">⇒</a>{/block:NextPage}
  708. </div>
  709. {/block:Pagination}
  710. </div>
  711. </div>
  712.  
  713. <div id="credit">
  714. <a title="theme by ophie!" href="http://poisons.tumblr.com"><img src="http://78.media.tumblr.com/291c11b399ac42436dc6522e5b79bf00/tumblr_inline_nk96q6n65S1ry72eo.gif"></a>
  715. </div>
  716.  
  717. </div>
  718.  
  719. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  720. <script>window.jQuery || document.write('<script src="http://static.tumblr.com/qxrkgx6/q6kmgn2w2/jquery-1.8.3.min.js"><\/script>')</script>
  721.  
  722. </body>
  723. </html>
Advertisement
Add Comment
Please, Sign In to add comment