underoos 1.0.0 → 1.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.
Files changed (140) hide show
  1. data/Gemfile +5 -0
  2. data/Gemfile.lock +21 -7
  3. data/README.md +85 -10
  4. data/Rakefile +36 -1
  5. data/app/assets/javascripts/docs.js +6 -0
  6. data/app/assets/javascripts/styleguide.coffee +162 -0
  7. data/app/assets/javascripts/underoos.js +0 -1
  8. data/app/assets/stylesheets/base/_base.sass +14 -0
  9. data/app/assets/stylesheets/base/_buttons.sass +68 -0
  10. data/app/assets/stylesheets/base/_forms.sass +313 -24
  11. data/app/assets/stylesheets/base/_helpers.sass +27 -13
  12. data/app/assets/stylesheets/base/_normalize.sass +17 -9
  13. data/app/assets/stylesheets/base/_scaffold.sass +85 -0
  14. data/app/assets/stylesheets/base/_tables.sass +77 -0
  15. data/app/assets/stylesheets/base/_transitions.sass +10 -2
  16. data/app/assets/stylesheets/base/_typography.sass +183 -21
  17. data/app/assets/stylesheets/components/_accordions.sass +38 -0
  18. data/app/assets/stylesheets/components/_breadcrumbs.sass +19 -5
  19. data/app/assets/stylesheets/components/_button-groups.sass +43 -0
  20. data/app/assets/stylesheets/components/_carets.sass +13 -2
  21. data/app/assets/stylesheets/components/_carousels.sass +32 -0
  22. data/app/assets/stylesheets/components/_close.sass +15 -2
  23. data/app/assets/stylesheets/components/_components.sass +28 -0
  24. data/app/assets/stylesheets/components/_decals.sass +14 -0
  25. data/app/assets/stylesheets/components/_dropdowns.sass +88 -4
  26. data/app/assets/stylesheets/components/_media.sass +36 -0
  27. data/app/assets/stylesheets/components/_modals.sass +29 -0
  28. data/app/assets/stylesheets/components/_nav-lists.sass +20 -0
  29. data/app/assets/stylesheets/components/_navbars.sass +64 -3
  30. data/app/assets/stylesheets/components/_notifications.sass +112 -16
  31. data/app/assets/stylesheets/components/_paddles.sass +26 -0
  32. data/app/assets/stylesheets/components/_pagination.sass +23 -3
  33. data/app/assets/stylesheets/components/_pills.sass +80 -0
  34. data/app/assets/stylesheets/components/_popovers.sass +28 -0
  35. data/app/assets/stylesheets/components/_progress-bars.sass +33 -1
  36. data/app/assets/stylesheets/components/_tabs.sass +79 -0
  37. data/app/assets/stylesheets/components/_tooltips.sass +26 -0
  38. data/app/assets/stylesheets/components/_wells.sass +9 -0
  39. data/app/assets/stylesheets/layouts/_containers.sass +12 -0
  40. data/app/assets/stylesheets/layouts/_layouts.sass +5 -0
  41. data/app/assets/stylesheets/layouts/_print.sass +5 -1
  42. data/app/assets/stylesheets/layouts/_queries.sass +18 -15
  43. data/app/assets/stylesheets/layouts/_upgrades.sass +51 -40
  44. data/app/assets/stylesheets/mixins/_arrows.sass +13 -1
  45. data/app/assets/stylesheets/mixins/_clearfixins.sass +18 -4
  46. data/app/assets/stylesheets/mixins/_coloring.sass +10 -1
  47. data/app/assets/stylesheets/mixins/_columns.sass +16 -3
  48. data/app/assets/stylesheets/mixins/_conversions.sass +18 -6
  49. data/app/assets/stylesheets/mixins/_font-size.sass +16 -1
  50. data/app/assets/stylesheets/mixins/_image-tools.sass +12 -1
  51. data/app/assets/stylesheets/mixins/_inline-block.sass +21 -0
  52. data/app/assets/stylesheets/mixins/_ir.sass +14 -1
  53. data/app/assets/stylesheets/mixins/_mixins.sass +6 -0
  54. data/app/assets/stylesheets/mixins/_responsive.sass +16 -0
  55. data/app/assets/stylesheets/mixins/_sticky-footer.sass +52 -0
  56. data/app/assets/stylesheets/mixins/_tab-focus.sass +8 -1
  57. data/app/assets/stylesheets/mixins/_timing-equations.sass +34 -1
  58. data/app/assets/stylesheets/mixins/_visibility.sass +18 -5
  59. data/app/assets/stylesheets/polyfills/_box-shadow.sass +10 -0
  60. data/app/assets/stylesheets/polyfills/_box-sizing.sass +10 -1
  61. data/app/assets/stylesheets/polyfills/_functions.sass +14 -1
  62. data/app/assets/stylesheets/polyfills/_opacity.sass +10 -1
  63. data/app/assets/stylesheets/polyfills/_polyfills.sass +9 -2
  64. data/app/assets/stylesheets/polyfills/_transition.sass +10 -0
  65. data/app/assets/stylesheets/polyfills/_user-select.sass +10 -0
  66. data/app/assets/stylesheets/settings/_config.sass +26 -0
  67. data/app/assets/stylesheets/settings/_settings.sass +7 -0
  68. data/app/assets/stylesheets/settings/_theme.sass +189 -0
  69. data/app/assets/stylesheets/{styleguide.sass → underoos-docs.sass} +20 -116
  70. data/app/assets/stylesheets/underoos.sass +5 -16
  71. data/config.ru +1 -3
  72. data/features/generator.feature +13 -4
  73. data/lib/generators/underoos/assets_generator.rb +4 -2
  74. data/lib/underoos/version.rb +1 -1
  75. data/public/images.html +157 -0
  76. data/public/index.html +149 -0
  77. data/public/sherpa.css +306 -0
  78. data/public/styles.html +5374 -0
  79. data/script/javascripts +0 -1
  80. data/sherpa/config.yml +96 -0
  81. data/sherpa/layouts/images.mustache +17 -0
  82. data/sherpa/layouts/layout.mustache +77 -0
  83. data/sherpa/layouts/overview.mustache +19 -0
  84. data/sherpa/layouts/raw.mustache +25 -0
  85. data/sherpa/layouts/section.mustache +67 -0
  86. data/underoos.gemspec +0 -2
  87. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  88. data/vendor/assets/javascripts/bootstrap-button.js +29 -33
  89. data/vendor/assets/javascripts/bootstrap-collapse.js +45 -26
  90. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  91. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  92. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  93. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  94. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  95. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  96. data/vendor/assets/javascripts/bootstrap-typeahead.js +24 -10
  97. data/vendor/assets/javascripts/sherpa.coffee +78 -0
  98. metadata +34 -75
  99. data/app/assets/javascripts/styleguide.js +0 -132
  100. data/app/assets/stylesheets/base/_elements.sass +0 -61
  101. data/app/assets/stylesheets/polyfills/_inline-block.sass +0 -8
  102. data/app/assets/stylesheets/themes/_default.sass +0 -119
  103. data/app/controllers/underoos/styleguides_controller.rb +0 -79
  104. data/app/views/shared/_upgrades.html.haml +0 -12
  105. data/app/views/underoos/styleguides/_assets.haml +0 -42
  106. data/app/views/underoos/styleguides/_components.haml +0 -42
  107. data/app/views/underoos/styleguides/_elements.haml +0 -242
  108. data/app/views/underoos/styleguides/_forms.haml +0 -305
  109. data/app/views/underoos/styleguides/_layouts.haml +0 -76
  110. data/app/views/underoos/styleguides/_palettes.haml +0 -18
  111. data/app/views/underoos/styleguides/_resources.haml +0 -27
  112. data/app/views/underoos/styleguides/_tables.haml +0 -124
  113. data/app/views/underoos/styleguides/_typography.haml +0 -284
  114. data/app/views/underoos/styleguides/_utilities.haml +0 -270
  115. data/app/views/underoos/styleguides/components/_accordions.haml +0 -83
  116. data/app/views/underoos/styleguides/components/_breadcrumbs.haml +0 -42
  117. data/app/views/underoos/styleguides/components/_button-groups.haml +0 -162
  118. data/app/views/underoos/styleguides/components/_carets.haml +0 -28
  119. data/app/views/underoos/styleguides/components/_close.haml +0 -20
  120. data/app/views/underoos/styleguides/components/_decals.haml +0 -40
  121. data/app/views/underoos/styleguides/components/_dropdowns.haml +0 -189
  122. data/app/views/underoos/styleguides/components/_media.haml +0 -78
  123. data/app/views/underoos/styleguides/components/_modals.haml +0 -42
  124. data/app/views/underoos/styleguides/components/_nav-lists.haml +0 -52
  125. data/app/views/underoos/styleguides/components/_navbars.haml +0 -144
  126. data/app/views/underoos/styleguides/components/_navs-showcase.haml +0 -27
  127. data/app/views/underoos/styleguides/components/_notifications.haml +0 -169
  128. data/app/views/underoos/styleguides/components/_paddles.haml +0 -68
  129. data/app/views/underoos/styleguides/components/_pagination.haml +0 -64
  130. data/app/views/underoos/styleguides/components/_popovers.haml +0 -33
  131. data/app/views/underoos/styleguides/components/_progress-bars.haml +0 -72
  132. data/app/views/underoos/styleguides/components/_tabs-pills.haml +0 -241
  133. data/app/views/underoos/styleguides/components/_tooltips.haml +0 -37
  134. data/app/views/underoos/styleguides/components/_wells.haml +0 -29
  135. data/app/views/underoos/styleguides/index.html.haml +0 -259
  136. data/app/views/underoos/styleguides/partials/_form-template.haml +0 -171
  137. data/app/views/underoos/styleguides/partials/_table-data.haml +0 -33
  138. data/app/views/underoos/styleguides/partials/_transitions.haml +0 -136
  139. data/config/routes.rb +0 -3
  140. data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -125
@@ -1,4 +1,30 @@
1
1
 
2
+ //~
3
+ // Popovers utilize [Bootstrap's Popover plugin](http://twitter.github.com/bootstrap/javascript.html#popovers).
4
+ // They are similar to the tool tip plugin and also require
5
+ // [Bootstrap's Tooltip plugin](http://twitter.github.com/bootstrap/javascript.html#tooltips)
6
+ // to be included as well.
7
+ //
8
+ // Popovers handle positions for
9
+ // <a href="#" rel="popover" data-placement="top" title="Top" data-content="This is a popover">top</a>,
10
+ // <a href="#" rel="popover" data-placement="bottom" title="Bottom" data-content="This is a popover">bottom</a>,
11
+ // <a href="#" rel="popover" data-placement="left" title="Left" data-content="This is a popover">left</a>, or
12
+ // <a href="#" rel="popover" data-placement="right" title="Right" data-content="This is a popover">right</a>.
13
+ // They require information set on a links data attributes.
14
+ //
15
+ // Attribute | Values | Usage
16
+ // ------------------ | --------------------------- | ---------------------------
17
+ // `rel` | `popover` | The js identifier for the type of component
18
+ // `data-placement` | `top`,`bottom`,`left`,`right` | The direction to show based on the target
19
+ // `title` | _text_ | The headline title for the popover
20
+ // `data-content` | _text_ | The body copy for the popover
21
+ //
22
+ // Examples:
23
+ // <a rel="popover" data-placement="top" title="Top" data-content="...">Top</a>
24
+ //
25
+ // Notes:
26
+ // - **Heads Up!** Popovers are opt in and will only be instantiated if called directly from JavaScript `$("a[rel=popover]").popover()`
27
+
2
28
  .popover
3
29
  display: none
4
30
  padding: 5px
@@ -7,6 +33,8 @@
7
33
  left: 0
8
34
  min-width: 280px
9
35
  z-index: $zindex_tips
36
+ @if $legacy-support-for-ie
37
+ *width: 280px
10
38
  &.top
11
39
  margin-top: -5px
12
40
  &.bottom
@@ -1,17 +1,49 @@
1
1
 
2
+ //~ Progress bars
3
+ // Progress bars are used to display actions being performed by the user.
4
+ // Utilize a bit of JavaScript to set the `width` of the `.progress > .bar`
5
+ // to showcase it's status. They come in the standard status colors.
6
+ //
7
+ // Notes:
8
+ // - **Pro Tip!** Click in the progress bar container to showcase the loading animation
9
+ //
10
+ // Usage:
11
+ // <div class="progress">
12
+ // <div class="bar" style="width:60%"></div>
13
+ // </div>
14
+ // <div class="progress info">
15
+ // <div class="bar" style="width:60%"></div>
16
+ // </div>
17
+ // <div class="progress important">
18
+ // <div class="bar" style="width:60%"></div>
19
+ // </div>
20
+ // <div class="progress success">
21
+ // <div class="bar" style="width:60%"></div>
22
+ // </div>
23
+ // <div class="progress warning">
24
+ // <div class="bar" style="width:60%"></div>
25
+ // </div>
26
+ // <div class="progress danger">
27
+ // <div class="bar" style="width:60%"></div>
28
+ // </div>
29
+ // <div class="progress primary">
30
+ // <div class="bar" style="width:60%"></div>
31
+ // </div>
32
+
2
33
  .progress
3
34
  +box-shadow($inset_dark)
4
35
  background-color: $body_bg
5
36
  border-radius: $radii
6
37
  overflow: hidden
7
38
  height: 1em
39
+ margin: 1em 0
8
40
 
9
41
  .progress .bar
10
42
  +box-sizing(border-box)
11
43
  +box-shadow(inset 0 1px 4px rgba($black, 0.3))
12
44
  +transition(width $speed)
13
45
  background-color: $standard
14
- width: 0%
46
+ width: 0
15
47
  height: 1em
16
48
 
17
49
  .progress.info .bar
@@ -1,4 +1,80 @@
1
1
 
2
+ //~
3
+ // Tabs follow the same markup structure as other navigation elements.
4
+ // Tabs like other navigation elements require the `.nav` class for
5
+ // layout. Add `.nav .tabs` to a `ul` or `ol` element.
6
+ //
7
+ // ##### Togglable Tabs
8
+ // To utilize a drop dead simple version of hiding and showing content
9
+ // related to a tab navigation, utilize [Bootstrap's Tab plugin](http://twitter.github.com/bootstrap/javascript.html#tabs).
10
+ // The base structure of tabs doesn't change, except to include a few more
11
+ // classes on the links and the `href` attribute the button will target.
12
+ //
13
+ // Usage:
14
+ // <nav>
15
+ // <ul class="nav tabs">
16
+ // <li class="active">
17
+ // <a data-toggle="tab" href="#tab_one">Tab One</a>
18
+ // </li>
19
+ // <li>
20
+ // <a data-toggle="tab" href="#tab_two">Tab Two</a>
21
+ // </li>
22
+ // <li class="dropdown">
23
+ // <a class="dropdown-toggle" data-toggle="dropdown" href="#">Tab Three<span class="caret"></span></a>
24
+ // <ul class="dropdown-menu">
25
+ // <li>
26
+ // <a data-toggle="tab" href="#tab_three-1">Subnav 1</a>
27
+ // </li>
28
+ // <li>
29
+ // <a data-toggle="tab" href="#tab_three-2">Subnav 2</a>
30
+ // </li>
31
+ // </ul>
32
+ // </li>
33
+ // </ul>
34
+ // </nav>
35
+ // <!-- Tabable Content -->
36
+ // <section class="tab-content" style="margin-top:1.25em;">
37
+ // <article class="tab-pane active" id="tab_one">
38
+ // <p>Tab <span class="decal primary">one</span> content</p>
39
+ // </article>
40
+ // <article class="tab-pane" id="tab_two">
41
+ // <p>Tab <span class="decal primary">two</span> content</p>
42
+ // </article>
43
+ // <article class="tab-pane" id="tab_three-1">
44
+ // <p>Tab <span class="decal primary">three</span>: subnav <span class="decal primary">1</span> content</p>
45
+ // </article>
46
+ // <article class="tab-pane" id="tab_three-2">
47
+ // <p>Tab <span class="decal primary">three</span>: subnav <span class="decal primary">2</span> content</p>
48
+ // </article>
49
+ // </section>
50
+
51
+ //~
52
+ // #### Stacked Tabs
53
+ // Stack tabs by adding the class `.stacked` to the `.tabs` element.
54
+ //
55
+ // Usage:
56
+ // <nav>
57
+ // <ul class="nav tabs stacked">
58
+ // <li class="active">
59
+ // <a href="#">Tab One</a>
60
+ // </li>
61
+ // <li class="dropdown">
62
+ // <a class="dropdown-toggle" data-toggle="dropdown" href="#">Tab Two<span class="caret"></span></a>
63
+ // <ul class="dropdown-menu">
64
+ // <li>
65
+ // <a href="#">Subnav 1</a>
66
+ // </li>
67
+ // <li>
68
+ // <a href="#">Subnav 2</a>
69
+ // </li>
70
+ // </ul>
71
+ // </li>
72
+ // <li>
73
+ // <a href="#">Tab Three</a>
74
+ // </li>
75
+ // </ul>
76
+ // </nav>
77
+
2
78
  // Default Tabs
3
79
  .tabs
4
80
  border-bottom: 1px solid $component_border_alt
@@ -64,6 +140,9 @@
64
140
 
65
141
  .tabs.stacked .caret
66
142
  float: right
143
+ @if $legacy-support-for-ie
144
+ *margin: -1.5em 10px 0 0
145
+
67
146
  .tabs.stacked .active .caret
68
147
  border-top-color: $component_active
69
148
 
@@ -1,4 +1,30 @@
1
1
 
2
+ //~
3
+ // Tool tips utilize [Bootstrap's Tooltip plugin](http://twitter.github.com/bootstrap/javascript.html#tooltips).
4
+ // You can control various options of how a tool tip is shown based on attributes set in the link.
5
+ //
6
+ // Styles are automatically generated based on the inverted colors of the body's
7
+ // `background-color` and font `color`.
8
+ //
9
+ // Tooltips handle positions for
10
+ // <a href="#" rel="tooltip" data-placement="top" title="Top">top</a>,
11
+ // <a href="#" rel="tooltip" data-placement="bottom" title="Bottom">bottom</a>,
12
+ // <a href="#" rel="tooltip" data-placement="left" title="Left">left</a>, or
13
+ // <a href="#" rel="tooltip" data-placement="right" title="Right">right</a>.
14
+ // They require information set on a links data attributes.
15
+ //
16
+ // Attribute | Values | Usage
17
+ // ------------------ | --------------------------- | ---------------------------
18
+ // `rel` | `popover` | The js identifier for the type of component
19
+ // `data-placement` | `top`,`bottom`,`left`,`right` | The direction to show based on the target
20
+ // `title` | _text_ | The copy for the tooltip
21
+ //
22
+ // Examples:
23
+ // <a rel="tooltip" data-placement="top" title="Top">Top</a>
24
+ //
25
+ // Notes:
26
+ // - **Heads Up!** Tooltips are opt in and will only be instantiated if called directly from JavaScript `$("a[rel=tooltip]").tooltip()`
27
+
2
28
  .tooltip
3
29
  +font-size(12)
4
30
  +opacity(0)
@@ -1,4 +1,13 @@
1
1
 
2
+ //~
3
+ // Wells are used to contain components, forms or various elements.
4
+ //
5
+ // Usage:
6
+ // <div class="well">.well</div>
7
+ // <div class="well lite">.well.lite</div>
8
+ // <div class="well dark">.well.dark</div>
9
+ // <div class="well primary">.well.primary</div>
10
+
2
11
  .well
3
12
  +box-sizing(border-box)
4
13
  border: 1px solid $component_border
@@ -1,4 +1,16 @@
1
1
 
2
+ //~
3
+ // Containers are used to "contain" elements of content within a page or section.
4
+ // All containers inject a [micro clearfix](http://nicolasgallagher.com/micro-clearfix-hack/)
5
+ // to clear any floats from interior elements.
6
+ //
7
+ // Class | Usage
8
+ // ------------------ | -----------------------------------
9
+ // `.container` | The default container is a fluid width container with a `max-width` set to the `$base_width` variable.
10
+ // `.container.outer` | Adding the `.outer` class to a `container` adds left and right padding, which creates a little breathing room in fluid layouts from the browser's edges.
11
+ // `.container.fluid` | Adding the `.fluid` class to a `container` will remove the `max-width` setting and allow the container to fill the browser window.
12
+ // `.container.fixed` | Adding the `.fixed` class to a `container` will render it using fixed width pixels with no responsive behavior.
13
+
2
14
  .container
3
15
  +box-sizing(border-box)
4
16
  +clearfixer
@@ -0,0 +1,5 @@
1
+
2
+ //~ # Layouts
3
+ // Layouts consist of various templates, containers, and structures
4
+ // used by the application.
5
+
@@ -1,5 +1,9 @@
1
1
 
2
- // A very basic print stylesheet based off http://html5boilerplate.com/
2
+ //~
3
+ // A very basic print stylesheet based off settings provided by
4
+ // [HTML5 Boilerplate](http://html5boilerplate.com/).
5
+ // Styles are associated with the `@media print` query.
6
+
3
7
  @media print
4
8
  *
5
9
  background: transparent !important
@@ -1,12 +1,15 @@
1
1
 
2
- // Mixin the container sizes
3
- @mixin resize_containers($base_value)
4
- .container
5
- max-width: $base_value * 1px
6
- &.fluid, &.fixed
7
- max-width: none
8
- &.fixed
9
- width: $base_value * 1px
2
+ //~ Media queries
3
+ // Default media queries are put into place and are tuned for a few components.
4
+ // These should be adjusted based on the application's needs. Underoos rolls
5
+ // mobile first, and overrides styles as the viewport becomes smaller.
6
+ //
7
+ // Media Query | Usage
8
+ // ------------------------- | -----------------------------------
9
+ // `@media min-width:1200px` | Typically larger desktop screens
10
+ // `@media max-width:768px` | Typically portrait tablet
11
+ // `@media max-width:480px` | Typically landscape phones
12
+ // `@media max-width:320px` | Typically portrait phones
10
13
 
11
14
  // Large screens
12
15
  @media (min-width: 1200px)
@@ -106,13 +109,13 @@
106
109
  padding-left: 0.75em
107
110
  padding-right: 0.75em
108
111
 
109
- .modal
110
- position: absolute
111
- margin: 0
112
- top: 10px
113
- left: 10px
114
- right: 10px
115
- width: auto
112
+ .modal
113
+ position: absolute
114
+ margin: 0
115
+ top: 10px
116
+ left: 10px
117
+ right: 10px
118
+ width: auto
116
119
 
117
120
 
118
121
  // Portrait mobile
@@ -1,64 +1,75 @@
1
1
 
2
+ //~ Upgrade messaging
3
+ // Responds to conditional tests in the head of the document around a threshold
4
+ // for a version of Internet Explorer and/or JavaScript being disabled. If any
5
+ // of these conditions are met, a message for either enabling JavaScript or
6
+ // upgrading their browser version is displayed to the user.
7
+ //
8
+ // Examples:
9
+ // <!-- The head conditional -->
10
+ // <!doctype html>
11
+ // <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
12
+ // <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
13
+ // <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
14
+ // <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
15
+ //
16
+ // <!-- The hidden section for the messaging -->
17
+ // <section class="upgrade-notifications">
18
+ // <a class="upgrade-close" data-dismiss="alert" href="#">×</a>
19
+ // <section class="upgrade-notification">
20
+ // <article class="lt-ie8-msg upgrade-container">
21
+ // <p>Messaging for IE version</p>
22
+ // </article>
23
+ // <article class="no-js-msg upgrade-container">
24
+ // <p>Messaging for no JavaScript</p>
25
+ // </article>
26
+ // </section>
27
+ // </section>
28
+ //
29
+ // Usage:
30
+ // <!-- Testing purposes only -->
31
+ // <button class="btn primary" href="#" id="underoos_upgrade_demo">Test Upgrade Message</button>
32
+
2
33
  // The main container for the upgrade notification
3
- #upgrade_notifications
4
- display: none
34
+ .upgrade-notifications
5
35
  color: $white
6
36
  font-weight: bold
37
+ display: none
7
38
  position: absolute
8
- top: 10px
9
- left: 10px
39
+ top: 0
40
+ right: 0
41
+ left: 0
10
42
  z-index: 99999
11
43
 
12
- // Settings for the icon
13
- #upgrade_notifications .upgrade-icon
14
- background-color: $danger
15
- border: 1px solid darken($danger, 10%)
16
- cursor: pointer
17
- font-size: 1em
18
- line-height: 1
19
- text-align: center
20
- width: 1.2em
21
- height: 1.2em
22
-
23
44
  // Settings for block message
24
- #upgrade_notifications .upgrade-notification
45
+ .upgrade-notifications .upgrade-notification
25
46
  background-color: $danger
26
- border: 1px solid darken($danger, 10%)
27
- cursor: default
47
+ border: 1px solid darken($danger, 20%)
28
48
  font-size: 0.85em
29
49
  text-align: left
30
- display: none
31
- margin-top: 0.2em
32
50
  padding: 0.75em
33
- position: relative
34
- top: 0
35
- left: 0
36
- width: 200px
51
+
52
+ .upgrade-notifications .upgrade-close
53
+ color: $white
54
+ font-size: 1.3em
55
+ display: block
56
+ float: right
57
+ margin-right: 1em
37
58
 
38
59
  // Make the links readable
39
- #upgrade_notifications .upgrade-notification a
60
+ .upgrade-notifications .upgrade-notification a
40
61
  color: $white
41
62
  text-decoration: underline
42
63
 
43
- // Show the message on hover
44
- #upgrade_notifications .upgrade-icon:hover .upgrade-notification
45
- display: block
46
-
47
64
  // Default all message containers to be hidden
48
- #upgrade_notifications .upgrade-container
65
+ .upgrade-notifications .upgrade-container
49
66
  display: none
50
67
 
51
- // Space out multiple containers
52
- #upgrade_notifications .upgrade-container + .upgrade-container
53
- margin-top: 1em
54
-
55
68
  // Show the upgrade notifications if a condition is met
56
- html.no-js #upgrade_notifications,
57
- html.lt-ie8 #upgrade_notifications
58
- display: block
59
-
60
69
  // Show the correct notification container
61
- html.no-js #upgrade_notifications #no_js,
62
- html.lt-ie8 #upgrade_notifications #lt_ie8
70
+ html.no-js .upgrade-notifications,
71
+ html.lt-ie8 .upgrade-notifications,
72
+ html.no-js .upgrade-notifications .no-js-msg,
73
+ html.lt-ie8 .upgrade-notifications .lt-ie8-msg
63
74
  display: block
64
75
 
@@ -1,5 +1,17 @@
1
1
 
2
- // Mixins for creating arrows on pseudo elements
2
+ //~
3
+ // Draws a directional arrow, typically used for the pseudo elements of `:before` or `:after`.
4
+ // These are similar to carets, except they don't require an extra element inside the DOM.
5
+ //
6
+ // Mixin | Params | Usage
7
+ // ---------------|--------------------------|-------------------
8
+ // `+arrow_north` | `$color:#000, $size:5px` | An arrow pointing up
9
+ // `+arrow_south` | `$color:#000, $size:5px` | An arrow pointing down
10
+ // `+arrow_east` | `$color:#000, $size:5px` | An arrow pointing right
11
+ // `+arrow_west` | `$color:#000, $size:5px` | An arrow pointing left
12
+ //
13
+ // Notes:
14
+ // - **Heads Up!** Arrows are positioned `absolute` by default so the host should be `relative` and don't forget to add `content: ""`
3
15
 
4
16
  @mixin _arrow
5
17
  position: absolute
@@ -1,15 +1,29 @@
1
1
 
2
- // The [micro clearfix](http://nicolasgallagher.com/micro-clearfix-hack/)
2
+ //~
3
+ // Clearfixins force a containers height to adjust when it contains floated children elements.
4
+ //
5
+ // There are two mixins available for fixing floats
6
+ //
7
+ // - `+clearfixer` The [micro clearfix](http://nicolasgallagher.com/micro-clearfix-hack/) utilizing pseudo elements to clear floats
8
+ // - `+clearfix` Uses `overflow: hidden` to clear floats
9
+ //
10
+ // Generally, the micro clearfix (`+clearfixer`) is prefered and mixed into the parent container of floated items.
11
+ //
12
+ // Notes:
13
+ // - **Pro Tip!** There are helper classes for `.clearfixer` and `.clearfix` which can be inserted
14
+ // into the DOM or used with `@extend`, it's prefered to mixin this into an element
15
+
3
16
  @mixin clearfixer
4
- *zoom: 1
17
+ @if $legacy-support-for-ie
18
+ *zoom: 1
5
19
  &:before, &:after
6
20
  content: ""
7
21
  display: table
8
22
  &:after
9
23
  clear: both
10
24
 
11
- // The standard `clearfix` found in Compass
12
25
  @mixin clearfix
13
26
  overflow: hidden
14
- *zoom: 1
27
+ @if $legacy-support-for-ie
28
+ *zoom: 1
15
29