Advertisement
southcodes

[#2 nav/tags] rotten

May 27th, 2019
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.35 KB | None | 0 0
  1. <!--
  2.      - nav/tags page #2 'rotten' 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/ask
  6.    
  7.     - normalize css by https://github.com/necolas
  8.  -->
  9.  
  10.  
  11. <!DOCTYPE html>
  12. <html>
  13. <head>
  14.     <title></title>
  15.  
  16.     <meta charset="UTF-8">
  17.     <meta name="viewport" content="width=device-width">
  18.  
  19.     <link rel="shortcut icon" href="{favicon}">
  20.     <link rel="alternate" type="application/rss+xml" href="{RSS}">
  21.  
  22.     <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600|Merriweather:400,400i,700&display=swap" rel="stylesheet">
  23.     <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
  24.  
  25. <style type="text/css">
  26.  
  27. body, figure{margin: 0;padding: 0}
  28. html{font-size: 14px}
  29. body {font: 1rem 'Open Sans', sans-serif;}
  30. a {text-decoration: none;
  31.     color:#333  /* change top links color */
  32. }
  33. b {font-weight: 600}
  34. nav ul,nav li {list-style-type:none;margin:0;padding:0;}
  35.  
  36.  
  37. section{
  38.     width: 55rem;
  39.     max-width: 95vw;
  40.     margin:8rem auto;
  41. }
  42. /*  header  */
  43.  
  44. header {
  45.     max-width: 95vw;
  46.     margin:0 auto 0;
  47.     width: 100%;
  48. }
  49.  
  50. #title{
  51.     font:400 3rem 'Merriweather', serif;
  52.     text-align: center;
  53.     letter-spacing: .1rem;
  54.     margin: 0
  55. }
  56.  
  57.  
  58. /*  top nav  */
  59.  
  60. #tnavi ul{
  61.     margin:4rem 0 2rem;
  62.     display: flex;
  63.     flex-flow: row nowrap;
  64.     text-transform: uppercase;
  65.     justify-content: space-around;
  66. }
  67.  
  68. #tnavi li {
  69.     padding: 0 .8rem .4rem;
  70.     border-bottom:2px solid transparent;
  71.     transition-duration: .5s;}
  72.  
  73. #tnavi li:hover {
  74.     border-bottom:2px solid #e0b5d8; /* change the color under the top links on hover*/
  75. }
  76.  
  77. hr {border:0;border-top:1px dotted #bbb;margin:1rem auto}
  78.  
  79. #bg {
  80.     width:95%;
  81.     height:3rem;
  82.     background: #f6e6f7;  /*change solid header color*/
  83.     margin: 0rem auto;
  84. }
  85.  
  86. /*  main  */
  87. main {
  88. margin: 3rem auto 0;
  89. max-width: 95vw;
  90. width: 100%
  91. }
  92.  
  93. #mnavi ul {
  94.  
  95.     width: 60rem;
  96.     max-width: 100%;
  97.     margin:auto;
  98.     display: flex;
  99.     flex-flow: row wrap;
  100.     justify-content: space-around;
  101.     align-items: center;
  102. }
  103.  
  104. #mnavi li {
  105. width: 8rem;
  106. margin:1.3rem 2rem; /* (somewhat) change the number of columns, the higher the number the less columns you'll have*/
  107. display: inline-block;
  108. box-sizing: border-box;
  109. text-align: center;
  110. font: 400 1rem 'Merriweather', serif;
  111. word-wrap: break-word;
  112. vertical-align: top;
  113. line-height: 100%;
  114. }
  115.  
  116. #mnavi a{
  117. display: block;
  118. transition-duration: .5s;
  119. border-bottom: 2px solid #e0b5d8;
  120. line-height: 140%;
  121. font-style: italic;
  122. padding:.7rem .4rem;
  123. color:#666; /* link tags color*/
  124. margin:0;
  125. }
  126.  
  127.  #mnavi li:hover a{
  128.     background: #fce8fb; /* background of tags on hover*/
  129.  }
  130.  
  131.  
  132. /* MEDIA */
  133.  
  134. @media only screen and (min-width:700px) and (max-width:1400px) {
  135.  
  136. }
  137.  
  138. @media only screen and (min-width:0px) and (max-width:699px) {
  139.  
  140. }
  141. </style>
  142.  
  143.  
  144. </head>
  145. <body>
  146.  
  147. <section>
  148.  
  149. <header>
  150.  
  151.     <h1 id="title">rotten</h1>
  152.  
  153.     <nav id="tnavi"><ul>
  154.     <li><a href="/">index</a></li>
  155.     <li><a href="/ask">askbox</a></li>
  156.     <li><a href="/">about</a></li>
  157.     <li><a href="/archive">archive</a></li>
  158.     <li><a href="https://www.tumblr.com">dashboard</a></li>
  159.     </ul><nav>
  160.    
  161.     <hr>
  162.     <figure id="bg"></figure>
  163.     <hr>
  164.  
  165. </header>
  166.  
  167. <main>
  168.  
  169. <nav id="mnavi"><ul>
  170.     <li><a href="/">rotten</a></li>
  171.     <li><a href="/">bones</a></li>
  172.     <li><a href="/">bleached</a></li>
  173.     <li><a href="/">sun</a></li>
  174.     <li><a href="/">no good</a></li>
  175.     <li><a href="/">baby</a></li>
  176.     <li><a href="/">careful</a></li>
  177.     <li><a href="/">waiting</a></li>
  178.     <li><a href="/">plan</a></li>
  179.     <li><a href="/">stay</a></li>
  180.     <li><a href="/">wives</a></li>
  181.     <li><a href="/">troubles</a></li>
  182.     <li><a href="/">wine</a></li>
  183.     <li><a href="/">pray</a></li>
  184.     <li><a href="/">tainted</a></li>
  185.     <li><a href="/">pretty</a></li>
  186.     <li><a href="/">perfection</a></li>
  187.     <li><a href="/">ate you</a></li>
  188.     <li><a href="/">whole</a></li>
  189. </ul></nav>
  190.  
  191. </main>
  192. </section>
  193.  
  194. <footer>
  195.     <div style="position:fixed;bottom:15px;right:10px;font-size:14.5px;line-height:14px;height:14px;width:14px;padding:4px;"><a href="https://southcodes.tumblr.com" title="southcodes" style="color:#666;">sc</a></div>
  196. </footer>
  197.  
  198. </body>
  199. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement