1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

core default template shouldn't use scss

This commit is contained in:
Thomas Reynolds 2012-01-02 14:42:01 -08:00
parent c8ba3d9a44
commit 9b48a46e30
6 changed files with 58 additions and 67 deletions

View file

@ -14,9 +14,8 @@ class Middleman::Templates::Default < Middleman::Templates::Base
copy_file "default/source/index.html.erb", File.join(location, "source/index.html.erb")
copy_file "default/source/layouts/layout.erb", File.join(location, "source/layouts/layout.erb")
empty_directory File.join(location, "source", options[:css_dir])
copy_file "default/source/stylesheets/all.css.scss", File.join(location, "source", options[:css_dir], "all.css.scss")
copy_file "default/source/stylesheets/_animate.scss", File.join(location, "source", options[:css_dir], "_animate.scss")
copy_file "default/source/stylesheets/_normalize.scss", File.join(location, "source", options[:css_dir], "_normalize.scss")
copy_file "default/source/stylesheets/all.css", File.join(location, "source", options[:css_dir], "all.css")
copy_file "default/source/stylesheets/normalize.css", File.join(location, "source", options[:css_dir], "normalize.css")
empty_directory File.join(location, "source", options[:js_dir])
copy_file "default/source/javascripts/all.js", File.join(location, "source", options[:js_dir], "all.js")
empty_directory File.join(location, "source", options[:images_dir])

View file

@ -9,7 +9,7 @@
<!-- Use title if it's in the page YAML frontmatter -->
<title><%= data.page.title || "The Middleman" %></title>
<%= stylesheet_link_tag "all" %>
<%= stylesheet_link_tag "normalize", "all" %>
<%= javascript_include_tag "all" %>
</head>

View file

@ -1,23 +0,0 @@
.welcome {
-webkit-animation-name: welcome;
-webkit-animation-duration: .9s;
}
@-webkit-keyframes welcome {
from {
-webkit-transform: scale(0);
opacity: 0;
}
50% {
-webkit-transform: scale(0);
opacity: 0;
}
82.5% {
-webkit-transform: scale(1.03);
-webkit-animation-timing-function: ease-out;
opacity: 1;
}
to {
-webkit-transform: scale(1);
}
}

View file

@ -0,0 +1,55 @@
@charset "utf-8";
body {
background: #d4d4d4 url("../images/background.png");
text-align: center;
font-family: sans-serif; }
h1 {
color: rgba(0, 0, 0, .3);
font-weight: bold;
font-size: 32px;
letter-spacing: -1px;
text-transform: uppercase;
text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
background: url("../images/middleman.png") no-repeat center 100px;
padding: 350px 0 10px;
margin: 0; }
.doc {
font-size: 14px;
margin: 0; }
.doc:before,
.doc:after {
opacity: .2;
padding: 6px;
font-style: normal;
position: relative;
content: "•"; }
.doc a {
color: rgba(0, 0, 0, 0.3); }
.doc a:hover {
color: #666; }
.welcome {
-webkit-animation-name: welcome;
-webkit-animation-duration: .9s; }
@-webkit-keyframes welcome {
from {
-webkit-transform: scale(0);
opacity: 0;
}
50% {
-webkit-transform: scale(0);
opacity: 0;
}
82.5% {
-webkit-transform: scale(1.03);
-webkit-animation-timing-function: ease-out;
opacity: 1;
}
to {
-webkit-transform: scale(1);
}
}

View file

@ -1,40 +0,0 @@
@charset "utf-8";
@import "normalize";
@import "compass";
body {
background: #d4d4d4 image-url("background.png");
text-align: center;
font-family: sans-serif;
}
h1 {
color: rgba(black, .3);
font-weight: bold;
@include adjust-font-size-to(32px);
letter-spacing: -1px;
text-transform: uppercase;
text-shadow: 0 1px 0 rgba(white, .5);
background: image-url("middleman.png") no-repeat center 100px;
padding: 350px 0 10px;
margin: 0;
}
.doc {
@include adjust-font-size-to(14px);
margin: 0;
&:before,
&:after {
opacity: .2;
padding: 6px;
font-style: normal;
position: relative;
content: "";
}
a {
@include link-colors( rgba( black, .3 ) , #666);
}
}
@import "animate";