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.
Files changed (133) hide show
  1. data/.gitignore +8 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +5 -0
  4. data/Gemfile.lock +143 -0
  5. data/LICENSE +26 -0
  6. data/Procfile +1 -0
  7. data/README.md +13 -0
  8. data/Rakefile +12 -0
  9. data/app/assets/javascripts/styleguide.js +132 -0
  10. data/app/assets/javascripts/underoos.js +18 -0
  11. data/app/assets/stylesheets/base/_button-btn-mixin.sass +72 -0
  12. data/app/assets/stylesheets/base/_elements.sass +61 -0
  13. data/app/assets/stylesheets/base/_forms.sass +362 -0
  14. data/app/assets/stylesheets/base/_helpers.sass +54 -0
  15. data/app/assets/stylesheets/base/_normalize.sass +114 -0
  16. data/app/assets/stylesheets/base/_scaffold.sass +51 -0
  17. data/app/assets/stylesheets/base/_tables.sass +99 -0
  18. data/app/assets/stylesheets/base/_transitions.sass +17 -0
  19. data/app/assets/stylesheets/base/_typography.sass +185 -0
  20. data/app/assets/stylesheets/components/_accordions.sass +17 -0
  21. data/app/assets/stylesheets/components/_breadcrumbs.sass +22 -0
  22. data/app/assets/stylesheets/components/_button-groups.sass +46 -0
  23. data/app/assets/stylesheets/components/_carets.sass +24 -0
  24. data/app/assets/stylesheets/components/_carousels.sass +18 -0
  25. data/app/assets/stylesheets/components/_close.sass +25 -0
  26. data/app/assets/stylesheets/components/_decals.sass +27 -0
  27. data/app/assets/stylesheets/components/_dropdowns.sass +85 -0
  28. data/app/assets/stylesheets/components/_media.sass +33 -0
  29. data/app/assets/stylesheets/components/_modals.sass +28 -0
  30. data/app/assets/stylesheets/components/_nav-lists.sass +22 -0
  31. data/app/assets/stylesheets/components/_navbars.sass +105 -0
  32. data/app/assets/stylesheets/components/_notifications.sass +108 -0
  33. data/app/assets/stylesheets/components/_paddles.sass +34 -0
  34. data/app/assets/stylesheets/components/_pagination.sass +41 -0
  35. data/app/assets/stylesheets/components/_pills.sass +64 -0
  36. data/app/assets/stylesheets/components/_popovers.sass +55 -0
  37. data/app/assets/stylesheets/components/_progress-bars.sass +29 -0
  38. data/app/assets/stylesheets/components/_tabs.sass +93 -0
  39. data/app/assets/stylesheets/components/_tooltips.sass +46 -0
  40. data/app/assets/stylesheets/components/_wells.sass +16 -0
  41. data/app/assets/stylesheets/layouts/_containers.sass +15 -0
  42. data/app/assets/stylesheets/layouts/_print.sass +48 -0
  43. data/app/assets/stylesheets/layouts/_queries.sass +121 -0
  44. data/app/assets/stylesheets/layouts/_upgrades.sass +64 -0
  45. data/app/assets/stylesheets/mixins/_arrows.sass +40 -0
  46. data/app/assets/stylesheets/mixins/_clearfixins.sass +15 -0
  47. data/app/assets/stylesheets/mixins/_coloring.sass +6 -0
  48. data/app/assets/stylesheets/mixins/_columns.sass +19 -0
  49. data/app/assets/stylesheets/mixins/_conversions.sass +25 -0
  50. data/app/assets/stylesheets/mixins/_font-size.sass +6 -0
  51. data/app/assets/stylesheets/mixins/_image-tools.sass +13 -0
  52. data/app/assets/stylesheets/mixins/_ir.sass +9 -0
  53. data/app/assets/stylesheets/mixins/_mixins.sass +14 -0
  54. data/app/assets/stylesheets/mixins/_tab-focus.sass +7 -0
  55. data/app/assets/stylesheets/mixins/_timing-equations.sass +29 -0
  56. data/app/assets/stylesheets/mixins/_visibility.sass +43 -0
  57. data/app/assets/stylesheets/polyfills/_box-shadow.sass +7 -0
  58. data/app/assets/stylesheets/polyfills/_box-sizing.sass +8 -0
  59. data/app/assets/stylesheets/polyfills/_functions.sass +22 -0
  60. data/app/assets/stylesheets/polyfills/_inline-block.sass +8 -0
  61. data/app/assets/stylesheets/polyfills/_opacity.sass +6 -0
  62. data/app/assets/stylesheets/polyfills/_polyfills.sass +10 -0
  63. data/app/assets/stylesheets/polyfills/_transition.sass +9 -0
  64. data/app/assets/stylesheets/polyfills/_user-select.sass +8 -0
  65. data/app/assets/stylesheets/styleguide.sass +199 -0
  66. data/app/assets/stylesheets/themes/_default.sass +119 -0
  67. data/app/assets/stylesheets/underoos.sass +52 -0
  68. data/app/controllers/underoos/styleguides_controller.rb +79 -0
  69. data/app/views/shared/_upgrades.html.haml +12 -0
  70. data/app/views/underoos/styleguides/_assets.haml +42 -0
  71. data/app/views/underoos/styleguides/_components.haml +42 -0
  72. data/app/views/underoos/styleguides/_elements.haml +242 -0
  73. data/app/views/underoos/styleguides/_forms.haml +305 -0
  74. data/app/views/underoos/styleguides/_layouts.haml +76 -0
  75. data/app/views/underoos/styleguides/_palettes.haml +18 -0
  76. data/app/views/underoos/styleguides/_resources.haml +27 -0
  77. data/app/views/underoos/styleguides/_tables.haml +124 -0
  78. data/app/views/underoos/styleguides/_typography.haml +284 -0
  79. data/app/views/underoos/styleguides/_utilities.haml +270 -0
  80. data/app/views/underoos/styleguides/components/_accordions.haml +83 -0
  81. data/app/views/underoos/styleguides/components/_breadcrumbs.haml +42 -0
  82. data/app/views/underoos/styleguides/components/_button-groups.haml +162 -0
  83. data/app/views/underoos/styleguides/components/_carets.haml +28 -0
  84. data/app/views/underoos/styleguides/components/_close.haml +20 -0
  85. data/app/views/underoos/styleguides/components/_decals.haml +40 -0
  86. data/app/views/underoos/styleguides/components/_dropdowns.haml +189 -0
  87. data/app/views/underoos/styleguides/components/_media.haml +78 -0
  88. data/app/views/underoos/styleguides/components/_modals.haml +42 -0
  89. data/app/views/underoos/styleguides/components/_nav-lists.haml +52 -0
  90. data/app/views/underoos/styleguides/components/_navbars.haml +144 -0
  91. data/app/views/underoos/styleguides/components/_navs-showcase.haml +27 -0
  92. data/app/views/underoos/styleguides/components/_notifications.haml +169 -0
  93. data/app/views/underoos/styleguides/components/_paddles.haml +68 -0
  94. data/app/views/underoos/styleguides/components/_pagination.haml +64 -0
  95. data/app/views/underoos/styleguides/components/_popovers.haml +33 -0
  96. data/app/views/underoos/styleguides/components/_progress-bars.haml +72 -0
  97. data/app/views/underoos/styleguides/components/_tabs-pills.haml +241 -0
  98. data/app/views/underoos/styleguides/components/_tooltips.haml +37 -0
  99. data/app/views/underoos/styleguides/components/_wells.haml +29 -0
  100. data/app/views/underoos/styleguides/index.html.haml +259 -0
  101. data/app/views/underoos/styleguides/partials/_form-template.haml +171 -0
  102. data/app/views/underoos/styleguides/partials/_table-data.haml +33 -0
  103. data/app/views/underoos/styleguides/partials/_transitions.haml +136 -0
  104. data/config.ru +38 -0
  105. data/config/routes.rb +3 -0
  106. data/features/generator.feature +78 -0
  107. data/features/step_definitions/underoos_steps.rb +3 -0
  108. data/features/support/env.rb +9 -0
  109. data/lib/generators/underoos/assets_generator.rb +33 -0
  110. data/lib/underoos.rb +5 -0
  111. data/lib/underoos/engine.rb +8 -0
  112. data/lib/underoos/version.rb +3 -0
  113. data/public/apple-touch-icon-114x114-precomposed.png +0 -0
  114. data/public/apple-touch-icon-57x57-precomposed.png +0 -0
  115. data/public/apple-touch-icon-72x72-precomposed.png +0 -0
  116. data/public/apple-touch-icon-precomposed.png +0 -0
  117. data/public/apple-touch-icon.png +0 -0
  118. data/public/favicon.ico +0 -0
  119. data/script/javascripts +15 -0
  120. data/underoos.gemspec +29 -0
  121. data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
  122. data/vendor/assets/javascripts/bootstrap-button.js +100 -0
  123. data/vendor/assets/javascripts/bootstrap-collapse.js +138 -0
  124. data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
  125. data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
  126. data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
  127. data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
  128. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  129. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  130. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  131. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  132. data/vendor/assets/javascripts/prettify.js +28 -0
  133. metadata +246 -0
@@ -0,0 +1,114 @@
1
+
2
+ // Normalization based on:
3
+ // - [normalize.css](http://necolas.github.com/normalize.css/)
4
+ // - [HTML5 Boilerplate](http://html5boilerplate.com/)
5
+
6
+ // Resets based on:
7
+ // [Eric Meyer's reset](http://meyerweb.com/eric/tools/css/reset/)
8
+
9
+ // HTML 5 definitions and normalization
10
+ article, aside, details, figcaption, figure,
11
+ footer, header, hgroup, nav, section, summary
12
+ display: block
13
+ margin: 0
14
+ padding: 0
15
+
16
+ audio, canvas, video
17
+ margin: 0
18
+ padding: 0
19
+ display: inline-block
20
+ *display: inline
21
+ *zoom: 1
22
+
23
+ audio:not([controls])
24
+ display: none
25
+ height: 0
26
+
27
+ [hidden]
28
+ display: none
29
+
30
+ // Reset margins, paddings and borders
31
+ html, body, div, span, hr, img, iframe,
32
+ h1, h2, h3, h4, h5, h6, p, a, small, strong, em,
33
+ address, abbr, dfn, sub, sup, del, ins,
34
+ blockquote, q, cite, pre, code, kbd, samp,
35
+ dl, dt, dd, ol, ul, li,
36
+ fieldset, form, label, legend, button, input, select, textarea,
37
+ table, caption, tbody, tfoot, thead, tr, th, td,
38
+ time, mark
39
+ margin: 0
40
+ padding: 0
41
+
42
+ // All Typography normalization is found in _typography.sass
43
+ // All List normalization is found in _lists.sass
44
+
45
+ // Embedded content normalization
46
+ img
47
+ border: 0
48
+ -ms-interpolation-mode: bicubic
49
+
50
+ svg:not(:root)
51
+ overflow: hidden
52
+
53
+ .chromeframe
54
+ background: #ccc
55
+ color: #000
56
+ margin: 0.2em 0
57
+ padding: 0.2em 0
58
+
59
+ // Form normalization
60
+ button, input, select, textarea, label
61
+ font-size: 100%
62
+ vertical-align: baseline
63
+ *vertical-align: middle
64
+
65
+ legend
66
+ white-space: normal
67
+ *margin-left: -7px
68
+
69
+ button, input
70
+ line-height: normal
71
+
72
+ textarea
73
+ overflow: auto
74
+ vertical-align: top
75
+ resize: vertical
76
+
77
+ button::-moz-focus-inner,
78
+ input::-moz-focus-inner
79
+ border: 0
80
+ padding: 0
81
+
82
+ button,
83
+ input[type="button"],
84
+ input[type="reset"],
85
+ input[type="submit"]
86
+ cursor: pointer
87
+ line-height: normal
88
+ -webkit-appearance: button
89
+ *overflow: visible
90
+
91
+ button[disabled],
92
+ a.disabled,
93
+ li.disabled > a
94
+ cursor: default
95
+
96
+ input[type="checkbox"],
97
+ input[type="radio"]
98
+ +box-sizing(border-box)
99
+ cursor: pointer
100
+
101
+ input[type="search"]
102
+ +box-sizing(content-box)
103
+ -webkit-appearance: textfield
104
+
105
+ input[type="search"]::-webkit-search-decoration,
106
+ input[type="search"]::-webkit-search-cancel-button
107
+ -webkit-appearance: none
108
+
109
+ // Table normalization
110
+ table
111
+ border-collapse: collapse
112
+ border-spacing: 0
113
+ max-width: 100%
114
+
@@ -0,0 +1,51 @@
1
+
2
+ // Top level elements
3
+ html
4
+ font-size: 100%
5
+ overflow-y: scroll
6
+ -webkit-tap-highlight-color: rgba(0,0,0,0)
7
+ -webkit-font-smoothing: antialiased
8
+ -webkit-text-size-adjust: 100%
9
+ -ms-text-size-adjust: 100%
10
+
11
+ html, button, input, select, textarea
12
+ color: $body_color
13
+ font-family: $sans_norm
14
+
15
+ body
16
+ +font-size($base_font_size)
17
+ background: $body_bg
18
+ line-height: $base_line_height
19
+
20
+ @mixin text-selection
21
+ background: $select_bg
22
+ color: $select_color
23
+ text-shadow: none
24
+
25
+ \::-moz-selection
26
+ +text-selection
27
+
28
+ \::selection
29
+ +text-selection
30
+
31
+ // Links
32
+ a, a:visited
33
+ color: $link_normal
34
+ text-decoration: none
35
+
36
+ a:focus
37
+ outline: thin dotted
38
+
39
+ a:hover, a:active
40
+ outline: 0
41
+ text-decoration: none
42
+
43
+ a:hover
44
+ color: $link_hover
45
+
46
+ a:active, a.active, .active > a
47
+ color: $link_hover
48
+
49
+ a:link
50
+ -webkit-tap-highlight-color: $tap_highlight
51
+
@@ -0,0 +1,99 @@
1
+
2
+ // Tables
3
+ table
4
+ margin: 0.5em 0
5
+ width: 100%
6
+
7
+ caption
8
+ font-size: 0.85em
9
+ font-weight: bold
10
+ text-align: left
11
+ margin-bottom: .5em
12
+
13
+ th, td
14
+ border-top: 1px solid $component_border
15
+ line-height: 1
16
+ text-align: left
17
+ padding: 0.6em
18
+
19
+ th
20
+ font-weight: bold
21
+ vertical-align: bottom
22
+
23
+ thead:first-child tr th,
24
+ thead:first-child tr td
25
+ border-top: 0
26
+
27
+ tbody td > a:hover
28
+ text-decoration: underline
29
+
30
+ tfoot
31
+ font-size: 0.85em
32
+
33
+ tbody + tbody
34
+ border-top: 2px solid $component_border
35
+
36
+ th .ascending .caret
37
+ margin-top: 6px
38
+ th .descending .caret
39
+ margin-top: 2px
40
+
41
+ th .ascending:hover .caret
42
+ border-top-color: $link_hover
43
+
44
+ th .descending:hover .caret
45
+ border-bottom-color: $link_hover
46
+
47
+ // Outer box
48
+ table.box
49
+ thead tr
50
+ border: 1px solid $component_border
51
+ tbody tr
52
+ border: 1px solid $component_border
53
+ tfoot tr
54
+ border: 1px solid $component_border
55
+
56
+ thead th
57
+ &:first-child
58
+ border-left-color: $component_border !important
59
+ &:last-child
60
+ border-right-color: $component_border !important
61
+ tbody td
62
+ &:first-child
63
+ border-left-color: $component_border !important
64
+ &:last-child
65
+ border-right-color: $component_border !important
66
+
67
+ // Vertical borders
68
+ table.vborder
69
+ thead th
70
+ border-left: 1px solid $component_border
71
+ border-right: 1px solid $component_border
72
+ &:first-child
73
+ border-left-color: transparent
74
+ &:last-child
75
+ border-right-color: transparent
76
+
77
+ tbody td
78
+ border-left: 1px solid $component_border
79
+ border-right: 1px solid $component_border
80
+ &:first-child
81
+ border-left-color: transparent
82
+ &:last-child
83
+ border-right-color: transparent
84
+
85
+ // Banded table
86
+ table.banded tbody tr
87
+ &:nth-child(odd)
88
+ background-color: transparent
89
+ &:nth-child(even)
90
+ background-color: $component_bg_hover
91
+
92
+ // Colorize the table header background
93
+ table.thead-decorate thead
94
+ background-color: darken($component_bg_hover, 5%)
95
+
96
+ // Colorize the table footer background
97
+ table.tfoot-decorate tfoot
98
+ background-color: $off_white
99
+
@@ -0,0 +1,17 @@
1
+
2
+ // Show and hide behaviors
3
+ .fade
4
+ +transition(opacity $speed)
5
+ +opacity(0)
6
+ &.in
7
+ +opacity(1)
8
+
9
+ // Accordians
10
+ .collapse
11
+ +transition(height $speed $ease-in-out-quart)
12
+ position: relative
13
+ overflow: hidden
14
+ height: 0
15
+ &.in
16
+ height: auto
17
+
@@ -0,0 +1,185 @@
1
+
2
+ // ## Typography
3
+
4
+ // Heading Styles
5
+ h1, h2, h3, h4, h5, h6
6
+ color: $header_color
7
+ line-height: 1
8
+ margin-bottom: 0.1em
9
+
10
+ h1
11
+ +font-size(36)
12
+
13
+ h2
14
+ +font-size(30)
15
+
16
+ h3
17
+ +font-size(24)
18
+
19
+ h4
20
+ +font-size(20)
21
+
22
+ h5
23
+ +font-size(18)
24
+
25
+ h6
26
+ +font-size(18)
27
+ font-style: italic
28
+
29
+ // Paragraph Styles
30
+ p
31
+ font-style: normal
32
+ p a:hover
33
+ text-decoration: underline
34
+
35
+ small
36
+ font-size: 85%
37
+
38
+ b, strong
39
+ font-style: bold
40
+
41
+ sub, sup
42
+ font-size: 75%
43
+ line-height: 0
44
+ position: relative
45
+ vertical-align: baseline
46
+
47
+ sup
48
+ top: -0.5em
49
+
50
+ sub
51
+ bottom: -0.25em
52
+
53
+ address
54
+ font-style: normal
55
+
56
+ abbr, dfn
57
+ border-bottom: 1px dotted
58
+ cursor: help
59
+ font-size: 90%
60
+ font-style: normal
61
+ text-transform: uppercase
62
+
63
+ // Code
64
+ pre, code, kbd, samp
65
+ font-family: $code_norm
66
+ _font-family: "courier new", monospace
67
+
68
+ code, kbd, samp
69
+ background: $off_white
70
+ border: 1px solid lighten($component_border, 10%)
71
+ font-size: 85%
72
+ padding: 0 0.3em
73
+
74
+ code
75
+ color: $red
76
+
77
+ pre
78
+ background: $off_white
79
+ border: 1px solid $component_border
80
+ margin: 1em 0
81
+ padding: 0.75em
82
+ font-size: 85%
83
+ text-shadow: 0 1px 0 $white
84
+ white-space: pre
85
+ white-space: pre-wrap
86
+ word-wrap: break-word
87
+ overflow: hidden
88
+
89
+ pre code
90
+ padding: 0
91
+ border: 0
92
+ background: transparent
93
+
94
+ // .pln, .pun, .opn, .clo => color: body_color
95
+ pre.prettyprint
96
+ .com
97
+ color: #93a1a1
98
+ .lit
99
+ color: #195f91
100
+ .fun
101
+ color: #cb4b15
102
+ .kwd, .tag
103
+ color: #258ad2
104
+ .str, .atv
105
+ color: #859900
106
+ .atn, .type, .dec, .var
107
+ color: #d33682
108
+
109
+ // Blockquotes
110
+ blockquote
111
+ font-family: $serif_norm
112
+ margin: 1em
113
+ padding: 0 10%
114
+
115
+ blockquote p
116
+ +font-size(16)
117
+ font-style: italic
118
+
119
+ blockquote small
120
+ display: block
121
+ margin-top: 0.75em
122
+ &:before
123
+ content: '\2014 \00A0'
124
+
125
+ blockquote cite
126
+ border-bottom: 1px dotted
127
+ cursor: help
128
+ font-style: normal
129
+
130
+ q:before, q:after,
131
+ blockquote:before,
132
+ blockquote:after
133
+ content: ""
134
+
135
+
136
+ // Misc
137
+ hr
138
+ display: block
139
+ height: 1px
140
+ border: 0
141
+ border-top: 1px solid $hr_color
142
+ margin: 1em 0
143
+ &.dotted
144
+ border-top-style: dotted
145
+ &.dashed
146
+ border-top-style: dashed
147
+
148
+ mark
149
+ background: $yellow
150
+ padding: 0 0.3em
151
+
152
+ // LISTS
153
+
154
+ // Ordered and Unordered Lists
155
+ ul
156
+ list-style: square inside
157
+
158
+ ol
159
+ list-style: decimal inside
160
+
161
+ ul li, ol li
162
+ margin-left: 0.25em
163
+
164
+ ul ul li, ul ol li,
165
+ ol ul li, ol ol li
166
+ margin-left: 1.5em
167
+
168
+ // Navigation and unstyled Lists
169
+ nav ul, nav ol, ul.unstyled, ol.unstyled
170
+ list-style: none
171
+ list-style-image: none
172
+ ul li, ol li, li
173
+ margin-left: 0
174
+ padding: 0
175
+
176
+ // Definition Lists
177
+ dl dt
178
+ font-weight: bold
179
+ margin-top: 0.5em
180
+ &:after
181
+ content: ":"
182
+
183
+ dl dd
184
+ font-weight: normal
185
+