aeternaphantasia

theme base: sunlight avenue

Dec 29th, 2016
9,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <title>{Title}</title>
  4. <link rel="shortcut icon" href="{Favicon}">
  5. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  6. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  7.  
  8. <!--This renders the title that appears in the browser tab. You can add {*block:PostSummary} (without the asterisk)after title if you want to. The block will show you the post summary when you visited a post's permalink.-->
  9.  
  10. <html>
  11. <head>
  12.  
  13. <!--
  14.  
  15. Hello! This is my first theme base. You can use this base to build your own theme, taking bits of the code, experiment with it, whatever. You don't need to credit me if you're using this base, but please don't steal this base and or claiming is as your own. Also if you make themes using this base please let me know so I can see your work! c;
  16.  
  17. I know how frustrating it can be for beginners to figure out how Tumblr blocks or HTML and CSS in general work, so I'll try my best to guide you through editing this theme with the notes I've written. Google is your best friend, and so is w3school. If you still don't get something or have tried everything but it doesn't work, you can reach me through the chat or askbox c: Remember, coding themes is supposed to be fun, not something that makes you feel bad about yourself. Be proud of what you've done, even if it's not decent. Hey, at least you've started something!
  18.  
  19. If you do use this theme as it is, please do not remove the credit!
  20.  
  21. Update 3/30 2018: Fixed a bug in which notes on permalink pages cannot be displayed.
  22.  
  23. -->
  24.  
  25. <!--
  26.  
  27. Variables
  28.  
  29. Variables in Tumblr mean meta contents; aka the things that enables user to customize their own theme without having to make changes to the CSS and HTML itself. Give your users freedom in editing your theme to suit their taste: colors, fonts, post widths, grid view, whatever.
  30.  
  31. Tumblr also introduces the meta content "if", which is, technically speaking, a boolean operation. This is rendered in the theme css/html as {*block:ifsomething}{*/block:ifsomething}.
  32.  
  33. Every theme maker has different way to organize their variables, but I personally like to organize my variables into three categories: variables for customizing the blog general appearance (background and overall accent), variables for customizing the sidebar (background, image, etc) and the misc variables usually used to customize the more techie side of the blog (scripts, music codes, links).
  34.  
  35. -->
  36.  
  37. <meta name="image:background" content=""/>
  38.  
  39. <meta name="color:background" content="#F7F7F7"/>
  40. <meta name="color:body" content="#C9C9C9"/>
  41. <meta name="color:post background" content="#fff"/>
  42. <meta name="color:blockquote" content="#FFC9B2"/>
  43. <meta name="color:link" content="#E8D2A2"/>
  44. <meta name="color:link hover" content="#FFE5BF"/>
  45. <meta name="color:post title color" content="#FFC9B2"/>
  46. <meta name="color:post info background" content="#E8D2A2"/>
  47. <meta name="color:post info text" content="#fff"/>
  48. <meta name="color:link background" content="#E8D2A2"/>
  49. <meta name="color:link text" content="#fff"/>
  50. <meta name="color:question background" content="#F7F7F7"/>
  51.  
  52. <meta name="image:sidebar" content=""/>
  53.  
  54. <meta name="color:sidebar background" content="#fff"/>
  55. <meta name="color:blog title" content="#383838"/>
  56. <meta name="color:description" content="#383838"/>
  57. <meta name="color:navigation link background" content="#fff"/>
  58. <meta name="color:navigation link text" content="#FFC9B2"/>
  59. <meta name="color:custom link background" content="#fff"/>
  60. <meta name="color:custom link text" content="#FFC9B2"/>
  61.  
  62. <meta name="color:scrollbar background" content="#FFEFB2"/>
  63. <meta name="color:tooltip background" content="#FFE5BF"/>
  64. <meta name="color:tooltip text" content="#fff"/>
  65.  
  66. <meta name="text:link1" content=""/>
  67. <meta name="text:link1URL" content=""/>
  68. <meta name="text:link2" content=""/>
  69. <meta name="text:link2URL" content=""/>
  70. <meta name="text:link3" content=""/>
  71. <meta name="text:link3URL" content=""/>
  72. <meta name="text:link4" content=""/>
  73. <meta name="text:link4URL" content=""/>
  74.  
  75. <meta name="if:400px" content="0"/>
  76. <meta name="if:500px" content="1"/>
  77. <meta name="if:fadingphoto" content="0"/>
  78. <meta name="if:grayscale" content="1"/>
  79.  
  80. <!--scripts-->
  81.  
  82. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  83.  
  84. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  85.  
  86. <script>
  87.  
  88. (function($){
  89.  
  90. $(document).ready(function(){
  91.  
  92. $("a[title]").style_my_tooltips({
  93.  
  94. tip_follows_cursor:true,
  95.  
  96. tip_delay_time:0,
  97.  
  98. tip_fade_speed:0,
  99.  
  100. attribute:"title"
  101.  
  102. });
  103.  
  104. });
  105.  
  106. })(jQuery);
  107.  
  108. </script>
  109.  
  110. <style type="text/css">
  111. /**webkit scrollbar**/
  112.  
  113. ::-webkit-scrollbar{
  114. width:4px;
  115. }
  116.  
  117. ::-webkit-scrollbar-thumb:vertical{
  118. background:{color:scrollbar background};
  119. height:auto;
  120. }
  121. /**tooltips**/
  122.  
  123. #s-m-t-tooltip {
  124. max-width:150px;
  125. padding:5px 10px 5px 10px;
  126. margin:20px 14px 7px 10px;
  127. background-color:{color:tooltipbg}; /* change the background color */
  128. font-family:calibri; /* change the font */
  129. font-style: normal;
  130. font-size:10px; /* change the font size */
  131. line-height:11px;
  132. letter-spacing:1px; /* change the letter spacing */
  133. text-transform:uppercase; /* can be uppercase, lowercase, none*/
  134. color:{color:tooltipt}; /* change the text color */
  135. z-index:999999;
  136. }
  137.  
  138. /**general appearance**/
  139.  
  140. body{
  141. margin:0;
  142. padding:0;
  143. font:10px consolas;
  144. color:{color:body};
  145. background:{color:background} url('{image:background}') fixed;
  146. overflow-x:hidden;
  147. }
  148.  
  149. a{
  150. color:{color:link};
  151. text-decoration:none;
  152. }
  153.  
  154. a:hover{
  155. color:{color:link hover};
  156. }
  157.  
  158. blockquote{
  159. padding-left:10px;
  160. border-left:3px solid {color:blockquote};
  161. }
  162.  
  163. blockquote blockquote{
  164. padding-left:10px;
  165. border-left:3px solid {color:blockquote};
  166. }
  167. /**sidebar block**/
  168.  
  169. #sidebar{
  170. background:{color:sidebar background};
  171. width:180px;
  172. height:220px;
  173. position:fixed;
  174. margin-left:50px;
  175. margin-top:120px;
  176. padding:10px;
  177. }
  178.  
  179. #sidebar img{
  180. width:180px;
  181. height:220px;
  182. }
  183.  
  184. #blogtitle{
  185. position:fixed;
  186. display:block;
  187. min-width:120px;
  188. font:16px georgia;
  189. font-style:italic;
  190. text-align:center;
  191. padding:10px;
  192. font-weight:700;
  193. text-transform:lowercase;
  194. color:{color:blog title};
  195. margin-left:270px;
  196. margin-top:130px;
  197. border-bottom:1px solid {color:blog title};
  198. }
  199.  
  200. #desc{
  201. font:10px consolas;
  202. width:120px;
  203. min-height:90px;
  204. padding:10px;
  205. margin-left:270px;
  206. margin-top:170px;
  207. position:fixed;
  208. color:{color:description};
  209. }
  210.  
  211. /**navigation block.**/
  212.  
  213. #nav_bar{
  214. width:230px;
  215. position:fixed;
  216. margin-left:35px;
  217. margin-top:75px;
  218. padding:10px;
  219. }
  220.  
  221. .nav_link a{
  222. min-width:40px;
  223. background:{color:navigation link background};
  224. color:{color:navigation link text};
  225. display:inline-block;
  226. margin:4px;
  227. font:10px calibri;
  228. text-align:center;
  229. padding:2px;
  230. text-transform:uppercase;
  231. }
  232.  
  233. #customlink_bar{
  234. width:230px;
  235. position:fixed;
  236. margin-top:360px;
  237. padding:10px;
  238. margin-left:35px;
  239. }
  240.  
  241. .custom_link a{
  242. min-width:40px;
  243. background:{color:custom link background};
  244. color:{color:custom link text};
  245. display:inline-block;
  246. margin:4px;
  247. font:10px calibri;
  248. text-align:center;
  249. padding:2px;
  250. text-transform:uppercase;
  251. }
  252.  
  253. /**Container block. I tend to wrap my post blocks inside a container to make it easier to center them or to position them in general. Also crucial if you want to make a grid layout theme.
  254.  
  255. This theme base doesn't support grid layout, but you can add the script if you want this theme to support grid layout!**/
  256.  
  257. #container{
  258. margin-left:550px;
  259. position:relative;
  260. }
  261.  
  262. .post{
  263. /**Introducing: Tumblr Ifs. The if block is very versatile and is usually used if you want the code to do something if certain condition is met. For example in my block here, if the user wants to have 400px posts, their post will be 400px in width. The if block is rendered only if certain condition is met, and as my experience goes, this block is sometimes nestable (meaning you can have an if block inside another if block) and sometimes it doesn't work. **/
  264.  
  265. {block:if400px}
  266. width:400px;
  267. {/block:if400px}
  268.  
  269. {block:if500px}
  270. width:500px;
  271. {/block:if500px}
  272.  
  273. position:relative;
  274. word-wrap:break-word;
  275. margin-top:50px;
  276. margin-bottom:50px;
  277. padding:12px;
  278. background:{color:post background};
  279. }
  280.  
  281. .post img{
  282. max-width:100%;
  283. }
  284.  
  285. .title{
  286. display:block;
  287. padding:10px;
  288. text-align:center;
  289. font:16px georgia;
  290. color:{color:post title color};
  291. text-transform:uppercase;
  292. font-weight:700;
  293. }
  294.  
  295. /**photo post**/
  296. .photopost{
  297. {block:if400px}
  298. max-width:400px;
  299. {/block:if400px}
  300.  
  301. {block:if500px}
  302. max-width:500px;
  303. {/block:if500px}
  304. {block:iffadingphoto}
  305.  
  306. opacity:0.7;
  307. transition:0.5s ease-in-out;
  308. -moz-transition:0.5s ease-in-out;
  309. -webkit-transition:0.5s ease-in-out;
  310. {/block:iffadingphoto}
  311.  
  312. {block:ifgrayscale}
  313. -webkit-filter:grayscale(100%);
  314. transition:0.5s ease-in-out;
  315. -moz-transition:0.5s ease-in-out;
  316. -webkit-transition:0.5s ease-in-out;
  317. {/block:ifgrayscale}
  318. }
  319.  
  320. .photopost:hover{
  321. {block:iffadingphoto}
  322. opacity:1;
  323. {/block:iffadingphoto}
  324.  
  325. {block:ifgrayscale}
  326. -webkit-filter:grayscale(0);
  327. {/block:ifgrayscale}
  328. }
  329.  
  330. /**quote post**/
  331. #quote{
  332. text-align:center;
  333. font:16px georgia;
  334. font-weight:700;
  335. font-style:italic;
  336. }
  337.  
  338. #source{
  339. display:block;
  340. text-align:right;
  341. text-transform:uppercase;
  342. font:14px georgia;
  343. margin-bottom:10px;
  344. }
  345.  
  346. /**link post**/
  347. #link{
  348. display:block;
  349. padding:10px;
  350. background:{color:link background};
  351. color:{color:link text};
  352. text-transform:uppercase;
  353. font:16px georgia;
  354. text-align:center;
  355. font-weight:700;
  356. }
  357.  
  358. /**chat post**/
  359. .chat li{
  360. list-style-type:none !important;
  361. padding:8px;
  362. margin-left:-40px;
  363. margin-top:4px;
  364. margin-bottom:2px;
  365. font:11px courier;
  366. }
  367. /**audio post**/
  368.  
  369.  
  370. /**ask post**/
  371. #askimg{
  372. width:48px;
  373. height:48px;
  374. float:left;
  375. }
  376.  
  377. #asker, #asker a{
  378. text-transform:uppercase;
  379. display:inline-block;
  380.  
  381. }
  382.  
  383. .qtext{
  384. margin-left:10px;
  385. }
  386.  
  387. .qbox{
  388. {block:if400px}
  389. width:80%;
  390. {/block:if400px}
  391.  
  392. {block:if500px}
  393. width:83%;
  394. {/block:if500px}
  395.  
  396. padding:10px;
  397. min-height:30px;
  398. background:{color:question background};
  399. margin-left:60px;
  400. }
  401.  
  402. /**post info**/
  403. .postinfo{
  404. display:block;
  405. padding:5px;
  406. height:20px;
  407. text-align:center;
  408. background:{color:post info background};
  409. color:{color:post info text};
  410. text-transform:uppercase;
  411. font:14px calibri;
  412. line-height:150%;
  413. font-weight:700;
  414. }
  415.  
  416. .postinfo a{
  417. color:{color:post info text};
  418. }
  419.  
  420. /**post tags**/
  421. .tagcont{
  422. margin-top:10px;
  423. }
  424.  
  425. .tagcont a{
  426. display:inline;
  427. text-transform:uppercase;
  428. }
  429.  
  430. /**pagination**/
  431. #pagcont{
  432. position:fixed;
  433. width:100px;
  434. margin-left:300px;
  435. margin-top:370px;
  436. }
  437.  
  438. #pagcont a{
  439. color:{color:body};
  440. }
  441.  
  442.  
  443. ol.notes{
  444. list-style-type:none !important;
  445. padding:8px;
  446. }
  447.  
  448. ol.notes li.note{
  449. top:0;
  450. padding-bottom:10px;
  451. }
  452.  
  453. .pnotes img.avatar{
  454. float:left;
  455. margin-right:10px;
  456. }
  457.  
  458. .pnotes a{
  459. font-family:consolas;
  460. text-transform:uppercase;
  461. }
  462.  
  463. /**if you're using this theme as it is, please leave this block be. otherwise, feel free to delete this block!**/
  464.  
  465. #credit a{
  466. right:10px;
  467. bottom:10px;
  468. position:fixed;
  469. width:20px;
  470. height:10px;
  471. padding:10px;
  472. background:#fff;
  473. color:#eee;
  474. }
  475.  
  476. </style>
  477. </head>
  478.  
  479. <body>
  480. <div id="credit"><a href="http://kuzuriha.tumblr.com">thm.</a></div>
  481.  
  482. <div id="sidebar"><img src="{image:sidebar}"></div>
  483. <div id="blogtitle">{Title}</div>
  484. <div id="desc">{Description}</div>
  485.  
  486. <!--navigation block-->
  487. <div id="nav_bar">
  488. <div class="nav_link">
  489. <a href="/">return</a>
  490. <a href="/ask">ask</a>
  491. <a href="/archive">past</a>
  492. <a href="/submit">submit</a>
  493. </div>
  494. </div><!--end nav_bar-->
  495.  
  496. <div id="customlink_bar">
  497. <div class="custom_link">
  498. {block:ifLink1}
  499. <a href="{text:Link1URL}">{text:Link1}</a>
  500. {/block:ifLink1}
  501.  
  502.  
  503. {block:ifLink2}
  504. <a href="{text:Link2URL}">{text:Link2}</a>
  505. {/block:ifLink2}
  506.  
  507. {block:ifLink3}
  508. <a href="{text:Link3URL}">{text:Link3}</a>
  509. {/block:ifLink3}
  510.  
  511. {block:ifLink4}
  512. <a href="{text:Link4URL}">{text:Link4}</a>
  513. {/block:ifLink4}
  514.  
  515. </div>
  516.  
  517. </div><!--end customlink_bar-->
  518.  
  519. <div id="pagcont">
  520. {block:Pagination}
  521. {block:PreviousPage}<a href="{PreviousPage}">←</a>{/block:PreviousPage}
  522. <span class="current_page">{CurrentPage}</span>/{TotalPages}
  523. {block:NextPage}<a href="{NextPage}">→</a>{/block:NextPage}
  524. {/block:Pagination}
  525. </div>
  526. <div id="container">
  527.  
  528. <!--This is the real content of your theme. You can refer to the Tumblr docs for reference as what each block does.-->
  529.  
  530. {block:Posts}
  531. <div class="post">
  532. {block:Text}
  533. {block:Title}<div class="title">{Title}</div>{/block:Title}
  534. {Body}
  535. {/block:Text}
  536.  
  537. {block:Photo}
  538. {linkopentag}<div class="photopost"><center><img class="photo" src="{PhotoURL-HighRes}"></center></div>{linkclosetag}
  539. {block:Caption}{Caption}{/block:Caption}
  540. {/block:Photo}
  541.  
  542. {block:Photoset}
  543. {block:if500px}<div class="photopost">{Photoset-500}</div>{/block:if500px}
  544. {block:if400px}<div class="photopost">{Photoset-400}</div>{/block:if400px}
  545. {block:Caption}{Caption}{/block:Caption}
  546. {/block:Photoset}
  547.  
  548. {block:Video}
  549. {block:if500px}{Video-500}{/block:if500px}
  550. {block:if400px}{Video-400}{/block:if400px}
  551. {block:Caption}{Caption}{/block:Caption}
  552. {/block:Video}
  553.  
  554. {block:Quote}
  555. <div id="quote">{Quote}</div>
  556. {block:Source}<div id="source">{Source}</div>{/block:Source}
  557. {/block:Quote}
  558.  
  559. {block:Link}
  560. <a href="{URL}"><div id="link">{Name} →</div></a>
  561. {block:Description}{Description}{/block:Description}
  562. {/block:Link}
  563.  
  564. {block:Chat}
  565. {block:Title}<div class="title">{Title}</div>{/block:Title}
  566. <ul class="chat">
  567. {block:Lines}
  568. <li class="line_{Alt}"><span class="label">{block:Label}{Label}{/block:Label}</span> {Line}
  569. {/block:Lines}
  570. </li>
  571. </ul>
  572. {/block:Chat}
  573.  
  574. {block:Audio}
  575. {block:AudioEmbed}{AudioEmbed}{/block:AudioEmbed}
  576. {block:Caption}{Caption}{/block:Caption}
  577. {/block:Audio}
  578.  
  579. {block:Answer}
  580. <img src="{AskerPortraitURL-48}" id="askimg"/><div class="qbox"><div id="asker">{Asker}:</div> {Question}</div>
  581.  
  582. <div class="ans">{Answer}</div>
  583. {/block:Answer}
  584.  
  585. {block:IndexPage}
  586. {block:Date}<div class="postinfo"><a href="{Permalink}">{DayOfMonth} {Month} {Year}</a>{/block:Date} || {NoteCountWithLabel} || <a href="{ReblogURL}">rblg</a>
  587. {block:RebloggedFrom} || <a href="{ReblogParentURL}" title="{ReblogParentName}">via</a> || <a href="{ReblogRootURL}" title="{ReblogRootName}">src</a>{/block:RebloggedFrom}
  588.  
  589. </div>
  590. {block:HasTags}
  591. <div class="tagcont">{block:Tags}<a href="{TagURL}">#{Tag}</a>
  592. {/block:Tags}
  593. </div>
  594. {/block:HasTags}
  595.  
  596. {/block:IndexPage}
  597.  
  598. {block:PermalinkPage}
  599. {block:Date}<div class="pinfoperma">Posted on {MonthNumber}/{DayOfMonth} at {24HourWithZero}:{Minutes} with {NoteCountWithLabel}</div>{/block:Date}
  600.  
  601. {block:PostNotes}
  602. <div class="pnotes">
  603. <ol class="notes">{PostNotes}</ol>
  604. </div>
  605. {/block:PostNotes}
  606. {/block:PermalinkPage}
  607.  
  608. </div>
  609. {/block:Posts}
  610.  
  611.  
  612. </div><!--end main container-->
  613.  
  614. </body>
  615. </html>
Advertisement
Add Comment
Please, Sign In to add comment