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
gem 'guard'
gem 'guard-ego'
gem 'guard-sass'
gem 'guard-compass'
gem 'guard-coffeescript'
end

View File

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

View File

@ -5,7 +5,7 @@ guard 'ego' do
watch 'Guardfile'
end
guard 'sass', :output => 'stylesheets' do
guard 'compass', :sass_dir => "public/stylesheets", :css_dir => "public/stylesheets" do
watch %r{^public/stylesheets/.+\.s[ac]ss}
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,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
@ -16,40 +17,60 @@ time, mark, audio, video {
border: 0;
font-size: 100%;
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 {
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 {
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 {
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 {
text-align: left;
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 {
quotes: none; }
q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none; }
quotes: none;
}
/* line 101, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/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-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
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,
footer, header, hgroup, menu, nav, section {
display: block; }
display: block;
}
/* line 4, application.sass */
html, body {
width: 100%;
height: 100%; }
height: 100%;
}
/* line 8, application.sass */
body {
display: -moz-box;
display: -webkit-box;
@ -60,13 +81,19 @@ body {
background: #eeeeee;
color: black;
font-size: 12px;
font-family: Helvetica, sans-serif; }
body body {
font-size: 75%;
line-height: 2em; }
body html > body {
font-size: 12px; }
font-family: Helvetica, sans-serif;
}
/* line 26, ../../../../.rvm/gems/ruby-1.9.2-p180@mailcatcher/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss */
body body {
font-size: 75%;
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 {
padding: 0.5em 1em;
border: 1px solid #cccccc;
@ -83,141 +110,189 @@ body {
background: linear-gradient(#f4f4f4, #ececec), #ececec;
color: #666666;
text-shadow: 1px 1px 0 white;
text-decoration: none; }
.button:hover, .button:focus {
border-color: #999999;
border-bottom-color: #666666;
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; }
.button:active, .button.active {
border-color: #666666;
border-bottom-color: #999999;
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; }
text-decoration: none;
}
/* line 25, application.sass */
.button:hover, .button:focus {
border-color: #999999;
border-bottom-color: #666666;
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 31, application.sass */
.button:active, .button.active {
border-color: #666666;
border-bottom-color: #999999;
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 39, application.sass */
body > header {
overflow: hidden;
*zoom: 1;
border-bottom: 1px solid #cccccc; }
body > header h1 {
float: left;
margin-left: 6px;
padding: 6px;
padding-left: 30px;
background: url(/images/logo.png) left no-repeat;
font-size: 18px;
font-weight: bold; }
body > header h1 a {
color: black;
text-decoration: none;
text-shadow: 0 1px 0 white;
-moz-transition-property: 0.1s ease;
-webkit-transition-property: 0.1s ease;
-o-transition-property: 0.1s ease;
transition-property: 0.1s ease;
-moz-transition-duration: 1s;
-webkit-transition-duration: 1s;
-o-transition-duration: 1s;
transition-duration: 1s; }
body > header h1 a:hover {
color: #4183c4; }
body > header nav {
border-left: 1px solid #cccccc; }
body > header nav.project {
float: left; }
body > header nav.app {
float: right; }
body > header nav li {
display: inline; }
body > header nav li a {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
float: left;
padding: 9px;
border-left: 1px solid white;
border-right: 1px solid #cccccc;
text-decoration: none;
text-shadow: 0 1px 0 white;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)), #ececec;
background: -webkit-linear-gradient(#f4f4f4, #ececec), #ececec;
background: -moz-linear-gradient(#f4f4f4, #ececec), #ececec;
background: -o-linear-gradient(#f4f4f4, #ececec), #ececec;
background: linear-gradient(#f4f4f4, #ececec), #ececec;
color: #666666;
text-shadow: 1px 1px 0 white;
text-decoration: none; }
body > header nav li a {
*display: inline; }
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; }
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; }
border-bottom: 1px solid #cccccc;
}
/* line 42, application.sass */
body > header h1 {
float: left;
margin-left: 6px;
padding: 6px;
padding-left: 30px;
background: url(/images/logo.png) left no-repeat;
font-size: 18px;
font-weight: bold;
}
/* line 50, application.sass */
body > header h1 a {
color: black;
text-decoration: none;
text-shadow: 0 1px 0 white;
-moz-transition-property: 0.1s ease;
-webkit-transition-property: 0.1s ease;
-o-transition-property: 0.1s ease;
transition-property: 0.1s ease;
-moz-transition-duration: 1s;
-webkit-transition-duration: 1s;
-o-transition-duration: 1s;
transition-duration: 1s;
}
/* line 55, application.sass */
body > header h1 a:hover {
color: #4183c4;
}
/* line 57, application.sass */
body > header nav {
border-left: 1px solid #cccccc;
}
/* line 58, application.sass */
body > header nav.project {
float: left;
}
/* line 60, application.sass */
body > header nav.app {
float: right;
}
/* line 63, application.sass */
body > header nav li {
display: inline;
}
/* line 65, application.sass */
body > header nav li a {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
float: left;
padding: 9px;
border-left: 1px solid white;
border-right: 1px solid #cccccc;
text-decoration: none;
text-shadow: 0 1px 0 white;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)), #ececec;
background: -webkit-linear-gradient(#f4f4f4, #ececec), #ececec;
background: -moz-linear-gradient(#f4f4f4, #ececec), #ececec;
background: -o-linear-gradient(#f4f4f4, #ececec), #ececec;
background: linear-gradient(#f4f4f4, #ececec), #ececec;
color: #666666;
text-shadow: 1px 1px 0 white;
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 */
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 {
width: 100%;
height: 10em;
overflow: auto;
background: white;
border-top: 1px solid white;
border-bottom: 1px solid #cccccc; }
#messages table {
width: 100%; }
#messages table thead tr {
background: #eeeeee;
color: #333333; }
#messages table thead tr th {
padding: 0.25em;
font-weight: bold;
color: #666666;
text-shadow: 0 1px 0 white; }
#messages table tbody tr {
cursor: pointer;
-moz-transition-property: 0.1s ease;
-webkit-transition-property: 0.1s ease;
-o-transition-property: 0.1s ease;
transition-property: 0.1s ease;
-moz-transition-duration: 1s;
-webkit-transition-duration: 1s;
-o-transition-duration: 1s;
transition-duration: 1s;
color: #333333; }
#messages table tbody tr:hover {
color: black; }
#messages table tbody tr:nth-child(even) {
background: #f0f0f0; }
#messages table tbody tr.selected {
background: Highlight;
color: HighlightText; }
#messages table tbody tr td {
padding: 0.25em; }
border-bottom: 1px solid #cccccc;
}
/* line 94, application.sass */
#messages table {
width: 100%;
}
/* line 96, application.sass */
#messages table thead tr {
background: #eeeeee;
color: #333333;
}
/* line 99, application.sass */
#messages table thead tr th {
padding: 0.25em;
font-weight: bold;
color: #666666;
text-shadow: 0 1px 0 white;
}
/* line 104, application.sass */
#messages table tbody tr {
cursor: pointer;
-moz-transition-property: 0.1s ease;
-webkit-transition-property: 0.1s ease;
-o-transition-property: 0.1s ease;
transition-property: 0.1s ease;
-moz-transition-duration: 1s;
-webkit-transition-duration: 1s;
-o-transition-duration: 1s;
transition-duration: 1s;
color: #333333;
}
/* 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 {
display: -moz-box;
display: -webkit-box;
@ -228,86 +303,121 @@ body > header {
-moz-box-flex: 1;
-webkit-box-flex: 1;
box-flex: 1;
border-top: 1px solid white; }
#message > header {
overflow: hidden;
*zoom: 1; }
#message > header .metadata {
overflow: hidden;
*zoom: 1;
padding: 0.5em; }
#message > header .metadata dt, #message > header .metadata dd {
padding: 0.25em; }
#message > header .metadata dt {
float: left;
clear: left;
width: 8em;
margin-right: 0.5em;
text-align: right;
font-weight: bold;
color: #666666;
text-shadow: 0 1px 0 white; }
#message > header .metadata dd.subject {
font-weight: bold; }
#message > header .metadata .attachments {
display: none; }
#message > header .metadata .attachments ul {
display: inline; }
#message > header .metadata .attachments ul li {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
margin-right: 0.5em; }
#message > header .metadata .attachments ul li {
*display: inline; }
#message > header .views ul {
padding: 0 0.5em;
border-bottom: 1px solid #cccccc; }
#message > header .views .tab {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
padding: 0.5em;
border: 1px solid #cccccc;
background: #dddddd;
color: #333333;
border-width: 1px 1px 0 1px;
cursor: pointer;
text-shadow: 0 1px 0 #eeeeee; }
#message > header .views .tab {
*display: inline; }
#message > header .views .tab:not(.selected):hover {
background-color: #eeeeee; }
#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; }
#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; }
#message > header .views .action {
*display: inline; }
#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; }
border-top: 1px solid white;
}
/* line 123, application.sass */
#message > header {
overflow: hidden;
*zoom: 1;
}
/* line 125, application.sass */
#message > header .metadata {
overflow: hidden;
*zoom: 1;
padding: 0.5em;
}
/* line 128, application.sass */
#message > header .metadata dt, #message > header .metadata dd {
padding: 0.25em;
}
/* line 130, application.sass */
#message > header .metadata dt {
float: left;
clear: left;
width: 8em;
margin-right: 0.5em;
text-align: right;
font-weight: bold;
color: #666666;
text-shadow: 0 1px 0 white;
}
/* line 139, application.sass */
#message > header .metadata dd.subject {
font-weight: bold;
}
/* line 141, application.sass */
#message > header .metadata .attachments {
display: none;
}
/* line 143, application.sass */
#message > header .metadata .attachments ul {
display: inline;
}
/* line 145, application.sass */
#message > header .metadata .attachments ul li {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
margin-right: 0.5em;
}
/* 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 .metadata .attachments ul li {
*display: inline;
}
/* line 149, application.sass */
#message > header .views ul {
padding: 0 0.5em;
border-bottom: 1px solid #cccccc;
}
/* line 152, application.sass */
#message > header .views .tab {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
padding: 0.5em;
border: 1px solid #cccccc;
background: #dddddd;
color: #333333;
border-width: 1px 1px 0 1px;
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 {
*display: inline;
}
/* line 161, application.sass */
#message > header .views .tab:not(.selected):hover {
background-color: #eeeeee;
}
/* line 163, application.sass */
#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;
}