Advertisement
southcodes

NAVI/TAGS #1: somewhere

Jan 17th, 2017
2,164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.67 KB | None | 0 0
  1. <!--
  2.  
  3.     - navigation #1 'somewhere' by http://southcodes.tumblr.com/
  4.     - modify as you like but keep the credit intact
  5.     - any errors? need help? have questions? let me know!
  6.       southcodes.tumblr.com/ask
  7.  
  8. -->
  9.  
  10. <!DOCTYPE html>
  11. <head>
  12.  
  13.     <title>{Title}</title>
  14.  
  15.     <link rel="shortcut icon" href="{favicon}">
  16.     <link rel="alternate" type="application/rss+xml" href="{RSS}">
  17.     <link href="https://fonts.googleapis.com/css?family=Cabin|Noto+Sans|Nunito+Sans|Montserrat|Ubuntu" rel="stylesheet">
  18.    
  19.     <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>
  20. <script>
  21. $('.navi').masonry({
  22.   itemSelector: '.box',
  23. });
  24. </script>
  25.  
  26.  
  27. <style type="text/css">
  28.  
  29. .tmblr-iframe {
  30.     margin:10px;
  31.     opacity:.5;
  32.     -moz-transition-duration: 0.2s;
  33.     -o-transition-duration: 0.2s;
  34.     -webkit-transition-duration: 0.2s;q
  35.     transition-duration: 0.2s;
  36. }
  37.  
  38. .tmblr-iframe:hover{
  39.     opacity:.8;
  40.     -moz-transition-duration: 0.6s;
  41.     -o-transition-duration: 0.6s;
  42.     -webkit-transition-duration: 0.6s;q
  43.     transition-duration: 0.6s;
  44. }
  45.  
  46. ::-webkit-scrollbar-thumb:vertical {
  47.     background-color: #bbb;
  48.     height: 11px;
  49.     border: 4px solid #fff;
  50. }
  51.  
  52.  
  53. ::-webkit-scrollbar {
  54.     background-color: inherit;
  55.     height:10px;
  56.     width:9px;
  57. }
  58.  
  59. #s-m-t-tooltip{
  60.     font-family:calibri;
  61.     max-width:300px;
  62.     margin-top:25px;
  63.     margin-left:15px;
  64.     z-index:999999;
  65.     letter-spacing:1.6px;
  66.     text-transform:uppercase;
  67.     font-size:8.5px;
  68.     border: solid 1px #ddd;
  69.     background-color:#fcfcfc;
  70.     color:#666;
  71.     padding:3px 5px 3px 5px;
  72. }
  73.  
  74. body {
  75.     font-family:'Noto sans';
  76.     font-size:11px;
  77.     letter-spacing:1px;
  78.     text-transform:uppercase;
  79. }
  80.  
  81. a {
  82.     text-decoration:none;
  83.     color:#8c8c8c;
  84.     -moz-transition-duration: 0.6s;
  85.     -o-transition-duration: 0.6s;
  86.     -webkit-transition-duration: 0.6s;
  87.     transition-duration: 0.6s;
  88. }
  89.  
  90. a:hover {
  91.     color:#000;
  92.     -moz-transition-duration: 0.6s;
  93.     -o-transition-duration: 0.6s;
  94.     -webkit-transition-duration: 0.6s;
  95.     transition-duration: 0.6s;
  96. }
  97.  
  98. .container {
  99.     width:100%;
  100.     margin:10% auto 40px;
  101. }
  102.  
  103. .header {
  104.     text-align:center;
  105. }
  106.  
  107. .icon img {
  108.     width:50px;
  109.     border-radius:4px;
  110. }
  111.  
  112. .title {
  113.     margin:20px 0 25px;
  114.     font-size:15px;
  115.     letter-spacing:1.5px;
  116.     font-family:'Montserrat';
  117. }
  118.  
  119. .links {
  120.     font-family:calibri;
  121.     font-size:11px;
  122.     letter-spacing:1.5px;
  123. }
  124.  
  125. .links a{
  126.     padding-right:5px;
  127. }
  128.  
  129. .links a:last-child{
  130.     padding-right:0px;
  131. }
  132.  
  133. .navi {
  134.     width:calc(190px * 4); /*change the last number to the number of boxes per row you want*/
  135.     margin: 50px auto 0;
  136. }
  137.  
  138. .box {
  139.     display:inline-block;
  140.     width:130px;
  141.     margin: 0 30px 30px;
  142. }
  143.  
  144. .boxt {
  145.     font-family:'Montserrat';
  146.     padding:3px 3px 6px;
  147.     border-bottom:1px solid #eee;
  148.     font-size:12.5px;
  149.     letter-spacing:1px;
  150. }
  151.  
  152. .boxc {
  153.     margin:10px auto 0px;
  154.     line-height:20px;
  155.     font-size:10px;
  156. }
  157.  
  158. .boxc a {
  159.     display:block;
  160.     line-height:23px;
  161. }
  162.  
  163. .boxc a:hover {
  164.     padding-left:7px;
  165. }
  166.  
  167. .credit {
  168.     font-family:calibri;
  169.     position:fixed;
  170.     bottom:10px;
  171.     right:10px;
  172. }
  173.  
  174. .credit a{
  175.     color:#666;
  176.     font-size:10px;
  177.     font-variant:small-caps;
  178. }
  179.  
  180.  
  181. </style>
  182. </head>
  183.  
  184. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  185. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  186. <script>
  187. (function($){
  188. $(document).ready(function(){
  189. $("a[title]").style_my_tooltips({
  190. tip_follows_cursor:true,
  191. tip_delay_time:30,
  192. tip_fade_speed:300,
  193. attribute:"title"
  194. });
  195. });
  196. })(jQuery);
  197. </script>
  198.  
  199. <body>
  200. <div class="container">
  201.    
  202. <div class="header">
  203.     <div class="icon"><a href="/"><img src="{favicon}"></a></div>
  204.    
  205.     <div class="title">navi title</div>
  206.  
  207. <!--    links    -->
  208.     <div class="links">
  209.         <a href="/">return</a>
  210.         <a href="/ask">inbox</a>
  211.         <a href="https://www.tumblr.com">dashboard</a>
  212.     </div>
  213. </div>
  214.  
  215.  
  216.  
  217. <div class="navi" data-masonry='{ "itemSelector": ".box"}'>
  218.  
  219. <!--
  220. - want a different number of boxes per row? look up ".navi" on the code!
  221. -->
  222.  
  223.  
  224. <!-- START box 1 (add as many as you want!) -->
  225.  
  226.     <div class="box">
  227.         <div class="boxt">box title 1</div>
  228.        
  229.         <div class="boxc">
  230.         <a href="">link 1</a>;
  231.         <a href="">link 2</a>;
  232.         </div>
  233.     </div>
  234.  
  235. <!-- END box 1 -->    
  236.    
  237.    
  238.  
  239.  
  240. <!-- START box 2 -->
  241.  
  242.     <div class="box">
  243.         <div class="boxt">box title 2</div>
  244.        
  245.         <div class="boxc">
  246.         <a href="">link 1</a>;
  247.         <a href="">link 2</a>;
  248.         </div>
  249.     </div>
  250.  
  251. <!-- END box 2 -->    
  252.  
  253.  
  254.  
  255.  
  256. <!-- START box 3 -->
  257.  
  258.     <div class="box">
  259.         <div class="boxt">box title 3</div>
  260.        
  261.         <div class="boxc">
  262.         <a href="">link 1</a>;
  263.         <a href="">link 2</a>;
  264.         <a href="">link 3</a>;
  265.         </div>
  266.     </div>
  267.  
  268. <!-- END box 3 -->    
  269.    
  270.  
  271.  
  272.  
  273. <!-- START box 4 -->
  274.  
  275.     <div class="box">
  276.         <div class="boxt">box title 4</div>
  277.        
  278.         <div class="boxc">
  279.         <a href="">link 1</a>;
  280.         <a href="">link 2</a>;
  281.         </div>
  282.     </div>
  283.  
  284. <!-- END box 4 -->    
  285.    
  286.  
  287.  
  288.  
  289. <!-- START box 5 -->
  290.  
  291.     <div class="box">
  292.         <div class="boxt">box title 5</div>
  293.        
  294.         <div class="boxc">
  295.         <a href="">link 1</a>;
  296.         <a href="">link 2</a>;
  297.         </div>
  298.     </div>
  299.  
  300. <!-- END box 5 -->    
  301.    
  302.  
  303.  
  304.  
  305. </div>
  306.    
  307. </div>
  308. <!-- dont touch pls <3 -->  
  309. <div class="credit"><a href="http://southcodes.tumblr.com" title="southcodes">s.</a></div>
  310. </body>
  311. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement