underoos 1.0.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/.gitignore +8 -0
- data/.rvmrc +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +143 -0
- data/LICENSE +26 -0
- data/Procfile +1 -0
- data/README.md +13 -0
- data/Rakefile +12 -0
- data/app/assets/javascripts/styleguide.js +132 -0
- data/app/assets/javascripts/underoos.js +18 -0
- data/app/assets/stylesheets/base/_button-btn-mixin.sass +72 -0
- data/app/assets/stylesheets/base/_elements.sass +61 -0
- data/app/assets/stylesheets/base/_forms.sass +362 -0
- data/app/assets/stylesheets/base/_helpers.sass +54 -0
- data/app/assets/stylesheets/base/_normalize.sass +114 -0
- data/app/assets/stylesheets/base/_scaffold.sass +51 -0
- data/app/assets/stylesheets/base/_tables.sass +99 -0
- data/app/assets/stylesheets/base/_transitions.sass +17 -0
- data/app/assets/stylesheets/base/_typography.sass +185 -0
- data/app/assets/stylesheets/components/_accordions.sass +17 -0
- data/app/assets/stylesheets/components/_breadcrumbs.sass +22 -0
- data/app/assets/stylesheets/components/_button-groups.sass +46 -0
- data/app/assets/stylesheets/components/_carets.sass +24 -0
- data/app/assets/stylesheets/components/_carousels.sass +18 -0
- data/app/assets/stylesheets/components/_close.sass +25 -0
- data/app/assets/stylesheets/components/_decals.sass +27 -0
- data/app/assets/stylesheets/components/_dropdowns.sass +85 -0
- data/app/assets/stylesheets/components/_media.sass +33 -0
- data/app/assets/stylesheets/components/_modals.sass +28 -0
- data/app/assets/stylesheets/components/_nav-lists.sass +22 -0
- data/app/assets/stylesheets/components/_navbars.sass +105 -0
- data/app/assets/stylesheets/components/_notifications.sass +108 -0
- data/app/assets/stylesheets/components/_paddles.sass +34 -0
- data/app/assets/stylesheets/components/_pagination.sass +41 -0
- data/app/assets/stylesheets/components/_pills.sass +64 -0
- data/app/assets/stylesheets/components/_popovers.sass +55 -0
- data/app/assets/stylesheets/components/_progress-bars.sass +29 -0
- data/app/assets/stylesheets/components/_tabs.sass +93 -0
- data/app/assets/stylesheets/components/_tooltips.sass +46 -0
- data/app/assets/stylesheets/components/_wells.sass +16 -0
- data/app/assets/stylesheets/layouts/_containers.sass +15 -0
- data/app/assets/stylesheets/layouts/_print.sass +48 -0
- data/app/assets/stylesheets/layouts/_queries.sass +121 -0
- data/app/assets/stylesheets/layouts/_upgrades.sass +64 -0
- data/app/assets/stylesheets/mixins/_arrows.sass +40 -0
- data/app/assets/stylesheets/mixins/_clearfixins.sass +15 -0
- data/app/assets/stylesheets/mixins/_coloring.sass +6 -0
- data/app/assets/stylesheets/mixins/_columns.sass +19 -0
- data/app/assets/stylesheets/mixins/_conversions.sass +25 -0
- data/app/assets/stylesheets/mixins/_font-size.sass +6 -0
- data/app/assets/stylesheets/mixins/_image-tools.sass +13 -0
- data/app/assets/stylesheets/mixins/_ir.sass +9 -0
- data/app/assets/stylesheets/mixins/_mixins.sass +14 -0
- data/app/assets/stylesheets/mixins/_tab-focus.sass +7 -0
- data/app/assets/stylesheets/mixins/_timing-equations.sass +29 -0
- data/app/assets/stylesheets/mixins/_visibility.sass +43 -0
- data/app/assets/stylesheets/polyfills/_box-shadow.sass +7 -0
- data/app/assets/stylesheets/polyfills/_box-sizing.sass +8 -0
- data/app/assets/stylesheets/polyfills/_functions.sass +22 -0
- data/app/assets/stylesheets/polyfills/_inline-block.sass +8 -0
- data/app/assets/stylesheets/polyfills/_opacity.sass +6 -0
- data/app/assets/stylesheets/polyfills/_polyfills.sass +10 -0
- data/app/assets/stylesheets/polyfills/_transition.sass +9 -0
- data/app/assets/stylesheets/polyfills/_user-select.sass +8 -0
- data/app/assets/stylesheets/styleguide.sass +199 -0
- data/app/assets/stylesheets/themes/_default.sass +119 -0
- data/app/assets/stylesheets/underoos.sass +52 -0
- data/app/controllers/underoos/styleguides_controller.rb +79 -0
- data/app/views/shared/_upgrades.html.haml +12 -0
- data/app/views/underoos/styleguides/_assets.haml +42 -0
- data/app/views/underoos/styleguides/_components.haml +42 -0
- data/app/views/underoos/styleguides/_elements.haml +242 -0
- data/app/views/underoos/styleguides/_forms.haml +305 -0
- data/app/views/underoos/styleguides/_layouts.haml +76 -0
- data/app/views/underoos/styleguides/_palettes.haml +18 -0
- data/app/views/underoos/styleguides/_resources.haml +27 -0
- data/app/views/underoos/styleguides/_tables.haml +124 -0
- data/app/views/underoos/styleguides/_typography.haml +284 -0
- data/app/views/underoos/styleguides/_utilities.haml +270 -0
- data/app/views/underoos/styleguides/components/_accordions.haml +83 -0
- data/app/views/underoos/styleguides/components/_breadcrumbs.haml +42 -0
- data/app/views/underoos/styleguides/components/_button-groups.haml +162 -0
- data/app/views/underoos/styleguides/components/_carets.haml +28 -0
- data/app/views/underoos/styleguides/components/_close.haml +20 -0
- data/app/views/underoos/styleguides/components/_decals.haml +40 -0
- data/app/views/underoos/styleguides/components/_dropdowns.haml +189 -0
- data/app/views/underoos/styleguides/components/_media.haml +78 -0
- data/app/views/underoos/styleguides/components/_modals.haml +42 -0
- data/app/views/underoos/styleguides/components/_nav-lists.haml +52 -0
- data/app/views/underoos/styleguides/components/_navbars.haml +144 -0
- data/app/views/underoos/styleguides/components/_navs-showcase.haml +27 -0
- data/app/views/underoos/styleguides/components/_notifications.haml +169 -0
- data/app/views/underoos/styleguides/components/_paddles.haml +68 -0
- data/app/views/underoos/styleguides/components/_pagination.haml +64 -0
- data/app/views/underoos/styleguides/components/_popovers.haml +33 -0
- data/app/views/underoos/styleguides/components/_progress-bars.haml +72 -0
- data/app/views/underoos/styleguides/components/_tabs-pills.haml +241 -0
- data/app/views/underoos/styleguides/components/_tooltips.haml +37 -0
- data/app/views/underoos/styleguides/components/_wells.haml +29 -0
- data/app/views/underoos/styleguides/index.html.haml +259 -0
- data/app/views/underoos/styleguides/partials/_form-template.haml +171 -0
- data/app/views/underoos/styleguides/partials/_table-data.haml +33 -0
- data/app/views/underoos/styleguides/partials/_transitions.haml +136 -0
- data/config.ru +38 -0
- data/config/routes.rb +3 -0
- data/features/generator.feature +78 -0
- data/features/step_definitions/underoos_steps.rb +3 -0
- data/features/support/env.rb +9 -0
- data/lib/generators/underoos/assets_generator.rb +33 -0
- data/lib/underoos.rb +5 -0
- data/lib/underoos/engine.rb +8 -0
- data/lib/underoos/version.rb +3 -0
- data/public/apple-touch-icon-114x114-precomposed.png +0 -0
- data/public/apple-touch-icon-57x57-precomposed.png +0 -0
- data/public/apple-touch-icon-72x72-precomposed.png +0 -0
- data/public/apple-touch-icon-precomposed.png +0 -0
- data/public/apple-touch-icon.png +0 -0
- data/public/favicon.ico +0 -0
- data/script/javascripts +15 -0
- data/underoos.gemspec +29 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +138 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/prettify.js +28 -0
- metadata +246 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
%caption Table Caption
|
|
3
|
+
%thead
|
|
4
|
+
%tr
|
|
5
|
+
%th
|
|
6
|
+
%a(href="#") #
|
|
7
|
+
%th Table Header
|
|
8
|
+
%th
|
|
9
|
+
%a.ascending(href="#") Ascending <span class="caret"></span>
|
|
10
|
+
%th
|
|
11
|
+
%a.descending(href="#") Descending <span class="caret north"></span>
|
|
12
|
+
%tfoot
|
|
13
|
+
%tr
|
|
14
|
+
%td(colspan="4") The table footer appears at the bottom of the table. Set the <code>colspan</code> attribute to span the width of the table.
|
|
15
|
+
%tbody
|
|
16
|
+
%tr
|
|
17
|
+
%td 1
|
|
18
|
+
%td Table Data
|
|
19
|
+
%td One
|
|
20
|
+
%td Three
|
|
21
|
+
%tr
|
|
22
|
+
%td 2
|
|
23
|
+
%td
|
|
24
|
+
%a(href="#") Click me!
|
|
25
|
+
%td Two
|
|
26
|
+
%td Two
|
|
27
|
+
%tr
|
|
28
|
+
%td 3
|
|
29
|
+
%td
|
|
30
|
+
%a(href="#") Click me!
|
|
31
|
+
%td Three
|
|
32
|
+
%td One
|
|
33
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
|
|
2
|
+
%section.sg-tranny-demo
|
|
3
|
+
%table.box.vborder.banded.thead-decorate
|
|
4
|
+
%thead
|
|
5
|
+
%tr
|
|
6
|
+
%th Property
|
|
7
|
+
%th Example
|
|
8
|
+
%tbody
|
|
9
|
+
%tr
|
|
10
|
+
%td.prop
|
|
11
|
+
%code default (linear)
|
|
12
|
+
%td
|
|
13
|
+
.sg-swatch
|
|
14
|
+
%tr
|
|
15
|
+
%td.prop
|
|
16
|
+
%code $ease-in-quad
|
|
17
|
+
%td
|
|
18
|
+
.sg-swatch.ease-in-quad
|
|
19
|
+
%tr
|
|
20
|
+
%td.prop
|
|
21
|
+
%code $ease-in-cubic
|
|
22
|
+
%td
|
|
23
|
+
.sg-swatch.ease-in-cubic
|
|
24
|
+
%tr
|
|
25
|
+
%td.prop
|
|
26
|
+
%code $ease-in-quart
|
|
27
|
+
%td
|
|
28
|
+
.sg-swatch.ease-in-quart
|
|
29
|
+
%tr
|
|
30
|
+
%td.prop
|
|
31
|
+
%code $ease-in-quint
|
|
32
|
+
%td
|
|
33
|
+
.sg-swatch.ease-in-quint
|
|
34
|
+
%tr
|
|
35
|
+
%td.prop
|
|
36
|
+
%code $ease-in-sine
|
|
37
|
+
%td
|
|
38
|
+
.sg-swatch.ease-in-sine
|
|
39
|
+
%tr
|
|
40
|
+
%td.prop
|
|
41
|
+
%code $ease-in-expo
|
|
42
|
+
%td
|
|
43
|
+
.sg-swatch.ease-in-expo
|
|
44
|
+
%tr
|
|
45
|
+
%td.prop
|
|
46
|
+
%code $ease-in-circ
|
|
47
|
+
%td
|
|
48
|
+
.sg-swatch.ease-in-circ
|
|
49
|
+
%tr
|
|
50
|
+
%td.prop
|
|
51
|
+
%code $ease-in-back
|
|
52
|
+
%td
|
|
53
|
+
.sg-swatch.ease-in-back
|
|
54
|
+
|
|
55
|
+
%tr
|
|
56
|
+
%td.prop
|
|
57
|
+
%code $ease-out-quad
|
|
58
|
+
%td
|
|
59
|
+
.sg-swatch.ease-out-quad
|
|
60
|
+
%tr
|
|
61
|
+
%td.prop
|
|
62
|
+
%code $ease-out-cubic
|
|
63
|
+
%td
|
|
64
|
+
.sg-swatch.ease-out-cubic
|
|
65
|
+
%tr
|
|
66
|
+
%td.prop
|
|
67
|
+
%code $ease-out-quart
|
|
68
|
+
%td
|
|
69
|
+
.sg-swatch.ease-out-quart
|
|
70
|
+
%tr
|
|
71
|
+
%td.prop
|
|
72
|
+
%code $ease-out-quint
|
|
73
|
+
%td
|
|
74
|
+
.sg-swatch.ease-out-quint
|
|
75
|
+
%tr
|
|
76
|
+
%td.prop
|
|
77
|
+
%code $ease-out-sine
|
|
78
|
+
%td
|
|
79
|
+
.sg-swatch.ease-out-sine
|
|
80
|
+
%tr
|
|
81
|
+
%td.prop
|
|
82
|
+
%code $ease-out-expo
|
|
83
|
+
%td
|
|
84
|
+
.sg-swatch.ease-out-expo
|
|
85
|
+
%tr
|
|
86
|
+
%td.prop
|
|
87
|
+
%code $ease-out-circ
|
|
88
|
+
%td
|
|
89
|
+
.sg-swatch.ease-out-circ
|
|
90
|
+
%tr
|
|
91
|
+
%td.prop
|
|
92
|
+
%code $ease-out-back
|
|
93
|
+
%td
|
|
94
|
+
.sg-swatch.ease-out-back
|
|
95
|
+
|
|
96
|
+
%tr
|
|
97
|
+
%td.prop
|
|
98
|
+
%code $ease-in-out-quad
|
|
99
|
+
%td
|
|
100
|
+
.sg-swatch.ease-in-out-quad
|
|
101
|
+
%tr
|
|
102
|
+
%td.prop
|
|
103
|
+
%code $ease-in-out-cubic
|
|
104
|
+
%td
|
|
105
|
+
.sg-swatch.ease-in-out-cubic
|
|
106
|
+
%tr
|
|
107
|
+
%td.prop
|
|
108
|
+
%code $ease-in-out-quart
|
|
109
|
+
%td
|
|
110
|
+
.sg-swatch.ease-in-out-quart
|
|
111
|
+
%tr
|
|
112
|
+
%td.prop
|
|
113
|
+
%code $ease-in-out-quint
|
|
114
|
+
%td
|
|
115
|
+
.sg-swatch.ease-in-out-quint
|
|
116
|
+
%tr
|
|
117
|
+
%td.prop
|
|
118
|
+
%code $ease-in-out-sine
|
|
119
|
+
%td
|
|
120
|
+
.sg-swatch.ease-in-out-sine
|
|
121
|
+
%tr
|
|
122
|
+
%td.prop
|
|
123
|
+
%code $ease-in-out-expo
|
|
124
|
+
%td
|
|
125
|
+
.sg-swatch.ease-in-out-expo
|
|
126
|
+
%tr
|
|
127
|
+
%td.prop
|
|
128
|
+
%code $ease-in-out-circ
|
|
129
|
+
%td
|
|
130
|
+
.sg-swatch.ease-in-out-circ
|
|
131
|
+
%tr
|
|
132
|
+
%td.prop
|
|
133
|
+
%code $ease-in-out-back
|
|
134
|
+
%td
|
|
135
|
+
.sg-swatch.ease-in-out-back
|
|
136
|
+
|
data/config.ru
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')
|
|
2
|
+
|
|
3
|
+
require 'rubygems'
|
|
4
|
+
require 'bundler/setup'
|
|
5
|
+
require 'underoos'
|
|
6
|
+
|
|
7
|
+
require 'action_controller/railtie'
|
|
8
|
+
require 'sass-rails'
|
|
9
|
+
require 'sprockets/railtie'
|
|
10
|
+
require 'haml-rails'
|
|
11
|
+
require 'jquery-rails'
|
|
12
|
+
|
|
13
|
+
# Set up a dummy app for development
|
|
14
|
+
class Underoos::Application < Rails::Application
|
|
15
|
+
|
|
16
|
+
config.session_store :cookie_store, :key => '_underoos_session'
|
|
17
|
+
config.secret_token = '1319d8ccf1b9bfbdefcb6aa380aadkasdjlkajdlajd044ce'
|
|
18
|
+
|
|
19
|
+
config.encoding = 'utf-8'
|
|
20
|
+
config.assets.enabled = true
|
|
21
|
+
config.assets.compress = false
|
|
22
|
+
config.assets.debug = true
|
|
23
|
+
config.assets.version = '1.2'
|
|
24
|
+
config.assets.compile = true
|
|
25
|
+
config.serve_static_assets = true
|
|
26
|
+
config.assets.prefix = 'assets'
|
|
27
|
+
config.assets.digest = false
|
|
28
|
+
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
Underoos::Application.initialize!
|
|
32
|
+
|
|
33
|
+
Underoos::Application.routes.draw do
|
|
34
|
+
match '/' => redirect('/styleguide')
|
|
35
|
+
mount Underoos::Engine => "/styleguide"
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
run Underoos::Application
|
data/config/routes.rb
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@announce @announce-stderr
|
|
2
|
+
Feature: Generating the Underoos SASS files into an app
|
|
3
|
+
|
|
4
|
+
Scenario: Copying the Sass files into a target app
|
|
5
|
+
Given I successfully run `bundle exec rails new testapp --skip-bundle`
|
|
6
|
+
And I cd to "testapp"
|
|
7
|
+
And I add Underoos as a gem dependency
|
|
8
|
+
And I run `bundle install --local`
|
|
9
|
+
When I successfully run `bundle exec rails generate underoos:assets --trace`
|
|
10
|
+
Then the following files should exist:
|
|
11
|
+
| app/assets/javascripts/underoos.js |
|
|
12
|
+
| app/assets/stylesheets/underoos.sass |
|
|
13
|
+
| app/assets/stylesheets/base/_button-btn-mixin.sass |
|
|
14
|
+
| app/assets/stylesheets/base/_elements.sass |
|
|
15
|
+
| app/assets/stylesheets/base/_forms.sass |
|
|
16
|
+
| app/assets/stylesheets/base/_helpers.sass |
|
|
17
|
+
| app/assets/stylesheets/base/_normalize.sass |
|
|
18
|
+
| app/assets/stylesheets/base/_scaffold.sass |
|
|
19
|
+
| app/assets/stylesheets/base/_tables.sass |
|
|
20
|
+
| app/assets/stylesheets/base/_transitions.sass |
|
|
21
|
+
| app/assets/stylesheets/base/_typography.sass |
|
|
22
|
+
| app/assets/stylesheets/components/_accordions.sass |
|
|
23
|
+
| app/assets/stylesheets/components/_breadcrumbs.sass |
|
|
24
|
+
| app/assets/stylesheets/components/_button-groups.sass |
|
|
25
|
+
| app/assets/stylesheets/components/_carets.sass |
|
|
26
|
+
| app/assets/stylesheets/components/_carousels.sass |
|
|
27
|
+
| app/assets/stylesheets/components/_close.sass |
|
|
28
|
+
| app/assets/stylesheets/components/_decals.sass |
|
|
29
|
+
| app/assets/stylesheets/components/_dropdowns.sass |
|
|
30
|
+
| app/assets/stylesheets/components/_media.sass |
|
|
31
|
+
| app/assets/stylesheets/components/_modals.sass |
|
|
32
|
+
| app/assets/stylesheets/components/_nav-lists.sass |
|
|
33
|
+
| app/assets/stylesheets/components/_navbars.sass |
|
|
34
|
+
| app/assets/stylesheets/components/_notifications.sass |
|
|
35
|
+
| app/assets/stylesheets/components/_paddles.sass |
|
|
36
|
+
| app/assets/stylesheets/components/_pagination.sass |
|
|
37
|
+
| app/assets/stylesheets/components/_pills.sass |
|
|
38
|
+
| app/assets/stylesheets/components/_popovers.sass |
|
|
39
|
+
| app/assets/stylesheets/components/_progress-bars.sass |
|
|
40
|
+
| app/assets/stylesheets/components/_tabs.sass |
|
|
41
|
+
| app/assets/stylesheets/components/_tooltips.sass |
|
|
42
|
+
| app/assets/stylesheets/components/_wells.sass |
|
|
43
|
+
| app/assets/stylesheets/layouts/_containers.sass |
|
|
44
|
+
| app/assets/stylesheets/layouts/_print.sass |
|
|
45
|
+
| app/assets/stylesheets/layouts/_queries.sass |
|
|
46
|
+
| app/assets/stylesheets/layouts/_upgrades.sass |
|
|
47
|
+
| app/assets/stylesheets/mixins/_arrows.sass |
|
|
48
|
+
| app/assets/stylesheets/mixins/_clearfixins.sass |
|
|
49
|
+
| app/assets/stylesheets/mixins/_coloring.sass |
|
|
50
|
+
| app/assets/stylesheets/mixins/_columns.sass |
|
|
51
|
+
| app/assets/stylesheets/mixins/_conversions.sass |
|
|
52
|
+
| app/assets/stylesheets/mixins/_font-size.sass |
|
|
53
|
+
| app/assets/stylesheets/mixins/_image-tools.sass |
|
|
54
|
+
| app/assets/stylesheets/mixins/_ir.sass |
|
|
55
|
+
| app/assets/stylesheets/mixins/_mixins.sass |
|
|
56
|
+
| app/assets/stylesheets/mixins/_tab-focus.sass |
|
|
57
|
+
| app/assets/stylesheets/mixins/_timing-equations.sass |
|
|
58
|
+
| app/assets/stylesheets/mixins/_visibility.sass |
|
|
59
|
+
| app/assets/stylesheets/polyfills/_box-shadow.sass |
|
|
60
|
+
| app/assets/stylesheets/polyfills/_box-sizing.sass |
|
|
61
|
+
| app/assets/stylesheets/polyfills/_functions.sass |
|
|
62
|
+
| app/assets/stylesheets/polyfills/_inline-block.sass |
|
|
63
|
+
| app/assets/stylesheets/polyfills/_opacity.sass |
|
|
64
|
+
| app/assets/stylesheets/polyfills/_polyfills.sass |
|
|
65
|
+
| app/assets/stylesheets/polyfills/_transition.sass |
|
|
66
|
+
| app/assets/stylesheets/polyfills/_user-select.sass |
|
|
67
|
+
| app/assets/stylesheets/themes/_default.sass |
|
|
68
|
+
| vendor/assets/javascripts/bootstrap-alert.js |
|
|
69
|
+
| vendor/assets/javascripts/bootstrap-button.js |
|
|
70
|
+
| vendor/assets/javascripts/bootstrap-collapse.js |
|
|
71
|
+
| vendor/assets/javascripts/bootstrap-dropdown.js |
|
|
72
|
+
| vendor/assets/javascripts/bootstrap-modal.js |
|
|
73
|
+
| vendor/assets/javascripts/bootstrap-popover.js |
|
|
74
|
+
| vendor/assets/javascripts/bootstrap-scrollspy.js |
|
|
75
|
+
| vendor/assets/javascripts/bootstrap-tab.js |
|
|
76
|
+
| vendor/assets/javascripts/bootstrap-tooltip.js |
|
|
77
|
+
| vendor/assets/javascripts/bootstrap-transition.js |
|
|
78
|
+
| vendor/assets/javascripts/bootstrap-typeahead.js |
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
class Underoos::AssetsGenerator < Rails::Generators::Base
|
|
2
|
+
|
|
3
|
+
source_root File.expand_path("../../../../", __FILE__)
|
|
4
|
+
|
|
5
|
+
def copy_underoos_js_assets
|
|
6
|
+
copy_file 'app/assets/javascripts/underoos.js', 'app/assets/javascripts/underoos.js'
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def copy_vendored_js_assets
|
|
10
|
+
copy_file 'vendor/assets/javascripts/bootstrap-alert.js'
|
|
11
|
+
copy_file 'vendor/assets/javascripts/bootstrap-button.js'
|
|
12
|
+
copy_file 'vendor/assets/javascripts/bootstrap-collapse.js'
|
|
13
|
+
copy_file 'vendor/assets/javascripts/bootstrap-dropdown.js'
|
|
14
|
+
copy_file 'vendor/assets/javascripts/bootstrap-modal.js'
|
|
15
|
+
copy_file 'vendor/assets/javascripts/bootstrap-popover.js'
|
|
16
|
+
copy_file 'vendor/assets/javascripts/bootstrap-scrollspy.js'
|
|
17
|
+
copy_file 'vendor/assets/javascripts/bootstrap-tab.js'
|
|
18
|
+
copy_file 'vendor/assets/javascripts/bootstrap-tooltip.js'
|
|
19
|
+
copy_file 'vendor/assets/javascripts/bootstrap-transition.js'
|
|
20
|
+
copy_file 'vendor/assets/javascripts/bootstrap-typeahead.js'
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def copy_undeross_stylesheets
|
|
24
|
+
copy_file 'app/assets/stylesheets/underoos.sass'
|
|
25
|
+
directory 'app/assets/stylesheets/base'
|
|
26
|
+
directory 'app/assets/stylesheets/components'
|
|
27
|
+
directory 'app/assets/stylesheets/layouts'
|
|
28
|
+
directory 'app/assets/stylesheets/mixins'
|
|
29
|
+
directory 'app/assets/stylesheets/polyfills'
|
|
30
|
+
directory 'app/assets/stylesheets/themes'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
data/lib/underoos.rb
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/public/favicon.ico
ADDED
|
Binary file
|
data/script/javascripts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-transition.js http://twitter.github.com/bootstrap/assets/js/bootstrap-transition.js
|
|
3
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-scrollspy.js http://twitter.github.com/bootstrap/assets/js/bootstrap-scrollspy.js
|
|
4
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-tooltip.js http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js
|
|
5
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-popover.js http://twitter.github.com/bootstrap/assets/js/bootstrap-popover.js
|
|
6
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-dropdown.js http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js
|
|
7
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-modal.js http://twitter.github.com/bootstrap/assets/js/bootstrap-modal.js
|
|
8
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-alert.js http://twitter.github.com/bootstrap/assets/js/bootstrap-alert.js
|
|
9
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-button.js http://twitter.github.com/bootstrap/assets/js/bootstrap-button.js
|
|
10
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-tab.js http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js
|
|
11
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-collapse.js http://twitter.github.com/bootstrap/assets/js/bootstrap-collapse.js
|
|
12
|
+
curl -L -o ./vendor/assets/javascripts/bootstrap-typeahead.js http://twitter.github.com/bootstrap/assets/js/bootstrap-typeahead.js
|
|
13
|
+
|
|
14
|
+
echo Not Updated: jquery, prettify.js
|
|
15
|
+
|
data/underoos.gemspec
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
+
require "underoos/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = "underoos"
|
|
7
|
+
s.version = Underoos::VERSION
|
|
8
|
+
s.authors = ["Matthew Kitt"]
|
|
9
|
+
s.email = ["matt.kitt@modeset.com"]
|
|
10
|
+
s.homepage = "http://underoos.modeset.com/"
|
|
11
|
+
s.summary = %q{Starter styles in Sass}
|
|
12
|
+
s.description = %q{Starter styles in Sass}
|
|
13
|
+
|
|
14
|
+
s.rubyforge_project = "underoos"
|
|
15
|
+
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
|
+
s.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
s.add_runtime_dependency 'rails', '>= 3.1.0'
|
|
22
|
+
s.add_runtime_dependency 'sass-rails'
|
|
23
|
+
s.add_runtime_dependency 'haml-rails'
|
|
24
|
+
|
|
25
|
+
s.add_development_dependency 'cucumber'
|
|
26
|
+
s.add_development_dependency 'aruba'
|
|
27
|
+
s.add_development_dependency 'jquery-rails'
|
|
28
|
+
|
|
29
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* ==========================================================
|
|
2
|
+
* bootstrap-alert.js v2.0.2
|
|
3
|
+
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
|
4
|
+
* ==========================================================
|
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
* ========================================================== */
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
!function( $ ){
|
|
22
|
+
|
|
23
|
+
"use strict"
|
|
24
|
+
|
|
25
|
+
/* ALERT CLASS DEFINITION
|
|
26
|
+
* ====================== */
|
|
27
|
+
|
|
28
|
+
var dismiss = '[data-dismiss="alert"]'
|
|
29
|
+
, Alert = function ( el ) {
|
|
30
|
+
$(el).on('click', dismiss, this.close)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
Alert.prototype = {
|
|
34
|
+
|
|
35
|
+
constructor: Alert
|
|
36
|
+
|
|
37
|
+
, close: function ( e ) {
|
|
38
|
+
var $this = $(this)
|
|
39
|
+
, selector = $this.attr('data-target')
|
|
40
|
+
, $parent
|
|
41
|
+
|
|
42
|
+
if (!selector) {
|
|
43
|
+
selector = $this.attr('href')
|
|
44
|
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$parent = $(selector)
|
|
48
|
+
$parent.trigger('close')
|
|
49
|
+
|
|
50
|
+
e && e.preventDefault()
|
|
51
|
+
|
|
52
|
+
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
|
53
|
+
|
|
54
|
+
$parent
|
|
55
|
+
.trigger('close')
|
|
56
|
+
.removeClass('in')
|
|
57
|
+
|
|
58
|
+
function removeElement() {
|
|
59
|
+
$parent
|
|
60
|
+
.trigger('closed')
|
|
61
|
+
.remove()
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
$.support.transition && $parent.hasClass('fade') ?
|
|
65
|
+
$parent.on($.support.transition.end, removeElement) :
|
|
66
|
+
removeElement()
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* ALERT PLUGIN DEFINITION
|
|
73
|
+
* ======================= */
|
|
74
|
+
|
|
75
|
+
$.fn.alert = function ( option ) {
|
|
76
|
+
return this.each(function () {
|
|
77
|
+
var $this = $(this)
|
|
78
|
+
, data = $this.data('alert')
|
|
79
|
+
if (!data) $this.data('alert', (data = new Alert(this)))
|
|
80
|
+
if (typeof option == 'string') data[option].call($this)
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
$.fn.alert.Constructor = Alert
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/* ALERT DATA-API
|
|
88
|
+
* ============== */
|
|
89
|
+
|
|
90
|
+
$(function () {
|
|
91
|
+
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
}( window.jQuery );
|