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,24 @@
1
1
 
2
+ //~ Nav lists
3
+ // Nav lists are typically used in aside style navigation systems. They utilize
4
+ // the same markup structure as `tabs` and `pills`. The list should contain
5
+ // the `.nav` class.
6
+ //
7
+ // Notes:
8
+ // - **Pro Tip!** To include a header, just supply the `li` with the class `.nav-header`
9
+ //
10
+ // Usage:
11
+ // <nav>
12
+ // <ul class="nav nav-list">
13
+ // <li class="nav-header">List Header</li>
14
+ // <li><a href="#">List 1</a></li>
15
+ // <li class="active"><a href="#">List 2</a></li>
16
+ // <li><a href="#">List 3</a></li>
17
+ // <li class="nav-header">Another List Header</li>
18
+ // <li><a href="#">List 4</a></li>
19
+ // </ul>
20
+ // </nav>
21
+
2
22
  // Nav List
3
23
  .nav-list > li > a
4
24
  border-radius: $radii
@@ -1,4 +1,68 @@
1
1
 
2
+ //~
3
+ // Typically used for application or page level navigation systems
4
+ // Navbars can contain just about any type of navigation component,
5
+ // search forms, button groups and drop downs.
6
+ //
7
+ // Navbars support responsive behavior, by adding a button with `data-toggle="collapse"
8
+ // data-target="#target_id"`. Add the corresponding class `.nav-collapse`
9
+ // and the id based on the target (`#target_id`) on the collapsable container.
10
+ // Make sure to utilize styles contained within the media queries as well.
11
+ //
12
+ // Notes:
13
+ // - **Pro Tip!** Add the `.fixed` class to the `.navbar` container to fix the navigation system to the top of the page
14
+ // - **Pro Tip!** For a responsive navbar, include [Bootstrap's Collapse plugin](http://twitter.github.com/bootstrap/javascript.html#collapse) and add the necessary elements to the structure
15
+ //
16
+ // Warnings:
17
+ // - **Warning!** It's a good idea to set a specific height for the navbar, this is not set in the default component
18
+ //
19
+ // Usage:
20
+ // <div class="navbar">
21
+ // <div class="navbar-inner">
22
+ // <div class="container">
23
+ // <a class="btn info btn-navbar" data-toggle="collapse" data-target="#collapse_example">
24
+ // <span class="icon-bar"></span>
25
+ // <span class="icon-bar"></span>
26
+ // <span class="icon-bar"></span>
27
+ // </a>
28
+ // <a class="brand" href="#">Brand</a>
29
+ // <nav class="nav-collapse" id="collapse_example">
30
+ // <ul class="nav">
31
+ // <li><a href="#">Link 1</a></li>
32
+ // <li class="active"><a href="#">Link 2</a></li>
33
+ // <li class="plain-text">Plain Text</li>
34
+ // <li class="dropdown">
35
+ // <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown<span class="caret"></span></a>
36
+ // <ul class="dropdown-menu">
37
+ // <li><a href="#">Subnav 1</a></li>
38
+ // <li><a href="#">Subnav 2</a></li>
39
+ // </ul>
40
+ // </li>
41
+ // </ul>
42
+ // <section class="pull-right">
43
+ // <form class="form-search">
44
+ // <ol>
45
+ // <li>
46
+ // <input class="search-query" name="test[searchbar]" placeholder="search" type="search">
47
+ // <button class="btn primary" type="submit">Go</button>
48
+ // </li>
49
+ // </ol>
50
+ // </form>
51
+ // <ul class="nav">
52
+ // <li class="dropdown">
53
+ // <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown<span class="caret"></span></a>
54
+ // <ul class="dropdown-menu">
55
+ // <li><a href="#">Subnav 1</a></li>
56
+ // <li><a href="#">Subnav 2</a></li>
57
+ // </ul>
58
+ // </li>
59
+ // </ul>
60
+ // </section>
61
+ // </nav>
62
+ // </div>
63
+ // </div>
64
+ // </div>
65
+
2
66
  .navbar
3
67
  overflow: visible
4
68
 
@@ -96,9 +160,6 @@
96
160
  .btn-navbar .icon-bar + .icon-bar
97
161
  margin-top: 3px
98
162
 
99
- .nav-collapse
100
- -webkit-transform: translate3d(0, 0, 0)
101
-
102
163
  // Override the default collapsed state
103
164
  .nav-collapse.collapse
104
165
  height: auto
@@ -1,4 +1,75 @@
1
1
 
2
+ //~
3
+ // A basic notification is set on a container with the `.notification` class.
4
+ // They come in the standard flavors for various types of alerts.
5
+ // Notifications utilize [Bootstrap's alert plugin](http://twitter.github.com/bootstrap/javascript.html#alerts)
6
+ // for closing a notification.
7
+ //
8
+ // Notes:
9
+ // - **Pro Tip!** Add the class `.notify-right` to any element to right align text for block notifications
10
+ //
11
+ // Usage:
12
+ // <div class="notification fade in">
13
+ // <p><strong>Default!</strong> This is the default notification</p>
14
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
15
+ // </div>
16
+ // <div class="notification info fade in">
17
+ // <p><strong>Info or Notice!</strong> Use this for general information</p>
18
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
19
+ // </div>
20
+ // <div class="notification important fade in">
21
+ // <p><strong>Important!</strong> Something important is said here</p>
22
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
23
+ // </div>
24
+ // <div class="notification success fade in">
25
+ // <p><strong>Success!</strong> Congratulations, you get a trophy</p>
26
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
27
+ // </div>
28
+ // <div class="notification warning fade in">
29
+ // <p><strong>Warning!</strong> You're first and final</p>
30
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
31
+ // </div>
32
+ // <div class="notification danger fade in">
33
+ // <p><strong>Danger or Error or Alert!</strong> Something bad happened here</p>
34
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
35
+ // </div>
36
+ // <div class="notification primary fade in">
37
+ // <p><strong>Primary!</strong> The CI coloring for alerts</p>
38
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
39
+ // </div>
40
+
41
+ //~
42
+ // #### Block Notifications
43
+ // Block notifications are similar to the basic notification, in fact nothing
44
+ // needs to change on the outer container. Just add a `.notify-header`,
45
+ // `.notify-content` and/or `.notify-footer` to the internal markup to provide
46
+ // more information around the notification.
47
+ //
48
+ // Usage:
49
+ // <div class="notification success fade in">
50
+ // <header class="notify-header">
51
+ // <h4 class="notify-heading">Block Notification</h4>
52
+ // </header>
53
+ // <section class="notify-content">
54
+ // <p>~lorem_medium</p>
55
+ // </section>
56
+ // <footer class="notify-footer">
57
+ // <button class="btn success">Action</button>
58
+ // <button class="btn danger">Cancel</button>
59
+ // </footer>
60
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
61
+ // </div>
62
+ // <div class="notification danger fade in">
63
+ // <section class="notify-content">
64
+ // <p><strong>Yikes! This doesn't have a header and the footer is on the right!</strong> ~lorem_medium</p>
65
+ // </section>
66
+ // <footer class="notify-footer notify-right">
67
+ // <button class="btn success">Action</button>
68
+ // <button class="btn danger">Cancel</button>
69
+ // </footer>
70
+ // <a class="close" data-dismiss="alert" href="#">&times;</a>
71
+ // </div>
72
+
2
73
  // Base notification used for @extends
3
74
  .base-notification
4
75
  +background-darken-border($standard)
@@ -8,14 +79,18 @@
8
79
  margin: 1em 0
9
80
  a
10
81
  text-decoration: underline
11
- header, footer, p
82
+ .notify-header,
83
+ .notify-content,
84
+ .notify-footer
12
85
  padding-right: 1.2em
13
- header
86
+ .notify-header
14
87
  margin-bottom: 0.5em
15
- footer
88
+ .notify-footer
16
89
  margin-top: 1.25em
17
- &.footer-right
18
- text-align: right
90
+ .notify-heading
91
+ +font-size(20)
92
+ .notify-right
93
+ text-align: right
19
94
  .close
20
95
  position: absolute
21
96
  top: 7px
@@ -30,30 +105,54 @@
30
105
  &.important
31
106
  +background-darken-border(lighten($important, 40%))
32
107
  color: $important
33
- .heading
108
+ .notify-heading
34
109
  color: $important
35
110
  &.success
36
111
  +background-darken-border(lighten($success, 40%))
37
112
  color: $success
38
- .heading
113
+ .notify-heading
39
114
  color: $success
40
115
  &.warning
41
116
  +background-darken-border(lighten($warning, 30%))
42
117
  color: darken($warning, 15%)
43
- .heading
118
+ .notify-heading
44
119
  color: darken($warning, 15%)
45
120
  &.danger, &.error, &.alert
46
121
  +background-darken-border(lighten($danger, 40%))
47
122
  color: $danger
