Advertisement
cvndythemes

Character Page #05

Sep 27th, 2017
2,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.09 KB | None | 0 0
  1. <!--
  2.  
  3. >> ETHEREAL THEMES // FANSITE THEME #05
  4.  
  5. Designed by etherealthemes
  6. etherealthemes.tumblr.com
  7. ⓒ 2016 - 2017
  8.  
  9. >> TERMS OF USE
  10.  
  11. Do NOT remove the credit
  12. Do NOT claim as your own
  13.  
  14. *You can move the credit, but leave it visible
  15. *Edit as much as you'd like
  16. *Feel free to ask about basic customization
  17. *Theme suggestions always welcomed
  18.  
  19. >> EXTRAS
  20.  
  21. Fonts by Google Fonts
  22. Icons by FontAwesome
  23.  
  24. NOTE:
  25. This page will auto center and auto align the characters. While editing, the characters might be mis-aligned. Once you go to yoururl.tumblr.com/page the characters will auto-fill the screen depending on the screen size that's being used to view.
  26.  
  27. Inverting Tumblr Controls - Search "Tumblr Controls" and delete the second code with the invert settings.
  28.  
  29. To change colors, press CTRL+F and "search for" the original hex code. Then change the color with the "replace with" to change all the associated colors. Then you can go through and tweak individual colors. This just makes it easier to go from light to dark without having to go through each color.
  30.  
  31. ACCENT COLORS CHEATSHEET:
  32. Pink - Topbar Title ; Link Hovers - #f3b9cf
  33. Blue - Character Names - #9bdcf7
  34. Black - Link Hover - #101010
  35.  
  36.  
  37. PAGE HELP //
  38.  
  39. For each character box, you'll need to change the number of the character/div in four places. IE if you have five characters, each character has an assigned number. So character one is assigned to "1", and there's four places in the code that need to correspond to that number. Character four would be "4", Character 200 would be "200".
  40.  
  41. There are three bits of code named:
  42. target="#"
  43.  
  44. and one with:
  45. id='content#'
  46.  
  47. Each needs to have matching numbers for the code to work. This allows the show/hide on click to work per character instead of clicking one image and every character info showing.
  48.  
  49.  
  50.  
  51. EXAMPLE //
  52.  
  53.  
  54.  
  55. <character one code start>
  56. <target="1">
  57. character info
  58. //////
  59.  
  60. <id='content1'>
  61. more info more info
  62. //////
  63.  
  64. <target="1">
  65. character info
  66. //////
  67.  
  68. <target="1">
  69. character info
  70. <character one code end>
  71.  
  72.  
  73.  
  74. <character two code start>
  75. <target="2">
  76. character info
  77. //////
  78.  
  79. <id='content2'>
  80. more info more info
  81. //////
  82.  
  83. <target="2">
  84. character info
  85. //////
  86.  
  87. <target="2">
  88. character info
  89. <character two code end>
  90.  
  91.  
  92.  
  93. <character three code start>
  94. <target="3">
  95. character info
  96. //////
  97.  
  98. <id='content3'>
  99. more info more info
  100. //////
  101.  
  102. <target="3">
  103. character info
  104. //////
  105.  
  106. <target="3">
  107. character info
  108. <character three code end>
  109.  
  110. -->
  111.  
  112. <!DOCTYPE html>
  113. <html>
  114. <title> Page Title </title>
  115.  
  116.  
  117. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  118.  
  119. <link href='https://fonts.googleapis.com/css?family=Open+Sans|Work+Sans:500' rel='stylesheet' type='text/css'>
  120.  
  121. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  122.  
  123.  
  124. <style type="text/css">
  125.  
  126. /* --- Body Scrollbar --- */
  127.  
  128. ::-webkit-scrollbar {width:7px;background-color:#ffffff;}
  129. ::-webkit-scrollbar-thumb {background-color:#eeeeee;}
  130.  
  131. /* --- Character Scrollbars --- */
  132.  
  133. div::-webkit-scrollbar {width:2px;background-color:rgba(0,0,0,0)!important;}
  134. div::-webkit-scrollbar-thumb {background-color:#dfdfdf;}
  135. div::-webkit-scrollbar-corner {background-color:rgba(0,0,0,0)!important;}
  136.  
  137. /* --- General --- */
  138.  
  139. body {
  140. margin:0px;
  141. font-family: 'Open Sans', sans-serif;
  142. color:#8f8f8f;
  143. font-size:10px;
  144. line-height:12px;
  145. background-color:#ffffff;
  146. }
  147.  
  148. #et {
  149. background:transparent;
  150. color:#000000;
  151. background:transparent;
  152. right:0px;
  153. bottom:0px;
  154. padding:5px;
  155. position:fixed;
  156. letter-spacing:1px;
  157. opacity:0.4;
  158. }
  159.  
  160. #et a {
  161. color:#000000;
  162. text-decoration:none;
  163. border:0px;
  164. }
  165.  
  166. /* --- Tumblr Controls --- */
  167.  
  168. iframe.tmblr-iframe {
  169. z-index:999999!important;
  170. top:0px!important;
  171. right:-10px!important;
  172. opacity:0.6!important;
  173. padding-right:10px;
  174. transform:scale(0.6);
  175. transform-origin:100% 0;
  176. -webkit-transform:scale(0.6);
  177. -webkit-transform-origin:100% 0;
  178. -o-transform:scale(0.6);
  179. -o-transform-origin:100% 0;
  180. -moz-transform:scale(0.6);
  181. -moz-transform-origin:100% 0;
  182. -ms-transform:scale(0.6);
  183. -ms-transform-origin:100% 0;
  184. }
  185.  
  186. iframe.tmblr-iframe {
  187. filter:invert(1);
  188. -webkit-filter:invert(1);
  189. -o-filter:invert(1);
  190. -moz-filter:invert(1);
  191. -ms-filter:invert(1);
  192. }
  193.  
  194.  
  195. /* --- Topbar --- */
  196.  
  197. #topbar {
  198. position:fixed;
  199. top:0px;
  200. left:0px;
  201. width:100%;
  202. height:90px;
  203. text-align:center;
  204. background-color:#ffffff;
  205. border-bottom:1px solid #eeeeee;
  206. z-index:3;
  207. }
  208.  
  209. .topbartitle {
  210. margin-top:25px;
  211. margin-bottom:20px;
  212. font-family: 'Work Sans', sans-serif;
  213. font-weight:500;
  214. font-size:32px;
  215. letter-spacing:-1px;
  216. text-transform:uppercase;
  217. text-align:center;
  218. font-style:italic;
  219. color:#f3b9cf;
  220. }
  221.  
  222. #topbar a {
  223. padding:5px 10px 5px 10px;
  224. color:#000000;
  225. font-size:10px;
  226. text-transform:uppercase;
  227. text-decoration:none;
  228. border-bottom:1px solid #ffffff;
  229. -webkit-transition: all 0.3s ease-in-out;
  230. -moz-transition: all 0.3s ease-in-out;
  231. -o-transition: all 0.3s ease-in-out;
  232. }
  233.  
  234. #topbar a:hover {
  235. color:#000000;
  236. border-bottom:1px solid #000000;
  237. }
  238.  
  239.  
  240. /* --- Containers --- */
  241.  
  242. #container {
  243. margin: 0 auto;
  244. width:100%;
  245. text-align:center;
  246. display:inline-block;
  247. }
  248.  
  249. #main {
  250. margin: 0 auto;
  251. margin-top:120px;
  252. text-align:center;
  253. display:inline-block;
  254. width:80%;
  255. }
  256.  
  257. /* --- Characters --- */
  258.  
  259. .characters {
  260. display:inline-block;
  261. width:450px;
  262. height:300px;
  263. margin:0px 20px 35px 20px;
  264. }
  265.  
  266. .charactermain {
  267. width:450px;
  268. height:300px;
  269. -webkit-transition: all 350ms linear;
  270. -moz-transition: all 350ms linear;
  271. -ms-transition: all 350ms linear;
  272. -o-transition: all 350ms linear;
  273. transition: all 350ms linear;
  274. }
  275.  
  276. .characterimg {
  277. height:300px;
  278. width:450px;
  279. z-index:-1!important;
  280. }
  281.  
  282. .characterimg img {
  283. height:300px;
  284. width:450px;
  285. z-index:-1!important;
  286. }
  287.  
  288.  
  289. /* --- Character Hover Info --- */
  290.  
  291. .characterinfo {
  292. position:absolute;
  293. margin-top:-300px;
  294. margin-left:0px;
  295. width:450px;
  296. height:300px;
  297. -webkit-transition: all 350ms linear;
  298. -moz-transition: all 350ms linear;
  299. -ms-transition: all 350ms linear;
  300. -o-transition: all 350ms linear;
  301. transition: all 350ms linear;
  302. }
  303.  
  304. .characterimghover {
  305. height:300px;
  306. width:450px;
  307. }
  308.  
  309. .characterimghover img {
  310. height:300px;
  311. width:450px;
  312. }
  313.  
  314. .charinfo {
  315. position:absolute;
  316. margin-top:-275px;
  317. margin-left:25px;
  318. height:230px;
  319. width:380px;
  320. padding:10px;
  321. color:#ffffff;
  322. background:rgba(0,0,0,.9)!important;
  323. font-family: 'Work Sans', sans-serif;
  324. font-weight:500;
  325. font-size:10px;
  326. text-align:left;
  327. }
  328.  
  329.  
  330. .charportrait {
  331. height:230px;
  332. width:150px;
  333. }
  334.  
  335. .info {
  336. height:225px;
  337. margin-left:160px;
  338. width:200px;
  339. padding:10px;
  340. margin-top:-230px;
  341. text-align:center;
  342. overflow:scroll;
  343. }
  344.  
  345. .info a {
  346. border:0px;
  347. text-decoration:none;
  348. color:#ffffff;
  349. font-style:italic;
  350. -webkit-transition: all 10ms linear;
  351. -moz-transition: all 100ms linear;
  352. -ms-transition: all 100ms linear;
  353. -o-transition: all 100ms linear;
  354. transition: all 100ms linear;
  355. }
  356.  
  357. .info a:hover {color:#f3b9cf;}
  358.  
  359. .bio {
  360. text-align:left;
  361. }
  362.  
  363. h1 {
  364. font-family: 'Work Sans', sans-serif;
  365. font-weight:500;
  366. font-size:18px;
  367. font-size:16px;
  368. text-transform:uppercase;
  369. text-align:center;
  370. color:#9bdcf7;
  371. margin:10px 0 10px 0;
  372. }
  373.  
  374. .charactertitle {
  375. position:absolute;
  376. margin-top:-200px;
  377. margin-left:62px;
  378. padding-top:45px;
  379. height:55px;
  380. width:325px;
  381. color:#ffffff;
  382. font-family: 'Work Sans', sans-serif;
  383. font-weight:500;
  384. font-size:14px;
  385. letter-spacing:5px;
  386. text-transform:uppercase;
  387. text-align:center;
  388. font-style:italic;
  389. }
  390.  
  391. .characterdiv {display:none;}
  392.  
  393. a.showSingle:link, a.showSingle:hover {color:#ffffff;}
  394.  
  395. </style>
  396.  
  397. </head>
  398. <body>
  399.  
  400.  
  401. <!-- Start Topbar -->
  402. <div id="topbar">
  403. <div class="topbartitle">Character Page</div>
  404.  
  405. <a href="#">Link</a>
  406. <a href="#">Link</a>
  407. <a href="#">Link</a>
  408. <a href="#">Link</a>
  409. <a href="#">Link</a>
  410. <a href="#">Link</a>
  411. <a href="#">Link</a>
  412.  
  413. </div></div>
  414. <!-- End Topbar -->
  415.  
  416.  
  417.  
  418. <div id="container">
  419. <div id="main">
  420.  
  421.  
  422.  
  423.  
  424. <!-- Start Character -->
  425. <div class="characters">
  426.  
  427. <!-- Main Character Image -->
  428. <!-- This is the main image + character name that always shows -->
  429. <a class="showSingle" target="1">
  430.  
  431. <div class="charactermain">
  432.  
  433. <div class="characterimg">
  434. <img src="http://placehold.it/450X300" /><!-- Character image 450X300 -->
  435. </div>
  436.  
  437. <div class="charactertitle">Character Name</div><!-- Character Name -->
  438. </div>
  439.  
  440. </a>
  441. <!-- Main Character Image End -->
  442.  
  443.  
  444. <!-- Character Hover Info Start -->
  445. <!-- This is information box + image that shows when you click the main image -->
  446. <div id='content1' class="characterdiv">
  447. <a class="showSingle" target="1">
  448.  
  449. <div class="characterinfo">
  450. <div class="characterimghover">
  451. <img src="http://placehold.it/450X300" /><!-- Character Hover Image Background 450X300 -->
  452. </div>
  453.  
  454. <!-- Character Information -->
  455. <div class="charinfo">
  456.  
  457. <div class="charportrait">
  458. <img src="http://placehold.it/150X230" /><!-- Small Character Image 150X230 -->
  459. </div>
  460. <div class="info">
  461. <h1>Character Name</h1><!-- Character name here -->
  462.  
  463. personality type ; age ; gender</a>
  464. <p><!-- This adds a space between sections -->
  465. <a href="#">Link</a>
  466. <a href="#">Link</a>
  467. <a href="#">Link</a>
  468. <a href="#">Link</a>
  469. <a href="#">Link</a>
  470.  
  471. <a class="showSingle" target="1">
  472. <div class="bio">
  473. Character bio goes here. Lorem ipsum dolor sit amet, nunc quam id sed aliquet volutpat, praesent eu habitant eu eget voluptatibus, qui mauris et dapibus risus nulla, condimentum in tincidunt. Sed at, dignissim est rhoncus blandit erat sit tempus, sodales volutpat nibh sit suscipit, quis metus phasellus sit quis. Tincidunt ornare condimentum dignissim, non eu vel proin vitae, faucibus ut porta, purus feugiat elementum consequat et. Bibendum faucibus justo.
  474. <p><!-- This adds a space between lines -->
  475. lorem odio ut nibh, natoque magna adipiscing nec. Et dui et voluptatem, diam auctor augue id sed quis mattis, enim tellus enim, suscipit felis mollis ornare hymenaeos sem eros. Libero mollis ut fusce nulla, quis cras sem praesent consequat proin id, libero consequat mauris vestibulum donec.
  476. </div>
  477.  
  478. </div>
  479.  
  480. </div>
  481. </div>
  482.  
  483. </a>
  484. </div>
  485. <!-- Character Hover Info End -->
  486.  
  487. </div></a>
  488. <!-- End Character -->
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. <!-- Start Character -->
  496. <div class="characters">
  497.  
  498. <!-- Main Character Image -->
  499. <!-- This is the main image + character name that always shows -->
  500. <a class="showSingle" target="2">
  501.  
  502. <div class="charactermain">
  503.  
  504. <div class="characterimg">
  505. <img src="https://68.media.tumblr.com/8516c1d9fcb56aae84b388f8c1484d8b/tumblr_owvooja2Yc1ucjeiho2_r1_500.jpg" /><!-- Character image 450X300 -->
  506. </div>
  507.  
  508. <div class="charactertitle">Kremi</div><!-- Character Name -->
  509. </div>
  510.  
  511. </a>
  512. <!-- Main Character Image End -->
  513.  
  514.  
  515. <!-- Character Hover Info Start -->
  516. <!-- This is information box + image that shows when you click the main image -->
  517. <div id='content2' class="characterdiv">
  518. <a class="showSingle" target="2">
  519.  
  520. <div class="characterinfo">
  521. <div class="characterimghover">
  522. <img src="https://68.media.tumblr.com/e60471ac94b3d561ca035ce7a3053198/tumblr_owxa7vtcSb1ucjeiho3_r1_500.jpg" /><!-- Character Hover Image Background 450X300 -->
  523. </div>
  524.  
  525. <!-- Character Information -->
  526. <div class="charinfo">
  527.  
  528. <div class="charportrait">
  529. <img src="https://68.media.tumblr.com/378a478595f9b7aa4744d35e9047b5d2/tumblr_owvp7w2vSq1ucjeiho1_250.gif" /><!-- Small Character Image 150X230 -->
  530. </div>
  531. <div class="info">
  532. <h1>Kremi</h1><!-- Character name here -->
  533.  
  534. personality type ; age ; gender</a>
  535. <p><!-- This adds a space between sections -->
  536. <a href="#">Link</a>
  537. <a href="#">Link</a>
  538. <a href="#">Link</a>
  539. <a href="#">Link</a>
  540. <a href="#">Link</a>
  541.  
  542. <a class="showSingle" target="2">
  543. <div class="bio">
  544. Character bio goes here. Lorem ipsum dolor sit amet, nunc quam id sed aliquet volutpat, praesent eu habitant eu eget voluptatibus, qui mauris et dapibus risus nulla, condimentum in tincidunt. Sed at, dignissim est rhoncus blandit erat sit tempus, sodales volutpat nibh sit suscipit, quis metus phasellus sit quis. Tincidunt ornare condimentum dignissim, non eu vel proin vitae, faucibus ut porta, purus feugiat elementum consequat et. Bibendum faucibus justo.
  545. <p><!-- This adds a space between lines -->
  546. lorem odio ut nibh, natoque magna adipiscing nec. Et dui et voluptatem, diam auctor augue id sed quis mattis, enim tellus enim, suscipit felis mollis ornare hymenaeos sem eros. Libero mollis ut fusce nulla, quis cras sem praesent consequat proin id, libero consequat mauris vestibulum donec.
  547. </div>
  548.  
  549. </div>
  550.  
  551. </div>
  552. </div>
  553.  
  554. </a>
  555. </div>
  556. <!-- Character Hover Info End -->
  557.  
  558. </div></a>
  559. <!-- End Character -->
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581. </div></div></div></div>
  582.  
  583. <div id="et"><a href="http://etherealthemes.co.vu/"><i class="fa fa-paint-brush"></i></a></div>
  584.  
  585.  
  586.  
  587.  
  588. <script>
  589. jQuery(document).ready(function(){
  590. jQuery('.showSingle').live('click', function(event) {
  591. jQuery('#content'+$(this).attr('target')).toggle('show');
  592. });
  593. });
  594. </script>
  595.  
  596. </div>
  597. </div>
  598. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement