Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Starry Night DEMO
- chriscoyier@gmail.com
- http://chriscoyier.net
- */
- * { margin: 0; padding: 0; }
- html { overflow-y: scroll; }
- .clear {
- clear: both;
- }
- .floatLeft {
- float: left;
- }
- .floatRight {
- float: right;
- }
- body {
- font: 10px/2 "Lucida Grande", Helvetica, Sans-Serif;
- color: #eee;
- }
- @-webkit-keyframes STAR-MOVE {
- from {
- background-position: 5% 5%
- }
- to {
- background-position: 1300% 600%
- }
- }
- #background {
- background: black url(http://css-tricks.com/examples/StarryNightCSS3/images/background.png) repeat 5% 5%;
- position: absolute;
- top: 0; left: 0; right: 0; bottom: 0;
- z-index: 100;
- -webkit-animation-name: STAR-MOVE;
- -webkit-animation-duration: 200s;
- -webkit-animation-timing-function: linear;
- -webkit-animation-iteration-count: infinite;
- }
- #midground {
- background: url(http://css-tricks.com/examples/StarryNightCSS3/images/midground.png) repeat 20% 20%;
- position: absolute;
- top: 0; left: 0; right: 0; bottom: 0;
- z-index: 200;
- -webkit-animation-name: STAR-MOVE;
- -webkit-animation-duration: 150s;
- -webkit-animation-timing-function: linear;
- -webkit-animation-iteration-count: infinite;
- }
- #foreground {
- background: url(http://css-tricks.com/examples/StarryNightCSS3/images/foreground.png) repeat 35% 35%;
- position: absolute;
- top: 0; left: 0; right: 0; bottom: 0;
- z-index: 300;
- -webkit-animation-name: STAR-MOVE;
- -webkit-animation-duration: 100s;
- -webkit-animation-timing-function: linear;
- -webkit-animation-iteration-count: infinite;
- }
- #sidebar {
- width: 160px;
- float: left;
- margin-right: 20px;
- }
- #main-content {
- width: 540px;
- float: right;
- }
- #page-wrap {
- width: 720px;
- margin: 0 auto;
- position: relative;
- z-index: 300;
- background: rgba(0,0,0,0.7);
- overflow: hidden;
- padding: 30px 50px;
- }
- h1 {
- font: 42px Georgia, Serif;
- margin: 0 0 10px 0;
- color: #eee;
- }
- h2 {
- font: 20px Georgia, Serif;
- margin: 0 0 1px 0;
- color: #eee;
- }
- h2.bump {
- text-indent: 200px;
- }
- p {
- margin: 0 0 15px 0;
- color: #999;
- }
- code {
- color: white;
- margin: -1px 0 0 0;
- font: 10px Courier;
- }
- p.thinParagraph {
- width: 340px;
- }
- blockquote {
- font: italic 15px/20px Georgia, Serif;
- width: 180px;
- }
- blockquote p {
- color: white;
- }
- blockquote.right {
- float: right;
- }
- ul.meta {
- width: 180px;
- margin: 0 10px 0 0;
- list-style: none;
- float: left;
- }
- ul.meta li {
- text-align: right;
- }
- ul.meta li.author {
- font: normal small-caps normal 15px Georgia, Serif;
- margin: 0 0 2px 0;
- letter-spacing: 2px;
- }
- ul.meta li.date {
- margin: 0 0 10px 0;
- }
- ul.meta li.comments {
- font-style: italic;
- }
- .article {
- float: right;
- width: 340px;
- }
- ol {
- margin: 20px 0;
- list-style: inside decimal;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement