easymin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 0.1.0 (17 April 2011)
2
+
3
+ Features:
4
+
5
+ - First version
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in easymin.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Bruno Wernimont
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/app/.DS_Store ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ header
2
+ &#breadcrumb
3
+ margin: 1em
@@ -0,0 +1,15 @@
1
+ a.button
2
+ @extend .no-style-link
3
+ background: #F4F4F4
4
+ background: -moz-linear-gradient(top, #F4F4F4 0, #F4F4F4 50%, #E0E0E0 50%, #E0E0E0 100%)
5
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F4F4F4), color-stop(50%,#F4F4F4), color-stop(50%,#E0E0E0), color-stop(100%,#E0E0E0))
6
+ padding: 6px 8px
7
+ -moz-border-radius: 4px
8
+ -webkit-border-radius: 4px
9
+ -o-border-radius: 4px
10
+ border-radius: 4px
11
+ font-size: .9em
12
+ color: #000
13
+ &:hover
14
+ background: -moz-linear-gradient(top, #61B7FA 0, #61B7FA 50%, #5BA7E0 50%, #5BA7E0 100%)
15
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#61B7FA), color-stop(50%,#61B7FA), color-stop(50%,#5BA7E0), color-stop(100%,#5BA7E0))
@@ -0,0 +1,4 @@
1
+ $page_size: 950px
2
+
3
+ $dark_color: #1D507D
4
+ $clear_color: #3A81C0
@@ -0,0 +1,12 @@
1
+ section.body
2
+ #content
3
+ overflow: hidden
4
+ padding: 1em
5
+ background-color: #FFF
6
+ .pagination
7
+ float: right
8
+ h2
9
+ color: $dark_color
10
+ margin-bottom: 2em
11
+ p
12
+ margin-bottom: 1em
@@ -0,0 +1,18 @@
1
+ section
2
+ padding-top: 1em
3
+ .flash
4
+ padding: 8px
5
+ div.error
6
+ @extend .flash
7
+ color: #FD5656
8
+ background-color: #FFCACA
9
+ div.alert
10
+ @extend .error
11
+ div.notice
12
+ @extend .flash
13
+ color: #FFD83D
14
+ background-color: #FFFAD4
15
+ div.success
16
+ @extend .flash
17
+ color: #4BAD11
18
+ background-color: #D8FFC2
@@ -0,0 +1,4 @@
1
+ footer
2
+ p
3
+ margin-top: 1em
4
+ padding: 8px
@@ -0,0 +1,17 @@
1
+ form.formtastic
2
+ p
3
+ .error
4
+ margin-left: .6em
5
+ color: #F03333
6
+ label
7
+ margin-bottom: .6em
8
+ display: block
9
+ text-transform: capitalize
10
+ font-size: 1.1em
11
+ small
12
+ margin-left: 1.1em
13
+ color: #A0A0A0
14
+ font-size: .7em
15
+ input, textarea
16
+ border: 1px solid #B9B9B9
17
+ padding: 4px
@@ -0,0 +1,33 @@
1
+ header
2
+ color: #FFF
3
+ padding-top: 1em
4
+ a
5
+ color: #FFF
6
+ h1, nav
7
+ padding: 5px 30px
8
+ h1
9
+ background-color: $dark_color
10
+ margin: 0
11
+ a
12
+ @extend .no-style-link
13
+ .acount
14
+ color: #D3EAFF
15
+ float: right
16
+ font-size: .9em
17
+ a
18
+ text-decoration: none
19
+ &:hover
20
+ text-decoration: underline
21
+ nav
22
+ background-color: $clear_color
23
+ li
24
+ display: inline
25
+ margin-right: .4em
26
+ .active
27
+ background-color: #56ADF8
28
+ padding: 5px
29
+ a
30
+ padding: 5px
31
+ text-decoration: none
32
+ &:hover
33
+ background-color: $dark_color
@@ -0,0 +1,22 @@
1
+ .order
2
+ margin-bottom: 4em
3
+ .top
4
+ overflow: hidden
5
+ .num
6
+ font-size: 1.5em
7
+ float: left
8
+ .price
9
+ font-size: 1.1em
10
+ color: #D33A3A
11
+ float: right
12
+ .bottom
13
+ overflow: hidden
14
+ .button
15
+ float: left
16
+ .paid
17
+ float: right
18
+ font-size: 1.1em
19
+ &.yes
20
+ color: #53D439
21
+ &.no
22
+ color: #D33A3A
@@ -0,0 +1,32 @@
1
+ ul.table-data
2
+ margin: 1.5em 0
3
+ li
4
+ overflow: auto
5
+ span.title
6
+ display: block
7
+ width: 15%
8
+ float: left
9
+ padding-top: .2em
10
+ font-weight: bold
11
+ a
12
+ color: #FFF
13
+
14
+ table.data-list
15
+ width: 100%
16
+ margin: 1.5em 0
17
+ //border-spacing: 1em 0.5em
18
+ border-spacing: 0
19
+ thead
20
+ tr
21
+ color: #FFF
22
+ th
23
+ text-align: left
24
+ color: #9E9E9E
25
+ border-bottom: 2px solid #D6D6D6
26
+ tbody
27
+ font-size: .9em
28
+ .even
29
+ background-color: #F8F8F8
30
+ tr
31
+ td
32
+ padding: 10px 6px
@@ -0,0 +1,62 @@
1
+ @import 'compass'
2
+ @import 'compass/reset'
3
+ @import "compass/css3/border-radius"
4
+ @import "compass/css3/gradient"
5
+
6
+ +global-reset
7
+ +reset-html5
8
+
9
+ @import 'config'
10
+ @import 'flash'
11
+ @import 'header'
12
+ @import 'breadcrumb'
13
+ @import 'content'
14
+ @import 'button'
15
+ @import 'footer'
16
+ @import 'table'
17
+ @import 'form'
18
+ @import 'table'
19
+ @import 'order'
20
+
21
+ .left
22
+ float: left
23
+
24
+ .right
25
+ float: right
26
+
27
+ body
28
+ font-size: 0.9em
29
+ font-family: "Trebuchet MS", Helvetica, Verdana
30
+ background-color: #F5F5F5
31
+
32
+ .body
33
+ width: $page_size
34
+ margin: 0 auto
35
+ clear: both
36
+
37
+ .no-style-link
38
+ border-style: none
39
+ text-decoration: none
40
+
41
+ div#box
42
+ float: left
43
+ width: 295px
44
+ border: 1px solid #DFDFDF
45
+ margin-right: 1.5em
46
+ margin-bottom: 1.5em
47
+ h3
48
+ background-color: red
49
+ padding: 6px
50
+ margin: 0
51
+ background: #F5F5F5
52
+ background: -moz-linear-gradient(top, #F5F5F5 0%, #D6D6D6 100%)
53
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F5F5F5), color-stop(100%,#D6D6D6))
54
+ .utils a
55
+ float: right
56
+ font-size: .7em
57
+ color: #535353
58
+ p, ul
59
+ margin: 8px
60
+
61
+
62
+
Binary file
@@ -0,0 +1,37 @@
1
+ !!! 5
2
+ %html
3
+ %head
4
+ %title= @page_title
5
+ = csrf_meta_tag
6
+ /[if lte IE 8]
7
+ %script(type='text/javascript' src='http://html5shiv.googlecode.com/svn/trunk/html5.js')
8
+ = stylesheet_link_tag Easymin.stylesheets, :cache => true
9
+ = yield :head
10
+
11
+ %body
12
+ %header.body
13
+ %h1
14
+ = link_to t(:site_name), :root
15
+ .acount
16
+ = render 'shared/acount'
17
+ %nav
18
+ %ul
19
+ = render 'shared/menu'
20
+
21
+ %section.body
22
+ #breadcrumb
23
+ = render 'shared/breadcrumb'
24
+
25
+ - flash.each do |key, value|
26
+ %section.body
27
+ %div{:class => key}= value
28
+
29
+ %section.body
30
+ #content
31
+ = yield
32
+
33
+ %footer.body
34
+ = render 'shared/footer'
35
+
36
+ = javascript_include_tag :defaults, :cache => true
37
+ = yield :footer
@@ -0,0 +1,2 @@
1
+ %p
2
+ Overwrite app/views/shared/_menu.haml or erb to change the acount
File without changes
@@ -0,0 +1,3 @@
1
+ %p
2
+ Template skin by
3
+ %a{:href => 'http://brunowernimont.be'} Bruno Wernimont
@@ -0,0 +1,2 @@
1
+ %p
2
+ Overwrite app/views/shared/_menu.haml or erb to change the menu
data/easymin.gemspec ADDED
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "easymin/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "easymin"
7
+ s.version = Easymin::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Bruno Wernimont"]
10
+ s.email = ["hello@brunowernimont.bs"]
11
+ s.homepage = ""
12
+ s.summary = %q{Easy template layout for Rails}
13
+ s.description = %q{Easy template layout for Rails}
14
+
15
+ s.rubyforge_project = "easymin"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+ s.add_dependency('rails', '>= 3.0.3')
22
+ s.add_dependency('haml')
23
+ s.add_dependency('haml-rails')
24
+ s.add_dependency('compass')
25
+ s.add_dependency('formtastic')
26
+ end
data/lib/.DS_Store ADDED
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ require 'compass'
2
+
3
+ Compass::Frameworks.register("easymin", :path => "#{File.dirname(__FILE__)}/../../app")
@@ -0,0 +1,5 @@
1
+ module Easymin
2
+ mattr_accessor :stylesheets
3
+ end
4
+
5
+ Easymin.stylesheets = %w(compiled/easymin/easymin formtastic formtastic_changes)
@@ -0,0 +1,3 @@
1
+ module Easymin
2
+ VERSION = "0.1.0"
3
+ end
data/lib/easymin.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'rails'
2
+ require 'easymin/compass'
3
+ require 'easymin/defaults'
4
+
5
+ module Easymin
6
+ class Engine < Rails::Engine
7
+
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: easymin
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Bruno Wernimont
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-04-17 00:00:00 +02:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rails
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 3.0.3
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ type: :runtime
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: haml-rails
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: compass
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ type: :runtime
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: formtastic
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ type: :runtime
70
+ version_requirements: *id005
71
+ description: Easy template layout for Rails
72
+ email:
73
+ - hello@brunowernimont.bs
74
+ executables: []
75
+
76
+ extensions: []
77
+
78
+ extra_rdoc_files: []
79
+
80
+ files:
81
+ - .DS_Store
82
+ - .gitignore
83
+ - CHANGELOG.md
84
+ - Gemfile
85
+ - LICENSE.txt
86
+ - Rakefile
87
+ - app/.DS_Store
88
+ - app/stylesheets/easymin/_breadcrumb.sass
89
+ - app/stylesheets/easymin/_button.sass
90
+ - app/stylesheets/easymin/_config.sass
91
+ - app/stylesheets/easymin/_content.sass
92
+ - app/stylesheets/easymin/_flash.sass
93
+ - app/stylesheets/easymin/_footer.sass
94
+ - app/stylesheets/easymin/_form.sass
95
+ - app/stylesheets/easymin/_header.sass
96
+ - app/stylesheets/easymin/_order.sass
97
+ - app/stylesheets/easymin/_table.sass
98
+ - app/stylesheets/easymin/easymin.sass
99
+ - app/views/.DS_Store
100
+ - app/views/layouts/easymin.haml
101
+ - app/views/shared/_acount.haml
102
+ - app/views/shared/_breadcrumb.haml
103
+ - app/views/shared/_footer.haml
104
+ - app/views/shared/_menu.haml
105
+ - easymin.gemspec
106
+ - lib/.DS_Store
107
+ - lib/easymin.rb
108
+ - lib/easymin/.DS_Store
109
+ - lib/easymin/compass.rb
110
+ - lib/easymin/defaults.rb
111
+ - lib/easymin/version.rb
112
+ has_rdoc: true
113
+ homepage: ""
114
+ licenses: []
115
+
116
+ post_install_message:
117
+ rdoc_options: []
118
+
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: "0"
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: "0"
133
+ requirements: []
134
+
135
+ rubyforge_project: easymin
136
+ rubygems_version: 1.6.2
137
+ signing_key:
138
+ specification_version: 3
139
+ summary: Easy template layout for Rails
140
+ test_files: []
141
+