toadstool 0.0.0.1 → 0.0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bin/toadstool +80 -33
- data/lib/stylesheets/_toadstool-styleguide.scss +33 -0
- data/lib/stylesheets/toadstool/_buttons.scss +22 -0
- data/lib/stylesheets/toadstool/_config.scss +228 -0
- data/lib/stylesheets/toadstool/_design.scss +55 -0
- data/lib/stylesheets/toadstool/_forms.scss +18 -0
- data/lib/stylesheets/toadstool/_grids.scss +48 -0
- data/lib/stylesheets/toadstool/_modules.scss +3 -0
- data/{sass → lib/stylesheets/toadstool}/_typography.scss +43 -11
- data/lib/stylesheets/toadstool/_ui_patterns.scss +3 -0
- data/lib/stylesheets/toadstool/_web_fonts.scss +11 -0
- data/lib/stylesheets/toadstool/modules/_footer.scss +7 -0
- data/lib/stylesheets/toadstool/modules/_header.scss +41 -0
- data/lib/stylesheets/toadstool/modules/_main_nav.scss +49 -0
- data/lib/stylesheets/toadstool/ui_patterns/_color_grid.scss +220 -0
- data/lib/stylesheets/toadstool/ui_patterns/_emBox.scss +16 -0
- data/lib/stylesheets/toadstool/ui_patterns/_prettify.scss +136 -0
- data/lib/templates/module/sass/_example_module.scss +4 -0
- data/{sass/modules/example_module → lib/templates/module/sass}/_extends.scss +0 -0
- data/{sass/modules/example_module → lib/templates/module/sass}/_mixins.scss +0 -0
- data/{views/modules/example_module → lib/templates/module/views}/module.erb +0 -0
- data/{views/modules/example_module → lib/templates/module/views}/module.js +0 -0
- data/{views/modules/example_module → lib/templates/module/views}/view.erb +0 -0
- data/{Gemfile → lib/templates/project/Gemfile} +1 -3
- data/lib/templates/project/Rakefile +21 -0
- data/{config.rb → lib/templates/project/config.rb} +5 -3
- data/lib/templates/project/config.ru +8 -0
- data/{doc-src → lib/templates/project/doc-src}/SASS-Guidelines.md +0 -0
- data/lib/templates/project/doc-src/changelog.md +22 -0
- data/{doc-src → lib/templates/project/doc-src}/mit_license.md +0 -0
- data/{sass/modules/example_module/readme.md → lib/templates/project/doc-src/module-sass-readme.md} +0 -0
- data/{public → lib/templates/project/public}/images/toadstool-logo.png +0 -0
- data/{public → lib/templates/project/public}/javascripts/application.js +12 -1
- data/lib/templates/project/public/javascripts/jquery-1.8.3.min.js +2 -0
- data/{public → lib/templates/project/public}/javascripts/lang-css.js +0 -0
- data/{public → lib/templates/project/public}/javascripts/lang-yaml.js +0 -0
- data/lib/templates/project/public/javascripts/modernizr-2.6.1.js +1384 -0
- data/{public → lib/templates/project/public}/javascripts/modernizr.mods.js +0 -0
- data/{public → lib/templates/project/public}/javascripts/prettify.js +0 -0
- data/lib/templates/project/readme.md +79 -0
- data/lib/templates/project/sass/_buttons.scss +37 -0
- data/{sass → lib/templates/project/sass}/_config.scss +81 -74
- data/{sass → lib/templates/project/sass}/_design.scss +0 -0
- data/lib/templates/project/sass/_forms.scss +41 -0
- data/{sass → lib/templates/project/sass}/_reset.scss +0 -0
- data/lib/templates/project/sass/_typography.scss +98 -0
- data/lib/templates/project/sass/buttons/_extends.scss +3 -0
- data/lib/templates/project/sass/buttons/_mixins.scss +2 -0
- data/lib/templates/project/sass/color/_color_defaults.scss +98 -0
- data/{sass → lib/templates/project/sass}/color/_color_math.scss +1 -1
- data/lib/templates/project/sass/color/_extends.scss +109 -0
- data/{sass → lib/templates/project/sass}/color/_grayscale_math.scss +0 -0
- data/lib/templates/project/sass/color/readme.md +63 -0
- data/lib/templates/project/sass/forms/_extends.scss +3 -0
- data/lib/templates/project/sass/forms/_mixins.scss +3 -0
- data/{sass/_ui_patterns.scss → lib/templates/project/sass/layouts/_example_layout.scss} +0 -0
- data/lib/templates/project/sass/readme.md +142 -0
- data/{sass → lib/templates/project/sass}/style.scss +6 -10
- data/{sass → lib/templates/project/sass}/toadstool.scss +1 -1
- data/lib/templates/project/sass/typography/_extends.scss +13 -0
- data/lib/templates/project/sass/typography/_mixins.scss +2 -0
- data/{sass → lib/templates/project/sass/typography}/_web_fonts.scss +2 -5
- data/lib/templates/project/toadstool.rb +94 -0
- data/lib/templates/project/views/color_palettes.erb +371 -0
- data/lib/templates/project/views/forms.erb +40 -0
- data/lib/templates/project/views/forms/disabled_button.erb +18 -0
- data/lib/templates/project/views/forms/password_input.erb +22 -0
- data/lib/templates/project/views/forms/primary_button.erb +18 -0
- data/lib/templates/project/views/forms/readme.md +2 -0
- data/{views → lib/templates/project/views}/forms/username_input.erb +0 -0
- data/{views → lib/templates/project/views}/grid.erb +0 -0
- data/{views → lib/templates/project/views}/grid24.erb +0 -0
- data/{views → lib/templates/project/views}/grids/grid_arguments.erb +0 -0
- data/{views → lib/templates/project/views}/grids/use_definition.erb +0 -0
- data/{views → lib/templates/project/views}/layout.erb +2 -2
- data/{views/modules/example_module → lib/templates/project/views/modules}/readme.md +6 -4
- data/lib/templates/project/views/shared/_code_toggle.erb +10 -0
- data/lib/templates/project/views/shared/_html_example.erb +5 -0
- data/{views → lib/templates/project/views}/shared/_main_footer.erb +0 -0
- data/{views → lib/templates/project/views}/shared/_main_header.erb +0 -0
- data/{views → lib/templates/project/views}/shared/_main_nav.erb +0 -0
- data/{views → lib/templates/project/views}/shared/_toadstool_subheader.erb +0 -0
- data/lib/templates/project/views/typography.erb +35 -0
- data/lib/templates/project/views/typography/body_copy.erb +2 -0
- data/{views → lib/templates/project/views}/typography/body_links.erb +0 -0
- data/{sass/ui_patterns/_example.scss → lib/templates/project/views/typography/general_typography.erb} +0 -0
- data/{views → lib/templates/project/views}/typography/headings.erb +0 -0
- data/{views → lib/templates/project/views}/typography/vertical_rhythm.erb +0 -0
- data/{views → lib/templates/project/views}/typography/web_fonts.erb +0 -0
- data/lib/templates/project/views/ui_patterns/forms/primary_buttons.erb +8 -0
- data/lib/templates/project/views/ui_patterns/forms/text_input.erb +11 -0
- data/lib/templates/project/views/ui_patterns/forms/text_input_error.erb +11 -0
- data/{views → lib/templates/project/views}/ui_patterns/readme.md +4 -3
- data/lib/templates/project/views/ui_patterns/typography/_body_copy.erb +2 -0
- data/lib/templates/project/views/ui_patterns/typography/_headings.erb +6 -0
- data/lib/templates/ui_pattern/sass/_example_pattern.scss +4 -0
- data/lib/templates/ui_pattern/sass/_extends.scss +0 -0
- data/lib/templates/ui_pattern/sass/_mixins.scss +0 -0
- data/{views/ui_patterns → lib/templates/ui_pattern/views}/example.erb +0 -0
- data/lib/toadstool.rb +4 -0
- data/lib/toadstool/version.rb +3 -0
- metadata +120 -109
- data/Rakefile +0 -4
- data/config.ru +0 -6
- data/doc-src/What-Is-Toadstool.md +0 -44
- data/doc-src/changelog.md +0 -29
- data/doc-src/config.md +0 -18
- data/doc-src/mixin_directory.md +0 -17
- data/doc-src/sass.md +0 -4
- data/lib/RackServer.rb +0 -93
- data/public/fonts/fontawesome-webfont.eot +0 -0
- data/public/fonts/fontawesome-webfont.svg +0 -255
- data/public/fonts/fontawesome-webfont.ttf +0 -0
- data/public/fonts/fontawesome-webfont.woff +0 -0
- data/public/fonts/zocial-regular-webfont.eot +0 -0
- data/public/fonts/zocial-regular-webfont.svg +0 -138
- data/public/fonts/zocial-regular-webfont.ttf +0 -0
- data/public/fonts/zocial-regular-webfont.woff +0 -0
- data/public/javascripts/css_browser_selector.js +0 -8
- data/public/javascripts/lang-apollo.js +0 -2
- data/public/javascripts/lang-clj.js +0 -18
- data/public/javascripts/lang-go.js +0 -1
- data/public/javascripts/lang-hs.js +0 -2
- data/public/javascripts/lang-lisp.js +0 -3
- data/public/javascripts/lang-lua.js +0 -2
- data/public/javascripts/lang-ml.js +0 -2
- data/public/javascripts/lang-n.js +0 -4
- data/public/javascripts/lang-proto.js +0 -1
- data/public/javascripts/lang-scala.js +0 -2
- data/public/javascripts/lang-sql.js +0 -2
- data/public/javascripts/lang-tex.js +0 -1
- data/public/javascripts/lang-vb.js +0 -2
- data/public/javascripts/lang-vhdl.js +0 -3
- data/public/javascripts/lang-wiki.js +0 -2
- data/public/javascripts/lang-xq.js +0 -3
- data/public/javascripts/selectivizr-min.js +0 -5
- data/public/stylesheets/style.css +0 -615
- data/public/stylesheets/toadstool.css +0 -1643
- data/readme.md +0 -37
- data/sass/_buttons.scss +0 -20
- data/sass/_forms.scss +0 -18
- data/sass/_modules.scss +0 -12
- data/sass/buttons/_cupid_config.scss +0 -20
- data/sass/buttons/_minimal_config.scss +0 -15
- data/sass/color/_extends.scss +0 -291
- data/sass/ui_patterns/_color_grid.scss +0 -286
- data/toadstool.rb +0 -84
- data/views/abstract_colors.erb +0 -1
- data/views/alerts.erb +0 -1
- data/views/buttons.erb +0 -1
- data/views/color_palettes.erb +0 -221
- data/views/forms.erb +0 -24
- data/views/forms/disabled_button.erb +0 -18
- data/views/forms/password_input.erb +0 -22
- data/views/forms/primary_button.erb +0 -18
- data/views/modules/readme.md +0 -10
- data/views/semantic_colors.erb +0 -1
- data/views/shared/_html_example.erb +0 -31
- data/views/shared/_sass_example.erb +0 -10
- data/views/typography.erb +0 -17
- data/views/typography/body_copy.erb +0 -19
- data/views/typography/general_typography.erb +0 -19
- data/views/ui_patterns/forms/text_input.erb +0 -10
data/toadstool.rb
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
# Those little ditties that Sinatra needs to make the magic happen
|
2
|
-
# -----------------------------------------------------------------------
|
3
|
-
require 'rubygems'
|
4
|
-
require 'compass'
|
5
|
-
require 'sass'
|
6
|
-
require 'net/http'
|
7
|
-
|
8
|
-
require 'stipe' # installed as a gem
|
9
|
-
# require '../stipe/lib/stipe.rb' # locally as a Compass extension
|
10
|
-
|
11
|
-
# If you're using bundler, you will need to add this
|
12
|
-
require 'bundler/setup'
|
13
|
-
|
14
|
-
require 'sinatra'
|
15
|
-
require 'sinatra/partial'
|
16
|
-
|
17
|
-
set :partial_template_engine, :erb
|
18
|
-
|
19
|
-
|
20
|
-
# Helpers to add a new horn section to the band
|
21
|
-
# -----------------------------------------------------------------------
|
22
|
-
helpers do
|
23
|
-
include ERB::Util
|
24
|
-
alias_method :code, :html_escape
|
25
|
-
|
26
|
-
# write better links
|
27
|
-
def link_to_unless_current(location, text )
|
28
|
-
if request.path_info == location
|
29
|
-
text
|
30
|
-
else
|
31
|
-
link_to location, text
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def link_to(url,text=url,opts={})
|
36
|
-
attributes = ""
|
37
|
-
opts.each { |key,value| attributes << key.to_s << "=\"" << value << "\" "}
|
38
|
-
"<a href=\"#{url}\" #{attributes}>#{text}</a>"
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
|
44
|
-
# It's like Sammy and Dino, but not really
|
45
|
-
# -----------------------------------------------------------------------
|
46
|
-
configure do
|
47
|
-
Compass.add_project_configuration(File.join(Sinatra::Application.root, 'config.rb'))
|
48
|
-
end
|
49
|
-
|
50
|
-
# at a minimum, the main sass file must reside within the ./views directory. here, we create a ./views/stylesheets directory where all of the sass files can safely reside.
|
51
|
-
get '/stylesheets/:name.css' do
|
52
|
-
content_type 'text/css', :charset => 'utf-8'
|
53
|
-
scss(:"../sass/#{params[:name]}", Compass.sass_engine_options )
|
54
|
-
end
|
55
|
-
|
56
|
-
|
57
|
-
# Without this, there is no nav. No really, there is nothing.
|
58
|
-
# -----------------------------------------------------------------------
|
59
|
-
get '/' do
|
60
|
-
erb :typography
|
61
|
-
end
|
62
|
-
|
63
|
-
get %r{([\w\./_-]+)} do
|
64
|
-
if File.exists?('views' + params[:captures].first.gsub(/.(\/)$/, '') + '/index.erb')
|
65
|
-
erb :"#{params[:captures].first.gsub(/.(\/)$/, '')}/index"
|
66
|
-
else
|
67
|
-
erb :"#{params[:captures].first}"
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
# get '/' do
|
72
|
-
# slim :typography
|
73
|
-
# end
|
74
|
-
|
75
|
-
# get %r{([\w\./_-]+)} do
|
76
|
-
# if File.exists?('views' + params[:captures].first.gsub(/.(\/)$/, '') + '/index.slim')
|
77
|
-
# erb :"#{params[:captures].first.gsub(/.(\/)$/, '')}/index"
|
78
|
-
# else
|
79
|
-
# erb :"#{params[:captures].first}"
|
80
|
-
# end
|
81
|
-
# end
|
82
|
-
|
83
|
-
|
84
|
-
|
data/views/abstract_colors.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<h1>abstract colors</h1>
|
data/views/alerts.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<h1>alerts</h1>
|
data/views/buttons.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<h1>buttons</h1>
|
data/views/color_palettes.erb
DELETED
@@ -1,221 +0,0 @@
|
|
1
|
-
<header class="toadstool_header">
|
2
|
-
<h1>colors</h1>
|
3
|
-
</header>
|
4
|
-
|
5
|
-
<%#= partial :"grids/use_definition" %>
|
6
|
-
|
7
|
-
<article class="colorcode">
|
8
|
-
<header class="toadstool_subheader">
|
9
|
-
<h2>grayscale objects</h2>
|
10
|
-
</header>
|
11
|
-
<div class="white border">
|
12
|
-
<p>%white</p>
|
13
|
-
</div>
|
14
|
-
<div class="alpha_gray">
|
15
|
-
<p>%alpha_gray</p>
|
16
|
-
</div>
|
17
|
-
<div class="bravo_gray">
|
18
|
-
<p>%bravo_gray</p>
|
19
|
-
</div>
|
20
|
-
<div class="charlie_gray">
|
21
|
-
<p>%charlie_gray</p>
|
22
|
-
</div>
|
23
|
-
<div class="delta_gray">
|
24
|
-
<p>%delta_gray</p>
|
25
|
-
</div>
|
26
|
-
<div class="echo_gray">
|
27
|
-
<p>%echo_gray</p>
|
28
|
-
</div>
|
29
|
-
<div class="fox_gray">
|
30
|
-
<p>%fox_gray</p>
|
31
|
-
</div>
|
32
|
-
<div class="golf_gray">
|
33
|
-
<p>%golf_gray</p>
|
34
|
-
</div>
|
35
|
-
<div class="hotel_gray">
|
36
|
-
<p>%hotel_gray</p>
|
37
|
-
</div>
|
38
|
-
<div class="india_gray">
|
39
|
-
<p>%india_gray</p>
|
40
|
-
</div>
|
41
|
-
</article>
|
42
|
-
|
43
|
-
<article class="colorcode">
|
44
|
-
<header class="toadstool_subheader">
|
45
|
-
<h2>alpha objects</h2>
|
46
|
-
</header>
|
47
|
-
<div class="alpha_color">
|
48
|
-
<p>%alpha_color</p>
|
49
|
-
</div>
|
50
|
-
<div class="alpha_color_bravo">
|
51
|
-
<p>%alpha_color_bravo</p>
|
52
|
-
</div>
|
53
|
-
<div class="alpha_color_charlie">
|
54
|
-
<p>%alpha_color_charlie</p>
|
55
|
-
</div>
|
56
|
-
<div class="alpha_color_delta">
|
57
|
-
<p>%alpha_color_delta</p>
|
58
|
-
</div>
|
59
|
-
<div class="alpha_color_echo">
|
60
|
-
<p>%alpha_color_echo</p>
|
61
|
-
</div>
|
62
|
-
<div class="alpha_color_fox">
|
63
|
-
<p>%alpha_color_fox</p>
|
64
|
-
</div>
|
65
|
-
<div class="alpha_color_golf">
|
66
|
-
<p>%alpha_color_golf</p>
|
67
|
-
</div>
|
68
|
-
<div class="alpha_color_hotel">
|
69
|
-
<p>%alpha_color_hotel</p>
|
70
|
-
</div>
|
71
|
-
<div class="alpha_color_india">
|
72
|
-
<p>%alpha_color_india</p>
|
73
|
-
</div>
|
74
|
-
<div class="alpha_color_juliet">
|
75
|
-
<p>%alpha_color_juliet</p>
|
76
|
-
</div>
|
77
|
-
</article>
|
78
|
-
|
79
|
-
<article class="colorcode">
|
80
|
-
<header class="toadstool_subheader">
|
81
|
-
<h2>bravo objects</h2>
|
82
|
-
</header>
|
83
|
-
<div class="bravo_color">
|
84
|
-
<p>%bravo_color</p>
|
85
|
-
</div>
|
86
|
-
<div class="bravo_color_bravo">
|
87
|
-
<p>%bravo_color_bravo</p>
|
88
|
-
</div>
|
89
|
-
<div class="bravo_color_charlie">
|
90
|
-
<p>%bravo_color_charlie</p>
|
91
|
-
</div>
|
92
|
-
<div class="bravo_color_delta">
|
93
|
-
<p>%bravo_color_delta</p>
|
94
|
-
</div>
|
95
|
-
<div class="bravo_color_echo">
|
96
|
-
<p>%bravo_color_echo</p>
|
97
|
-
</div>
|
98
|
-
<div class="bravo_color_fox">
|
99
|
-
<p>%bravo_color_fox</p>
|
100
|
-
</div>
|
101
|
-
<div class="bravo_color_golf">
|
102
|
-
<p>%bravo_color_golf</p>
|
103
|
-
</div>
|
104
|
-
<div class="bravo_color_hotel">
|
105
|
-
<p>%bravo_color_hotel</p>
|
106
|
-
</div>
|
107
|
-
<div class="bravo_color_india">
|
108
|
-
<p>%bravo_color_india</p>
|
109
|
-
</div>
|
110
|
-
<div class="bravo_color_juliet">
|
111
|
-
<p>%bravo_color_juliet</p>
|
112
|
-
</div>
|
113
|
-
</article>
|
114
|
-
|
115
|
-
<article class="colorcode">
|
116
|
-
<header class="toadstool_subheader">
|
117
|
-
<h2>charlie objects</h2>
|
118
|
-
</header>
|
119
|
-
<div class="charlie_color">
|
120
|
-
<p>%charlie_color</p>
|
121
|
-
</div>
|
122
|
-
<div class="charlie_color_bravo">
|
123
|
-
<p>%charlie_color_bravo</p>
|
124
|
-
</div>
|
125
|
-
<div class="charlie_color_charlie">
|
126
|
-
<p>%charlie_color_charlie</p>
|
127
|
-
</div>
|
128
|
-
<div class="charlie_color_delta">
|
129
|
-
<p>%charlie_color_delta</p>
|
130
|
-
</div>
|
131
|
-
<div class="charlie_color_echo">
|
132
|
-
<p>%charlie_color_echo</p>
|
133
|
-
</div>
|
134
|
-
<div class="charlie_color_fox">
|
135
|
-
<p>%charlie_color_fox</p>
|
136
|
-
</div>
|
137
|
-
<div class="charlie_color_golf">
|
138
|
-
<p>%charlie_color_golf</p>
|
139
|
-
</div>
|
140
|
-
<div class="charlie_color_hotel">
|
141
|
-
<p>%charlie_color_hotel</p>
|
142
|
-
</div>
|
143
|
-
<div class="charlie_color_india">
|
144
|
-
<p>%charlie_color_india</p>
|
145
|
-
</div>
|
146
|
-
<div class="charlie_color_juliet">
|
147
|
-
<p>%charlie_color_juliet</p>
|
148
|
-
</div>
|
149
|
-
</article>
|
150
|
-
|
151
|
-
<article class="colorcode">
|
152
|
-
<header class="toadstool_subheader">
|
153
|
-
<h2>delta objects</h2>
|
154
|
-
</header>
|
155
|
-
<div class="delta_color">
|
156
|
-
<p>%delta_color</p>
|
157
|
-
</div>
|
158
|
-
<div class="delta_color_bravo">
|
159
|
-
<p>%delta_color_bravo</p>
|
160
|
-
</div>
|
161
|
-
<div class="delta_color_charlie">
|
162
|
-
<p>%delta_color_charlie</p>
|
163
|
-
</div>
|
164
|
-
<div class="delta_color_delta">
|
165
|
-
<p>%delta_color_delta</p>
|
166
|
-
</div>
|
167
|
-
<div class="delta_color_echo">
|
168
|
-
<p>%delta_color_echo</p>
|
169
|
-
</div>
|
170
|
-
<div class="delta_color_fox">
|
171
|
-
<p>%delta_color_fox</p>
|
172
|
-
</div>
|
173
|
-
<div class="delta_color_golf">
|
174
|
-
<p>%delta_color_golf</p>
|
175
|
-
</div>
|
176
|
-
<div class="delta_color_hotel">
|
177
|
-
<p>%delta_color_hotel</p>
|
178
|
-
</div>
|
179
|
-
<div class="delta_color_india">
|
180
|
-
<p>%delta_color_india</p>
|
181
|
-
</div>
|
182
|
-
<div class="delta_color_juliet">
|
183
|
-
<p>%delta_color_juliet</p>
|
184
|
-
</div>
|
185
|
-
</article>
|
186
|
-
|
187
|
-
<article class="colorcode">
|
188
|
-
<header class="toadstool_subheader">
|
189
|
-
<h2>echo objects</h2>
|
190
|
-
</header>
|
191
|
-
<div class="echo_color">
|
192
|
-
<p>%echo_color</p>
|
193
|
-
</div>
|
194
|
-
<div class="echo_color_bravo">
|
195
|
-
<p>%echo_color_bravo</p>
|
196
|
-
</div>
|
197
|
-
<div class="echo_color_charlie">
|
198
|
-
<p>%echo_color_charlie</p>
|
199
|
-
</div>
|
200
|
-
<div class="echo_color_delta">
|
201
|
-
<p>%echo_color_delta</p>
|
202
|
-
</div>
|
203
|
-
<div class="echo_color_echo">
|
204
|
-
<p>%echo_color_echo</p>
|
205
|
-
</div>
|
206
|
-
<div class="echo_color_fox">
|
207
|
-
<p>%echo_color_fox</p>
|
208
|
-
</div>
|
209
|
-
<div class="echo_color_golf">
|
210
|
-
<p>%echo_color_golf</p>
|
211
|
-
</div>
|
212
|
-
<div class="echo_color_hotel">
|
213
|
-
<p>%echo_color_hotel</p>
|
214
|
-
</div>
|
215
|
-
<div class="echo_color_india">
|
216
|
-
<p>%echo_color_india</p>
|
217
|
-
</div>
|
218
|
-
<div class="echo_color_juliet">
|
219
|
-
<p>%echo_color_juliet</p>
|
220
|
-
</div>
|
221
|
-
</article>
|
data/views/forms.erb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
<header class="toadstool_header">
|
2
|
-
<h1>form</h1>
|
3
|
-
</header>
|
4
|
-
|
5
|
-
<section id="text_inputs">
|
6
|
-
<%= partial :'shared/_toadstool_subheader', :locals => {
|
7
|
-
:header => 'text inputs', :text => 'The following form input text types are supported <code>input[type=email]</code>, <code>input[type=password]</code>, <code>input[type=text]</code> and <code>input[type=number]</code>'
|
8
|
-
} %>
|
9
|
-
<%= partial :'shared/_html_example', :locals => { :path => 'ui_patterns/forms/text_input.erb' } %>
|
10
|
-
<%= partial :'shared/_sass_example', :locals => { :path => 'sass/_forms.scss' } %>
|
11
|
-
</section>
|
12
|
-
|
13
|
-
|
14
|
-
<%#= partial :"forms/username_input" %>
|
15
|
-
|
16
|
-
<%#= partial :"forms/password_input" %>
|
17
|
-
|
18
|
-
<%#= partial :"forms/primary_button" %>
|
19
|
-
|
20
|
-
<%#= partial :"forms/disabled_button" %>
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<footer class="toadstool_footer"></footer>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<section id="disabled_button">
|
2
|
-
<header class="toadstool_subheader">
|
3
|
-
<h2>disabled button</h2>
|
4
|
-
<article>
|
5
|
-
<p>Copy goes here about how form inputs work</p>
|
6
|
-
<!-- <p><a href="#" class="click_more_typography">Read more ...</a></p> -->
|
7
|
-
</article>
|
8
|
-
<article class="read_more_inputs hidden"></article>
|
9
|
-
</header>
|
10
|
-
|
11
|
-
<article class="element_example">
|
12
|
-
<form>
|
13
|
-
<fieldset>
|
14
|
-
<button disabled>Sign in</button>
|
15
|
-
</fieldset>
|
16
|
-
</form>
|
17
|
-
</article>
|
18
|
-
</section>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<section id="password_inputs">
|
2
|
-
<header class="toadstool_subheader">
|
3
|
-
<h2>password inputs</h2>
|
4
|
-
<article>
|
5
|
-
<p>Copy goes here about how form inputs work</p>
|
6
|
-
<!-- <p><a href="#" class="click_more_typography">Read more ...</a></p> -->
|
7
|
-
</article>
|
8
|
-
<article class="read_more_inputs hidden"></article>
|
9
|
-
</header>
|
10
|
-
|
11
|
-
<article class="element_example">
|
12
|
-
<form>
|
13
|
-
<fieldset>
|
14
|
-
<ol>
|
15
|
-
<li>
|
16
|
-
<label for="login_password">Password</label>
|
17
|
-
<input type="password" name="password" id="login_password" placeholder="password" tabindex="2" />
|
18
|
-
</li>
|
19
|
-
</ol>
|
20
|
-
</form>
|
21
|
-
</article>
|
22
|
-
</section>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<section id="primary_button">
|
2
|
-
<header class="toadstool_subheader">
|
3
|
-
<h2>primary button</h2>
|
4
|
-
<article>
|
5
|
-
<p>Copy goes here about how form inputs work</p>
|
6
|
-
<!-- <p><a href="#" class="click_more_typography">Read more ...</a></p> -->
|
7
|
-
</article>
|
8
|
-
<article class="read_more_inputs hidden"></article>
|
9
|
-
</header>
|
10
|
-
|
11
|
-
<article class="element_example">
|
12
|
-
<form>
|
13
|
-
<fieldset>
|
14
|
-
<button>Sign in</button>
|
15
|
-
</fieldset>
|
16
|
-
</form>
|
17
|
-
</article>
|
18
|
-
</section>
|
data/views/modules/readme.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#What is a module
|
2
|
-
|
3
|
-
In Toadstool's eyes, the module is the single most important things you can build. It is the final object that will be placed in the view to create the experience. But the module is not the starting point, but a destination.
|
4
|
-
|
5
|
-
Starting with the elemental building blocks of the UI, then depending on the size of the module you will either assemble the final module here or using a combination of elements and UI patterns will then assemble the module.
|
6
|
-
|
7
|
-
The idea behind the module is keeping your code DRY.
|
8
|
-
|
9
|
-
##Refactoring is the KEY!
|
10
|
-
The difference between modules and UI patterns are really in the eye of the beholder. There is no clear divisional line between the two. The only assistance I can offer is ... if the module feels large and there are repeated objects within, then there is a good chance that you have an opportunity to peal out a UI pattern within that module.
|
data/views/semantic_colors.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<h1>semantic colors</h1>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<%# Returns the extension (the portion of file name in path after the period) %>
|
2
|
-
<% extname = File.extname(path) %>
|
3
|
-
|
4
|
-
<%# Returns components of the filename, + last component of the filename sans the extension %>
|
5
|
-
<% fullPath = File.dirname(path) + '/' + File.basename(path, extname)%>
|
6
|
-
|
7
|
-
<%# Returns components of the filename, + last component of the filename w/the extension %>
|
8
|
-
<% fullPathExtname = File.dirname(path) + '/' + File.basename(path)%>
|
9
|
-
|
10
|
-
<%# prepends path to fullPathExtname %>
|
11
|
-
<% mtime_path = 'views/' + fullPathExtname %>
|
12
|
-
|
13
|
-
<%# wrapps fullPathExtname for display in the view %>
|
14
|
-
<% file_path = '< File path: ' + fullPathExtname + ' ' + '>' %>
|
15
|
-
|
16
|
-
<%# ---------------------------------------------- %>
|
17
|
-
|
18
|
-
<article class="element_example">
|
19
|
-
<%= partial fullPath %>
|
20
|
-
</article>
|
21
|
-
|
22
|
-
<div class="example_code">
|
23
|
-
<p class="codeToggle"><a href="#">view</a></p>
|
24
|
-
<pre class="prettyprint linenums hidden">
|
25
|
-
<%= code partial fullPath %>
|
26
|
-
</pre>
|
27
|
-
<p><%= path %></p>
|
28
|
-
<p class="mtime">
|
29
|
-
Last modified: <%= File.mtime(mtime_path) %>
|
30
|
-
</p>
|
31
|
-
</div>
|