Advertisement
southcodes

sera | links page

Feb 5th, 2022 (edited)
2,844
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.97 KB | None | 1 0
  1. <!--
  2.     - links page 'sera' by skye southcodes.tumblr.com
  3.     - modify as you please but please do not touch the credit
  4.     - any errors? need help? have questions? let me know!
  5.     southcodes.tumblr.com/inbox
  6.    
  7.     - normalize css by https://github.com/necolas
  8.     - fonts by google
  9.     - icon font by https://cappuccicons.com/
  10.  -->
  11.  
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15.     <title>{title}</title>
  16.  
  17.     <meta name="viewport" content="width=device-width">
  18.  
  19.     <link rel="shortcut icon" href="{favicon}">
  20.     <meta name="description" content="{MetaDescription}"/>
  21.  
  22.     <!-- fonts -->
  23.     <link rel="preconnect" href="https://fonts.googleapis.com">
  24.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  25.     <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">
  26.  
  27.     <!-- icon font -->
  28.     <script src="https://pull.cappuccicons.com/cpf.js"></script>
  29.     <link rel="stylesheet" type="text/css" href="https://icons.cappuccicons.com/cpf.css">
  30.    
  31.     <!-- normalize -->
  32.     <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
  33.     <link rel="stylesheet" href="basic multi level page without js.css">
  34. <style>
  35. :root {
  36.     --background:#ffffff;
  37.     --text:#333;
  38.     --links: #8f4444;
  39.     --links-hover: #8c3636;
  40.     --boxes-background:#fafafa;
  41.     --borders:#8f4444;
  42.     --icons: #a10c18;
  43.     /* please only change this number if you have less than 3 links boxes */
  44.     --row-count: 2
  45.   }
  46.  
  47. .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85);-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
  48. .tmblr-iframe:hover {opacity:.8;}
  49.  
  50. ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--borders);}
  51. ::-webkit-scrollbar {width:6px}
  52. ::-webkit-scrollbar-track-piece{margin:5px 0;}
  53.  
  54. pre {font-family:consolas;
  55.     white-space: pre-wrap;       /* css-3 */
  56.     white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  57.     white-space: -pre-wrap;      /* Opera 4- */
  58.     white-space: -o-pre-wrap;    /* Opera 7 */
  59.     word-wrap: break-word;}      /* Internet Explorer 5.5+ */
  60.  
  61. body, figure{margin:0;padding:0}
  62. html{font: 14px 'Montserrat', sans-serif;}
  63. body {font-size:14px;color:var(--text);background:var(--background);}
  64. a {text-decoration: none;color:var(--links);word-break:break-word;}
  65. a:hover {color:var(--links-hover);}
  66. blockquote {margin:0;padding:0;}
  67. img {max-width:100%;height: auto;display: block;margin: .7rem 0}
  68. hr {border:0;border-top:1px solid var(--borders);margin:0;}
  69.  
  70.  
  71. /*  general navs  */
  72.  
  73. nav ul,nav li , li{list-style-type:none;margin:0;padding:0;}
  74.  
  75.  
  76. /*  header  */
  77.  
  78. header {
  79.     max-width: 40rem;
  80.     width:90vw;
  81.     margin:5rem auto;
  82.     text-align: center;
  83. }
  84.  
  85. header .cp {
  86.     font-size: 1.3rem;
  87.     color:var(--icons)
  88. }
  89.  
  90. #header-nav {
  91.     margin:1rem 0 2rem
  92. }
  93.  
  94. #header-nav ul{
  95.     display: flex;
  96.     flex-flow: row nowrap;
  97.     justify-content: space-around;
  98.     font-family: 'Montserrat', sans-serif;
  99.     text-transform: uppercase;
  100.     font-weight: 600;
  101. }
  102.  
  103. figure.header-image {
  104.     width: 100%;
  105.     height: 8rem;
  106. }
  107.  
  108. img.header-image {
  109.     width: 100%;
  110.     height: 100%;
  111.     object-fit: cover;
  112.     border-radius: 3px;
  113. }
  114.  
  115. #page-title {
  116.     font: 400 5.3rem 'Corinthia', cursive;
  117.     text-align: center;
  118.     margin:2rem 0 1rem
  119. }
  120.  
  121. #page-title:first-letter {
  122.     color:var(--links);
  123.     text-transform: uppercase;
  124. }
  125.  
  126. #description {
  127.     line-height: 160%;
  128. }
  129.  
  130. /* body */
  131.  
  132. main {
  133.     display:flex;
  134.     flex-flow: row wrap;
  135.     align-items: space-between;
  136.     justify-content: space-around;
  137.     margin:5rem auto 0;
  138.     padding:0 0;
  139.     max-width: 60rem;
  140.     width:90vw;
  141.     box-sizing: border-box;
  142. }
  143. .grid-col {
  144.     /* change this number if you have less than three boxes*/
  145.     width: calc( 100% / 3);
  146.     margin:0 auto
  147. }
  148.  
  149. .links-box {
  150.     width:calc( 100% - 2rem);
  151.     /* max-width:20rem; */
  152.     margin: 3rem 1rem 6rem;
  153.    
  154.     word-break: break-word;
  155.     transition-duration: .2s;
  156.     background-color: var(--boxes-background);
  157.     padding: 2rem;
  158.     box-sizing: border-box;
  159. }
  160.  
  161.  
  162. .box-title {
  163.     margin:0 0 2rem;
  164.     font-weight: 500;
  165.     font-size: 1.2rem;
  166.     text-transform: uppercase;
  167. }
  168. .box-title span {
  169.     box-shadow: inset 0 -7px var(--links);
  170.     padding: 0 .5rem;
  171. }
  172.  
  173. .links-box li {
  174.     margin:1rem 0;
  175.     transition-duration: .2s;
  176.     text-transform: uppercase;
  177.     font-weight: 500;
  178. }
  179.  
  180. .links-box li:hover {
  181.     margin-left: 1rem;
  182. }
  183.  
  184. li.inner-link {
  185.     margin-left: 1rem!important;
  186.     font-style: italic;
  187.     text-transform: lowercase;
  188.     font-weight: 400;
  189. }
  190.  
  191. .inner-link:hover {
  192.     margin-left: 2rem!important;
  193. }
  194.  
  195. .inner-link:before {
  196.     content:'\ea55 ';
  197.     font-family:'cappuccicons';
  198.     margin-right: .5rem;
  199.     font-size: .7rem;
  200.     font-style: normal;
  201.     color:var(--icons)
  202. }
  203.  
  204. .links-box li:not(.inner-link):before {
  205.     content: '\ea54';
  206.     margin-right: .5rem;
  207.     font-size: .7rem;
  208.     font-family:'cappuccicons';
  209.     color:var(--icons)
  210. }
  211.  
  212.  
  213. /* MEDIA */
  214.  
  215.  
  216. @media only screen and (min-width:0px) and (max-width:599px) {
  217.  
  218.     .colthree {display:none}
  219.     .coltwo {display:none}
  220.     .grid-col {
  221.         width: calc(100%);
  222.         margin:0;
  223.     }
  224.    
  225. }
  226.  
  227.  
  228. @media only screen and (min-width:600px) and (max-width:799px) {
  229.  
  230.     .colthree {display:none}
  231.     .grid-col {
  232.         width: calc(100% / 2);
  233.     }
  234.    
  235. }
  236. </style>
  237. </head>
  238. <body>
  239.  
  240. <header>
  241.  
  242.     <nav id="header-nav"><ul>
  243.         <li><a href="/"><i class="cp cp-home"></i></a></li>
  244.         <li><a href="/ask"><i class="cp cp-envelope"></i></a></li>
  245.         <li><a href="https://www.tumblr.com/"><i class="cp cp-tumblr"></i></a></li>
  246.     </ul></nav>
  247.  
  248.     <figure class="header-image"><img src="IMAGE URL" class="header-image"></figure>
  249.  
  250.     <h1 id="page-title">title </h1>
  251.  
  252.     <article id="description">
  253.         <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>
  254.     </article>
  255.  
  256. </header>
  257.  
  258. <main>
  259.  
  260.     <div class="grid-col"></div>
  261.     <div class="grid-col coltwo"></div>
  262.     <div class="grid-col colthree"></div>
  263.  
  264.     <!-- link boxes template
  265.  
  266.      
  267.      <article class="links-box">
  268.            
  269.         <h2 class="box-title"> box title </h2>
  270.  
  271.         <a href=""><li>link a</li></a>
  272.             <a href=""><li class="inner-link">inner</li></a>
  273.             <a href=""><li class="inner-link">inner</li></a>
  274.         <a href=""><li>link a</li></a>
  275.         <a href=""><li>link a</li></a>
  276.        
  277.     </article>
  278.  
  279.  
  280.      -->
  281.  
  282.      
  283.      <article class="links-box">
  284.            
  285.         <h2 class="box-title"><span>box title</span></h2>
  286.  
  287.         <a href=""><li>link a</li></a>
  288.             <a href=""><li class="inner-link">inner</li></a>
  289.             <a href=""><li class="inner-link">inner</li></a>
  290.         <a href=""><li>link a</li></a>
  291.         <a href=""><li>link a</li></a>
  292.        
  293.     </article>
  294.  
  295.    
  296.      
  297.      <article class="links-box">
  298.  
  299.         <a href=""><li>link a</li></a>
  300.             <a href=""><li class="inner-link">inner</li></a>
  301.             <a href=""><li class="inner-link">inner</li></a>
  302.         <a href=""><li>link a</li></a>
  303.         <a href=""><li>link a</li></a>
  304.        
  305.     </article>
  306.  
  307.    
  308. </main>
  309.  
  310. <figure><a href="https://southcodes.tumblr.com/" style="position: fixed;bottom:2rem;right:2rem;font-weight:600">SC</a></figure>
  311.  
  312.  
  313. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
  314. <script src="https://npmcdn.com/colcade@0/colcade.js"></script>
  315. <script type="text/javascript">
  316.  
  317.     $(document).ready( function() {
  318.         $('main').colcade({
  319.         columns: '.grid-col',
  320.         items: '.links-box'
  321.         });
  322.     });
  323.  
  324. </script>
  325.  
  326. </body>
  327. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement