nonspace

PAGE #07 :: RADIANCE

Aug 1st, 2018
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 7.84 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!--THEME #07 RADIANCE by @nonspace.
  4. Don't steal.
  5. Don't claim as your own.
  6. Don't use as base code.
  7. Editing for personal use is fine!-->
  8.  
  9. <head>
  10.   <meta charset="utf-8">
  11.   <meta name="viewport" content="width=device-width">
  12.   <title>{Title}</title>
  13.   <link rel="icon" type="image/png" href="{Favicon}">
  14.  
  15.     <!--GOOGLE FONTS-->
  16.     <link href="https://fonts.googleapis.com/css?family=Source Sans Pro:400,400i,700,700i&amp;subset=cyrillic,greek,hebrew,latin-ext,vietnamese" rel="stylesheet">
  17.  
  18.     <!--FONT AWESOME ICONS-->
  19.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  20.  
  21.     <!--JQUERY-->
  22.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  23.    
  24.     <!--TAB SCRIPT, DON'T TOUCH-->
  25.     <script>
  26.       $(document).ready(function() {
  27.         $('nav ul li').on('click', function(e) {
  28.           var currentAttrValue = $(this).attr('href');
  29.           $('.tab' + currentAttrValue).addClass('active').siblings('.tab').removeClass('active');
  30.           $(this).addClass('active').siblings('nav ul li').removeClass('active');
  31.         });
  32.       });
  33.     </script>
  34.  
  35. <style>
  36. *{
  37.   box-sizing: border-box;
  38.   padding: 0;
  39.   margin: 0;
  40.   }
  41.  
  42. body {
  43.   font: 15px 'Source Sans Pro';
  44.   background: #fff;
  45.   line-height: 150%;
  46.   overflow: auto;
  47.   }
  48.  
  49. a {color: #000; text-decoration: none;}
  50. a:hover {color:}
  51.  
  52. h1 {font-size: 22.5px;}
  53. h2 {font-size: 15px; margin: 10px 0 10px 0;}
  54. h2:first-child {margin-top: 0;}
  55.  
  56. #wrapper {
  57.   position: absolute;
  58.   height: 100vh;
  59.   left: 0;
  60.   right: 0;
  61.   }
  62.  
  63. #content {
  64.   display: grid;
  65.   grid-template-columns: minmax(250px, 1fr) 2fr;
  66.   grid-template-rows: minmax(80px, auto) 1fr;
  67.   grid-template-areas:
  68.       "header caption"
  69.       "nav links";
  70.   position: relative;
  71.   margin: 50px auto;
  72.   padding: 0px 20px;
  73.   width: 700px;
  74.   overflow: auto;
  75.   }
  76.  
  77. header {
  78.   grid-area: header;
  79.   position: relative;
  80.   width: 100%;
  81.   padding: 0 0 20px 0;
  82.   }
  83.  
  84. header a {color: #bbb; padding: 0 10px 0 0;}
  85. header p {margin: 10px 0;}
  86.  
  87. #caption {
  88.  grid-area: caption;  
  89.  padding: 22px 20px;
  90.  }  
  91.  
  92. nav {
  93.   grid-area: nav;
  94.   position: relative;
  95.   }
  96.  
  97. nav li {
  98.   font-weight: normal;
  99.   padding-bottom: 5px;
  100.   cursor: pointer;
  101.   }
  102.  
  103. nav li.active {
  104.   font-weight: bold;
  105.   padding-bottom: 10px;
  106.   font-size: 16px;
  107.   }
  108.  
  109. nav span {
  110.     font-size: 13px;
  111.     color: #666;
  112.   }
  113.  
  114. ul {
  115.   list-style-type: none;
  116.   }
  117.  
  118. .subhead {
  119.     line-height: 250%;
  120.   }
  121.  
  122. .tab {
  123.   grid-area: links;
  124.   width: auto;
  125.   padding: 0 20px;
  126.   height: 100%;
  127.   opacity: 0;
  128.   }
  129.  
  130. .tab.active {
  131.   opacity: 1;
  132.   z-index: 9;
  133.   }
  134.  
  135. .info {
  136.   margin-bottom: 20px;
  137.   padding-bottom: 20px;
  138.   border-bottom: 1px solid #ccc;
  139.   }
  140.  
  141. .headline,
  142. .desc {
  143.   margin-bottom: 10px;
  144.   }
  145.  
  146. .headline i {
  147.     color: #666;
  148.   }
  149.  
  150. .desc {
  151.   text-align: justify;
  152.   }
  153.  
  154. .links {
  155.   margin: 0 0 20px 0;
  156.   }
  157.  
  158. .links a {color: #666; padding: 0 5px;}
  159. .links li {padding: 0 5px;}
  160. .links li a {padding: 0}
  161.  
  162. .tab,
  163. nav ul li {
  164.   -webkit-transition: all 0.5s ease;
  165.   -moz-transition: all 0.5s ease;
  166.   -ms-transition: all 0.5s ease;
  167.   transition: all 0.5s ease;
  168.   }
  169.  
  170. </style>
  171. </head>
  172. <body>
  173.   <div id="wrapper">
  174.     <article id="content">
  175.       <header>
  176.         <h1>navigation.</h1>
  177.         <span>
  178.           <a href="/">home</a>
  179.           <a href="/ask">message</a>
  180.           <!--CREDIT. DO NOT REMOVE-->
  181.           <a href="https://nonspace.tumblr.com">&#169; nnspc</a>
  182.         </span>
  183.       </header>
  184.      
  185.       <div id="caption">short description.</div>
  186.      
  187.       <!--HOW TO ADD MORE LINKS
  188.      copy/paste <li href="#one">topic one</li>
  189.  
  190.      make sure only ONE list item (usually the first) has the
  191.      'class="active"' (active class means it's the bold link/the first tab
  192.      that's displayed on the page).
  193.  
  194.      then change "#one" to the next number. e.g. here: #four
  195.  
  196.      important here are two things:
  197.        don't forget the #
  198.        make sure your corresponding tab div has this same name
  199.        but WITHOUT the # (e.g. id="four")
  200.      -->    
  201.      
  202.       <nav>
  203.         <ul>
  204.           <li href="#general" class="active">general</li>
  205.           <li href="#one">topic one</li>
  206.           <li href="#two">topic two <span>(optional note)</span></li>
  207.           <li href="#three">topic three</li>
  208.         </ul>
  209.       </nav>
  210.      
  211.       <!--TABS-->
  212.      
  213.       <!--TAB GENERAL-->
  214.       <section class="tab active" id="general">
  215.        
  216.         <!--COPY THIS FOR HEADLINE + TAG LINKS-->
  217.         <h2>headline one</h2>
  218.         <div class="links">  
  219.           <a href="/tagged/">#tag one</a>
  220.           <a href="/tagged/">#tag two</a>
  221.         </div>
  222.         <!--SECTION END-->
  223.        
  224.         <h2>headline two</h2>
  225.         <div class="links">
  226.           <a href="/tagged/">#tag one</a>
  227.           <a href="/tagged/">#tag two</a>
  228.           <a href="/tagged/">#tag three</a>
  229.         </div>
  230.        
  231.         <h2>headline three</h2>
  232.         <div class="links">  
  233.           <a href="/tagged/">#tag one</a>
  234.         </div>
  235.        
  236.         <!--You can copy and paste as many sections as you want.-->
  237.        
  238.       </section>
  239.       <!--tab end-->
  240.      
  241.       <!--HOW TO ADD MORE TABS
  242.      Copy/paste everything from TAB ONE to TAB END.
  243.  
  244.      Make sure only ONE (usually the first) tab has the 'class="active"'
  245.  
  246.      Change the id to the same 'href' you added in the navigation.
  247.      In this example, the next one would be tab four so: id="four"
  248.  
  249.      Important here: WITHOUT the #
  250.  
  251.      Then fill your tab with whichever of the example elements you want.
  252.  
  253.      <!--TAB ONE-->
  254.       <section class="tab" id="one">
  255.         <!--COPY THIS FOR CHARACTER INFO-->
  256.         <div class="info">
  257.          
  258.           <div class="headline">
  259.             <h1>character name</h1>
  260.             <i>00 - occupation - orientation</i>
  261.           </div>
  262.          
  263.           <div class="desc">
  264.             short description of your character or whatever topic you'd like to add here. below you'll be able to add detailed tags etc.
  265.           </div>
  266.          
  267.           <h2>verses</h2>
  268.           verse one - verse two
  269.          
  270.         </div><!--info-->
  271.         <!--CHARACTER INFO END-->
  272.        
  273.         <h2>tag</h2>
  274.         <div class="links">
  275.           <a href="">#link one</a>
  276.           <a href="">#linke two</a>
  277.           <a href="">#linke three</a>
  278.           <a href="">#link four</a>
  279.         </div>
  280.        
  281.         <!--COPY THIS FOR LISTS-->
  282.         <h2>list</h2>
  283.         <div class="links">
  284.           <ul>
  285.             <li>this is a list</li>
  286.             <li>you can also use it</li>
  287.             <li><a href="">for links</a></li>
  288.             <li>in list form, be creative</li>
  289.             <li>i use it to list & link rp threads</li>
  290.          </ul>
  291.        </div>
  292.        <!--LIST END-->
  293.        
  294.      </section>
  295.      <!--tab end-->
  296.      
  297.      <!--TAB TWO-->
  298.      <section class="tab" id="two">
  299.        
  300.        <!--COPY THIS FOR ANY TEXT-->
  301.        <div class="info">
  302.        You can really add whatever here. Tags, lists, character info. It's up to you.
  303.        Just copy/paste the right sections. They're marked in comments in the code.
  304.        </div>
  305.        <!--TEXT END-->
  306.        
  307.        <h2>tag</h2>
  308.        <div class="links">
  309.          <a href="">#link one</a>
  310.          <a href="">#linke two</a>
  311.          <a href="">#linke three</a>
  312.          <a href="">#link four</a>
  313.        </div>
  314.        
  315.      </section>
  316.      <!--tab end-->
  317.        
  318.      <section class="tab" id="three">
  319.        <h2>tag</h2>
  320.        <div class="links">
  321.          <a href="/tagged/">#all</a>
  322.          <a href="/tagged/d: daire leahy">#tag one</a>
  323.        </div>
  324.  
  325.      </section>
  326.      <!--tab end-->
  327.        
  328.    </article>
  329.  </div><!--wrapper-->
  330. </body>
  331. </html>
Advertisement
Add Comment
Please, Sign In to add comment