Skip to content

Commit

Permalink
css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
medicalwei committed Oct 24, 2011
1 parent 411e22c commit 54f9189
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 72 deletions.
15 changes: 12 additions & 3 deletions sass/screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
* Import this file using the following HTML or equivalent:
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */

@import "compass/reset";
@import "compass/css3";

html
{
background: #000;
}

body
{
width: 1024px;
font-size: 64px;
outline: 1px solid #000;
margin: 0 auto 0;
background: #fff;
@include transition(margin-top 0.5s ease);
overflow: hidden;
line-height: 1.5em;
position: relative;

&>* {
padding: 512px 2em;
margin: 0;
}

&>p>img:first-child {
Expand All @@ -28,7 +34,10 @@ body

ul>li {
padding: 0.5em 0;
list-style: circle outside;
}

&>h1, &>h2, &>h3, &>h4, &>h5, &>h6, &>h7{
font-size: 1.2em;
}
}

83 changes: 14 additions & 69 deletions stylesheets/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,96 +2,41 @@
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
/* line 17, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

/* line 20, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
body {
line-height: 1;
}

/* line 22, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
ol, ul {
list-style: none;
}

/* line 24, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
table {
border-collapse: collapse;
border-spacing: 0;
}

/* line 26, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
caption, th, td {
text-align: left;
font-weight: normal;
vertical-align: middle;
}

/* line 28, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
q, blockquote {
quotes: none;
}
/* line 101, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none;
}

/* line 30, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
a img {
border: none;
/* line 9, ../sass/screen.scss */
html {
background: #000;
}

/* line 114, ../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.11.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
display: block;
}

/* line 10, ../sass/screen.scss */
/* line 14, ../sass/screen.scss */
body {
width: 1024px;
font-size: 64px;
outline: 1px solid #000;
margin: 0 auto 0;
background: #fff;
-moz-transition: margin-top 0.5s ease;
-webkit-transition: margin-top 0.5s ease;
-o-transition: margin-top 0.5s ease;
transition: margin-top 0.5s ease;
overflow: hidden;
line-height: 1.5em;
position: relative;
}
/* line 19, ../sass/screen.scss */
/* line 24, ../sass/screen.scss */
body > * {
padding: 512px 2em;
margin: 0;
}
/* line 23, ../sass/screen.scss */
/* line 29, ../sass/screen.scss */
body > p > img:first-child {
width: 1024px;
margin: 0 -2em;
display: block;
}
/* line 29, ../sass/screen.scss */
/* line 35, ../sass/screen.scss */
body ul > li {
padding: 0.5em 0;
list-style: circle outside;
}
/* line 39, ../sass/screen.scss */
body > h1, body > h2, body > h3, body > h4, body > h5, body > h6, body > h7 {
font-size: 1.2em;
}

0 comments on commit 54f9189

Please sign in to comment.