cherrybearr

Theme 12 Dropdown

Aug 1st, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.60 KB | None | 0 0
  1. <!--
  2.  
  3. Dropdown theme 12 by LilCherryBearr: themebylilcherrybearr.tumblr.com
  4. If you find a bug, need help, want to suggest improvements, or are interested in commissions, please contact me. More info on my blog ^^
  5.  
  6. Theme info:
  7. You cannot preview the header image in the editor. To preview your header image you have to open another tab with your blog and click the menu arrow at the top. Every time you make changes, just reload the page. Wallpaper-sized images or large width headers look the best.
  8.  
  9. I do not own the default pictures used.
  10.  
  11. -->
  12.  
  13. <html>
  14. <head>
  15. <title>{Title}</title>
  16. <link rel="shortcut icon" href="{Favicon}">
  17. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  18. {block:Description}
  19. <meta name="description" content="{MetaDescription}" />
  20. {/block:Description}
  21. <meta name="image:background" content="https://images5.alphacoders.com/495/495521.jpg" />
  22. <meta name="color:background color" content="#FFFFFF" />
  23. <meta name="font:font" content="" />
  24. <meta name="color:post color" content="#ffffff" />
  25. <meta name="color:link color" content="#ff8282" />
  26. <meta name="color:primary color" content="#74b0ff" />
  27. <meta name="color:secondary color" content="#8c8c8c" />
  28. <meta name="image:header" content="https://wallpaperlayer.com/img/2015/3/anime-sky-scenery-wallpaper-7984-8301-hd-wallpapers.jpg" />
  29.  
  30.  
  31. <script type="text/javascript"
  32. src="https://www.google.com/jsapi"></script>
  33.  
  34. <script type="text/javascript">
  35. google.load("jquery", "1.3");
  36. google.setOnLoadCallback(function() {
  37. jQuery(function($) {
  38. // do some stuff here, eg load your tweets, ...
  39.  
  40. //dropdown menus' function
  41. function dropdown($list_title,$list){
  42. $($list_title).hover(function() {
  43. clearTimeout($(this).data('timeout'));
  44. $($list).slideDown(200);
  45. }, function() {
  46. var t = setTimeout(function() {
  47. $($list).slideUp(200).fadeOut(200);
  48. }, 300);
  49. $(this).data('timeout', t);
  50. });
  51. }
  52. dropdown('#navigation','#navigationitems');
  53. dropdown('#links','#linksitems');
  54.  
  55. //arrows with label names
  56. function appear ($arrow,$name){
  57. $($arrow).hover(function() {
  58. clearTimeout($(this).data('timeout'));
  59. $($name).fadeIn(300);
  60. }, function() {
  61. var t = setTimeout(function() {
  62. $($name).fadeOut(300);
  63. }, 300);
  64. $(this).data('timeout', t);
  65. });
  66. }
  67. appear('.downarrow','.topbarnames');
  68. appear('#leftarrow','#left');
  69. appear('#rightarrow','#right');
  70.  
  71.  
  72. $('.menu').toggle(function(){
  73. $('#topbar').css("height", "100%");
  74. $('#header').slideDown(200);
  75. $('#menuin').removeClass('downarrow');
  76. $('#menuin').addClass('uparrow');
  77. },
  78. function(){
  79. $('#topbar').css("height", "3%");
  80. $('#header').slideUp(200);
  81. $('#menuin').removeClass('uparrow');
  82. $('#menuin').addClass('downarrow');
  83. });
  84. });
  85. });
  86. </script>
  87.  
  88. </head>
  89. <style>
  90.  
  91. /*General stuff*/
  92. @charset "UTF-8";
  93. :before, :after {
  94. content: '';
  95. display: block;
  96. position: absolute;
  97. }
  98.  
  99. body {
  100. background:url({image:background});
  101. background-color:{color:background color};
  102. background-attachment:fixed;
  103. background-position:center;
  104. font-family:{font:font};
  105. font-size:12px;
  106. overflow-x:hidden;
  107. }
  108.  
  109. a {
  110. text-decoration:none;
  111. color:{color:link color};
  112. }
  113.  
  114. ::-webkit-scrollbar {
  115. width:7px;
  116. height:7px;
  117. background-color:{color:post color};
  118. }
  119. ::-webkit-scrollbar-thumb {
  120. background-color:{color:secondary color};
  121. border-radius:20px;
  122. }
  123. ::-webkit-scrollbar-thumb:window-inactive {
  124. opacity:.5;
  125. }
  126.  
  127. /*Post Content CSS*/
  128.  
  129. #content {
  130. margin-left:150px;
  131. margin-top:50px;
  132. }
  133.  
  134. #posts2 {
  135. width:520px;
  136. list-style-type:none;
  137. margin:30px;
  138. left:220px;
  139. position:relative;
  140. }
  141. .posts {
  142. background-color:{color:post color};
  143. width:500px;
  144. margin:0 auto;
  145. padding:10px;
  146. }
  147.  
  148. blockquote {
  149. border-left:2px solid {color:secondary color};
  150. margin-left:10px;
  151. padding-left:5px;
  152. }
  153. .asker {
  154. margin-top:-20px;
  155. margin-left:45px;
  156. }
  157. .asker a{
  158. margin-left:5px;
  159. }
  160. .asker-question {
  161. margin-top:10px;
  162. }
  163. .asker-avatar {
  164. border-radius:100px;
  165. }
  166. .answerer {
  167. margin-top:-20px;
  168. margin-left:25px;
  169. }
  170. .aswerer-answer {
  171. margin-top:10px;
  172. }
  173. .answerer-avatar {
  174. border-radius:100px;
  175. }
  176. .question {
  177. border:2px dotted {color:primary color};
  178. padding:5px;
  179. border-radius:10px;
  180. margin:5px;
  181. }
  182. .answer {
  183. border:2px dotted {color:primary color};
  184. padding:5px;
  185. border-radius:10px;
  186. margin:5px;
  187. }
  188.  
  189. .chat li {
  190. list-style-type:none;
  191. margin-left:-40px;
  192. padding:5px;
  193. border-bottom:1px solid rgba(100,100,100,.5);
  194. }
  195. .chat li:last-child {
  196. border-bottom:none;
  197. }
  198.  
  199. /*Bottom of Post*/
  200. #bottom_post {
  201. background-color:{color:post color};
  202. padding:5px;
  203. }
  204. #date {
  205. border-top:2px dotted {color:primary color};
  206. background-color:{color:post color};
  207. }
  208. #noteperma {
  209. float:right;
  210. }
  211.  
  212. #tags {
  213. background-color:{color:post color};
  214. }
  215. #comma:last-child {
  216. display:none;
  217. }
  218.  
  219. #notecontainer {
  220. margin-top:10px;
  221. }
  222. /* credit */
  223.  
  224. #credit {
  225. position:fixed;
  226. left:95%;
  227. top:90%;
  228. background-color:{color:post color};
  229. padding:5px;
  230. overflow:hidden;
  231. opacity:1;
  232. width:30px;
  233. font-size:10px;
  234. -webkit-transition:all .5s ease-in-out;
  235. -moz-transition:all .5s ease-in-out;
  236. }
  237. #credit:hover {
  238. border:1px dotted {color:primary color};
  239. }
  240. #iconcredit {
  241. height:30px;
  242. width:30px;
  243. }
  244.  
  245. /*Topbar*/
  246. #topbar {
  247. list-style-type:none;
  248. position:fixed;
  249. width:100%;
  250. background-color:rgba(0,0,0,.7);
  251. border-bottom:2px dotted {color:primary color};
  252. padding:10px;
  253. height:3%;
  254. top:0%;
  255. left:0%;
  256. margin-top:0px;
  257. z-index:10;
  258. -webkit-transition:all 1s ease-in-out;
  259. }
  260. #topbar li {
  261. display:inline-block;
  262. }
  263. /*Navigation & links CSS*/
  264. .sectionhead {
  265. margin-left:35px;
  266. z-index:10;
  267. }
  268. .sectiontitle {
  269. color:{color:primary color};
  270. padding:10px;
  271. font-size:15px;
  272. margin-left:35px;
  273. }
  274. .sectiontitle:hover {
  275. cursor:default;
  276. }
  277. .sectiontitle:after {
  278. width: 0;
  279. height: 0;
  280. border-style: solid;
  281. border-width: 8.7px 5px 0 5px;
  282. border-color: {color:secondary color} transparent transparent transparent;
  283. margin-left:30px;
  284. margin-top:-10px;
  285. }
  286. .list {
  287. display:none;
  288. z-index:10;
  289. }
  290. .section {
  291. list-style-type:none;
  292. max-width:120px;
  293. position:absolute;
  294. margin-top:5px;
  295. }
  296. .section li {
  297. font-size:13px;
  298. padding:7px;
  299. background-color:rgba(0,0,0,.5);
  300. display:block !important;
  301. }
  302. .section li:hover {
  303. background-color:{color:secondary color};
  304. }
  305. .topbarnames {
  306. position:absolute;
  307. left:40px;
  308. top:5px;
  309. color:{color:primary color};
  310. display:none;
  311. }
  312. .topbarnames2 {
  313. width:100px;
  314. color:{color:primary color};
  315. position:relative;
  316. left:100px;
  317. display:none;
  318. }
  319. #pagemenu {
  320. margin:0 auto;
  321. height:30px;
  322. width:400px;
  323. }
  324. /*Menu & Pagination CSS*/
  325. .pagination {
  326. margin-top:-20px;
  327. left:;
  328. }
  329. .pagination li {
  330. list-style-type:none;
  331. }
  332. #leftside {
  333. float:left;
  334. top:5px;
  335. left:10px;
  336. position:relative;
  337. height:20px;
  338. width:70px;
  339. }
  340. #leftarrow {
  341. width: 0;
  342. height: 0;
  343. border-style: solid;
  344. border-width: 10px 17.3px 10px 0;
  345. border-color: transparent {color:primary color} transparent transparent;
  346. }
  347. #left {
  348. margin-left:-70px;
  349. top:-5px;
  350. }
  351. .menu {
  352. width:25px;
  353. height:20px;
  354. background-color:{color:primary color};
  355. position:relative;
  356. padding:3px;
  357. margin:0 auto;
  358. }
  359. .menu:hover {
  360. cursor:pointer;
  361. }
  362. .downarrow {
  363. width: 0;
  364. height: 0;
  365. border-style: solid;
  366. border-width: 21.7px 12.5px 0 12.5px;
  367. border-color: {color:secondary color} transparent transparent transparent;
  368. }
  369. .uparrow {
  370. width: 0;
  371. height: 0;
  372. border-style: solid;
  373. border-width: 0 12.5px 21.7px 12.5px;
  374. border-color: transparent transparent #7a7a7a transparent;
  375. }
  376. #rightside {
  377. float:right;
  378. position:relative;
  379. top:-20px;
  380. height:20px;
  381. width:70px;
  382. }
  383. #rightarrow {
  384. width: 0;
  385. height: 0;
  386. border-style: solid;
  387. border-width: 10px 0 10px 17.3px;
  388. border-color: transparent transparent transparent {color:primary color};
  389. }
  390. #right {
  391. top:-5px;
  392. left:10px;
  393. }
  394.  
  395. /*Menu/profile*/
  396. #header {
  397. background-image:url('{image:header}');
  398. background-repeat:no-repeat;
  399. background-position: center top;
  400. width:100%;
  401. height:95%;
  402. display:none;
  403. margin-top:10px;
  404. position:relative;
  405.  
  406. }
  407. #profile {
  408. width:500px;
  409. margin:0 auto;
  410. text-align:center;
  411. position:relative;
  412. top:50px;
  413. }
  414. #icon {
  415. border-radius:100px;
  416. position:relative;
  417. margin:0 auto;
  418. {block:IndexPage}left:10%;{/block:IndexPage}
  419. }
  420. #iconcontainer {
  421. width:500px;
  422. height:135px;
  423. }
  424. #blogtitle {
  425. color:white;
  426. background-color:rgba(0,0,0,.5);
  427. padding:5px;
  428. width:490px;
  429. overflow-y:hidden;
  430. }
  431. #description {
  432. padding:10px;
  433. background-color:white;
  434. margin-top:-10px;
  435. height:50px;
  436. overflow-y:scroll;
  437. }
  438.  
  439. #searchbar {
  440. z-index:10;
  441. float:right;
  442. position:absolute;
  443. left:80%;
  444. width:230px;
  445. height:50px;
  446. }
  447. #search {
  448. width:150px;
  449. }
  450. #button {
  451. background-color:rgba(0,0,0,.5);
  452. color:white;
  453. cursor:pointer;
  454. border:none;
  455. }
  456.  
  457. #bottomheader {
  458. background-color:blu;
  459. width:50%;
  460. height:230px;
  461. margin:0 auto;
  462. margin-top:80px;
  463. overflow:hidden;
  464. padding:5px;
  465. }
  466. .bottomheader_title {
  467. background-color:rgba(0,0,0,.5);
  468. width:150px;
  469. font-size:15px;
  470. color:white;
  471. padding:5px;
  472. text-align:center;
  473. margin:0 auto;
  474. }
  475. #following {
  476. width:330px;
  477. overflow-y:scroll;
  478. overflow-x:hidden;
  479. position:relative;
  480. top:-10px;
  481. }
  482. #followinglist {
  483. width:330px;
  484. height:200px;
  485. padding:5px;
  486. position:relative;
  487. }
  488. #followinglist li {
  489. list-style-type:none;
  490. display:inline-block;
  491. margin:2px;
  492. }
  493. #followinglist li:hover {
  494. opacity:.5;
  495. }
  496.  
  497. #likes_container {
  498. float:right;
  499. width:330px;
  500. height:225px;
  501. overflow-y:scroll;
  502. overflow-x:hidden;
  503. }
  504. #likes_container li {
  505. border-bottom:2px solid {color:primary color};
  506. padding:5px;
  507. position:relative;
  508. left:-30px;
  509. background-color:rgba(255,255,255,.7);
  510. margin:5px;
  511. }
  512. #more {
  513. text-align:center;
  514. position:relative;
  515. left:100px;
  516. }
  517. </style>
  518.  
  519. <body>
  520.  
  521.  
  522. <a id="credit" title="Theme by Lilcherrybearr" href="https://themebylilcherrybearr.tumblr.com/">Theme<img id="iconcredit" src="https://31.media.tumblr.com/avatar_aa05499ce1b8_128.png" /></a>
  523.  
  524. <ul id="topbar">
  525. <li class="sectionhead" id="navigation">
  526. <center><span class="sectiontitle">Navigation</span></center>
  527. <ul class="section list" id="navigationitems">
  528. <li><a href="{BlogURL}">Home</a></li>
  529. <li><a href="/ask">Ask</a></li>
  530. <li><a href="/submit">Submit</a></li>
  531. <li><a href="/archive">Archive</a></li>
  532. </ul>
  533. </li>
  534.  
  535. <li class="sectionhead" id="links">
  536. <center><span class="sectiontitle">Links</span></center>
  537. <ul class="section list" id="linksitems">
  538. {block:HasPages}{block:Pages}
  539. <a href="{url}"> <li>{Label}</li> </a>
  540. {/block:Pages}{/block:HasPages}
  541. </ul>
  542. </li>
  543.  
  544. <div id="pagemenu">
  545. <ul class="pagination">
  546. {block:PreviousPage}<li id="leftside"><a id="previous" href="{PreviousPage}"><div id="leftarrow" class="arrow"><span class="topbarnames2 name" id="left">Previous</span></div></a></li>{/block:PreviousPage}
  547. <div class="menu">
  548. <div id="menuin" class="downarrow arrow"></div>
  549. <span class="topbarnames name">Menu</span>
  550. </div>
  551. {block:NextPage}<li id="rightside"><a id="next" href="{NextPage}"><div id="rightarrow" class="arrow"><span class="topbarnames2 name" id="right">Next</span></div></a></li>{/block:NextPage}
  552. </ul>
  553. </div>
  554.  
  555. <div id="header">
  556. <form id="searchbar" action="/search" method="get">
  557. <input id="search" type="text" name="q" value="{SearchQuery}" placeholder="Search..." />
  558. <input id="button" type="submit" value="Search">
  559. </form>
  560. <div id="profile">
  561. <div id="iconcontainer"><img id="icon" src="{PortraitURL-128}" /></div>
  562. <h2 id="blogtitle">{Title}</h2>
  563. <p id="description">{Description}</p>
  564. </div> <!--profile-->
  565.  
  566. <div id="bottomheader">
  567.  
  568. {block:Likes}
  569. <div id="likes_container">
  570. <h2 class="bottomheader_title">Likes</h2>
  571.  
  572. {Likes limit="5" summarize="250" width="250"}
  573.  
  574. <a id="more" href="https://www.tumblr.com/liked/by/{Name}"> See more stuff I like </a>
  575. </div>
  576. {/block:Likes}
  577.  
  578. {block:Following}
  579. <div id="following">
  580. <h2 id="following_title" class="bottomheader_title">Following</h2>
  581. <ul id="followinglist">
  582. {block:Followed}
  583. <li>
  584. <a href="{FollowedURL}"><img src="{FollowedPortraitURL-30}"
  585.  
  586. title="{FollowedTitle}" /></a>
  587. </li>{/block:Followed}
  588. </ul>
  589. </div> <!--following-->
  590. {/block:Following}
  591.  
  592. </div><!--bottomheader-->
  593.  
  594. </div> <!--header-->
  595.  
  596. </ul> <!--topbar-->
  597.  
  598. <ol id="content">
  599. {block:Posts}
  600. <div id="posts2">
  601.  
  602. {block:Text}
  603. <li class="posts">
  604. {block:Title}
  605. <h3 id="title"><a id="title2" href="{Permalink}">{Title}</a></h3>
  606. {/block:Title}{Body}
  607. </li>
  608. {/block:Text}
  609.  
  610. {block:Photo}
  611. <li class="posts">
  612. <img src="{PhotoURL-500}" alt="{PhotoAlt}"/>
  613.  
  614. {block:Caption}
  615. <div class="caption">{Caption}</div>
  616. {/block:Caption}
  617. </li>
  618. {/block:Photo}
  619.  
  620. {block:Panorama}
  621. <li class="posts">
  622. {LinkOpenTag}
  623. <img src="{PhotoURL-Panorama}" alt="{PhotoAlt}"/>
  624. {LinkCloseTag}{block:Caption}
  625. <div class="caption">{Caption}</div>
  626. {/block:Caption}
  627. </li>
  628. {/block:Panorama}
  629.  
  630. {block:Photoset}
  631. <li class="posts">
  632. {Photoset-500}{block:Caption}
  633. <div class="caption">{Caption}</div>
  634. {/block:Caption}
  635. </li>
  636. {/block:Photoset}
  637.  
  638. {block:Quote}
  639. <li class="posts">
  640. <big>"{Quote}"</big>
  641.  
  642. {block:Source}
  643. <div class="source">- {Source}</div>
  644. {/block:Source}
  645. </li>
  646. {/block:Quote}
  647.  
  648. {block:Link}
  649. <li class="posts">
  650. <a href="{URL}" class="link" {Target}>{Name}</a>
  651.  
  652. {block:Description}
  653. <div class="description">{Description}</div>
  654. {/block:Description}
  655. </li>
  656. {/block:Link}
  657.  
  658. {block:Chat}
  659. <li class="posts">
  660. {block:Title}
  661. <h3><a href="{Permalink}">{Title}</a></h3>
  662. {/block:Title}
  663.  
  664. <ul class="chat">
  665. {block:Lines}
  666. <li class="{Alt} user_{UserNumber}">
  667. {block:Label}
  668. <span class="label"><b>{Label}</b></span>
  669. {/block:Label}{Line}
  670. </li>
  671. {/block:Lines}
  672. </ul>
  673. </li>
  674. {/block:Chat}
  675.  
  676. {block:Video}
  677. <li class="posts">
  678. {Video-500}{block:Caption}
  679. <div class="caption">{Caption}</div>
  680. {/block:Caption}
  681. </li>
  682. {/block:Video}
  683.  
  684. {block:Audio}
  685. <li class="posts">
  686. {AudioEmbed}{block:Caption}
  687. <div class="caption">{Caption}</div>
  688. {/block:Caption}
  689. </li>
  690. {/block:Audio}
  691.  
  692. {block:Answer}
  693. <li class="posts">
  694. <div class="question"><img class="asker-avatar" src="{AskerPortraitURL-40}" alt=""><div class="asker">{Asker} asked:</div>
  695. <div class="asker-question">{Question}</div>
  696. </div>
  697. {block:Answerer}
  698. <div class="answer"><img class="answerer-avatar" src="{AnswererPortraitURL-40}" alt=""><div class="answerer">{Answerer}:</div><p><div class="answerer-answer">{Answer}</div></div>
  699. {/block:Answerer}
  700. <div class="replies">
  701. {Replies}
  702. </div>
  703. </li>
  704. {/block:Answer}
  705.  
  706. <div id="bottom_post">
  707. {block:NoteCount} <div id="noteperma"> {NoteCountWithLabel} | <a href="{Permalink}"> Permalink </a> {/block:NoteCount} </div>
  708. {block:Date}
  709. <div id="date">{TimeAgo}</div>
  710. {/block:Date}
  711.  
  712. {block:HasTags}
  713. <div id="tags">
  714. {block:Tags}<a href="{TagURL}">#{Tag}</a><span id="comma">,</span>
  715. {/block:Tags}
  716. </div> <!--tags-->
  717. {/block:HasTags}
  718.  
  719. {block:PostNotes}
  720. <div id="notecontainer">{PostNotes}</div>
  721. {/block:PostNotes}
  722.  
  723. </div> <!--bottom_post-->
  724.  
  725. </div> <!--posts2-->
  726. {/block:Posts}
  727.  
  728. </p>
  729. </ol>
  730. </body>
  731. </html>
Advertisement
Add Comment
Please, Sign In to add comment