Advertisement
Guest User

css

a guest
Oct 16th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.63 KB | None | 0 0
  1. /* Reset margins and padding for browser consistency */
  2. html, body, div, span, applet, object, iframe,
  3. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  4. a, abbr, acronym, address, big, cite, code,
  5. del, dfn, em, font, img, ins, kbd, q, s, samp,
  6. small, strike, strong, sub, sup, tt, var,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td {
  10.     margin: 0;
  11.     padding: 0;
  12. }
  13.  
  14. /* Expand html and body to viewport */
  15. html, body {
  16.     width: 100% !important;
  17.     height: 100% !important;
  18. }
  19.  
  20. /* Use border-box layout */
  21. html {
  22.     box-sizing: border-box;
  23. }
  24.  
  25. html *, *:before, *:after {
  26.     box-sizing: inherit;
  27. }
  28.  
  29. /* Keyframe animations */
  30. @keyframes blink {
  31.     0% { opacity:1; }
  32.     50% { opacity:0; }
  33.     100% { opacity:1; }
  34. }
  35.  
  36. /* Google fonts */
  37. @import url(https://fonts.googleapis.com/css?family=Open+Sans:600,400);
  38.  
  39.  
  40. /* Everything else lol */
  41. body {
  42.     background-image: url('../img/background.jpg');
  43.     background-attachment: fixed;
  44.     background-repeat: no-repeat;
  45. }
  46.  
  47. #wrapper {
  48.     position: absolute;
  49.     left: 10%;
  50.     width: 80%;
  51.     height: auto;
  52.     opacity: 0.8;
  53. }
  54.  
  55. #header {
  56.     width: 100%;
  57.     background-color: black;
  58. }
  59.  
  60. #header h1 {
  61.     padding: 0.5em;
  62.     font-family: Courier;
  63.     color: white;
  64. }
  65.  
  66. #header span {
  67.     animation: blink 1s infinite;
  68. }
  69.  
  70. #nav {
  71.     width: 100%;
  72.     background-color: black;
  73.     overflow: hidden;
  74. }
  75.  
  76. #nav ul {
  77.     list-style-type: none;
  78. }
  79.  
  80. #nav li {
  81.     float: left;
  82. }
  83.  
  84. #nav a {
  85.     display: block;
  86.     padding: 0.75em;
  87.     font-family: courier;
  88.     font-weight: bold;
  89.     text-decoration: none;
  90.     color: white;
  91. }
  92.  
  93. #nav a:hover {
  94.     background-color: #CCCCCC;
  95.     color: black;
  96.     transition: all 0.5s ease;
  97. }
  98.  
  99. #nav a:hover span {
  100.     animation: blink 1s infinite;
  101. }
  102.  
  103. #content {
  104.     position: absolute;
  105.     padding: 3.5em 4em;
  106.     width: 100%;
  107.     height: auto;
  108.     background-color: #CCCCCC;
  109. }
  110.  
  111. #content .post {
  112.     background-color: blue;
  113.     color: white;
  114.     overflow: hidden;
  115. }
  116.  
  117. #content .post .post-title {
  118.     margin-bottom: 0.25em;
  119. }
  120.  
  121. #content .post .post-subtitle {
  122.     margin-bottom: 1em;
  123. }
  124.  
  125. #content .post .post-content {
  126.     margin-bottom: 0.5em;
  127. }
  128.  
  129. #content .post .post-timestamp {
  130.     float: right;
  131. }
  132.  
  133. #content .divider {
  134.     position: relative;
  135.     left: 10%;
  136.     margin: 3.5em 0;
  137.     border: 0;
  138.     height: 0.1em;
  139.     width: 80%;
  140.     background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  141. }
  142.  
  143. #footer {
  144.     width: 100%;
  145.     clear: left;
  146.     height: 4em;
  147.     background-color: black;
  148. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement