Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!----
- _________
- / \
- | __ __ |
- | |__| |__| | PETUNIA NAVI PAGE BY SAGE / DEMONTIMES
- | | https://demontimes.tumblr.com
- | _ _ _ |
- |_| |_| |_| |_|
- SEARCH 'EDIT HERE'
- CREDITS:
- - phosphor icons / phosphoricons.com
- - tippy.js tooltips / https://atomiks.github.io/tippyjs/
- - google fonts / https://fonts.google.com/
- - hide tutorial by lmthemes / https://lmthemes.tumblr.com/post/30046967698/tutorial-05-hide-stuff-tutorial-in-this
- ---->
- <!---- JQUERY ---->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <!----- GOOGLE FONTS ---->
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600;700;800&display=swap" rel="stylesheet">
- <!---- ICONS ---->
- <script src="https://unpkg.com/phosphor-icons"></script>
- <script src="https://unpkg.com/[email protected]"></script>
- <!---- TOOLTIPS ---->
- <script src="https://unpkg.com/popper.js@1"></script>
- <script src="https://unpkg.com/tippy.js@5/dist/tippy-bundle.iife.js"></script>
- <!----- CSS ----->
- <style type="text/css">
- /*--- EDIT HERE ----*/
- :root {
- /*---- COLORS -----*/
- --background:#ddd;
- --content:#e8e8e8;
- --title:#666;
- --text:#888;
- --link:#d363f5;
- --accent:#ed80c5;
- --accent-two:#bf62ea;
- --accent-three:#517fe5;
- --borders:#ddd;
- --shadow:#ebc7ee;
- --gradient-one:#e66eb2;
- --gradient-two:#ae4bdc;
- --gradient-three:#3362c9;
- --gradient-text:#fff;
- /*---- VARIABLES ---*/
- --border-radius:10px; /*-- 0px, 5px, or 10px recommended --*/
- --glow: 0 0 10px; /*-- change to 0 if you don't want the glow --*/
- /*---- FONT STYLE -----*/
- --body-font:'Jost'; /*-- lmk if you need help changing the fonts --*/
- --title-font:'Montserrat Alternates';
- --font-size:16px;
- }
- /*----- TOOLTIPS -----*/
- .tippy-tooltip.custom-theme {
- background:linear-gradient(to right, var(--gradient-one), var(--gradient-two));
- color:var(--gradient-text);
- text-shadow:var(--glow);
- text-align:center;
- text-transform:uppercase;
- letter-spacing:.1em;
- font-size:.95em;
- border-radius:var(--border-radius);
- margin-bottom:.5em;
- }
- /*--- SCROLLBAR ---*/
- ::-webkit-scrollbar {
- width:5px;
- height:5px;
- background:var(--background);
- }
- ::-webkit-scrollbar-track {
- background:var(--background);
- border-radius: 5px;
- }
- ::-webkit-scrollbar-thumb {
- background:linear-gradient(to bottom, var(--gradient-one), var(--gradient-two));
- border-radius: 5px;
- }
- /*--- TEXT SELECTION ---*/
- ::-moz-selection { /* Code for Firefox */
- color:var(--gradient-text);
- background:var(--accent);
- }
- ::selection {
- color:var(--gradient-text);
- background:var(--accent);
- }
- /*----- BASIC STYLING -----*/
- body {
- font-family: var(--body-font), sans-serif;
- font-size: var(--font-size);
- color: var(--text);
- background:var(--background);
- line-height:140%;
- word-wrap: break-word;
- letter-spacing:.04em;
- margin:0;
- padding:0;
- transition:.5s;
- }
- a {
- color:var(--link);
- text-decoration: none;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- a:hover {
- color: var(--accent);
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- #hua {
- display: inline-block;
- position: relative;
- }
- #hua:after {
- content: '';
- position: absolute;
- width: 100%;
- transform: scaleX(0);
- height: 2px;
- bottom: 0;
- left: 0;
- background-color: var(--link);
- transform-origin: bottom right;
- transition: transform 0.25s ease-out;
- }
- #hua:hover:after {
- transform: scaleX(1);
- transform-origin: bottom left;
- }
- blockquote {
- border-left:2px solid var(--borders);
- padding-left:.75em;
- margin-left:1em;
- }
- li {list-style-type:circle;}
- li::marker {color:var(--accent)}
- h1, h1 a, h2, h3, h4, h5 {
- font-family:var(--title-font), sans-serif;
- letter-spacing:.1em;
- color:var(--title);
- }
- h1 {font-size:1.3em;}
- h2 {font-size:1.2em;}
- h3 {font-size:1.1em;}
- h4 {font-size:1.05em;}
- h5 {font-size:1.025em;}
- h1 a:hover {color:var(--accent);}
- h4 {margin:0 0 1em 0; text-align:center;}
- h5 {margin:0; padding:0;}
- small {font-size: 0.95em;}
- big {font-size: 1.1em;}
- hr {
- height: 1px;
- border: none;
- box-shadow: none;
- background-color: var(--borders);
- }
- pre {
- line-height: inherit;
- font-size: inherit;
- white-space: pre-wrap;
- white-space: -moz-pre-wrap;
- white-space: -pre-wrap;
- white-space: -o-pre-wrap;
- word-wrap: break-word;
- }
- b, strong {
- color:var(--title);
- font-weight:800;
- }
- b a:hover {
- color:var(--accent);
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- .tmblr-iframe-compact .tmblr-iframe--unified-controls {
- z-index: 999999999!important;
- margin-top:60px;
- opacity:0;
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .tmblr-iframe-compact .tmblr-iframe--unified-controls:hover {
- opacity:1;
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- /*---- HEADER ----*/
- header {
- position:fixed;
- top:0;
- left:0;
- right:0;
- height:50px;
- padding:.25em 1em .25em 1em;
- background:linear-gradient(to right, var(--gradient-one), var(--gradient-two), var(--gradient-three));
- display:flex;
- align-items:center;
- justify-content:space-between;
- gap:1em;
- z-index:999;
- }
- .topicon {
- display:flex;
- align-items:center;
- gap:.5em;
- }
- .topicon img {
- width:2.5em;
- height:2.5em;
- padding:4px;
- border-radius:100%;
- background:var(--accent);
- box-shadow:2px 8px 8px rgba(0,0,0,.1);
- }
- .topicon b {
- font-family:var(--title-font), sans-serif;
- color:var(--gradient-text);
- letter-spacing:.1em;
- font-size:1.1em;
- }
- nav {
- display:flex;
- justify-content:center;
- align-items:center;
- gap:1em;
- }
- nav .topnav, nav #totop {
- display:flex;
- justify-content:center;
- align-items:center;
- padding:2px;
- border-radius:100%;
- background:rgba(255,255,255,.25);
- box-shadow:2px 8px 8px rgba(0,0,0,.1);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- nav a {
- display:flex;
- justify-content:space-between;
- align-items:center;
- gap:1em;
- padding:.5em;
- border-radius:100%;
- }
- nav i {
- font-size:1.4em;
- color:var(--gradient-text);
- text-shadow:var(--glow)
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .topnav:hover, #totop:hover {
- box-shadow:2px 5px 8px transparent;
- transform:scale(.95);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- #totop:hover i {
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- -webkit-animation-duration: 2s;
- animation-duration: 2s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- -webkit-animation-timing-function: ease-in-out;
- animation-timing-function: ease-in-out;
- animation-iteration-count:1;
- -webkit-animation-iteration-count:1;
- animation-name: totop;
- -moz-animation-name: totop;
- }
- #totop a {cursor:help;}
- @keyframes totop {
- 0% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- 18% {
- -webkit-transform: translateY(-3px);
- -ms-transform: translateY(-3px);
- transform: translateY(-3px)
- }
- 36% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- 54% {
- -webkit-transform: translateY(-3px);
- -ms-transform: translateY(-3px);
- transform: translateY(-3px)
- }
- 82% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- 100% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- }
- /*--- CREDIT: DO NOT TOUCH ---*/
- .credit {
- z-index:999999;
- }
- .credit {
- padding:2px;
- border-radius:100%;
- background:var(--accent-three);
- box-shadow:2px 8px 8px rgba(0,0,0,.1);
- display:flex;
- justify-content:center;
- align-items:center;
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .credit i {
- font-size:1.5em;
- color:var(--gradient-text);
- text-shadow:var(--glow);
- }
- .credit:hover {
- transform:scale(1.05);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .credit:hover i {
- -webkit-animation-duration: 2s;
- animation-duration: 2s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- -webkit-animation-timing-function: ease-in-out;
- animation-timing-function: ease-in-out;
- animation-iteration-count:infinite;
- -webkit-animation-iteration-count:infinite;
- animation-name: bounce;
- -moz-animation-name: bounce;
- }
- .credit a {
- display:flex;
- justify-content:center;
- align-items:center;
- gap:1em;
- padding:.5em;
- }
- @keyframes bounce {
- 0% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- 25% {
- -webkit-transform: translateY(-3px);
- -ms-transform: translateY(-3px);
- transform: translateY(-3px)
- }
- 50% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- 75% {
- -webkit-transform: translateY(-3px);
- -ms-transform: translateY(-3px);
- transform: translateY(-3px)
- }
- 100% {
- -webkit-transform: translateY(0px);
- -ms-transform: translateY(0px);
- transform: translateY(0px)
- }
- }
- /*----- COMMON -----*/
- main {
- position: relative;
- width:80%;
- margin:80px auto 2em auto;
- }
- section {
- display:flex;
- flex-wrap:wrap;
- gap:1em;
- }
- article {
- width:100%;
- position:relative;
- padding:1em;
- border-radius:var(--border-radius);
- background:var(--content);
- display:flex;
- flex-direction:column;
- gap:.5em;
- }
- article.medium {
- width:calc(50% - 2.5em);
- }
- /*---- BASICS ----*/
- .heading {
- width:calc(100% - 2em);
- display:flex;
- justify-content:space-between;
- align-items:center;
- padding:.4em 1em .4em 1em;
- background:linear-gradient(to right, var(--gradient-one), var(--gradient-two), var(--gradient-three));
- border-radius:30px;
- margin-bottom:.5em;
- }
- .heading i {
- font-size:1.4em;
- color:var(--gradient-text);
- text-shadow:var(--glow);
- }
- .heading span {
- font-family:var(--title-font), sans-serif;
- color:var(--gradient-text);
- font-size:1.1em;
- letter-spacing:.1em;
- font-weight:600;
- }
- .subheading {
- font-family:var(--title-font), sans-serif;
- color:var(--title);
- letter-spacing:.1em;
- font-weight:600;
- margin-top:.25em;
- }
- /*--- MAIN CONTENT ---*/
- .nav {
- width:100%;
- display:flex;
- justify-content:space-between;
- flex-wrap:wrap;
- gap:.5em;
- }
- .nav .navlink {
- width:calc(49% - 4px);
- display:flex;
- justify-content:center;
- align-items:center;
- background:var(--link);
- padding:2px;
- border-radius:30px;
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- article.medium .nav .navlink {
- width:calc(49% - 8px);
- }
- .nav a {
- width:100%;
- display:flex;
- justify-content:space-between;
- align-items:center;
- gap:1em;
- padding:.25em 1em .25em 1em;
- border-radius:30px;
- background:var(--content);
- }
- .nav i {
- font-size:1.3em;
- color:var(--link);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .nav span {
- letter-spacing:.1em;
- color:var(--link);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .navlink:hover a {background:var(--link);}
- .navlink:hover i {
- color:var(--gradient-text);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .navlink:hover i:last-of-type {margin-right:1em;}
- .navlink:hover span {
- color:var(--gradient-text);
- -webkit-transition: all 0.4s;
- -moz-transition: all 0.4s;
- -ms-transition: all 0.4s;
- -o-transition: all 0.4s;
- transition: all 0.4s;
- }
- .dropdown {
- position:relative;
- width:49%;
- display:flex;
- justify-content:center;
- }
- article.medium .dropdown {width:calc(49% - 2px);}
- a.cthrough {
- width:100%;
- display:flex;
- justify-content:space-between;
- cursor:help;
- background:var(--accent);
- border:2px solid var(--accent);
- }
- a.cthrough i {color:var(--gradient-text);}
- a.cthrough span {color:var(--gradient-text);}
- a.cthrough:hover {background:var(--content);}
- a.cthrough:hover i {color:var(--accent); margin-right:1em;}
- a.cthrough:hover span {color:var(--accent);}
- .sub {
- position:absolute;
- top:2.5em;
- width:calc(100% - 2em);
- display:flex;
- flex-direction:column;
- gap:.5em;
- padding:1em;
- border-radius:var(--border-radius);
- background:linear-gradient(to bottom, var(--accent), var(--accent-two), var(--accent-three));
- z-index:99;
- }
- .sub a {
- width:calc(100% - 2em);
- background:var(--content);
- }
- .sub a:hover {color:var(--gradient-text); background:rgba(255,255,255,.125); box-shadow:2px 2px 2px rgba(0,0,0,.1);}
- /*---- RESPONSIVENESS ----*/
- @media only screen and (max-width: 1100px) {
- .tmblr-iframe-compact .tmblr-iframe--unified-controls {display:none;!important;}
- main {width:88%;}
- article.medium .nav .navlink {width:calc(100% - 4px);}
- article.medium .dropdown {width:calc(100% - 2px);}
- }
- @media only screen and (max-width: 750px) {
- article.title-wrap {
- width:calc(100% - 2em);
- flex-direction:column;
- }
- .title {width:100%; justify-content:center;}
- .titleicon {width:100%; justify-content:space-around;}
- article.medium {width:100%;}
- tumblr_controls, .tmblr-iframe{display:none!important;}
- article .nav .navlink {width:calc(100% - 4px);}
- article .dropdown {width:100%;}
- }
- @media only screen and (max-width: 600px) {
- .topicon img {display:none;}
- }
- @media only screen and (max-width: 500px) {
- .topnav:not(:first-child) {display:none;}
- }
- {CustomCSS}
- </style>
- </head>
- <!----- HTML ----->
- <body>
- <main> <!-- main container -->
- <!--- EDIT HERE --->
- <!--- HEADER
- - by default the header will show your icon, page title, and links
- - feel free to change the links/icons & the title/icon img if you want
- --->
- <header>
- <div class="topicon">
- <img src="{portraiturl-128}">
- <b>navigate</b>
- </div>
- <nav>
- <div class="topnav"><a title="home" href="/"><i class="ph-house"></i></a></div>
- <div class="topnav"><a title="contact" href="/ask"><i class="ph-chats-circle"></i></a></div>
- <div class="topnav"><a title="archive" href="/archive"><i class="ph-archive"></i></a></div>
- <div class="topnav"><a title="link" href="/"><i class="ph-butterfly"></i></a></div>
- <!-- TO TOP BUTTON -->
- <div id="totop"><a href="#top" target="_self"><i title="back to top" class="ph-arrow-up"></i></a></div>
- </nav>
- <!--- CREDIT: DO NOT TOUCH --->
- <div class="credit"><a title="petunia page by sage" href="https://demontimes.tumblr.com"><i class="ph-ghost"></i></a></div>
- </header><!-- header ends -->
- <section><!-- section -->
- <!--- ALL LINK BLOCKS GO BELOW
- if you want to add a new link block copy and paste the following format:
- <article>
- <div class="heading"><span>heading</span><i class="ph-flower"></i></div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- </article>
- if you want to add a subheading:
- <div class="subheading">subheading</div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- - subheadings need to be ABOVE <div class="nav">
- - make sure your links are inside <div class="nav"> ... </div>
- if you want to add a dropdown:
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- - make sure your links are inside <div class="sub"> ... </div>
- --->
- <!--- LINK BLOCK --->
- <article>
- <div class="heading"><span>heading</span><i class="ph-flower"></i></div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- <div class="subheading">subheading</div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- </article>
- <!--- LINK BLOCK--->
- <article class="medium">
- <div class="heading"><span>heading</span><i class="ph-cloud-sun"></i></div>
- <div class="nav">
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- </article>
- <!--- LINK BLOCK--->
- <article class="medium">
- <div class="heading"><span>heading</span><i class="ph-cloud-moon"></i></div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- </article>
- <!--- LINK BLOCK--->
- <article>
- <div class="heading"><span>heading</span><i class="ph-flower-lotus"></i></div>
- <div class="subheading">subheading</div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="dropdown"><a href="#" class="cthrough"><span>dropdown</span><i class="ph-caret-down"></i></a>
- <div class="sub">
- <a href="/tagged/">link</a>
- <a href="/tagged/">link</a>
- </div>
- </div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- <div class="subheading">subheading</div>
- <div class="nav">
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- <div class="navlink"><a href="/tagged/"><span>link</span><i class="ph-caret-right"></i></a></div>
- </div>
- </article>
- </section><!-- section ends -->
- </main><!-- end of main container -->
- <script>
- // tooltips
- tippy('[title]', {
- theme: 'custom',
- arrow: false,
- followCursor: true,
- delay: 100,
- placement: 'bottom',
- offset: "40, 10",
- zIndex: 9999999999,
- maxWidth: 400,
- content(reference) {
- const title = reference.getAttribute('title');
- reference.removeAttribute('title');
- return title;
- },
- });
- //scroll to top
- $(document).ready(function(){
- $('#totop a').click(function(){
- $('html, body').animate({scrollTop : 0},400);
- return false;
- });
- });
- //drop downs
- $(document).ready(function() {
- $(".sub").hide();
- $(".cthrough").click(function(event){
- $(this).next(".sub").slideToggle(500);
- event.preventDefault();
- $(this).toggleClass('upside', 500);
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment