Advertisement
drdanielfc

Untitled

Sep 25th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. /*
  2. Starry Night DEMO
  3. chriscoyier@gmail.com
  4. http://chriscoyier.net
  5. */
  6.  
  7. * { margin: 0; padding: 0; }
  8.  
  9. html { overflow-y: scroll; }
  10.  
  11. .clear {
  12. clear: both;
  13. }
  14.  
  15. .floatLeft {
  16. float: left;
  17. }
  18.  
  19. .floatRight {
  20. float: right;
  21. }
  22.  
  23. body {
  24. font: 10px/2 "Lucida Grande", Helvetica, Sans-Serif;
  25. color: #eee;
  26. }
  27.  
  28. @-webkit-keyframes STAR-MOVE {
  29. from {
  30. background-position: 5% 5%
  31. }
  32. to {
  33. background-position: 1300% 600%
  34. }
  35. }
  36.  
  37. #background {
  38. background: black url(http://css-tricks.com/examples/StarryNightCSS3/images/background.png) repeat 5% 5%;
  39. position: absolute;
  40. top: 0; left: 0; right: 0; bottom: 0;
  41. z-index: 100;
  42.  
  43. -webkit-animation-name: STAR-MOVE;
  44. -webkit-animation-duration: 200s;
  45. -webkit-animation-timing-function: linear;
  46. -webkit-animation-iteration-count: infinite;
  47. }
  48.  
  49. #midground {
  50. background: url(http://css-tricks.com/examples/StarryNightCSS3/images/midground.png) repeat 20% 20%;
  51. position: absolute;
  52. top: 0; left: 0; right: 0; bottom: 0;
  53. z-index: 200;
  54.  
  55. -webkit-animation-name: STAR-MOVE;
  56. -webkit-animation-duration: 150s;
  57. -webkit-animation-timing-function: linear;
  58. -webkit-animation-iteration-count: infinite;
  59. }
  60.  
  61. #foreground {
  62. background: url(http://css-tricks.com/examples/StarryNightCSS3/images/foreground.png) repeat 35% 35%;
  63. position: absolute;
  64. top: 0; left: 0; right: 0; bottom: 0;
  65. z-index: 300;
  66.  
  67. -webkit-animation-name: STAR-MOVE;
  68. -webkit-animation-duration: 100s;
  69. -webkit-animation-timing-function: linear;
  70. -webkit-animation-iteration-count: infinite;
  71. }
  72.  
  73. #sidebar {
  74. width: 160px;
  75. float: left;
  76. margin-right: 20px;
  77. }
  78.  
  79. #main-content {
  80. width: 540px;
  81. float: right;
  82. }
  83.  
  84. #page-wrap {
  85. width: 720px;
  86. margin: 0 auto;
  87. position: relative;
  88. z-index: 300;
  89. background: rgba(0,0,0,0.7);
  90. overflow: hidden;
  91. padding: 30px 50px;
  92. }
  93.  
  94. h1 {
  95. font: 42px Georgia, Serif;
  96. margin: 0 0 10px 0;
  97. color: #eee;
  98. }
  99.  
  100. h2 {
  101. font: 20px Georgia, Serif;
  102. margin: 0 0 1px 0;
  103. color: #eee;
  104. }
  105.  
  106. h2.bump {
  107. text-indent: 200px;
  108. }
  109.  
  110. p {
  111. margin: 0 0 15px 0;
  112. color: #999;
  113. }
  114.  
  115. code {
  116. color: white;
  117. margin: -1px 0 0 0;
  118. font: 10px Courier;
  119. }
  120.  
  121. p.thinParagraph {
  122. width: 340px;
  123. }
  124.  
  125. blockquote {
  126. font: italic 15px/20px Georgia, Serif;
  127. width: 180px;
  128. }
  129.  
  130. blockquote p {
  131. color: white;
  132. }
  133.  
  134. blockquote.right {
  135. float: right;
  136. }
  137.  
  138. ul.meta {
  139. width: 180px;
  140. margin: 0 10px 0 0;
  141. list-style: none;
  142. float: left;
  143. }
  144.  
  145. ul.meta li {
  146. text-align: right;
  147. }
  148.  
  149. ul.meta li.author {
  150. font: normal small-caps normal 15px Georgia, Serif;
  151. margin: 0 0 2px 0;
  152. letter-spacing: 2px;
  153. }
  154.  
  155. ul.meta li.date {
  156. margin: 0 0 10px 0;
  157. }
  158.  
  159. ul.meta li.comments {
  160. font-style: italic;
  161. }
  162.  
  163. .article {
  164. float: right;
  165. width: 340px;
  166. }
  167.  
  168. ol {
  169. margin: 20px 0;
  170. list-style: inside decimal;
  171. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement