Advertisement
dar-g-ling

#4.5 Law Theme v2

Jan 11th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.49 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <!-- This theme was entirely written by drgling @artdelafolie.tumblr.
  5. Don't steal or copy either the whole theme or parts of it and claim as your own. If you're interested, you are very welcome to msg me at my tumblr or twitter (@drgling). This theme is solely written for lucy @lvytea.tumblr/ @psychrembel.tumblr and she alone is allowed to use this.
  6.  
  7. The code for the pop-up window was written by Ashleigh @str-wrs.tumblr.com -->
  8.  
  9. <head>
  10.  
  11. <script type="text/javascript"
  12. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  13. <script>
  14. $(document).ready(function() {
  15. //
  16. $('a.poplight[href^=#]').click(function() {
  17. var popID = $(this).attr('rel'); //Get Popup Name
  18. var popURL = $(this).attr('href'); //Get Popup href to define size
  19. var query= popURL.split('?');
  20. var dim= query[1].split('&');
  21. var popWidth = dim[0].split('=')[1]; //Gets the first query string value
  22. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"></a>');
  23. var popMargTop = ($('#' + popID).height() + 80) / 2;
  24. var popMargLeft = ($('#' + popID).width() + 80) / 2;
  25. //Apply Margin to Popup
  26. $('#' + popID).css({
  27. 'margin-top' : -popMargTop,
  28. 'margin-left' : -popMargLeft
  29. });
  30. $('body').append('<div id="fade"></div>');
  31. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'})
  32. return false;
  33. });
  34. $('a.close, #fade').live('click', function() {
  35. $('#fade , .popup_block').fadeOut(function() {
  36. $('#fade, a.close').remove(); //fade them both out
  37. });
  38. return false;
  39. });
  40. });
  41. </script>
  42.  
  43. <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:300' rel='stylesheet' type='text/css'>
  44. <link href='http://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'>
  45.  
  46. <title>{Title}</title>
  47. <link rel="shortcut icon" href="{Favicon}">
  48. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  49. {block:Description}
  50. <meta name="Description" content="{MetaDescription}" />
  51. {/block:Description}
  52.  
  53. <meta name="image:Background" content="">
  54. <meta name="image:Sidebar Pic" content="http://static.tumblr.com/137d83ce6467da67fcc4a0f945fbb269/u4c0ltq/yrZnb19cp/tumblr_static_aycv3avkn6ok4wk4g4gskwk0o.png">
  55.  
  56. <meta name="if:Popup" content="1">
  57.  
  58. <meta name="color:BG Color" content="#000">
  59. <meta name="color:Post BG" content="">
  60. <meta name="color:Text" content="#e3e3e3">
  61. <meta name="color:Link" content="#fff">
  62. <meta name="color:Link Hover" content="#494949">
  63. <meta name="color:Nav" content="#131313">
  64. <meta name="color:Nav Hover" content="#ffffff">
  65. <meta name="color:Lines" content="#fff">
  66. <meta name="color:Scrollbar" content="#a2a2a2">
  67.  
  68. <meta name="text:URL 1" content="/">
  69. <meta name="text:Link 1" content="Two tabs on your tongue">
  70. <meta name="text:URL 2" content="">
  71. <meta name="text:Link 2" content="Muse">
  72. <meta name="text:URL 3" content="">
  73. <meta name="text:Link 3" content="Tags">
  74. <meta name="text:URL 4" content="">
  75. <meta name="text:Link 4" content="">
  76. <meta name="text:Popup Window 1" content="">
  77. <meta name="text:Popup Window 2" content="">
  78. <meta name="text:Popup Window 3" content="">
  79.  
  80.  
  81. </head>
  82. <style>
  83.  
  84. ::-webkit-scrollbar {background-color:{color:BG}; width:5px}
  85. ::-webkit-scrollbar-thumb:vertical {background-color:{color:Scrollbar};}
  86.  
  87. body {
  88. background-image:url('{image:Background}');
  89. background-color:{color:BG Color};
  90. color:{color:Text};
  91. font-family: 'Roboto Condensed', Helvetica;
  92. font-size:10px;
  93. }
  94.  
  95. h1 {
  96. text-align:center;
  97. font-family: 'Josefin Sans', 'Roboto Condensed', Helvetica;
  98. text-transform:uppercase;
  99. }
  100.  
  101. h2 {
  102. text-align:center;
  103. font-family: 'Josefin Sans', 'Roboto Condensed', Helvetica;
  104. text-transform:uppercase;
  105. text-decoration:underline;
  106. }
  107.  
  108. a {
  109. text-decoration:none;
  110. color:{color:Link};
  111. -webkit-transition: all .6s ease-out;
  112. -moz-transition: all .6s ease-out;
  113. -o-transition: all .6s ease-out;
  114. }
  115.  
  116. a:hover {
  117. color:{color:Link Hover};
  118. }
  119.  
  120. blockquote {
  121. border-left:1px;
  122. border-left: solid;
  123. padding-left:3px;
  124. }
  125.  
  126. blockquote blockquote {
  127. border-left:1px;
  128. border-left: solid;
  129. padding-left:3px;
  130. }
  131.  
  132. #sidebarpic {
  133. border-width: 2px;
  134. border-color: {color:Nav};
  135. border-style: solid;
  136. position: fixed;
  137. overflow:hidden;
  138. left: 120px;
  139. top: 40px;
  140. width: 220px;
  141. height: 300px;
  142. }
  143.  
  144. #sidebarpic img{
  145. width:220px;
  146. overflow:hidden;
  147. }
  148.  
  149. #navbar {
  150. position:fixed;
  151. top:360px;
  152. left:120px;
  153. }
  154.  
  155. .navlinks {
  156. background-color:{color:Nav};
  157. text-align:center;
  158. text-transform:uppercase;
  159. width:220px;
  160. height:12px;
  161. padding:3px;
  162. margin-bottom:5px;
  163. -webkit-transition: all .5s ease-in-out;
  164. -moz-transition: all .5s ease-in-out;
  165. -o-transition: all .5 ease-in-out;
  166. }
  167.  
  168. .navlinks:hover {
  169. background-color:{color:Nav Hover};
  170. color:{color:Link Hover};
  171. }
  172.  
  173. #title {
  174. font-size: 50px;
  175. font-family: 'Josefin Sans' , "Roboto Condensed";
  176. color: {color:Title};
  177. font-weight: bold;
  178. text-align: right;
  179. text-transform:uppercase;
  180. position: fixed;
  181. right: 100px;
  182. bottom:38px;
  183. }
  184.  
  185. #underlinks {
  186. font-size:12px;
  187. text-transform:lowercase;
  188. text-align:center;
  189. }
  190.  
  191. #underlinks a {
  192. opacity:.3;
  193. }
  194.  
  195. #underlinks a:hover {
  196. opacity:1;
  197. color:#d4d4d4;
  198. }
  199.  
  200. .line1 {
  201. background-color: {color:Lines};
  202. position: fixed;
  203. left: 70px;
  204. top: 40px;
  205. width: 1px;
  206. height: 100%;
  207. z-index:997;
  208. }
  209.  
  210. .line2 {
  211. background-color: {color:Lines};
  212. position: fixed;
  213. left: 80px;
  214. top: 0px;
  215. width: 2px;
  216. height: 100%;
  217. z-index:998;
  218. }
  219.  
  220. .vertline {
  221. background-color: {color:Lines};
  222. position: fixed;
  223. left: 0px;
  224. bottom: 100px;
  225. width: 100%;
  226. height: 5px;
  227. z-index:999;
  228. }
  229.  
  230. #postcontainer {
  231. position:fixed;
  232. width:100%;
  233. top:0px;
  234. right:0px;
  235. bottom:105px;
  236. left:460px;
  237. overflow:auto;
  238. z-index:-3;
  239. }
  240.  
  241. /* 8 Post Types stylization here */
  242.  
  243. .post {
  244. width:500px;
  245. background:{color:Post BG};
  246. margin-left:7px;
  247. margin-right:7px;
  248. margin-bottom:7px;
  249. padding:3px;
  250. }
  251.  
  252. .quote {
  253. text-align:justify;
  254. font-size:18px;
  255. padding:3px;
  256. background-color: rgba(255,255,255,.3);
  257. }
  258.  
  259. .asks {
  260. padding:3px;
  261. background-color: rgba(255,255,255,.2);
  262. }
  263.  
  264. .notes {
  265. font-size:9px;
  266. text-align:center;
  267. text-transform:uppercase;
  268. border-top:1px dashed rgba(255, 255, 255, .7);
  269. padding-top:5px;
  270. }
  271.  
  272. .tags {
  273. font-size:9px;
  274. text-align:center;
  275. text-transform:uppercase;
  276. }
  277.  
  278. .audio {
  279. margin-bottom:10px;
  280. height:100px;
  281. }
  282.  
  283. .albumart {
  284. position:absolute;
  285. width:98px;
  286. border:1px solid rgba(0,0,0,.1);
  287. padding:2px;
  288. z-index:-3;
  289. }
  290.  
  291. .player {
  292. position:absolute;
  293. background:#000;
  294. width:27px;
  295. z-index:999;
  296. height:27px;
  297. overflow:hidden;
  298. margin-top:35px;
  299. margin-left:35px;
  300. padding:3px;
  301. opacity:0;
  302. -webkit-transition: all 0.6s ease-out;
  303. -o-transition: all 0.6s ease-out;
  304. -webkit-transition: all 0.6s ease-out;
  305. -moz-transition: all 0.6s ease-out;
  306. }
  307.  
  308. .audio:hover .player {
  309. opacity:1;
  310. }
  311.  
  312. .audioinfo {
  313. width:370px;
  314. float:right;
  315. text-align:left;
  316. padding:2px;
  317. line-height:20px;
  318. }
  319.  
  320. .chats {
  321. line-height:20px;
  322. }
  323.  
  324. #pagination {
  325. position:fixed;
  326. text-align:center;
  327. font-size:16px;
  328. font-weight:bolder;
  329. width:130px;
  330. left: 330px;
  331. top: 50px;
  332. }
  333.  
  334. #pagination a {
  335. text-decoration:none;
  336. color:{text:Link};
  337. -webkit-transition: all 0.5s ease-out;
  338. -moz-transition: all 0.5s ease-out;
  339. -o-transition: all 0.5s ease-out;
  340. }
  341.  
  342. #pagination a:hover {
  343. color:{text:Link Hover};
  344. }
  345.  
  346. /*================================ POPUP ===============================*/
  347.  
  348. .popup_block{
  349. display:none;
  350. background:{color:BG Color};
  351. padding:20px;
  352. border:1px solid #eee; /* if you want a solid white pop-up, delete this */
  353. float:left;
  354. position:fixed;
  355. top:50%;left:50%;
  356. z-index: 99999;
  357. -webkit-box-shadow: 0px 0px 20px #000; /* delete for solid white */
  358. -moz-box-shadow: 0px 0px 20px #000; /* delete for solid white */
  359. box-shadow: 0px 0px 20px #000; /* delete for solid white */
  360. }
  361.  
  362. *html #fade {position: absolute;}
  363. *html .popup_block {position: absolute;}
  364. #fade {
  365. display:none;
  366. position:fixed;
  367. left:0px;
  368. top:0px;
  369. width:100%;
  370. height:100%;
  371. z-index:9999;
  372. background:#000; /* change to #fff for solid white */
  373. opacity:0.7; /* change to opacity:1; */
  374. }
  375.  
  376. </style>
  377. <body>
  378.  
  379. <div id="pagination">
  380. {block:Pagination}{block:PreviousPage}<a href="{PreviousPage}">← </a>{/block:PreviousPage} {block:NextPage} <a href="{NextPage}"> β†’</a>{/block:NextPage}{/block:Pagination}</div>
  381.  
  382. <div id="title">{Title}
  383. <div id="underlinks"><a href="/">home</a> <a href="/ask">ask</a> <a href="/archive">archive</a> <a href="http://artdelafolie.tumblr.com">theme</a></div>
  384. </div>
  385.  
  386. <div id="sidebarpic"><img src="{image:Sidebar Pic}"></div>
  387. <div id="navbar">
  388. <div class="navlinks"><a href="{text:URL 1}">{text:Link 1}</a></div>
  389. {block:ifPopup}
  390. <div class="navlinks"><a href="#?w=500" rel="box1" class="poplight">{text:Link 2}</a></div>
  391. <div class="navlinks"><a href="#?w=500" rel="box2" class="poplight">{text:Link 3}</a></div>
  392. <div class="navlinks"><a href="#?w=500" rel="box3" class="poplight">{text:Link 4}</a></div>
  393. {/block:ifPopup}
  394.  
  395. {block:ifnotPopup}
  396. <div class="navlinks"><a href="{text:URL 2}">{text:Link 2}</a></div>
  397. <div class="navlinks"><a href="{text:URL 3}">{text:Link 3}</a></div>
  398. <div class="navlinks"><a href="{text:URL 4}">{text:Link 4}</a></div>
  399. {/block:ifnotPopup}
  400. </div>
  401. <div class="line1"></div>
  402. <div class="line2"></div>
  403. <div class="vertline"></div>
  404.  
  405. <div id="postcontainer">
  406.  
  407. {block:Posts}<div class="post">
  408. {block:Text}<h1>{block:Title}{Title}{/block:Title}</h1>{Body}{/block:Text}
  409.  
  410. {block:Photo}{LinkOpenTag}<img src="{PhotoURL-500}">{LinkCloseTag}{block:Caption}{Caption}{/block:Caption}{/block:Photo}
  411.  
  412. {block:Photoset}{Photoset-500}{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
  413.  
  414. {block:Quote}<div class="quote">{Quote}"</div>{block:Source}<br><br> <div style="text-align: right;">β€” {Source}</div>{/block:Source}{/block:Quote}
  415.  
  416. {block:Link}<h2>> <a href="{URL}" {Target}>{Name}</a></h2>{block:Description}{Description}{/block:Description}{/block:Link}
  417.  
  418. {block:Answer}<div class="asks"><img src="{AskerPortraitURL-30}"/><i><b> {Asker}</b> asked: </i>{Question}</div>{Answer}{/block:answer}
  419.  
  420. {block:Audio}
  421. <div class="audio">
  422. {block:AlbumArt}<img class="albumart" src="{AlbumArtURL}">{/block:AlbumArt}
  423. <div class="player">{block:AudioPlayer}{AudioPlayerBlack}{/block:AudioPlayer}</div>
  424. <div class="audioinfo">
  425. {block:TrackName}<b>Title:</b> {TrackName}<BR>{/block:TrackName}
  426. {block:Artist}<b>Artist:</b> {Artist}<BR>{/block:Artist}
  427. {block:Album}<b>Album:</b> {Album}<BR>{/block:Album}
  428. {block:PlayCount}<b>Plays:</b> {PlayCount}<BR>{/block:PlayCount}</div></div>
  429.  
  430. {block:Caption}{Caption}{/block:Caption}
  431. {/block:Audio}
  432.  
  433. {block:Chat}{block:Title}<h1>{Title}</h1>{/block:Title}
  434. <div class="chats">{block:Lines}{block:Label}<b>{Label}</b>{/block:Label} {Line}<br>{/block:Lines}</div>{/block:Chat}
  435.  
  436. <div class="notes">
  437. {block:Date}<a href="{Permalink}">{TimeAgo}</a>{block:NoteCount} || <a href="{Permalink}">{NoteCountWithLabel}</a> {/block:NoteCount}
  438. {block:RebloggedFrom} || <a href="{ReblogParentURL}">{ReblogParentName} </a>{/block:RebloggedFrom}
  439. {block:ContentSource} || Β© <a href="{SourceURL}">{SourceLink}
  440. </a>{/block:ContentSource}{/block:Date}
  441. </div>
  442.  
  443. {block:HasTags}<div class="tags">
  444. {block:Tags} # <a href="{TagURL}"> {Tag}</a>{/block:Tags}</div>
  445. {/block:HasTags}
  446.  
  447.  
  448. {block:PostNotes}{PostNotes}{/block:PostNotes}
  449.  
  450. </div>{/block:Posts}
  451.  
  452. </div>
  453. </body>
  454.  
  455. <div id="box1" class="popup_block">
  456. {text:Popup Window 1}
  457. </div>
  458.  
  459. <div id="box2" class="popup_block">
  460. {text:Popup Window 2}
  461. </div>
  462.  
  463. <div id="box3" class="popup_block">
  464. {text:Popup Window 3}
  465. </div>
  466.  
  467. </div></div></div></div></div></div></div></div></div></div>
  468.  
  469. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement