Advertisement
ogaraster

Chrome Theme

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