Advertisement
ogaraster

Chrome Header Theme

Mar 9th, 2013
28,310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.39 KB | None | 0 0
  1. <!--
  2.  
  3. Chrome Header Theme by Atlas Designs
  4. http://atlasdesigns.co/
  5.  
  6. Do not remove credit or use as a base code unless given permission.
  7.  
  8. Updated July 2013:
  9. - new like/reblog buttons
  10. - formatted text posts
  11. - redesigned permalink page
  12. - minor design tweaks
  13.  
  14. -->
  15.  
  16. <head>
  17.  
  18. <link rel="shortcut icon" href="{Favicon}">
  19.  
  20. <link href='http://fonts.googleapis.com/css?family=Raleway:100,200,400' rel='stylesheet' type='text/css'>
  21.  
  22. {block:IndexPage}
  23.  
  24. <script type="text/javascript"
  25. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  26.  
  27. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  28.  
  29. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  30. <script type="text/javascript">
  31. $(window).load(function () {
  32. var $content = $('#content');
  33. $content.masonry({itemSelector: '.entry'}),
  34. $content.infinitescroll({
  35. navSelector : 'div#pagination',
  36. nextSelector : 'div#pagination a#nextPage',
  37. itemSelector : '.entry',
  38. loading: {
  39. finishedMsg: '',
  40. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  41. },
  42. bufferPx : 600,
  43. debug : false,
  44. },
  45. // call masonry as a callback.
  46. function( newElements ) {
  47. var $newElems = $( newElements );
  48. $newElems.hide();
  49. // ensure that images load before adding to masonry layout
  50. $newElems.imagesLoaded(function(){
  51. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);} );});});});</script>
  52. {/block:IndexPage}
  53.  
  54. <meta name="color:background" content="#ffffff" />
  55. <meta name="color:text" content="#000" />
  56. <meta name="color:title" content="#000" />
  57. <meta name="color:link" content="#828282" />
  58. <meta name="color:link hover" content="#eee" />
  59. <meta name="color:scrollbar" content="#cccccc" />
  60.  
  61. <meta name="if:banner" content="">
  62.  
  63. <meta name="text:home" content="Home">
  64. <meta name="text:message" content="Message">
  65. <meta name="text:archive" content="Archive">
  66. <meta name="text:post top margin" content="130px">
  67.  
  68. <meta name="image:background" content="" />
  69. <meta name="image:banner" content="">
  70.  
  71. <style type="text/css">
  72.  
  73.  
  74. ::-webkit-scrollbar {width: 7px; height: 0px; background:{color:background};}
  75. ::-webkit-scrollbar-thumb {background: {color:scrollbar}; border-radius:10px;}
  76.  
  77. iframe#tumblr_controls {position:fixed; z-index:9999999999; top: 3px; margin: 0 0 0 0; right:4px; -webkit-filter: invert(100%);}
  78.  
  79. body {
  80. background-color: {color:background};
  81. background-image:url({image:Background});
  82. background-attachment: fixed;
  83. background-repeat: repeat;
  84. font-size:12px;
  85. font-family:raleway;
  86. font-weight:400;
  87. line-height:14px;
  88. text-transform:none;
  89. color: {color:text};
  90. }
  91.  
  92. #header{
  93. position:absolute;
  94. top:20px;
  95. width:100%;
  96. left:0px;
  97. padding-left:0px;
  98. text-align:center;
  99. }
  100.  
  101. .blogtitle{
  102. font-weight:100;
  103. font-size:24px;
  104. line-height:24px;
  105. text-transform:none;
  106. color: {color:title};
  107. }
  108.  
  109. .nav{
  110. word-spacing:20px;
  111. }
  112.  
  113. .nav a{
  114. font-weight:200;
  115. font-size:12px;
  116. line-height:30px;
  117. letter-spacing:1px;
  118. text-transform:none;
  119. }
  120.  
  121. .answer{
  122. }
  123. .answer img {
  124. width:250px;
  125. height:auto;
  126. {block:permalinkpage}
  127. width:auto;
  128. height:auto;
  129. {/block:permalinkpage}
  130. }
  131.  
  132. a {
  133. text-decoration:none;
  134. color:{color:link};
  135. -webkit-transition: all 0.2s ease-in-out;
  136. -webkit-transition: all 0.2s ease-in-out;
  137. -moz-transition: all 0.2s ease-in-out;
  138. transition: all 0.2s ease-in-out;
  139. }
  140.  
  141. a:link, a:active, a:visited{
  142. color: {color:link};
  143. }
  144.  
  145. a:hover{
  146. color: {color:link hover};
  147. }
  148.  
  149. div#content {
  150. width: 1300px;
  151. left:50%;
  152. margin-left:-650px;
  153. margin-top:{text:post top margin};
  154. position: absolute;
  155. }
  156.  
  157. .entry{
  158. margin:30px;
  159. height:auto;
  160. {block:IndexPage}
  161. width:200px;
  162. overflow:hidden;
  163. {/block:IndexPage}
  164. {block:PermalinkPage}
  165. position:absolute;
  166. left:50%;
  167. margin-left:-510px;
  168. width:500px;
  169. height:auto;
  170. {/block:PermalinkPage}
  171. }
  172.  
  173. .title{
  174. font-weight:100;
  175. font-size:18px;
  176. line-height:18px;
  177. text-transform:none;
  178. color: {color:text};
  179. }
  180.  
  181. blockquote{
  182. padding:0px 0px 0px 3px;
  183. margin:0px 0px 0px 2px;
  184. border-left: 2px solid #ddd;
  185. }
  186.  
  187. .like_and_reblog_buttons {
  188. position:absolute;
  189. top:50%;
  190. margin-top:-18px;
  191. left:50%;
  192. margin-left:-85px;
  193. list-style:none;
  194. }
  195.  
  196. .like_and_reblog_buttons li {
  197. float: left;
  198. background-color:rgba(0,0,0,.1);
  199. border:2px solid white;
  200. border-radius:100%;
  201. padding:10px;
  202. height:17px;
  203. width:17px;
  204. opacity:0;
  205. -webkit-transition: all 0.2s ease-in-out;
  206. -webkit-transition: all 0.2s ease-in-out;
  207. -moz-transition: all 0.2s ease-in-out;
  208. transition: all 0.2s ease-in-out;
  209. }
  210.  
  211. .like_and_reblog_buttons li:first-child {
  212. margin-right:8px;
  213. }
  214.  
  215. .entry:hover .like_and_reblog_buttons li{
  216. opacity: 1;
  217. -webkit-transition: all 0.4s ease-in-out;
  218. -webkit-transition: all 0.4s ease-in-out;
  219. -moz-transition: all 0.4s ease-in-out;
  220. transition: all 0.4s ease-in-out;
  221. }
  222.  
  223. .play{
  224. position:absolute;
  225. left:50%;
  226. margin-left:-24px;
  227. top:50%;
  228. margin-top:-42px;
  229. border:10px solid white;
  230. height:27px;
  231. width:27px;
  232. border-radius:100%;
  233. overflow:hidden;
  234. }
  235.  
  236. .notess{
  237. position:absolute;
  238. left:550px;
  239. top:0px;
  240. height:500px;
  241. width:450px;
  242. overflow:scroll;
  243. padding:10px;
  244. }
  245. ol.notes {
  246. list-style-type: none;
  247. margin-top:20px;
  248. padding:0px;
  249. line-height:40px;
  250. font-size:12px;
  251. }
  252. .notess img{
  253. border-radius:100%;
  254. }
  255.  
  256. .textbuttons ul{
  257. list-style:none;
  258. position:relative;
  259. }
  260. .entry:hover .textbuttons li{
  261. opacity:1;
  262. }
  263. .textbuttons li {
  264. list-style:None;
  265. float: right;
  266. opacity:0;
  267. }
  268. .textbuttons li:first-child {
  269. margin-left:12px;
  270. }
  271.  
  272. .textnote{
  273. position:absolute;
  274. margin-left:0px;
  275. bottom:-1px;
  276. font-weight:700;
  277. opacity:0;
  278. }
  279. .entry:hover .textnote{
  280. opacity:1;
  281. }
  282. .textnote a{
  283. font-family:helvetica;
  284. font-size:11px;
  285. color:#a3a3a3;
  286. }
  287.  
  288. .chat li {
  289. list-style-type:none;
  290. margin-left:-40px;
  291. padding:5px;
  292. border-bottom:2px solid #dddddd;
  293. }
  294. .label{
  295. font-weight:700;
  296. font-size:11px;
  297. }
  298.  
  299. {CustomCSS}
  300. </style>
  301.  
  302. <title>{title}</title>
  303.  
  304. <link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
  305.  
  306. </head>
  307. <body>
  308.  
  309. <div id="header">
  310. {block:ifnotbanner}
  311. <span class="blogtitle">{Title}</span>
  312. {/block:ifnotbanner}
  313. {block:ifbanner}
  314. <span class="banner"><img src="{image:banner}" alt="{title}" height="100"></span>
  315. {/block:ifbanner}
  316. <div class="nav">
  317. <a href="/">{text:home}</a>
  318. <a href="/ask">{text:message}</a>
  319. <a href="/archive">{text:archive}</a>
  320. {block:HasPages}{block:Pages}<a href="{URL}"><span class="speclink">{Label}</span></a> {/block:Pages}{/block:HasPages}
  321. <a href="http://atlasdesigns.co/">Theme</a>
  322. </div>
  323. <div id="description">{Description}</div>
  324. </div>
  325.  
  326. <div id="content">
  327. {block:Posts}
  328.  
  329. <div class="entry">
  330.  
  331. {block:Text}
  332. <div class="answer">{block:Title}<span class="title">{Title}</span>{/block:Title}{Body}
  333. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  334. <ul class="textbuttons">
  335. <li>{ReblogButton color="gray" size=15}</li>
  336. <li>{LikeButton color="gray" size=15}</li>
  337. </ul><br>
  338. {/block:IndexPage}
  339. </div>
  340. {/block:Text}
  341.  
  342. {block:Link}
  343. <div class="answer"><a href="{URL}"><span class="title">{Name}</span></a>
  344. {block:Description}{Description}{/block:Description}
  345. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  346. <ul class="textbuttons">
  347. <li>{ReblogButton color="gray" size=15}</li>
  348. <li>{LikeButton color="gray" size=15}</li>
  349. </ul><br>
  350. {/block:IndexPage}
  351. </div>
  352. {block:Link}
  353.  
  354. {block:Photo}
  355. {block:IndexPage}
  356. <ul class="like_and_reblog_buttons">
  357. <li>{ReblogButton color="white" size=17}</li>
  358. <li>{LikeButton color="white" size=17}</li>
  359. </ul>
  360. {/block:IndexPage}
  361. {block:IndexPage}{LinkOpenTag}<div class="photo"><a href="{permalink}"><img src="{PhotoURL-500}" alt="{PhotoAlt}" width=100%/></a></div>{LinkCloseTag}
  362. {block:ifshowcaptions}{block:Caption}<div class="caption">{Caption}</div>{/block:Caption}{/block:ifshowcaptions}
  363. {/block:IndexPage}{block:PermalinkPage}{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" width=500px/>{LinkCloseTag}{/block:PermalinkPage}
  364. {/block:Photo}
  365.  
  366. {block:Photoset}
  367. <center>
  368. {block:IndexPage}{Photoset-250}{/block:IndexPage}
  369. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  370. </center>
  371. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  372. <ul class="textbuttons">
  373. <li>{ReblogButton color="gray" size=15}</li>
  374. <li>{LikeButton color="gray" size=15}</li>
  375. </ul><br>
  376. {/block:IndexPage}
  377. {/block:Photoset}
  378.  
  379. {block:Quote}
  380. <div class="answer"><div class="title">{Quote}</div>- {Source}
  381. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  382. <ul class="textbuttons">
  383. <li>{ReblogButton color="gray" size=15}</li>
  384. <li>{LikeButton color="gray" size=15}</li>
  385. </ul><br>
  386. {/block:IndexPage}
  387. </div>
  388. {/block:Quote}
  389.  
  390. {block:Chat}
  391. <div class="answer">
  392. <div style="margin-left:3px;">
  393. {block:Title}<span class="title">{Title}</span>{/block:Title}
  394. <ul class="chat">
  395. {block:Lines}
  396. <li class="user_{UserNumber}">
  397. {block:Label}
  398. <span class="label">{Label}</span>
  399. {/block:Label}
  400. {Line}
  401. </li>
  402. {/block:Lines}
  403. </ul>
  404. </div>
  405. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  406. <ul class="textbuttons">
  407. <li>{ReblogButton color="gray" size=15}</li>
  408. <li>{LikeButton color="gray" size=15}</li>
  409. </ul><br>
  410. {/block:IndexPage}
  411. </div>
  412. {/block:Chat}
  413.  
  414. {block:Audio}
  415. {block:AlbumArt}
  416. <center><a href="{Permalink}"><img src="{AlbumArtURL}" width="100%"></a></center>
  417. {/block:AlbumArt}
  418. <div class="play">{AudioPlayerWhite}</div>
  419. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  420. {/block:IndexPage}
  421. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  422. <ul class="textbuttons">
  423. <li>{ReblogButton color="gray" size=15}</li>
  424. <li>{LikeButton color="gray" size=15}</li>
  425. </ul><br>
  426. {/block:IndexPage}
  427. {/block:Audio}
  428.  
  429. {block:Answer}
  430. <div class="answer"><div style="font-size:11px;line-height:11px;font-style:italic;color:{color:links}"><i>{Asker} asked:</i></div><br><span class="title">{Question}</span><hr color={color:title}>{Answer}
  431. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  432. <ul class="textbuttons">
  433. <li>{ReblogButton color="gray" size=15}</li>
  434. <li>{LikeButton color="gray" size=15}</li>
  435. </ul><br>
  436. {/block:IndexPage}
  437. </div>
  438. {/block:Answer}
  439.  
  440. {block:Video}
  441. {block:IndexPage}
  442. <center>
  443. {Video-250}</center>
  444. {block:IndexPage}<div class="textnote"><a href="{Permalink}">{NoteCountwithLabel}</a></div>
  445. <ul class="textbuttons">
  446. <li>{ReblogButton color="gray" size=15}</li>
  447. <li>{LikeButton color="gray" size=15}</li>
  448. </ul><br>
  449. {/block:IndexPage}
  450. {/block:IndexPage}
  451. {block:PermalinkPage}
  452. <center>
  453. {Video-500}</center>
  454. {/block:PermalinkPage}
  455. {block:Video}
  456.  
  457. {block:PermalinkPage}
  458. {block:HasTags} &middot; {block:Tags}<a href="{TagURL}"> #{Tag}</a> {/block:Tags}{/block:hasTags}
  459. {/block:PermalinkPage}
  460.  
  461. {block:PostNotes}
  462. <div class="notess">{block:Caption}{Caption}{/block:Caption}
  463. {block:NoteCount}<br><span class="title">{NoteCountWithLabel}:</span>{/block:NoteCount}
  464. <br>{PostNotes}</div>
  465. {/block:PostNotes}
  466. </div>
  467.  
  468. {/block:Posts}
  469.  
  470. {block:IndexPage}
  471. {block:Pagination}
  472. <div id="pagination">
  473. {block:NextPage}
  474. <a id="nextPage" href="{NextPage}"></a>
  475. {/block:NextPage}
  476. {block:PreviousPage}
  477. <a href="{PreviousPage}"></a>
  478. {/block:PreviousPage}
  479. </div>
  480. {/block:Pagination}
  481. {/block:IndexPage}
  482. </div>
  483. </body>
  484. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement