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,17 @@
1
+
2
+ // Typically the `li`
3
+ .accordion-group
4
+ border: 1px solid $component_border
5
+ border-radius: $radii
6
+ margin-bottom: 2px
7
+
8
+ // The button and always visible text
9
+ .accordion-toggle
10
+ display: block
11
+ padding: 0.75em 1em
12
+
13
+ // The body of the text that is collapsed (must be nested in a `.collapse` container
14
+ .accordion-inner
15
+ border-top: 1px solid $component_border
16
+ padding: 0.75em 1em
17
+
@@ -0,0 +1,22 @@
1
+
2
+ .breadcrumb > li
3
+ +inline-block
4
+ color: $component_normal
5
+ font-weight: bold
6
+ &:after
7
+ content: " /"
8
+ &:last-child:after
9
+ content: ""
10
+
11
+ .breadcrumb > li > a
12
+ display: inline
13
+ color: $link_normal
14
+
15
+ .breadcrumb > li > a:hover,
16
+ .breadcrumb > li > a:active
17
+ color: $link_hover
18
+
19
+ .breadcrumb > .active > a,
20
+ .breadcrumb > .active > a:hover
21
+ color: $component_normal
22
+
@@ -0,0 +1,46 @@
1
+
2
+ // Settings for button groups and toolbars
3
+ .button-group
4
+ +clearfixer
5
+ +box-sizing(border-box)
6
+ position: relative
7
+
8
+ .button-group + .button-group
9
+ margin-left: 0.5em
10
+
11
+ .button-toolbar .button-group
12
+ +inline-block
13
+
14
+ .button-group .dropdown-toggle:active,
15
+ .button-group.open .dropdown-toggle
16
+ outline: 0
17
+
18
+ // Inherits from .dropdown.open .dropdown-menu
19
+ .button-group.open .dropdown-menu
20
+ margin-top: 1px
21
+
22
+ // Overrides and settings specific for the `.btn` class
23
+ .button-group .btn
24
+ border-radius: 0
25
+ float: left
26
+ margin-left: -1px
27
+ position: relative
28
+
29
+ .button-group .btn:first-child
30
+ border-top-left-radius: $radii
31
+ border-bottom-left-radius: $radii
32
+
33
+ .button-group .btn:last-child,
34
+ .button-group .dropdown-toggle
35
+ border-top-right-radius: $radii
36
+ border-bottom-right-radius: $radii
37
+
38
+ .button-group .btn:hover,
39
+ .button-group .btn:focus,
40
+ .button-group .btn:active,
41
+ .button-group .btn.active
42
+ z-index: 2
43
+
44
+ .button-group.open .btn.dropdown-toggle
45
+ +box-shadow($inset_dark)
46
+
@@ -0,0 +1,24 @@
1
+
2
+ .caret
3
+ +inline-block
4
+ border-width: 4px
5
+ border-style: solid
6
+ border-color: $link_normal transparent transparent transparent
7
+ content: "\2193"
8
+ text-indent: -999em
9
+ width: 0
10
+ height: 0
11
+ vertical-align: top
12
+ &.north
13
+ border-color: transparent transparent $link_normal transparent
14
+ &.south
15
+ border-color: $link_normal transparent transparent transparent
16
+ &.east
17
+ border-color: transparent transparent transparent $link_normal
18
+ &.west
19
+ border-width: 5px
20
+ border-color: transparent $link_normal transparent transparent
21
+ margin-left: -5px
22
+ &.split
23
+ margin-left: 0
24
+
@@ -0,0 +1,18 @@
1
+
2
+ .carousel
3
+ +clearfixer
4
+
5
+ .carousel-container
6
+ overflow: hidden
7
+ width: 100%
8
+
9
+ .carousel-inner
10
+ -webkit-transform: translateZ(0)
11
+ +transition(all $speed $ease-in-out-quart)
12
+ width: 1000%
13
+
14
+ .carousel .carousel-panel
15
+ +box-sizing(border-box)
16
+ float: left
17
+ width: 10%
18
+
@@ -0,0 +1,25 @@
1
+
2
+ // The "x" close button used in messaging systems.
3
+ // In your markup use `×` for the content
4
+ .close
5
+ +font-size(20)
6
+ +opacity(0.3)
7
+ float: right
8
+ cursor: pointer
9
+ color: $black
10
+ font-weight: bold
11
+ line-height: 1
12
+ text-shadow: $text_drop_lite
13
+ text-decoration: none !important
14
+ &:visited, &:hover, &:active
15
+ color: $black
16
+ &:hover, &:active
17
+ +opacity(0.5)
18
+
19
+ // The alternative is reversed white on black
20
+ .close.alt
21
+ color: $white
22
+ text-shadow: $text_drop_dark
23
+ &:visited, &:hover, &:active
24
+ color: $white
25
+
@@ -0,0 +1,27 @@
1
+
2
+ .decal
3
+ background-color: $standard
4
+ border-radius: $radii
5
+ font-size: 85%
6
+ font-weight: bold
7
+ text-transform: uppercase
8
+ padding: 0.125em 0.5em
9
+ &.info, &.important, &.success,
10
+ &.warning, &.danger, &.primary
11
+ color: $white
12
+ &.info
13
+ background-color: $info
14
+ &.important
15
+ background-color: $important
16
+ &.success
17
+ background-color: $success
18
+ &.warning
19
+ background-color: $warning
20
+ &.danger
21
+ background-color: $danger
22
+ &.primary
23
+ background-color: $primary
24
+
25
+ a.decal:hover
26
+ text-decoration: none
27
+
@@ -0,0 +1,85 @@
1
+
2
+ .dropdown
3
+ position: relative
4
+
5
+ .dropdown-toggle:active,
6
+ .dropdown.open .dropdown-toggle
7
+ outline: 0
8
+
9
+ .dropdown .caret
10
+ margin: 0.5em 0 0 0.5em
11
+
12
+ .dropdown:hover .caret,
13
+ .dropdown.open .caret
14
+ border-top-color: $link_hover
15
+
16
+ // To get IE7 support, comment out +visuallyhidden and uncomment display:none
17
+ .dropdown-menu
18
+ +visuallyhidden
19
+ // display: none
20
+ +box-shadow($drop_dark)
21
+ background-clip: padding-box
22
+ background-color: $body_bg
23
+ border-radius: 0 0 $radii $radii
24
+ list-style: none
25
+ float: left
26
+ top: 100%
27
+ left: 0
28
+ min-width: 160px
29
+ z-index: $zindex_dropdown
30
+ &.drop-up
31
+ border-radius: $radii
32
+ top: auto
33
+ bottom: 100%
34
+
35
+ .dropdown-menu li > a
36
+ color: $component_normal
37
+ display: block
38
+ padding: 0.3em 1em
39
+ clear: both
40
+ white-space: nowrap
41
+
42
+ .dropdown-menu li > a:hover,
43
+ .dropdown-menu .active > a,
44
+ .dropdown-menu .active > a:hover
45
+ color: $component_active
46
+ background-color: $component_bg_active
47
+
48
+ .dropdown-menu li > a:active,
49
+ .dropdown-menu .active > a,
50
+ .dropdown-menu .active > a:hover
51
+ +box-shadow($inset_dark)
52
+
53
+ // Kinda like an hr
54
+ .dropdown-menu .divider
55
+ background-color: $component_border
56
+ border-bottom: 1px solid lighten($component_border, 15%)
57
+ margin: 0.3em 1px
58
+ height: 1px
59
+ overflow: hidden
60
+
61
+ // Open state for the dropdown
62
+ .dropdown.open .dropdown-toggle
63
+ color: $link_hover
64
+
65
+
66
+ .dropdown.open .dropdown-menu,
67
+ .typeahead.dropdown-menu,
68
+ .button-group.open .dropdown-menu
69
+ +visuallyshown
70
+ display: block
71
+ position: absolute
72
+ clip: initial
73
+ border: 1px solid $component_border
74
+ padding: 0.3em 0
75
+ &.drop-up
76
+ margin-bottom: 2px
77
+
78
+ .typeahead.dropdown-menu
79
+ display: none
80
+
81
+ // Redeclare for specificity purposes
82
+ .pull-right .dropdown-menu
83
+ left: auto
84
+ right: 0
85
+
@@ -0,0 +1,33 @@
1
+
2
+ .media-grid
3
+ +box-sizing(border-box)
4
+ +clearfixer
5
+ list-style: none
6
+
7
+ .media-grid > li
8
+ +box-sizing(border-box)
9
+ float: left
10
+ margin-bottom: 1em
11
+
12
+ .media-item
13
+ +box-sizing(border-box)
14
+ +box-shadow($drop_dark)
15
+ border: 1px solid $component_border
16
+ border-radius: $radii
17
+ display: block
18
+ line-height: 1
19
+ padding: 0.3em
20
+
21
+ a.media-item:hover
22
+ +box-shadow($focus_glow)
23
+ border-color: $blue
24
+
25
+ .media-item > img
26
+ display: block
27
+ margin-left: auto
28
+ margin-right: auto
29
+ max-width: 100%
30
+
31
+ .media-item .caption
32
+ padding: 1em
33
+
@@ -0,0 +1,28 @@
1
+
2
+ .modal-backdrop
3
+ +transition(opacity $speed)
4
+ background-color: $body_bg
5
+ position: fixed
6
+ top: 0
7
+ left: 0
8
+ right: 0
9
+ bottom: 0
10
+ z-index: $zindex_modal_backdrop
11
+ &.fade
12
+ +opacity(0)
13
+
14
+ .modal-backdrop, .modal-backdrop.fade.in
15
+ +opacity(0.8)
16
+
17
+ .modal
18
+ +box-sizing(border-box)
19
+ display: none
20
+ overflow: auto
21
+ position: fixed
22
+ top: 50%
23
+ left: 50%
24
+ width: 560px
25
+ max-height: 500px
26
+ margin: -250px 0 0 -280px
27
+ z-index: $zindex_modal
28
+
@@ -0,0 +1,22 @@
1
+
2
+ // Nav List
3
+ .nav-list > li > a
4
+ border-radius: $radii
5
+
6
+ .nav-list .active > a,
7
+ .nav-list li > a:active
8
+ +box-shadow($inset_dark)
9
+
10
+ .nav-list > li > a
11
+ text-shadow: $text_drop_lite
12
+ padding: 0.4em 1em
13
+
14
+ .nav-list > li > a:hover
15
+ background-color: $component_bg_hover
16
+
17
+ .nav-list .active > a,
18
+ .nav-list .active > a:hover
19
+ background-color: $component_bg_active
20
+ color: $component_active
21
+ text-shadow: $text_inset_dark
22
+
@@ -0,0 +1,105 @@
1
+
2
+ .navbar
3
+ overflow: visible
4
+
5
+ .navbar-inner
6
+ +box-shadow($drop_dark)
7
+ border-radius: $radii
8
+ background-color: $standard
9
+ font-weight: bold
10
+ text-shadow: $text_drop_lite
11
+
12
+ .navbar-inner .nav
13
+ display: block
14
+ float: left
15
+ position: relative
16
+ left: 0
17
+
18
+ .navbar .nav > li
19
+ display: block
20
+ float: left
21
+
22
+ .navbar .nav > li > a
23
+ float: none
24
+ color: $link_normal
25
+ padding: 1em 0.75em
26
+ &:hover, &:active
27
+ background-color: $component_bg_hover
28
+ color: $link_hover
29
+
30
+ .navbar .nav .active > a,
31
+ .navbar .nav .active > a:hover,
32
+ .navbar .nav .open > .dropdown-toggle,
33
+ .navbar .nav .active > .dropdown-toggle,
34
+ .navbar .nav .open.active > .dropdown-toggle
35
+ +box-shadow($inset_dark)
36
+ background-color: $primary
37
+ color: $standard
38
+ text-shadow: $text_inset_dark
39
+
40
+ // Shared inner elements
41
+ .navbar .brand,
42
+ .navbar .plain-text,
43
+ .navbar .button-group,
44
+ .navbar form
45
+ display: block
46
+ float: left
47
+
48
+ .navbar .brand,
49
+ .navbar .plain-text
50
+ padding: 1em 0.75em
51
+
52
+ .navbar .brand
53
+ color: $greyC
54
+
55
+ .navbar .button-group,
56
+ .navbar form
57
+ margin: 0.6em 0.75em
58
+
59
+ // Dropdowns
60
+ .navbar .dropdown-menu
61
+ font-weight: normal
62
+ text-shadow: none
63
+
64
+ .navbar .nav .open.dropdown .caret,
65
+ .navbar .nav .active .caret
66
+ border-top-color: $standard
67
+
68
+ // Fixed Navbar
69
+ .navbar.fixed
70
+ position: fixed
71
+ top: 0
72
+ right: 0
73
+ left: 0
74
+ z-index: $zindex_navbar
75
+
76
+ .navbar.fixed .navbar-inner
77
+ border-radius: 0
78
+
79
+ // Redeclare for specificity
80
+ .navbar .pull-right
81
+ float: right
82
+
83
+ // Button for toggling navbar items in responsive layouts
84
+ .btn-navbar
85
+ display: none
86
+ float: right
87
+ margin: 0.5em
88
+
89
+ .btn-navbar .icon-bar
90
+ +box-shadow(0 1px 0 rgba($black, 0.25))
91
+ background-color: $white
92
+ display: block
93
+ width: 18px
94
+ height: 2px
95
+
96
+ .btn-navbar .icon-bar + .icon-bar
97
+ margin-top: 3px
98
+
99
+ .nav-collapse
100
+ -webkit-transform: translate3d(0, 0, 0)
101
+
102
+ // Override the default collapsed state
103
+ .nav-collapse.collapse
104
+ height: auto
105
+