Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <!--
- TAGS II
- by alydae
- released: september 26, 2016
- last updated: september 10, 2023
- - do not steal any part of this code
- - do not even TOUCH the credit
- - direct questions to enchantedthemes.tumblr.com
- - tabs tutorial by @phoenixthemes
- thank you for using!!!
- -->
- <title>navigation</title>
- <link rel="shortcut icon" href="{Favicon}">
- <!-- scripts - DO NOT TOUCH -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:200,
- tip_fade_speed:300
- }
- );
- });
- })(jQuery);
- </script>
- <!-- custom font -->
- <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
- <style type="text/css">
- @keyframes fadein {
- from { opacity:0; }
- to { opacity:1; }
- }
- @-moz-keyframes fadein {
- from { opacity:0; }
- to { opacity:1; }
- }
- @-webkit-keyframes fadein {
- from { opacity:0; }
- to { opacity:1; }
- }
- @-ms-keyframes fadein {
- from { opacity:0; }
- to { opacity:1; }
- }
- @-o-keyframes fadein {
- from { opacity:0; }
- to { opacity:1; }
- }
- /*-- selection --*/
- ::-moz-selection { background:var(--accent); color:var(--title); }
- ::selection { background:var(--accent); color:var(--title); }
- /*-- scrollbar --*/
- ::-webkit-scrollbar {
- width:1px;
- height:2px;
- }
- ::-webkit-scrollbar-thumb { background-color:var(--text); }
- /*-- tooltips --*/
- #s-m-t-tooltip {
- color:var(--text);
- background-color:var(--background);
- font-size:calc(var(--font-size) - 2px);
- font-family:'Open Sans', helvetica, sans-serif;
- letter-spacing:1px;
- text-transform:uppercase;
- text-align:center;
- position:absolute;
- padding:0px 5px 0px 5px;
- border:1px solid var(--borders);
- margin-top:30px;
- z-index:9999;
- }
- /*-- tumblr controls --*/
- .tmblr-iframe, .iframe-controls–desktop {
- display:none!important;
- }
- /*-- change all variables here --*/
- :root {
- --background:#fff;
- --accent:#fafafa;
- --text:#666;
- --links:#444;
- --links-hover:#bad1e7;
- --title:#222;
- --borders:#eee;
- --font-size:10px;
- }
- /*-- general customisation --*/
- body {
- color:var(--text);
- background-color:var(--accent);
- font-style:normal;
- font-family:'Open Sans', helvetica, sans-serif;
- font-size:var(--font-size);
- font-weight:400;
- text-decoration:none;
- line-height:180%;
- -moz-osx-font-smoothing: grayscale;
- -webkit-font-smoothing: antialiased;
- font-smoothing: antialiased;
- -webkit-animation: fadein 1.5s;
- -moz-animation: fadein 1.5s;
- -o-animation: fadein 1.5s;
- animation: fadein 1.5s;
- }
- a {
- text-decoration:none;
- color:var(--links);
- transition-duration: 0.6s;
- -moz-transition-duration: 0.6s;
- -webkit-transition-duration: 0.6s;
- -o-transition-duration: 0.6s
- }
- a:hover, .tab label:hover {
- color:var(--links-hover);
- cursor:pointer;
- transition-duration: 0.6s;
- -moz-transition-duration: 0.6s;
- -webkit-transition-duration: 0.6s;
- -o-transition-duration: 0.6s
- }
- b, strong { font-weight:700; color:var(--title); }
- i, em { font-style:italic; }
- /*-- header --*/
- #header {
- position:relative;
- margin:100px auto 75px auto;
- padding:10px 0 10px 0;
- width:330px;
- }
- .icon {
- top:50%;
- transform:translateY(-46%);
- position:absolute;
- }
- .icon img {
- height:50px;
- width:50px;
- border-radius:100%;
- }
- .title {
- position:relative;
- margin-left:80px;
- text-transform:uppercase;
- font-size:calc(var(--font-size) + 4px);
- font-weight:700;
- letter-spacing:1px;
- color:var(--title);
- }
- .desc {
- margin:15px 0px 15px 80px;
- width:230px;
- padding:10px;
- background-color:var(--background);
- border:1px solid var(--borders);
- }
- .links { margin:5px 0px 0px 80px; }
- .links a {
- margin-right:10px;
- letter-spacing:0.5px;
- text-transform:uppercase;
- }
- /*-- tags --*/
- .content {
- position:relative;
- margin:0px auto;
- width:785px;
- }
- .tab label {
- width:150px;
- padding:20px 25px 20px 20px;
- background-color:var(--background);
- border-left:1px solid var(--borders);
- border-bottom:1px solid var(--borders);
- font-size:calc(var(--font-size) + 1px);
- font-weight:600;
- letter-spacing:0.5px;
- text-align:right;
- text-transform:uppercase;
- display:block;
- cursor:pointer;
- color:var(--title);
- transition-duration: 0.6s;
- -moz-transition-duration: 0.6s;
- -webkit-transition-duration: 0.6s;
- -o-transition-duration: 0.6s
- }
- .tab label:first-of-type { border-top:1px solid var(--borders); }
- .tags {
- position:absolute;
- width:550px;
- height:260px;
- /* if you want the height of the tab labels to match the height of the main tag body, replace height:300px; with the line below
- height:calc((58px * 5) - 26px);
- change the 5 according to how many tabs you have. this only works if your tab labels are one line. */
- top:0px;
- margin:0px 0px 100px 195px;
- padding:15px;
- padding-left:25px;
- overflow-y:scroll;
- border:1px solid var(--borders);
- background-color:var(--background); /* tags section background colour */
- }
- .tags a:before { content:'#'; padding-right:5px; }
- .tags a {
- width:calc(501px / 3); /* change the 3 for the number of columns */
- display:inline-block;
- padding:5px 10px 5px 0px;
- text-transform:lowercase;
- white-space:nowrap;
- overflow:hidden;
- text-overflow:ellipsis;
- }
- .tags h8 {
- color:var(--title);
- font-size:calc(var(--font-size) + 0.5px);
- font-weight:600;
- letter-spacing:0.5px;
- text-transform:uppercase;
- display:block;
- margin-top:20px;
- margin-bottom:5px;
- }
- [type=radio]:checked ~ label {
- z-index:2;
- color:var(--links-hover);
- background-color:var(--accent);
- }
- [type=radio]:checked ~ label ~ .tags { z-index:1; }
- .tab [type=radio] { display:none; }
- /*-- credit - DO NOT TOUCH --*/
- .credit a {
- font-size:10px;
- bottom:15px;
- right:20px;
- position:fixed;
- text-transform:uppercase;
- }
- </style>
- </head>
- <body>
- <div id="header">
- <!-- the default is your icon. if you want to change it, remove {PortraitURL-128} and replace it with the image url of the one you want. -->
- <div class="icon"><img src="{PortraitURL-128}"/></div>
- <div class="title">navigation</div> <!-- title -->
- <div class="desc"> <!-- optional description -->
- this is where a short optional description can go. there is no limit but I suggest keeping it short. if you don't want it, you can delete it.
- </div>
- <div class="links">
- <!-- this is where your header links are. feel free to add more. -->
- <a href="/">home</a>
- <a href="/ask">inbox</a>
- <a href="/">link</a>
- <!-- do not remove this one!!! -->
- <a href="https://enchantedthemes.tumblr.com">credit</a>
- </div>
- </div>
- <div class="content">
- <!-- INSTRUCTIONS ON ADDING MORE TABS
- 1. copy the template below
- <div class="tab">
- <input type="radio" id="tab-1" name="tab-group-1">
- <label for="tab-1">tab title</label>
- <div class="tags">
- <a href="/tagged/">tag name</a>
- <h8>optional subtitle</h8>
- <a href="/tagged/">tag name</a>
- </div>
- </div>
- 2. once you have done that, you need to change the number after the tab in id="tab-1" and label for="tab-1" - so if you were copying your third tab, it would be id="tab-3" and label for="tab-3".
- DO NOT TOUCH THE name="tab-group-1".
- -->
- <div class="tab">
- <input type="radio" id="tab-1" name="tab-group-1" checked>
- <label for="tab-1">tab title</label>
- <div class="tags">
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <h8>optional subtitle</h8>
- <a href="/tagged/">tag name</a>
- </div>
- </div>
- <div class="tab">
- <input type="radio" id="tab-2" name="tab-group-1">
- <label for="tab-2">tab title</label>
- <div class="tags">
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <h8>optional subtitle</h8>
- <a href="/tagged/">tag name</a>
- </div>
- </div>
- <div class="tab">
- <input type="radio" id="tab-3" name="tab-group-1">
- <label for="tab-3">tab title</label>
- <div class="tags">
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <a href="/tagged/">tag name</a>
- <h8>optional subtitle</h8>
- <a href="/tagged/">tag name</a>
- </div>
- </div>
- </div>
- <!-- credit - DO NOT TOUCH -->
- <div class="credit">
- <a href="https://enchantedthemes.tumblr.com" title="alydae">A.</a>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment