Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - links page 'chloride' by skye southcodes.tumblr.com
- - modify as you please but please do not touch the credit
- - any errors? need help? have questions? let me know!
- southcodes.tumblr.com/inbox
- - normalize css by https://github.com/necolas
- - fonts by google
- - show on click https://stackoverflow.com/questions/22246626/show-hide-children-on-parent-click
- - colcade layout by https://github.com/desandro/colcade
- - honeybee icons by https://honeybee.suiomi.com/
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{title}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta charset="utf-8">
- <link rel="shortcut icon" href="{favicon}">
- <meta name="description" content="{MetaDescription}"/>
- <!-- fonts -->
- <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&family=Dancing+Script:wght@500;700&display=swap" rel="stylesheet">
- <!-- normalize -->
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <!-- honeybee -->
- <link rel="stylesheet" href="https://solrainha.github.io/honeybee/honeybee.css">
- <style>
- /* quick custom colors */
- :root{
- --background:#fdfdff;
- --text-color:#333;
- --links:#130a73;
- --links-hover-color: #477edc;
- --accents:#e3eafe;
- --icon-color: #4160a2;
- --borders: #aebbf5
- }
- .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85); /* IE 9 */-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
- .tmblr-iframe:hover {opacity:.8;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid {color:links};}
- ::-webkit-scrollbar {width:6px;height:0}
- ::-webkit-scrollbar-track-piece{margin:5px 0;}
- pre {font-family:consolas;
- white-space: pre-wrap; /* css-3 */
- white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
- white-space: -pre-wrap; /* Opera 4- */
- white-space: -o-pre-wrap; /* Opera 7 */
- word-wrap: break-word;} /* Internet Explorer 5.5+ */
- body, figure{margin:0;padding:0}
- html{font: 14px 'Open Sans', sans-serif;}
- body {font-size:14px;color:var(--text-color);background:var(--background)}
- a {text-decoration: none;color:var(--links);word-break:break-word;}
- a:hover {color:var(--links-hover-color);}
- blockquote {margin:0;padding:0;}
- blockquote blockquote {
- border-left:1px solid var(--borders);padding:.3rem 0 .3rem .6rem
- }
- img {max-width:100%;height: auto;display: block;margin:0}
- hr {border:0;border-top:1px solid #aaa;margin:0;}
- #container {
- display:flex;
- flex-flow: row wrap;
- align-items: space-between;
- justify-content: space-around;
- width:97%;
- max-width:75rem;
- margin:3rem auto 0rem;
- }
- /* links boxes */
- .grid-col {
- width: calc(100% / 3);
- /* margin:1rem */
- }
- .links-box {
- width:75%;
- max-width:20rem;
- margin: 3rem auto 6rem;}
- .links-box li{
- padding: 0;margin:0;list-style-type: none;
- padding:.3rem 0
- }
- .box-title {
- margin:0 0 .8rem;
- font:500 1.3rem 'Montserrat', sans-serif;
- }
- .box-title span {
- padding:0 .7rem ;
- box-shadow:inset 0 -7px var(--borders)}
- .links-box-inside {
- font-size:.9rem;
- line-height:175%;
- padding:1rem;
- letter-spacing:.04rem;
- box-sizing: border-box;
- }
- .regular-link:before {content:'› ';color:#888}
- .child-link:before {content:'- ';color:#888}
- .grandchild-link:before {content:'• ';color:#888}
- .dropdown-child-title:after, .dropdown-grandchild-title:after {
- content:' ⯆';
- font-size: .8rem;
- margin-right: .7rem;
- }
- .dropdown-child-title span,.dropdown-grandchild-title span {cursor:pointer}
- .dropdown-child-title {
- margin:.3rem 0;
- font:400 .85rem 'Montserrat', sans-serif;
- }
- .dropdown-grandchild-title {
- margin:.3rem 0;
- font:400 .9rem 'Montserrat', sans-serif;
- }
- .dropdown-child,.dropdown-grandchild{
- display:none;
- margin-left:1rem;
- }
- .dropdown-child {
- font-size:.9rem;
- letter-spacing: .05rem;
- }
- .dropdown-grandchild{
- font-size:.9rem;
- letter-spacing: .07rem;
- }
- /* bottom header */
- #bottom-header {
- padding:.5rem 2rem;
- position:fixed;bottom:0;left:0;right:0;
- background:var(--accents);
- z-index:99999;
- border-top:1px solid var(--borders);
- }
- #bottom-nav ul,#bottom-nav ul li {margin:0;padding:0;vertical-align:middle;list-style-type:none}
- #bottom-nav ul {
- font:600 .9rem 'Montserrat', sans-serif;
- text-transform:uppercase;
- margin:auto;
- max-width:40rem;
- display:flex;
- flex-flow:row wrap;
- justify-content:space-around;
- align-items:center;
- letter-spacing:.04rem;
- text-align:center;
- }
- #bottom-nav .th {
- font-size:1.2rem;
- display:block;
- margin-bottom:.5rem;
- border:2px solid white;
- border-radius:100%;
- padding:.4rem;
- height:2rem;width:2rem;
- line-height:2.4rem;
- background:white;
- color:var(--icon-color);
- border:1px solid var(--borders);
- }
- figure.bottom-header-icon {
- margin:0 auto 1rem;
- width:4rem;
- height:4rem;
- }
- img.bottom-header-icon {
- width:100%;
- height:100%;
- object-fit:cover;
- border-radius:100%;
- border:2px solid white;
- }
- .bottom-header-icon {transition-duration:.4s;}
- .bottom-header-icon:hover {
- opacity:.8;
- }
- @media only screen and (min-width:0px) and (max-width:599px) {
- .colthree {display:none}
- .coltwo {display:none}
- .grid-col {
- width: calc(100%);
- margin:0;
- }
- }
- @media only screen and (min-width:600px) and (max-width:699px) {
- .colthree {display:none}
- .grid-col {
- width: calc(100% / 2);
- }
- }
- </style>
- </head>
- <body>
- <header id="bottom-header">
- <nav id="bottom-nav"><ul>
- <a href="/"><li><div class="th th-home"></div>home</li></a>
- <a href="/"><li><figure class="bottom-header-icon"><img class="bottom-header-icon" src="BOTTOM ICON"/></figure></li></a>
- <a href="/"><li><div class="th th-user"></div>about</li></a>
- </ul></nav>
- </header>
- <main id="container" class='grid'>
- <div class="grid-col"></div>
- <div class="grid-col coltwo"></div>
- <div class="grid-col colthree"></div>
- <!-- please keep this template handy, it's easy to lose yourself in this code -->
- <article class="links-box"> <!-- start links box 1 -->
- <h2 class="box-title">
- <!-- box title -->
- <span>title</span>
- </h2>
- <div class="links-box-inside">
- <li><a href="" class="regular-link">regular link</a></li>
- <h2 class="dropdown-child-title"><span>
- child dropdown title
- </span></h2>
- <div class="dropdown-child">
- <!-- first level dropdown -->
- <li><a href="" class="child-link">child 1</a></li>
- <h3 class="dropdown-grandchild-title"><span>
- grandchild dropdown title
- </span></h3>
- <div class="dropdown-grandchild">
- <!-- second level dropdown -->
- <li><a href="" class="grandchild-link">
- grandchild link 1
- </a></li>
- <li><a href="" class="grandchild-link">
- grandchild link 2
- </a></li>
- </div>
- <li><a href="" class="child-link">child 2</a></li>
- </div>
- <li><a href="" class="regular-link">regular link</a></li>
- </div>
- </article> <!-- end links box 1 -->
- <article class="links-box"> <!-- start links box 2 -->
- <h2 class="box-title">
- <!-- box title -->
- <span>title</span>
- </h2>
- <div class="links-box-inside">
- <li><a href="" class="regular-link">regular link</a></li>
- <h2 class="dropdown-child-title"><span>
- child dropdown title
- </span></h2>
- <div class="dropdown-child">
- <!-- first level dropdown -->
- <li><a href="" class="child-link">child 1</a></li>
- <h3 class="dropdown-grandchild-title"><span>
- grandchild dropdown title
- </span></h3>
- <div class="dropdown-grandchild">
- <!-- second level dropdown -->
- <li><a href="" class="grandchild-link">
- grandchild link 1
- </a></li>
- <li><a href="" class="grandchild-link">
- grandchild link 2
- </a></li>
- </div>
- <li><a href="" class="child-link">child 2</a></li>
- </div>
- <li><a href="" class="regular-link">regular link</a></li>
- </div>
- </article> <!-- end links box 2 -->
- </main>
- <a style="position:fixed;bottom:1.3rem;right:1.3rem;font-size:15px;line-height:14px;height:14px;padding:3px;color:{color:links};text-align:center;letter-spacing:.7px;z-index:9999999" href="https://southcodes.tumblr.com" target="_blank" title="southcodes">sc</a>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
- <script src="https://npmcdn.com/colcade@0/colcade.js"></script>
- <script>
- $(document).ready(function(){
- $(".dropdown-child-title").click(function (e) {
- e.stopPropagation();
- jQuery(this).siblings('.dropdown-child').slideToggle('slow');
- });
- $(".dropdown-grandchild-title").click(function (e) {
- e.stopPropagation();
- jQuery(this).siblings('.dropdown-grandchild').slideToggle('slow');
- });
- $('#container').colcade({
- columns: '.grid-col',
- items: '.links-box'
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement