hazel 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -0
- data/Gemfile.lock +11 -0
- data/MIT-LICENSE +17 -16
- data/README.md +75 -0
- data/Rakefile +9 -0
- data/bin/hazel +2 -7
- data/lib/extensions/string.rb +36 -0
- data/lib/hazel/cli.rb +102 -22
- data/lib/hazel/version.rb +3 -3
- data/lib/templates/Gemfile +32 -0
- data/lib/templates/README.md +1 -0
- data/lib/templates/Rakefile +31 -0
- data/lib/templates/app.rb +11 -0
- data/lib/templates/config/db.yml +35 -0
- data/lib/templates/config/initializers/database.rb +9 -0
- data/lib/templates/config/initializers/redis.rb +3 -0
- data/lib/templates/config/redis.yml +14 -0
- data/lib/templates/config.ru +15 -0
- data/lib/templates/public/favicon.ico +0 -0
- data/lib/templates/public/images/.gitkeep +0 -0
- data/{app → lib/templates}/public/images/hazel_icon.png +0 -0
- data/lib/templates/public/images/hazel_small.png +0 -0
- data/lib/templates/public/javascripts/.gitkeep +0 -0
- data/lib/templates/public/stylesheets/main.css +116 -0
- data/lib/templates/spec/app_spec.rb +14 -0
- data/lib/templates/spec/spec_helper.rb +15 -0
- data/lib/templates/views/layout.erb.tt +37 -0
- data/lib/templates/views/welcome.erb +19 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/string_extension_spec.rb +48 -0
- metadata +71 -95
- data/README.rdoc +0 -49
- data/app/Gemfile +0 -5
- data/app/Gemfile.lock +0 -23
- data/app/config.ru +0 -7
- data/app/hazel.rb +0 -23
- data/app/public/favicon.ico +0 -0
- data/app/public/images/hazel.png +0 -0
- data/app/public/images/hazel_medium.png +0 -0
- data/app/public/images/hazel_small.png +0 -0
- data/app/public/stylesheets/_buttons.scss +0 -40
- data/app/public/stylesheets/_reset.scss +0 -104
- data/app/public/stylesheets/all.css +0 -1
- data/app/public/stylesheets/all.scss +0 -81
- data/app/views/bookmarklet.haml +0 -8
- data/app/views/index.haml +0 -10
- data/app/views/layout.haml +0 -11
- data/app/views/manage.haml +0 -7
@@ -0,0 +1,37 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
9
|
+
|
10
|
+
<title><%= @name.camel_case %></title>
|
11
|
+
|
12
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
13
|
+
|
14
|
+
<link rel="stylesheet" href="/stylesheets/main.css" />
|
15
|
+
</head>
|
16
|
+
<body>
|
17
|
+
<div class="wrapper">
|
18
|
+
<header class="branding">
|
19
|
+
<h1><%= @name.camel_case %></h1>
|
20
|
+
</header>
|
21
|
+
|
22
|
+
<div class="main">
|
23
|
+
<%%= yield %>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<footer class="branding">
|
27
|
+
<small>© <%%= Time.now.year %></small>
|
28
|
+
</footer>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
32
|
+
<!--[if lt IE 7]>
|
33
|
+
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
|
34
|
+
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
|
35
|
+
<![endif]-->
|
36
|
+
</body>
|
37
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<h2>Sinatra Template Default Page</h2>
|
2
|
+
|
3
|
+
<div class="content">
|
4
|
+
<p>Welcome to the Sinatra Template! If you're seeing this page, then everything is working
|
5
|
+
as expected. To get started, delete this file (<code>views/welcome.erb)</code> and begin adding
|
6
|
+
your own actions to <code>app.rb</code>. For more information, see the README.</p>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="sidebar">
|
10
|
+
<h3>Environment</h3>
|
11
|
+
<ul>
|
12
|
+
<li><b>Ruby:</b> <%= @version %></li>
|
13
|
+
<li><b>Environment:</b> <%= @environment %></li>
|
14
|
+
<li><b>Server:</b> <%= @env["SERVER_SOFTWARE"] %></li>
|
15
|
+
<li><b>Port:</b> <%= @env["SERVER_PORT"] %></li>
|
16
|
+
</ul>
|
17
|
+
|
18
|
+
<a href="http://c7.github.com/hazel/"><img src="/images/hazel_small.png" alt="Hazel" /></a>
|
19
|
+
</div>
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require_relative "spec_helper"
|
2
|
+
require_relative "../lib/extensions/string.rb"
|
3
|
+
|
4
|
+
describe String do
|
5
|
+
it "should ignore an already camel cased string" do
|
6
|
+
"MyApp".camel_case.must_equal "MyApp"
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should capitalize an all lower case string" do
|
10
|
+
"myapp".camel_case.must_equal "Myapp"
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should camel case a lower case string with underscores" do
|
14
|
+
"my_app".camel_case.must_equal "MyApp"
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should camel case a lower case string with hyphens" do
|
18
|
+
"my-app".camel_case.must_equal "MyApp"
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should camel case an uppercase string with underscores" do
|
22
|
+
"MY_APP".camel_case.must_equal "MyApp"
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should camel case an uppercase string with hyphens" do
|
26
|
+
"MY-APP".camel_case.must_equal "MyApp"
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should camel case a string with a hyphen preceding a capital letter" do
|
30
|
+
"my_App".camel_case.must_equal "MyApp"
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should underscore a camel cased string" do
|
34
|
+
"MyApp".file_name.must_equal "my_app"
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should underscore a hypenated string" do
|
38
|
+
"my-app".file_name.must_equal "my_app"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should ignore an already underscored string" do
|
42
|
+
"my_app".file_name.must_equal "my_app"
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should_underscore_a_string_with_a_hyphen_preceding_a_capital_letter" do
|
46
|
+
"my_App".file_name.must_equal "my_app"
|
47
|
+
end
|
48
|
+
end
|
metadata
CHANGED
@@ -1,122 +1,98 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hazel
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Peter Hellberg
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
name: haml
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-01-17 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: thor
|
16
|
+
requirement: &70224136188560 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 0
|
33
|
-
- 23
|
34
|
-
version: 3.0.23
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.14.6
|
35
22
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: sinatra
|
39
23
|
prerelease: false
|
40
|
-
|
24
|
+
version_requirements: *70224136188560
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bundler
|
27
|
+
requirement: &70224136188060 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
version: 1.1.0
|
51
|
-
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
description: Hazel is a Sinatra application that handles asset management, mainly images, for a number of (predefined) users.
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70224136188060
|
36
|
+
description: Hazel is a generator for Sinatra apps, heavily based on snfnpeter@c7.se
|
54
37
|
email: peter@c7.se
|
55
|
-
executables:
|
38
|
+
executables:
|
56
39
|
- hazel
|
57
40
|
extensions: []
|
58
|
-
|
59
|
-
|
60
|
-
-
|
61
|
-
- MIT-LICENSE
|
62
|
-
files:
|
41
|
+
extra_rdoc_files: []
|
42
|
+
files:
|
43
|
+
- lib/extensions/string.rb
|
63
44
|
- lib/hazel/cli.rb
|
64
45
|
- lib/hazel/version.rb
|
65
|
-
- app
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
46
|
+
- lib/templates/app.rb
|
47
|
+
- lib/templates/config/db.yml
|
48
|
+
- lib/templates/config/initializers/database.rb
|
49
|
+
- lib/templates/config/initializers/redis.rb
|
50
|
+
- lib/templates/config/redis.yml
|
51
|
+
- lib/templates/config.ru
|
52
|
+
- lib/templates/Gemfile
|
53
|
+
- lib/templates/public/favicon.ico
|
54
|
+
- lib/templates/public/images/.gitkeep
|
55
|
+
- lib/templates/public/images/hazel_icon.png
|
56
|
+
- lib/templates/public/images/hazel_small.png
|
57
|
+
- lib/templates/public/javascripts/.gitkeep
|
58
|
+
- lib/templates/public/stylesheets/main.css
|
59
|
+
- lib/templates/Rakefile
|
60
|
+
- lib/templates/README.md
|
61
|
+
- lib/templates/spec/app_spec.rb
|
62
|
+
- lib/templates/spec/spec_helper.rb
|
63
|
+
- lib/templates/views/layout.erb.tt
|
64
|
+
- lib/templates/views/welcome.erb
|
65
|
+
- spec/spec_helper.rb
|
66
|
+
- spec/string_extension_spec.rb
|
67
|
+
- Gemfile
|
68
|
+
- Gemfile.lock
|
82
69
|
- MIT-LICENSE
|
83
|
-
- README.
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
84
72
|
- bin/hazel
|
85
|
-
|
86
|
-
|
87
|
-
licenses:
|
73
|
+
homepage: http://c7.github.com/hazel/
|
74
|
+
licenses:
|
88
75
|
- MIT-LICENSE
|
89
76
|
post_install_message:
|
90
|
-
rdoc_options:
|
91
|
-
|
92
|
-
- README.rdoc
|
93
|
-
- --charset=UTF-8
|
94
|
-
require_paths:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
95
79
|
- lib
|
96
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
81
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
|
103
|
-
- 0
|
104
|
-
version: "0"
|
105
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
87
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
111
|
-
segments:
|
112
|
-
- 0
|
113
|
-
version: "0"
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
114
92
|
requirements: []
|
115
|
-
|
116
|
-
|
117
|
-
rubygems_version: 1.3.7
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 1.8.6
|
118
95
|
signing_key:
|
119
96
|
specification_version: 3
|
120
|
-
summary:
|
97
|
+
summary: A simple Sinatra app generator.
|
121
98
|
test_files: []
|
122
|
-
|
data/README.rdoc
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
= WARNING: Not working yet :)
|
2
|
-
|
3
|
-
= Hazel
|
4
|
-
|
5
|
-
Hazel is a Sinatra application that handles asset management, mainly images,
|
6
|
-
for a number of users. It also includes a bookmarklet for quick and easy
|
7
|
-
uploading and embedding of files using Markdown or HTML markup.
|
8
|
-
|
9
|
-
== Installation
|
10
|
-
|
11
|
-
gem install hazel
|
12
|
-
|
13
|
-
== Dependencies
|
14
|
-
|
15
|
-
* Sinatra
|
16
|
-
* Haml
|
17
|
-
* Sinatra Warden
|
18
|
-
* Warden
|
19
|
-
|
20
|
-
== Getting started
|
21
|
-
|
22
|
-
hazel setup [path]
|
23
|
-
|
24
|
-
== TODO
|
25
|
-
|
26
|
-
* Initial Hazel backend using Sinatra + relevant libraries
|
27
|
-
* Hazel bookmarklet
|
28
|
-
|
29
|
-
== LICENCE
|
30
|
-
|
31
|
-
Copyright (c) 2010 Peter Hellberg
|
32
|
-
|
33
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
34
|
-
of this software and associated documentation files (the "Software"), to deal
|
35
|
-
in the Software without restriction, including without limitation the rights
|
36
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
37
|
-
copies of the Software, and to permit persons to whom the Software is
|
38
|
-
furnished to do so, subject to the following conditions:
|
39
|
-
|
40
|
-
The above copyright notice and this permission notice shall be included in
|
41
|
-
all copies or substantial portions of the Software.
|
42
|
-
|
43
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
44
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
45
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
46
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
47
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
48
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
49
|
-
THE SOFTWARE.
|
data/app/Gemfile
DELETED
data/app/Gemfile.lock
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
haml (3.0.23)
|
5
|
-
rack (1.2.1)
|
6
|
-
sinatra (1.1.0)
|
7
|
-
rack (~> 1.1)
|
8
|
-
tilt (~> 1.1)
|
9
|
-
sinatra_warden (0.3.2)
|
10
|
-
sinatra (>= 1.0.0)
|
11
|
-
warden (~> 1.0)
|
12
|
-
tilt (1.1)
|
13
|
-
warden (1.0.2)
|
14
|
-
rack (>= 1.0.0)
|
15
|
-
|
16
|
-
PLATFORMS
|
17
|
-
ruby
|
18
|
-
|
19
|
-
DEPENDENCIES
|
20
|
-
haml (~> 3.0.23)
|
21
|
-
rack (>= 1.2.1)
|
22
|
-
sinatra (~> 1.1.0)
|
23
|
-
sinatra_warden (~> 0.3.1)
|
data/app/config.ru
DELETED
data/app/hazel.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
class Hazel < Sinatra::Base
|
2
|
-
get '/' do
|
3
|
-
haml :index, :locals => { :body_class => 'home' }
|
4
|
-
end
|
5
|
-
|
6
|
-
get '/manage' do
|
7
|
-
haml :manage, :locals => { :body_class => 'manage' }
|
8
|
-
end
|
9
|
-
|
10
|
-
helpers do
|
11
|
-
def base_url
|
12
|
-
@base_url ||= "#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}"
|
13
|
-
end
|
14
|
-
|
15
|
-
def bookmarklet
|
16
|
-
haml(:bookmarklet, :locals => {
|
17
|
-
:url => "#{base_url}/manage",
|
18
|
-
:window_name => 'hazel-bookmarklet',
|
19
|
-
:width => 500, :height => 600
|
20
|
-
}).to_s.gsub('\n', '')
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
data/app/public/favicon.ico
DELETED
Binary file
|
data/app/public/images/hazel.png
DELETED
Binary file
|
Binary file
|
Binary file
|
@@ -1,40 +0,0 @@
|
|
1
|
-
.button, .button:visited {
|
2
|
-
color: #333;
|
3
|
-
display: inline-block;
|
4
|
-
text-decoration: none;
|
5
|
-
font-weight: normal;
|
6
|
-
line-height: 1;
|
7
|
-
font-size: 0.9em;
|
8
|
-
|
9
|
-
-moz-border-radius: 5px;
|
10
|
-
-webkit-border-radius: 5px;
|
11
|
-
-moz-box-shadow: 0 0px 2px rgba(0,0,0,0.2);
|
12
|
-
-webkit-box-shadow: 0 0px 2px rgba(0,0,0,0.2);
|
13
|
-
|
14
|
-
text-shadow: 0 -1px 1px rgba(255,255,255,1);
|
15
|
-
|
16
|
-
background: -moz-linear-gradient(100% 100% 90deg, #eee, #fff);
|
17
|
-
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#eee));
|
18
|
-
|
19
|
-
position: relative;
|
20
|
-
cursor: pointer;
|
21
|
-
|
22
|
-
border: 0;
|
23
|
-
|
24
|
-
padding: 4px 10px;
|
25
|
-
}
|
26
|
-
|
27
|
-
.button:hover {
|
28
|
-
color: #000;
|
29
|
-
-moz-box-shadow: 0 0px 2px rgba(0,0,0,0.4);
|
30
|
-
-webkit-box-shadow: 0 0px 2px rgba(0,0,0,0.4);
|
31
|
-
}
|
32
|
-
|
33
|
-
.button:active {
|
34
|
-
background: -moz-linear-gradient(100% 100% 90deg, #fff, #eee);
|
35
|
-
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#fff));
|
36
|
-
}
|
37
|
-
|
38
|
-
.button:active, .button:focus {
|
39
|
-
outline: none;
|
40
|
-
}
|
@@ -1,104 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
html5doctor.com Reset Stylesheet
|
3
|
-
v1.6
|
4
|
-
Last Updated: 2010-08-18
|
5
|
-
Author: Richard Clark - http://richclarkdesign.com
|
6
|
-
Twitter: @rich_clark
|
7
|
-
*/
|
8
|
-
|
9
|
-
html, body, div, span, object, iframe,
|
10
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
11
|
-
abbr, address, cite, code,
|
12
|
-
del, dfn, em, img, ins, kbd, q, samp,
|
13
|
-
small, strong, sub, sup, var,
|
14
|
-
b, i,
|
15
|
-
dl, dt, dd, ol, ul, li,
|
16
|
-
fieldset, form, label, legend,
|
17
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
18
|
-
article, aside, canvas, details, figcaption, figure,
|
19
|
-
footer, header, hgroup, menu, nav, section, summary,
|
20
|
-
time, mark, audio, video {
|
21
|
-
margin:0;
|
22
|
-
padding:0;
|
23
|
-
border:0;
|
24
|
-
outline:0;
|
25
|
-
font-size:100%;
|
26
|
-
vertical-align:baseline;
|
27
|
-
background:transparent;
|
28
|
-
}
|
29
|
-
|
30
|
-
body {
|
31
|
-
line-height:1;
|
32
|
-
}
|
33
|
-
|
34
|
-
article,aside,details,figcaption,figure,
|
35
|
-
footer,header,hgroup,menu,nav,section {
|
36
|
-
display:block;
|
37
|
-
}
|
38
|
-
|
39
|
-
nav ul {
|
40
|
-
list-style:none;
|
41
|
-
}
|
42
|
-
|
43
|
-
blockquote, q {
|
44
|
-
quotes:none;
|
45
|
-
}
|
46
|
-
|
47
|
-
blockquote:before, blockquote:after,
|
48
|
-
q:before, q:after {
|
49
|
-
content:'';
|
50
|
-
content:none;
|
51
|
-
}
|
52
|
-
|
53
|
-
a {
|
54
|
-
margin:0;
|
55
|
-
padding:0;
|
56
|
-
font-size:100%;
|
57
|
-
vertical-align:baseline;
|
58
|
-
background:transparent;
|
59
|
-
}
|
60
|
-
|
61
|
-
/* change colours to suit your needs */
|
62
|
-
ins {
|
63
|
-
background-color:#ff9;
|
64
|
-
color:#000;
|
65
|
-
text-decoration:none;
|
66
|
-
}
|
67
|
-
|
68
|
-
/* change colours to suit your needs */
|
69
|
-
mark {
|
70
|
-
background-color:#ff9;
|
71
|
-
color:#000;
|
72
|
-
font-style:italic;
|
73
|
-
font-weight:bold;
|
74
|
-
}
|
75
|
-
|
76
|
-
del {
|
77
|
-
text-decoration: line-through;
|
78
|
-
}
|
79
|
-
|
80
|
-
abbr[title], dfn[title] {
|
81
|
-
border-bottom:1px dotted inherit;
|
82
|
-
cursor:help;
|
83
|
-
}
|
84
|
-
|
85
|
-
table {
|
86
|
-
border-collapse:collapse;
|
87
|
-
border-spacing:0;
|
88
|
-
}
|
89
|
-
|
90
|
-
/* change border colour to suit your needs */
|
91
|
-
hr {
|
92
|
-
display:block;
|
93
|
-
height:1px;
|
94
|
-
border:0;
|
95
|
-
border-top:1px solid #cccccc;
|
96
|
-
margin:1em 0;
|
97
|
-
padding:0;
|
98
|
-
}
|
99
|
-
|
100
|
-
input, select {
|
101
|
-
vertical-align:middle;
|
102
|
-
}
|
103
|
-
|
104
|
-
header, nav, section, aside, footer { display: block; }
|
@@ -1 +0,0 @@
|
|
1
|
-
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{background-color:#ff9;color:#000;text-decoration:none}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted inherit;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #cccccc;margin:1em 0;padding:0}input,select{vertical-align:middle}header,nav,section,aside,footer{display:block}.button,.button:visited{color:#333;display:inline-block;text-decoration:none;font-weight:normal;line-height:1;font-size:0.9em;-moz-border-radius:5px;-webkit-border-radius:5px;-moz-box-shadow:0 0px 2px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 0px 2px rgba(0, 0, 0, 0.2);text-shadow:0 -1px 1px white;background:-moz-linear-gradient(100% 100% 90deg, #eeeeee, white);background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(white), to(#eeeeee));position:relative;cursor:pointer;border:0;padding:4px 10px}.button:hover{color:#000;-moz-box-shadow:0 0px 2px rgba(0, 0, 0, 0.4);-webkit-box-shadow:0 0px 2px rgba(0, 0, 0, 0.4)}.button:active{background:-moz-linear-gradient(100% 100% 90deg, white, #eeeeee);background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#eeeeee), to(white))}.button:active,.button:focus{outline:none}a{color:#a4d61a;text-decoration:none}a:hover{color:#bae73c;text-decoration:none}article{margin-bottom:1em;line-height:150%;max-width:30em}body{font-family:Helvetica,Arial,sans-serif;font-size:1.2em;background:white;color:#595959;margin:0;text-rendering:optimizeLegibility}article h2{font-size:2em}article h3{font-size:1.5em}label{font-weight:bold;display:block;margin-bottom:0.3em}.home{padding:1em}.manage{padding:0.4em}.manage section{width:80%}#logo,#small_logo{display:block;text-indent:-9000em}#logo{background:url(/images/hazel.png) no-repeat top left;width:600px;height:270px;margin-bottom:1em}#small_logo{float:right;background:url(/images/hazel_icon.png) no-repeat top left;width:100px;height:100px;margin-bottom:1.5em}#logo:focus,#small_logo:focus{outline:none}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
@import "reset";
|
2
|
-
@import "buttons";
|
3
|
-
|
4
|
-
$link_color: #a4d61a;
|
5
|
-
$background_color: #fff;
|
6
|
-
$header_bg_color: #f7f6f3;
|
7
|
-
|
8
|
-
a {
|
9
|
-
color : $link_color;
|
10
|
-
text-decoration : none;
|
11
|
-
}
|
12
|
-
|
13
|
-
a:hover {
|
14
|
-
color : lighten($link_color, 10);
|
15
|
-
text-decoration : none;
|
16
|
-
}
|
17
|
-
|
18
|
-
article {
|
19
|
-
margin-bottom : 1em;
|
20
|
-
line-height : 150%;
|
21
|
-
max-width : 30em;
|
22
|
-
}
|
23
|
-
|
24
|
-
body {
|
25
|
-
font-family : Helvetica,Arial,sans-serif;
|
26
|
-
font-size : 1.2em;
|
27
|
-
background : $background_color;
|
28
|
-
color : darken($background_color, 65);
|
29
|
-
margin : 0;
|
30
|
-
text-rendering : optimizeLegibility;
|
31
|
-
}
|
32
|
-
|
33
|
-
article {
|
34
|
-
h2 {
|
35
|
-
font-size: 2em;
|
36
|
-
}
|
37
|
-
h3 {
|
38
|
-
font-size: 1.5em;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
label {
|
43
|
-
font-weight : bold;
|
44
|
-
display : block;
|
45
|
-
margin-bottom : 0.3em;
|
46
|
-
}
|
47
|
-
|
48
|
-
.home {
|
49
|
-
padding : 1em;
|
50
|
-
}
|
51
|
-
|
52
|
-
.manage {
|
53
|
-
padding : 0.4em;
|
54
|
-
section {
|
55
|
-
width : 80%;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
#logo, #small_logo {
|
60
|
-
display : block;
|
61
|
-
text-indent : -9000em;
|
62
|
-
}
|
63
|
-
|
64
|
-
#logo {
|
65
|
-
background : url(/images/hazel.png) no-repeat top left;
|
66
|
-
width : 600px;
|
67
|
-
height : 270px;
|
68
|
-
margin-bottom : 1em;
|
69
|
-
}
|
70
|
-
|
71
|
-
#small_logo {
|
72
|
-
float : right;
|
73
|
-
background : url(/images/hazel_icon.png) no-repeat top left;
|
74
|
-
width : 100px;
|
75
|
-
height : 100px;
|
76
|
-
margin-bottom : 1.5em;
|
77
|
-
}
|
78
|
-
|
79
|
-
#logo:focus, #small_logo:focus {
|
80
|
-
outline : none;
|
81
|
-
}
|