48
- .heading
123
+ .notify-heading
49
124
  color: $danger
50
125
  &.primary
51
126
  +background-darken-border(lighten($primary, 40%))
52
127
  color: $primary
53
- .heading
128
+ .notify-heading
54
129
  color: $primary
55
130
 
56
- // Flash messages container
131
+ //~
132
+ // #### Flash Notifications
133
+ // Flash notifications enhance the `.notification` component by allowing them
134
+ // to appear fixed above all other elements on the page. Wrap the notifications
135
+ // within a `#flash_messages.flash-messages` container at the root of the body,
136
+ // sprinkle a little JavaScript and you're ready to go.
137
+ //
138
+ // Adding different positional classes to the `.flash-messages` container will
139
+ // allow them to appear in different quadrants of the viewport as seen below.
140
+ //
141
+ // Type | Class | Usage
142
+ // ----------------- | ---------------------------- | --------------------
143
+ // Top | `.flash-messages.top` | Fixed to the top of the browser, spans the entire viewport (_the default_)
144
+ // Bottom | `.flash-messages.bottom` | Fixed to the bottom of the browser, spans the entire viewport
145
+ // Top left | `.flash-messages.top-left` | Upper left quadrant of the viewport, with a size of 25%
146
+ // Top right | `.flash-messages.top-right` | Upper right quadrant of the viewport, with a size of 25%
147
+ // Top center | `.flash-messages.top-center` | Upper center quadrant of the viewport, with a size of 50%
148
+ // Middle | `.flash-messages.top-center` | Dead center baby, with a size of 50%
149
+ //
150
+ // Notes:
151
+ // - **Pro Tip!** The `.flash-messages` container is flexible enough to allow any component to be injected
152
+ //
153
+ // Warnings:
154
+ // - **Warning!** The JavaScript plugin for Flash notifications is not yet available
155
+
57
156
  .flash-messages,
58
157
  .flash-messages.top
59
158
  position: fixed
@@ -96,13 +195,10 @@
96
195
  right: 1.5em
97
196
 
98
197
  // Override some of the settings for full screen messages
99
- .flash-messages .notification,
100
- .flash-messages .pop-notification
198
+ .flash-messages .notification
101
199
  margin: 0
102
200
 
103
201
  .flash-messages.top .notification,
104
- .flash-messages.top .pop-notification,
105
- .flash-messages.bottom .notification,
106
- .flash-messages.bottom .pop-notification
202
+ .flash-messages.bottom .notification
107
203
  border-radius: 0
108
204
 
@@ -1,4 +1,30 @@
1
1
 
2
+ //~
3
+ // Paddles are commonly used in carousel or simple paging navigations.
4
+ // The default set contains simple inline links represented as a group.
5
+ //
6
+ // To allow paddles to float on the sides of the container, apply the
7
+ // `.prev` and `.next` classes to the containing paddles `li` element.
8
+ //
9
+ // Notes:
10
+ // - **Pro Tip!** Add `.paddles-center` or `.paddles-right` on the `.paddles` element to adjust alignment for a group
11
+ //
12
+ // Usage:
13
+ // <nav>
14
+ // <ul class="paddles">
15
+ // <li> <a href="#">&larr; Previous</a> </li>
16
+ // <li> <a href="#">Next &rarr;</a> </li>
17
+ // </ul>
18
+ // </nav>
19
+ //
20
+ // <!-- Aligned Paddles -->
21
+ // <nav style="margin-top:1.5em">
22
+ // <ul class="paddles">
23
+ // <li class="prev"><a href="#">&larr; Previous</a> </li>
24
+ // <li class="next"><a href="#">Next &rarr;</a> </li>
25
+ // </ul>
26
+ // </nav>
27
+
2
28
  .paddles
3
29
  +clearfixer
4
30
  list-style: none
@@ -1,15 +1,35 @@
1
1
 
2
+ //~
3
+ // Apply the `.pagination` class to the `ol` or `ul` element to
4
+ // represent pagination navigation. The list should contain the `.nav` class.
5
+ //
6
+ // Notes:
7
+ // - **Pro Tip** Add `.pagination-center` or `.pagination-right` on the `.pagination` container to change the alignment
8
+ //
9
+ // Usage:
10
+ // <nav>
11
+ // <ol class="nav pagination">
12
+ // <li class="disabled"><a href="#">&laquo;</a></li>
13
+ // <li><a href="#">1</a></li>
14
+ // <li class="active"><a href="#">2</a></li>
15
+ // <li><a href="#" rel="next">3</a></li>
16
+ // <li class="disabled"><a href="#">&hellip;</a></li>
17
+ // <li><a href="#">11</a></li>
18
+ // <li><a href="#">12</a></li>
19
+ // <li><a href="#">&raquo;</a></li>
20
+ // </ol>
21
+ // </nav>
22
+
2
23
  .pagination
3
24
  +clearfixer
4
25
 
5
26
  .pagination > li
6
- display: inline
7
27
  float: left
8
28
 
9
29
  .pagination > li > a
10
30
  background-color: $component_bg
11
31
  border: 1px solid $component_border
12
- border-right-width: 0
32
+ border-left-width: 0
13
33
  padding: 0.5em 0.75em
14
34
  &:hover
15
35
  background-color: $component_bg_hover
@@ -29,10 +49,10 @@
29
49
  color: $disabled_color
30
50
 
31
51
  .pagination > li:first-child > a
52
+ border-left-width: 1px
32
53
  border-radius: $radii 0 0 $radii
33
54
  .pagination > li:last-child > a
34
55
  border-radius: 0 $radii $radii 0
35
- border-right-width: 1px
36
56
 
37
57
  .pagination-center
38
58
  text-align: center
@@ -1,4 +1,80 @@
1
1
 
2
+ //~
3
+ // Pills are similar to tabs, and follow the same markup structure as other
4
+ // navigation elements. Pills like other navigation elements require the
5
+ // `.nav` class for layout. Add `.nav .pills` to a `ul` or `ol` element.
6
+ //
7
+ // ##### Togglable Pills
8
+ // To utilize a drop dead simple version of hiding and showing content
9
+ // related to a pill navigation, utilize [Bootstrap's Tab plugin](http://twitter.github.com/bootstrap/javascript.html#tabs).
10
+ // The base structure of pills 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 pills">
16
+ // <li class="active">
17
+ // <a data-toggle="pill" href="#pill_one">Pill One</a>
18
+ // </li>
19
+ // <li>
20
+ // <a data-toggle="pill" href="#pill_two">Pill Two</a>
21
+ // </li>
22
+ // <li class="dropdown">
23
+ // <a class="dropdown-toggle" data-toggle="dropdown" href="#">Pill Three<span class="caret"></span></a>
24
+ // <ul class="dropdown-menu">
25
+ // <li>
26
+ // <a data-toggle="pill" href="#pill_three-1">Subnav 1</a>
27
+ // </li>
28
+ // <li>
29
+ // <a data-toggle="pill" href="#pill_three-2">Subnav 2</a>
30
+ // </li>
31
+ // </ul>
32
+ // </li>
33
+ // </ul>
34
+ // </nav>
35
+ // <!-- Pillable Content -->
36
+ // <section class="pill-content" style="margin-top:1.25em;">
37
+ // <article class="pill-pane active" id="pill_one">
38
+ // <p>Pill <span class="decal primary">one</span> content</p>
39
+ // </article>
40
+ // <article class="pill-pane" id="pill_two">
41
+ // <p>Pill <span class="decal primary">two</span> content</p>
42
+ // </article>
43
+ // <article class="pill-pane" id="pill_three-1">
44
+ // <p>Pill <span class="decal primary">three</span>: subnav <span class="decal primary">1</span> content</p>
45
+ // </article>
46
+ // <article class="pill-pane" id="pill_three-2">
47
+ // <p>Pill <span class="decal primary">three</span>: subnav <span class="decal primary">2</span> content</p>
48
+ // </article>
49
+ // </section>
50
+
51
+ //~
52
+ // #### Stacked Pills
53
+ // Stack pills by adding the class `.stacked` to the `.pills` element.
54
+ //
55
+ // Usage:
56
+ // <nav>
57
+ // <ul class="nav pills stacked">
58
+ // <li class="active">
59
+ // <a href="#">Pill One</a>
60
+ // </li>
61
+ // <li class="dropdown">
62
+ // <a class="dropdown-toggle" data-toggle="dropdown" href="#">Pill 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="#">Pill Three</a>
74
+ // </li>
75
+ // </ul>
76
+ // </nav>
77
+
2
78
  // Default Pills
3
79
  .pills > li
4
80
  float: left
@@ -62,3 +138,7 @@
62
138
  .pill-content > .active
63
139
  +visuallyshown
64
140
 
141
+ @if $legacy-support-for-ie
142
+ .pills.stacked .caret
143
+ *margin-left: 0.5em
144
+