Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - links page 'sera' 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
- - icon font by https://cappuccicons.com/
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{title}</title>
- <meta name="viewport" content="width=device-width">
- <link rel="shortcut icon" href="{favicon}">
- <meta name="description" content="{MetaDescription}"/>
- <!-- 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=Corinthia:wght@400;700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Open+Sans:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap" rel="stylesheet">
- <!-- icon font -->
- <script src="https://pull.cappuccicons.com/cpf.js"></script>
- <link rel="stylesheet" type="text/css" href="https://icons.cappuccicons.com/cpf.css">
- <!-- normalize -->
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <link rel="stylesheet" href="basic multi level page without js.css">
- <style>
- :root {
- --background:#ffffff;
- --text:#333;
- --links: #8f4444;
- --links-hover: #8c3636;
- --boxes-background:#fafafa;
- --borders:#8f4444;
- --icons: #a10c18;
- /* please only change this number if you have less than 3 links boxes */
- --row-count: 2
- }
- .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85);-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
- .tmblr-iframe:hover {opacity:.8;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--borders);}
- ::-webkit-scrollbar {width:6px}
- ::-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 'Montserrat', sans-serif;}
- body {font-size:14px;color:var(--text);background:var(--background);}
- a {text-decoration: none;color:var(--links);word-break:break-word;}
- a:hover {color:var(--links-hover);}
- blockquote {margin:0;padding:0;}
- img {max-width:100%;height: auto;display: block;margin: .7rem 0}
- hr {border:0;border-top:1px solid var(--borders);margin:0;}
- /* general navs */
- nav ul,nav li , li{list-style-type:none;margin:0;padding:0;}
- /* header */
- header {
- max-width: 40rem;
- width:90vw;
- margin:5rem auto;
- text-align: center;
- }
- header .cp {
- font-size: 1.3rem;
- color:var(--icons)
- }
- #header-nav {
- margin:1rem 0 2rem
- }
- #header-nav ul{
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-around;
- font-family: 'Montserrat', sans-serif;
- text-transform: uppercase;
- font-weight: 600;
- }
- figure.header-image {
- width: 100%;
- height: 8rem;
- }
- img.header-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-radius: 3px;
- }
- #page-title {
- font: 400 5.3rem 'Corinthia', cursive;
- text-align: center;
- margin:2rem 0 1rem
- }
- #page-title:first-letter {
- color:var(--links);
- text-transform: uppercase;
- }
- #description {
- line-height: 160%;
- }
- /* body */
- main {
- display:flex;
- flex-flow: row wrap;
- align-items: space-between;
- justify-content: space-around;
- margin:5rem auto 0;
- padding:0 0;
- max-width: 60rem;
- width:90vw;
- box-sizing: border-box;
- }
- .grid-col {
- /* change this number if you have less than three boxes*/
- width: calc( 100% / 3);
- margin:0 auto
- }
- .links-box {
- width:calc( 100% - 2rem);
- /* max-width:20rem; */
- margin: 3rem 1rem 6rem;
- word-break: break-word;
- transition-duration: .2s;
- background-color: var(--boxes-background);
- padding: 2rem;
- box-sizing: border-box;
- }
- .box-title {
- margin:0 0 2rem;
- font-weight: 500;
- font-size: 1.2rem;
- text-transform: uppercase;
- }
- .box-title span {
- box-shadow: inset 0 -7px var(--links);
- padding: 0 .5rem;
- }
- .links-box li {
- margin:1rem 0;
- transition-duration: .2s;
- text-transform: uppercase;
- font-weight: 500;
- }
- .links-box li:hover {
- margin-left: 1rem;
- }
- li.inner-link {
- margin-left: 1rem!important;
- font-style: italic;
- text-transform: lowercase;
- font-weight: 400;
- }
- .inner-link:hover {
- margin-left: 2rem!important;
- }
- .inner-link:before {
- content:'\ea55 ';
- font-family:'cappuccicons';
- margin-right: .5rem;
- font-size: .7rem;
- font-style: normal;
- color:var(--icons)
- }
- .links-box li:not(.inner-link):before {
- content: '\ea54';
- margin-right: .5rem;
- font-size: .7rem;
- font-family:'cappuccicons';
- color:var(--icons)
- }
- /* MEDIA */
- @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:799px) {
- .colthree {display:none}
- .grid-col {
- width: calc(100% / 2);
- }
- }
- </style>
- </head>
- <body>
- <header>
- <nav id="header-nav"><ul>
- <li><a href="/"><i class="cp cp-home"></i></a></li>
- <li><a href="/ask"><i class="cp cp-envelope"></i></a></li>
- <li><a href="https://www.tumblr.com/"><i class="cp cp-tumblr"></i></a></li>
- </ul></nav>
- <figure class="header-image"><img src="IMAGE URL" class="header-image"></figure>
- <h1 id="page-title">title </h1>
- <article id="description">
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia, vel neque repellendus suscipit molestiae temporibus repudiandae! Architecto sit corporis aliquid explicabo esse porro veritatis neque autem. Eum maxime quis quo.</p>
- </article>
- </header>
- <main>
- <div class="grid-col"></div>
- <div class="grid-col coltwo"></div>
- <div class="grid-col colthree"></div>
- <!-- link boxes template
- <article class="links-box">
- <h2 class="box-title"> box title </h2>
- <a href=""><li>link a</li></a>
- <a href=""><li class="inner-link">inner</li></a>
- <a href=""><li class="inner-link">inner</li></a>
- <a href=""><li>link a</li></a>
- <a href=""><li>link a</li></a>
- </article>
- -->
- <article class="links-box">
- <h2 class="box-title"><span>box title</span></h2>
- <a href=""><li>link a</li></a>
- <a href=""><li class="inner-link">inner</li></a>
- <a href=""><li class="inner-link">inner</li></a>
- <a href=""><li>link a</li></a>
- <a href=""><li>link a</li></a>
- </article>
- <article class="links-box">
- <a href=""><li>link a</li></a>
- <a href=""><li class="inner-link">inner</li></a>
- <a href=""><li class="inner-link">inner</li></a>
- <a href=""><li>link a</li></a>
- <a href=""><li>link a</li></a>
- </article>
- </main>
- <figure><a href="https://southcodes.tumblr.com/" style="position: fixed;bottom:2rem;right:2rem;font-weight:600">SC</a></figure>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
- <script src="https://npmcdn.com/colcade@0/colcade.js"></script>
- <script type="text/javascript">
- $(document).ready( function() {
- $('main').colcade({
- columns: '.grid-col',
- items: '.links-box'
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement