Advertisement
felinum

glucose: FAQ page

Mar 5th, 2017
6,648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 8.25 KB | None | 0 0
  1. <!--
  2.  
  3. " glucose "
  4.  
  5. FAQ page by felinum
  6.  
  7. Please, don't: steal the code, remove the credit, claim the code as your own. Thank you, enjoy!
  8.  
  9.  
  10. -->
  11.  
  12.  
  13.  
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17. <title>{Title}</title>
  18. <link href='https://fonts.googleapis.com/css?family=Chivo|Cardo' rel='stylesheet' type='text/css'>
  19. <link href="http://static.tumblr.com/0cdn90j/dSJomd0eu/style.css" rel='stylesheet' type='text/css'>
  20. <link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css">
  21.        
  22. <style>
  23.        
  24.     body {
  25.         font:10px chivo;
  26.         color:#707070;
  27.     }
  28.            
  29.     #container:before {
  30.         border-left:1px solid #f8e4e4; /*vertical border*/
  31.     }
  32.            
  33.     nav {
  34.         background:#f8f8f8;  /*header background*/
  35.     }
  36.            
  37.     #img {
  38.         background:#f8e4e4; /*icon background on hover*/
  39.     }
  40.            
  41.     #title {
  42.         color:#606060; /*header title*/
  43.     }
  44.            
  45.     .lnr {
  46.         color:#000;
  47.         background:#f8e4e4; /*link icons background and color*/
  48.     }
  49.            
  50.     .lnr:hover {background:transparent;} /*link icons bg on hover*/
  51.            
  52.     .tt span { /*section title*/
  53.         background:#fff7f7;
  54.         border:1px solid #f8e4e4;
  55.         color:#515151;
  56.     }
  57.            
  58.     .tt::before {
  59.         margin-left:-52px;
  60.         background:#f8e4e4; /*section counter bg*/
  61.     }
  62.            
  63.     .tt::after {
  64.         border-bottom:1px solid #f8e4e4; /*make sure the color matches section counter bg*/
  65.     }
  66.            
  67.     blockquote { /*question appearance*/
  68.         border-bottom:1px solid #fcf2f2;
  69.         background:#fafafa;
  70.         color:#545454;
  71.         font:bold 1.15em cardo;
  72.     }
  73.            
  74.     blockquote:hover, .inquire {border:1px solid #f8e4e4; background:#f9f7f7;} /*question appearance on hover*/
  75.            
  76.     blockquote:hover {color:#000;}
  77.  
  78.     p {line-height:1.6em;}
  79.            
  80.     i {color:#c47171;} /*italic*/
  81.            
  82.     code {background:#f0f0f0;} /*code bg*/
  83.            
  84.     section a { /*faq links*/
  85.         color:black;
  86.         background:#f8e4e4;
  87.         padding:2px 4px;
  88.     }
  89.            
  90.     section a:hover { /*faq links hover*/
  91.         background:transparent;
  92.         border:1px solid #e8b7b7;
  93.     }
  94.    
  95.     #s-m-t-tooltip { /*link icons tooltips*/
  96.         background-color:white;
  97.         font:bold .8em cardo;
  98.         text-transform:uppercase;
  99.         letter-spacing:1px;
  100.         color:#565656;
  101.         border-radius:3px;
  102.     }
  103.  
  104.     /*selection bg and color*/
  105.     ::selection {background-color:#f9eded; color:black;}
  106.     ::-moz-selection {background-color:#f9eded; color:black;}
  107.    
  108.  
  109.            
  110. </style>
  111. </head>
  112.    
  113. <body>
  114.  
  115. <div id="container">
  116.        
  117. <!-- HEADER -->        
  118.        
  119.     <nav>
  120.    
  121.         <div id="blog">
  122.             <div id="img">
  123.                 <a href="http://{name}.tumblr.com">
  124.                
  125.                 <!-- replace the img url with your own url -->
  126.                
  127.                 <img src="https://68.media.tumblr.com/a28901f544e1834b8d968895570dd2a0/tumblr_omczwyg5qf1rupvqko1_75sq.png"></a>
  128.             </div>
  129.            
  130.             <div id="title">FAQ</br>@<a href="http://{name}.tumblr.com">{name}</a></div>
  131.         </div>
  132.  
  133.                
  134.         <div id="links">
  135.        
  136.         <!-- links; edit the url and title -->
  137.        
  138.             <a href="/" title="home"><i class="lnr lnr-user" aria-hidden="true"></i></a>
  139.             <a href="/" title="link 2"><i class="lnr lnr-bookmark" aria-hidden="true"></i></a>
  140.             <a href="/" title="link 3"><i class="lnr lnr-rocket" aria-hidden="true"></i></a>
  141.             <a href="http://tumblr.com/dashboard" title="dash"><i class="lnr lnr-home" aria-hidden="true"></i></a>
  142.         </div>
  143.      
  144.     </nav>
  145.            
  146.            
  147.     <section>
  148.    
  149.    
  150.     <!-- INSTRUCTIONS:
  151.    
  152.    1. <blockquote>...</blockquote> - question tags
  153.    
  154.    2. <div><p>...</p></div> - answer tags; delete <div> and </div> to make your answer non-collapsible
  155.    
  156.    
  157.    
  158.    <!-------------section 1------------->
  159.  
  160.         <!--section 1 title-->
  161.         <div class="tt"><span>
  162.             section 1 title
  163.         </span></div>
  164.         <!--end section 1 title-->
  165.  
  166.  
  167.         <!--question 1-->
  168.         <blockquote>
  169.             Write your question here.
  170.         </blockquote>
  171.         <!-- end question 1-->
  172.            
  173.            
  174.          <!--answer 1-->
  175.         <div><p>
  176.             Here goes your answer. A link <a href="/">example</a>
  177.         </p></div>
  178.         <!--end answer 1-->
  179.        
  180.        
  181.         <!--question 2-->
  182.         <blockquote>
  183.             Another question
  184.         </blockquote>
  185.         <!-- end question 2-->
  186.            
  187.            
  188.          <!--answer 2-->
  189.         <div><p>
  190.             Another answer. <i>Italic</i>. <b>Bold</b>. <code>Code</code>.
  191.         </p></div>
  192.         <!--end answer 2-->
  193.        
  194.        
  195.        
  196.        
  197.     <!-------------section 2------------->
  198.  
  199.         <!--section title-->
  200.         <div class="tt"><span>
  201.             section 2 title
  202.         </span></div>
  203.         <!--end section title-->
  204.  
  205.         <div class="text">
  206.  
  207.         <!--question 1-->
  208.         <blockquote>
  209.             Question with non-collapsible answer.
  210.         </blockquote>
  211.         <!-- end question 1-->
  212.            
  213.          <!--answer 1-->
  214.          <!--to make your answer non-collapsible, delete the <div> and </div> tags, but keep <p> and </p> like so:-->
  215.  
  216.         <p>
  217.             Phasellus non massa eleifend, commodo diam sed, sodales turpis. Suspendisse congue, nunc eget mollis vehicula, odio metus rhoncus velit, sit amet lacinia dolor ex ac risus.
  218.         </p>
  219.  
  220.         <!--end answer 1-->
  221.        
  222.        
  223.         <!--question 2-->
  224.         <blockquote>
  225.             Lorem ipsum
  226.         </blockquote>
  227.         <!-- end question 2-->
  228.            
  229.          <!--answer 2-->
  230.         <div><p>
  231.             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam elementum enim eu quam congue, nec maximus lacus viverra. Duis eu posuere nisl. In porttitor lacinia mollis. Praesent hendrerit enim in ante aliquet facilisis. Fusce tempor eu nibh ac ornare. Fusce imperdiet erat eu libero sodales accumsan. Aenean quam leo, tempus id erat non, elementum malesuada nisl.
  232.         </p></div>
  233.         <!--end answer 2-->
  234.                    
  235.         </div>      
  236.              
  237.                    
  238.     <!-------------section 3------------->
  239.  
  240.         <!--section title-->
  241.         <div class="tt"><span>
  242.             section 3 title
  243.         </span></div>
  244.         <!--end section title-->
  245.            
  246.  
  247.         <!--no question = no collapsible answer-->
  248.         <p>
  249.             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam elementum enim eu quam congue, nec maximus lacus viverra. Duis eu posuere nisl. In porttitor lacinia mollis.
  250.         </p>
  251.         <!--end non-collapsible content-->            
  252.            
  253.  
  254.  
  255.     <!-------------section askbox------------->
  256.  
  257.         <!--section title-->
  258.         <div class="tt"><span>
  259.             inquire
  260.         </span></div>
  261.         <!--end section title-->
  262.                
  263.                
  264.         <blockquote class="inquire">
  265.             Put some info here.
  266.         </blockquote>
  267.        
  268.        
  269.     <!-------------no editing beyond this line------------->
  270.        
  271.         <p><iframe frameborder="0" height="190" id="ask_form" scrolling="yes" src="http://www.tumblr.com/ask_form/{name}.tumblr.com" width="100%" style="background-color: transparent; overflow: hidden;"></iframe>&nbsp;&nbsp;</p>
  272.        
  273.     </section>
  274.            
  275.            
  276. </div>
  277.  
  278. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script>$(document).ready(function(){$("blockquote + div").hide();$("blockquote").click(function(){$(this).next("div").slideToggle(500);});});</script><div class="sco">© Page by <a href="http://felinum.tumblr.com">felinum</a></div><script src="http://static.tumblr.com/0cdn90j/glvnidntk/jquery.style-my-tooltips.js"></script><script>(function($){$(document).ready(function(){$("[title]").style_my_tooltips({tip_follows_cursor:true,tip_delay_time:0,tip_fade_speed:0,attribute:"title"});});})(jQuery);</script>
  279.  
  280. </body>
  281. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement