Switch to compass guard to make guard actually generate SASS.

This commit is contained in:
Samuel Cochran 2011-06-26 11:29:45 +08:00
parent 26eb609085
commit 515b5ce4bc
4 changed files with 340 additions and 230 deletions

View File

@ -5,7 +5,7 @@ gemspec
group :guard do group :guard do
gem 'guard' gem 'guard'
gem 'guard-ego' gem 'guard-ego'
gem 'guard-sass' gem 'guard-compass'
gem 'guard-coffeescript' gem 'guard-coffeescript'
end end

View File

@ -35,11 +35,11 @@ GEM
guard-coffeescript (0.2.4) guard-coffeescript (0.2.4)
coffee-script (~> 2.2.0) coffee-script (~> 2.2.0)
guard (~> 0.3.0) guard (~> 0.3.0)
guard-compass (0.0.6)
compass (>= 0.10.5)
guard (>= 0.2.1)
guard-ego (0.0.1) guard-ego (0.0.1)
guard (>= 0.2.1) guard (>= 0.2.1)
guard-sass (0.1.2)
guard (>= 0.2.1)
sass (>= 3.1)
haml (3.1.1) haml (3.1.1)
i18n (0.6.0) i18n (0.6.0)
mail (2.3.0) mail (2.3.0)
@ -77,8 +77,8 @@ DEPENDENCIES
growl growl
guard guard
guard-coffeescript guard-coffeescript
guard-compass
guard-ego guard-ego
guard-sass
mailcatcher! mailcatcher!
rb-fsevent rb-fsevent
sass (~> 3.1) sass (~> 3.1)

View File

@ -5,7 +5,7 @@ guard 'ego' do
watch 'Guardfile' watch 'Guardfile'
end end
guard 'sass', :output => 'stylesheets' do guard 'compass', :sass_dir => "public/stylesheets", :css_dir => "public/stylesheets" do
watch %r{^public/stylesheets/.+\.s[ac]ss} watch %r{^public/stylesheets/.+\.s[ac]ss}
end end

View File

@ -1,3 +1,4 @@
/* line 17, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
html, body, div, span, applet, object, iframe, html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, a, abbr, acronym, address, big, cite, code,
@ -16,40 +17,60 @@ time, mark, audio, video {
border: 0; border: 0;
font-size: 100%; font-size: 100%;
font: inherit; font: inherit;
vertical-align: baseline; } vertical-align: baseline;
}
/* line 20, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
body { body {
line-height: 1; } line-height: 1;
}
/* line 22, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
ol, ul { ol, ul {
list-style: none; } list-style: none;
}
/* line 24, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; } border-spacing: 0;
}
/* line 26, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
caption, th, td { caption, th, td {
text-align: left; text-align: left;
font-weight: normal; font-weight: normal;
vertical-align: middle; } vertical-align: middle;
}
/* line 28, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
q, blockquote { q, blockquote {
quotes: none; } quotes: none;
q:before, q:after, blockquote:before, blockquote:after { }
content: ""; /* line 101, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
content: none; } q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none;
}
/* line 30, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
a img { a img {
border: none; } border: none;
}
/* line 115, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
article, aside, details, figcaption, figure, article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { footer, header, hgroup, menu, nav, section {
display: block; } display: block;
}
/* line 4, application.sass */
html, body { html, body {
width: 100%; width: 100%;
height: 100%; } height: 100%;
}
/* line 8, application.sass */
body { body {
display: -moz-box; display: -moz-box;
display: -webkit-box; display: -webkit-box;
@ -60,13 +81,19 @@ body {
background: #eeeeee; background: #eeeeee;
color: black; color: black;
font-size: 12px; font-size: 12px;
font-family: Helvetica, sans-serif; } font-family: Helvetica, sans-serif;
body body { }
font-size: 75%; /* line 26, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss */
line-height: 2em; } body body {
body html > body { font-size: 75%;
font-size: 12px; } line-height: 2em;
}
/* line 30, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss */
body html > body {
font-size: 12px;
}
/* line 17, application.sass */
.button { .button {
padding: 0.5em 1em; padding: 0.5em 1em;
border: 1px solid #cccccc; border: 1px solid #cccccc;
@ -83,141 +110,189 @@ body {
background: linear-gradient(#f4f4f4, #ececec), #ececec; background: linear-gradient(#f4f4f4, #ececec), #ececec;
color: #666666; color: #666666;
text-shadow: 1px 1px 0 white; text-shadow: 1px 1px 0 white;
text-decoration: none; } text-decoration: none;
.button:hover, .button:focus { }
border-color: #999999; /* line 25, application.sass */
border-bottom-color: #666666; .button:hover, .button:focus {
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eeeeee), color-stop(100%, #dddddd)), #dddddd; border-color: #999999;
background: -webkit-linear-gradient(#eeeeee, #dddddd), #dddddd; border-bottom-color: #666666;
background: -moz-linear-gradient(#eeeeee, #dddddd), #dddddd; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eeeeee), color-stop(100%, #dddddd)), #dddddd;
background: -o-linear-gradient(#eeeeee, #dddddd), #dddddd; background: -webkit-linear-gradient(#eeeeee, #dddddd), #dddddd;
background: linear-gradient(#eeeeee, #dddddd), #dddddd; background: -moz-linear-gradient(#eeeeee, #dddddd), #dddddd;
color: #333333; background: -o-linear-gradient(#eeeeee, #dddddd), #dddddd;
text-decoration: none; } background: linear-gradient(#eeeeee, #dddddd), #dddddd;
.button:active, .button.active { color: #333333;
border-color: #666666; text-decoration: none;
border-bottom-color: #999999; }
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dddddd), color-stop(100%, #eeeeee)), #eeeeee; /* line 31, application.sass */
background: -webkit-linear-gradient(#dddddd, #eeeeee), #eeeeee; .button:active, .button.active {
background: -moz-linear-gradient(#dddddd, #eeeeee), #eeeeee; border-color: #666666;
background: -o-linear-gradient(#dddddd, #eeeeee), #eeeeee; border-bottom-color: #999999;
background: linear-gradient(#dddddd, #eeeeee), #eeeeee; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dddddd), color-stop(100%, #eeeeee)), #eeeeee;
color: #333333; background: -webkit-linear-gradient(#dddddd, #eeeeee), #eeeeee;
text-decoration: none; background: -moz-linear-gradient(#dddddd, #eeeeee), #eeeeee;
text-shadow: -1px -1px 0 #eeeeee; } background: -o-linear-gradient(#dddddd, #eeeeee), #eeeeee;
background: linear-gradient(#dddddd, #eeeeee), #eeeeee;
color: #333333;
text-decoration: none;
text-shadow: -1px -1px 0 #eeeeee;
}
/* line 39, application.sass */
body > header { body > header {
overflow: hidden; overflow: hidden;
*zoom: 1; *zoom: 1;
border-bottom: 1px solid #cccccc; } border-bottom: 1px solid #cccccc;
body > header h1 { }
float: left; /* line 42, application.sass */
margin-left: 6px; body > header h1 {
padding: 6px; float: left;
padding-left: 30px; margin-left: 6px;
background: url(/images/logo.png) left no-repeat; padding: 6px;
font-size: 18px; padding-left: 30px;
font-weight: bold; } background: url(/images/logo.png) left no-repeat;
body > header h1 a { font-size: 18px;
color: black; font-weight: bold;
text-decoration: none; }
text-shadow: 0 1px 0 white; /* line 50, application.sass */
-moz-transition-property: 0.1s ease; body > header h1 a {
-webkit-transition-property: 0.1s ease; color: black;
-o-transition-property: 0.1s ease; text-decoration: none;
transition-property: 0.1s ease; text-shadow: 0 1px 0 white;
-moz-transition-duration: 1s; -moz-transition-property: 0.1s ease;
-webkit-transition-duration: 1s; -webkit-transition-property: 0.1s ease;
-o-transition-duration: 1s; -o-transition-property: 0.1s ease;
transition-duration: 1s; } transition-property: 0.1s ease;
body > header h1 a:hover { -moz-transition-duration: 1s;
color: #4183c4; } -webkit-transition-duration: 1s;
body > header nav { -o-transition-duration: 1s;
border-left: 1px solid #cccccc; } transition-duration: 1s;
body > header nav.project { }
float: left; } /* line 55, application.sass */
body > header nav.app { body > header h1 a:hover {
float: right; } color: #4183c4;
body > header nav li { }
display: inline; } /* line 57, application.sass */
body > header nav li a { body > header nav {
display: -moz-inline-box; border-left: 1px solid #cccccc;
-moz-box-orient: vertical; }
display: inline-block; /* line 58, application.sass */
vertical-align: middle; body > header nav.project {
*vertical-align: auto; float: left;
float: left; }
padding: 9px; /* line 60, application.sass */
border-left: 1px solid white; body > header nav.app {
border-right: 1px solid #cccccc; float: right;
text-decoration: none; }
text-shadow: 0 1px 0 white; /* line 63, application.sass */
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)), #ececec; body > header nav li {
background: -webkit-linear-gradient(#f4f4f4, #ececec), #ececec; display: inline;
background: -moz-linear-gradient(#f4f4f4, #ececec), #ececec; }
background: -o-linear-gradient(#f4f4f4, #ececec), #ececec; /* line 65, application.sass */
background: linear-gradient(#f4f4f4, #ececec), #ececec; body > header nav li a {
color: #666666; display: -moz-inline-box;
text-shadow: 1px 1px 0 white; -moz-box-orient: vertical;
text-decoration: none; } display: inline-block;
body > header nav li a { vertical-align: middle;
*display: inline; } *vertical-align: auto;
body > header nav li a:hover, body > header nav li a:focus { float: left;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eeeeee), color-stop(100%, #dddddd)), #dddddd; padding: 9px;
background: -webkit-linear-gradient(#eeeeee, #dddddd), #dddddd; border-left: 1px solid white;
background: -moz-linear-gradient(#eeeeee, #dddddd), #dddddd; border-right: 1px solid #cccccc;
background: -o-linear-gradient(#eeeeee, #dddddd), #dddddd; text-decoration: none;
background: linear-gradient(#eeeeee, #dddddd), #dddddd; text-shadow: 0 1px 0 white;
color: #333333; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)), #ececec;
text-decoration: none; } background: -webkit-linear-gradient(#f4f4f4, #ececec), #ececec;
body > header nav li a:active, body > header nav li a.active { background: -moz-linear-gradient(#f4f4f4, #ececec), #ececec;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dddddd), color-stop(100%, #eeeeee)), #eeeeee; background: -o-linear-gradient(#f4f4f4, #ececec), #ececec;
background: -webkit-linear-gradient(#dddddd, #eeeeee), #eeeeee; background: linear-gradient(#f4f4f4, #ececec), #ececec;
background: -moz-linear-gradient(#dddddd, #eeeeee), #eeeeee; color: #666666;
background: -o-linear-gradient(#dddddd, #eeeeee), #eeeeee; text-shadow: 1px 1px 0 white;
background: linear-gradient(#dddddd, #eeeeee), #eeeeee; text-decoration: none;
color: #333333; }
text-decoration: none; /* line 7, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/css3/_inline-block.scss */
text-shadow: -1px -1px 0 #eeeeee; } body > header nav li a {
*display: inline;
}
/* line 77, application.sass */
body > header nav li a:hover, body > header nav li a:focus {
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eeeeee), color-stop(100%, #dddddd)), #dddddd;
background: -webkit-linear-gradient(#eeeeee, #dddddd), #dddddd;
background: -moz-linear-gradient(#eeeeee, #dddddd), #dddddd;
background: -o-linear-gradient(#eeeeee, #dddddd), #dddddd;
background: linear-gradient(#eeeeee, #dddddd), #dddddd;
color: #333333;
text-decoration: none;
}
/* line 81, application.sass */
body > header nav li a:active, body > header nav li a.active {
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dddddd), color-stop(100%, #eeeeee)), #eeeeee;
background: -webkit-linear-gradient(#dddddd, #eeeeee), #eeeeee;
background: -moz-linear-gradient(#dddddd, #eeeeee), #eeeeee;
background: -o-linear-gradient(#dddddd, #eeeeee), #eeeeee;
background: linear-gradient(#dddddd, #eeeeee), #eeeeee;
color: #333333;
text-decoration: none;
text-shadow: -1px -1px 0 #eeeeee;
}
/* line 87, application.sass */
#messages { #messages {
width: 100%; width: 100%;
height: 10em; height: 10em;
overflow: auto; overflow: auto;
background: white; background: white;
border-top: 1px solid white; border-top: 1px solid white;
border-bottom: 1px solid #cccccc; } border-bottom: 1px solid #cccccc;
#messages table { }
width: 100%; } /* line 94, application.sass */
#messages table thead tr { #messages table {
background: #eeeeee; width: 100%;
color: #333333; } }
#messages table thead tr th { /* line 96, application.sass */
padding: 0.25em; #messages table thead tr {
font-weight: bold; background: #eeeeee;
color: #666666; color: #333333;
text-shadow: 0 1px 0 white; } }
#messages table tbody tr { /* line 99, application.sass */
cursor: pointer; #messages table thead tr th {
-moz-transition-property: 0.1s ease; padding: 0.25em;
-webkit-transition-property: 0.1s ease; font-weight: bold;
-o-transition-property: 0.1s ease; color: #666666;
transition-property: 0.1s ease; text-shadow: 0 1px 0 white;
-moz-transition-duration: 1s; }
-webkit-transition-duration: 1s; /* line 104, application.sass */
-o-transition-duration: 1s; #messages table tbody tr {
transition-duration: 1s; cursor: pointer;
color: #333333; } -moz-transition-property: 0.1s ease;
#messages table tbody tr:hover { -webkit-transition-property: 0.1s ease;
color: black; } -o-transition-property: 0.1s ease;
#messages table tbody tr:nth-child(even) { transition-property: 0.1s ease;
background: #f0f0f0; } -moz-transition-duration: 1s;
#messages table tbody tr.selected { -webkit-transition-duration: 1s;
background: Highlight; -o-transition-duration: 1s;
color: HighlightText; } transition-duration: 1s;
#messages table tbody tr td { color: #333333;
padding: 0.25em; } }
/* line 108, application.sass */
#messages table tbody tr:hover {
color: black;
}
/* line 110, application.sass */
#messages table tbody tr:nth-child(even) {
background: #f0f0f0;
}
/* line 112, application.sass */
#messages table tbody tr.selected {
background: Highlight;
color: HighlightText;
}
/* line 115, application.sass */
#messages table tbody tr td {
padding: 0.25em;
}
/* line 118, application.sass */
#message { #message {
display: -moz-box; display: -moz-box;
display: -webkit-box; display: -webkit-box;
@ -228,86 +303,121 @@ body > header {
-moz-box-flex: 1; -moz-box-flex: 1;
-webkit-box-flex: 1; -webkit-box-flex: 1;
box-flex: 1; box-flex: 1;
border-top: 1px solid white; } border-top: 1px solid white;
#message > header { }
overflow: hidden; /* line 123, application.sass */
*zoom: 1; } #message > header {
#message > header .metadata { overflow: hidden;
overflow: hidden; *zoom: 1;
*zoom: 1; }
padding: 0.5em; } /* line 125, application.sass */
#message > header .metadata dt, #message > header .metadata dd { #message > header .metadata {
padding: 0.25em; } overflow: hidden;
#message > header .metadata dt { *zoom: 1;
float: left; padding: 0.5em;
clear: left; }
width: 8em; /* line 128, application.sass */
margin-right: 0.5em; #message > header .metadata dt, #message > header .metadata dd {
text-align: right; padding: 0.25em;
font-weight: bold; }
color: #666666; /* line 130, application.sass */
text-shadow: 0 1px 0 white; } #message > header .metadata dt {
#message > header .metadata dd.subject { float: left;
font-weight: bold; } clear: left;
#message > header .metadata .attachments { width: 8em;
display: none; } margin-right: 0.5em;
#message > header .metadata .attachments ul { text-align: right;
display: inline; } font-weight: bold;
#message > header .metadata .attachments ul li { color: #666666;
display: -moz-inline-box; text-shadow: 0 1px 0 white;
-moz-box-orient: vertical; }
display: inline-block; /* line 139, application.sass */
vertical-align: middle; #message > header .metadata dd.subject {
*vertical-align: auto; font-weight: bold;
margin-right: 0.5em; } }
#message > header .metadata .attachments ul li { /* line 141, application.sass */
*display: inline; } #message > header .metadata .attachments {
#message > header .views ul { display: none;
padding: 0 0.5em; }
border-bottom: 1px solid #cccccc; } /* line 143, application.sass */
#message > header .views .tab { #message > header .metadata .attachments ul {
display: -moz-inline-box; display: inline;
-moz-box-orient: vertical; }
display: inline-block; /* line 145, application.sass */
vertical-align: middle; #message > header .metadata .attachments ul li {
*vertical-align: auto; display: -moz-inline-box;
padding: 0.5em; -moz-box-orient: vertical;
border: 1px solid #cccccc; display: inline-block;
background: #dddddd; vertical-align: middle;
color: #333333; *vertical-align: auto;
border-width: 1px 1px 0 1px; margin-right: 0.5em;
cursor: pointer; }
text-shadow: 0 1px 0 #eeeeee; } /* line 7, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/css3/_inline-block.scss */
#message > header .views .tab { #message > header .metadata .attachments ul li {
*display: inline; } *display: inline;
#message > header .views .tab:not(.selected):hover { }
background-color: #eeeeee; } /* line 149, application.sass */
#message > header .views .tab.selected { #message > header .views ul {
background: white; padding: 0 0.5em;
color: black; border-bottom: 1px solid #cccccc;
height: 13px; }
-moz-box-shadow: 1px 1px 0 #cccccc; /* line 152, application.sass */
-webkit-box-shadow: 1px 1px 0 #cccccc; #message > header .views .tab {
-o-box-shadow: 1px 1px 0 #cccccc; display: -moz-inline-box;
box-shadow: 1px 1px 0 #cccccc; -moz-box-orient: vertical;
margin-bottom: -2px; display: inline-block;
cursor: default; } vertical-align: middle;
#message > header .views .action { *vertical-align: auto;
display: -moz-inline-box; padding: 0.5em;
-moz-box-orient: vertical; border: 1px solid #cccccc;
display: inline-block; background: #dddddd;
vertical-align: middle; color: #333333;
*vertical-align: auto; border-width: 1px 1px 0 1px;
float: right; cursor: pointer;
margin: 0 0.25em; } text-shadow: 0 1px 0 #eeeeee;
#message > header .views .action { }
*display: inline; } /* line 7, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/css3/_inline-block.scss */
#message .body { #message > header .views .tab {
display: -moz-box; *display: inline;
display: -webkit-box; }
display: box; /* line 161, application.sass */
-moz-box-flex: 1; #message > header .views .tab:not(.selected):hover {
-webkit-box-flex: 1; background-color: #eeeeee;
box-flex: 1; }
width: 100%; /* line 163, application.sass */
background: white; } #message > header .views .tab.selected {
background: white;
color: black;
height: 13px;
-moz-box-shadow: 1px 1px 0 #cccccc;
-webkit-box-shadow: 1px 1px 0 #cccccc;
-o-box-shadow: 1px 1px 0 #cccccc;
box-shadow: 1px 1px 0 #cccccc;
margin-bottom: -2px;
cursor: default;
}
/* line 170, application.sass */
#message > header .views .action {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
float: right;
margin: 0 0.25em;
}
/* line 7, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/css3/_inline-block.scss */
#message > header .views .action {
*display: inline;
}
/* line 174, application.sass */
#message .body {
display: -moz-box;
display: -webkit-box;
display: box;
-moz-box-flex: 1;
-webkit-box-flex: 1;
box-flex: 1;
width: 100%;
background: white;
}