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,144 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Navbars <span>navbars.sass</span>
4
- %p(style="width:67%;") Typically used for application or page level navigation systems. Navbars can contain just about any type of navigation component, search forms, button groups and drop downs.
5
- %br
6
- %p(style="width:67%;") Navbars support responsive behavior, by adding a button with <code>data-toggle="collapse" data-target="#target_id"</code>. You'll also need to set the corresponding class (<code>.nav-collapse</code>) and the id based on the target (<code>#target_id</code>) on the collapsable container. Make sure to utilize the styles contained within the media queries as well.
7
- .sg-subsection
8
- .navbar
9
- .navbar-inner
10
- .container
11
- %a.btn.info.btn-navbar(data-toggle="collapse" data-target="#collapse_example")
12
- %span.icon-bar
13
- %span.icon-bar
14
- %span.icon-bar
15
- %a.brand(href="#") Brand
16
- %nav.nav-collapse#collapse_example
17
- %ul.nav
18
- %li
19
- %a(href="#") Link 1
20
- %li.active
21
- %a(href="#") Link 2
22
- %li.plain-text Plain Text
23
- %li.dropdown
24
- %a.dropdown-toggle(href="#" data-toggle="dropdown") Dropdown<span class="caret"></span>
25
- %ul.dropdown-menu
26
- %li
27
- %a(href="#") Subnav 1
28
- %li
29
- %a(href="#") Subnav 2
30
- %li.divider
31
- %li
32
- %a(href="#") Subnav 3
33
-
34
- %nav.pull-right
35
- %form.form-search
36
- %ol
37
- %li
38
- %input.search-query(type="search" name="test[searchbar]" placeholder="search")
39
- %button.btn.primary(type="submit") Go
40
- %ul.nav
41
- %li.dropdown
42
- %a.dropdown-toggle(href="#" data-toggle="dropdown") Dropdown<span class="caret"></span>
43
- %ul.dropdown-menu
44
- %li
45
- %a(href="#") Subnav 1
46
- %li
47
- %a(href="#") Subnav 2
48
- %li.divider
49
- %li
50
- %a(href="#") Subnav 3
51
-
52
- .sg-subsection
53
- %pre.prettyprint.html
54
- = preserve do
55
- :escaped
56
- <!-- Showcases the navbar example above -->
57
- <div class="navbar">
58
- <div class="navbar-inner">
59
- <div class="container">
60
- <a class="btn info btn-navbar" data-toggle="collapse" data-target="#collapse_example">
61
- <span class="icon-bar"></span>
62
- <span class="icon-bar"></span>
63
- <span class="icon-bar"></span>
64
- </a>
65
- <a class="brand" href="#">Brand</a>
66
- <nav class="nav-collapse" id="collapse_example">
67
- <ul class="nav">
68
- <li><a href="#">Link 1</a></li>
69
- <li class="active"><a href="#">Link 2</a></li>
70
- <li class="plain-text">Plain Text</li>
71
- <li class="dropdown">
72
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown<span class="caret"></span></a>
73
- <ul class="dropdown-menu">
74
- ...
75
- </ul>
76
- </li>
77
- </ul>
78
- <section class="pull-right">
79
- <form class="form-search">
80
- <ol>
81
- <li>
82
- <input class="search-query" name="test[searchbar]" placeholder="search" type="search">
83
- <button class="btn primary" type="submit">Go</button>
84
- </li>
85
- </ol>
86
- </form>
87
- <ul class="nav">
88
- <li class="dropdown">
89
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown<span class="caret"></span></a>
90
- <ul class="dropdown-menu">
91
- ...
92
- </ul>
93
- </li>
94
- </ul>
95
- </section>
96
- </nav>
97
- </div>
98
- </div>
99
- </div>
100
- %pre.prettyprint.haml.hidden
101
- = preserve do
102
- :escaped
103
- <!-- Showcases the navbar example above -->
104
- .navbar
105
- .navbar-inner
106
- .container
107
- %a.btn.info.btn-navbar(data-toggle="collapse" data-target="#collapse_example")
108
- %span.icon-bar
109
- %span.icon-bar
110
- %span.icon-bar
111
- %a.brand(href="#") Brand
112
- %nav.nav-collapse#collapse_example
113
- %ul.nav
114
- %li
115
- %a(href="#") Link 1
116
- %li.active
117
- %a(href="#") Link 2
118
- %li.plain-text Plain Text
119
- %li.dropdown
120
- %a.dropdown-toggle(data-toggle="dropdown" href="#")
121
- Dropdown
122
- %span.caret
123
- %ul.dropdown-menu
124
- ...
125
- %section.pull-right
126
- %form.form-search
127
- %ol
128
- %li
129
- %input.search-query(name="test[searchbar]" placeholder="search" type="search")
130
- %button.btn.primary(type="submit") Go
131
- %ul.nav
132
- %li.dropdown
133
- %a.dropdown-toggle(data-toggle="dropdown" href="#")
134
- Dropdown
135
- %span.caret
136
- %ul.dropdown-menu
137
- ...
138
- .notification.important.fade.in
139
- %p <strong>Note!</strong> Add the <code>.fixed</code> class to the <code>.navbar</code> container to fix the navigation system to the top of the page
140
- .notification.important.fade.in
141
- %p <strong>Note!</strong> It's a good idea to set a specific height for the navbar, this is not set in the default component
142
- .notification.important.fade.in
143
- %p <strong>Note!</strong> For a responsive navbar, make sure to include <a href="http://twitter.github.com/bootstrap/javascript.html#collapse">Bootstrap's Collapse plugin</a> and add the necessary elements to the structure
144
-
@@ -1,27 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Navs Showcase <span>navs-example.sass</span>
4
- %p(style="width:67%;") Clicking on the buttons below will change the class on the <code>ul</code> element to showcase the different navigation systems. The markup structure remains the same.
5
- %br
6
- %small Follow along in your inspector!
7
- .well(style="margin-top:1.25em;")
8
- %nav
9
- %ul#navs_showcase.nav.pills
10
- %li
11
- %a(href="#" data-classes="nav") Base Nav
12
- %li
13
- %a(href="#" data-classes="nav tabs") Tabs
14
- %li.active
15
- %a(href="#" data-classes="nav pills") Pills
16
- %li
17
- %a(href="#" data-classes="nav breadcrumb") Breadcrumbs
18
- %li
19
- %a(href="#" data-classes="nav pagination") Pagination
20
- %li
21
- %a(href="#" data-classes="nav tabs stacked") Stacked Tabs
22
- %li
23
- %a(href="#" data-classes="nav pills stacked") Stacked Pills
24
-
25
- .notification.warning.fade.in
26
- %p <strong>Warning!</strong> All navigation components depend on the <code>.nav</code> class being attached to the list container element
27
-
@@ -1,169 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Notifications <span>notifications.sass</span>
4
-
5
- .sg-subsection
6
- -# Standard Notifications
7
- .sg-half.pull
8
- %h4 Basic notifications
9
- %p A basic notification is set on a container with the <code>.notification</code> class. It comes in the standard flavors for various types of alerts. Notifications utilize <a href="http://twitter.github.com/bootstrap/javascript.html#alerts">Bootstrap's alert plugin</a> for closing a notification.
10
- %pre.prettyprint.html
11
- = preserve do
12
- :escaped
13
- <div class="notification important fade in">
14
- <p><strong>Dude!</strong> Wheres my car?</p>
15
- <a class="close" data-dismiss="alert">&times;</a>
16
- </div>
17
- %pre.prettyprint.haml.hidden
18
- = preserve do
19
- :escaped
20
- .notification.important.fade.in
21
- %p <strong>Dude!</strong> Wheres my car?
22
- %a.close(data-dismiss="alert") &times;
23
-
24
- -# Pop Notifications
25
- .sg-half.push
26
- .notification.fade.in
27
- %p <strong>Default!</strong> This is the default notification.
28
- %a.close(href="#" data-dismiss="alert") &times;
29
- .notification.info.notice.fade.in
30
- %p <strong>Info (or Notice)!</strong> Use this for general information.
31
- %a.close(href="#" data-dismiss="alert") &times;
32
- .notification.important.fade.in
33
- %p <strong>Important!</strong> Something important is said here.
34
- %a.close(href="#" data-dismiss="alert") &times;
35
- .notification.success.fade.in
36
- %p <strong>Success!</strong> Congratulations, you get a trophy.
37
- %a.close(href="#" data-dismiss="alert") &times;
38
- .notification.warning.fade.in
39
- %p <strong>Warning!</strong> Your first and final.
40
- %a.close(href="#" data-dismiss="alert") &times;
41
- .notification.danger.error.alert.fade.in
42
- %p <strong>Danger (or Error, or Alert)!</strong> Something bad did happen.
43
- %a.close(href="#" data-dismiss="alert") &times;
44
- .notification.primary.fade.in
45
- %p <strong>Primary!</strong> The CI button.
46
- %a.close(href="#" data-dismiss="alert") &times;
47
-
48
- .sg-subsection
49
- .sg-half.pull
50
- %h4 Block notifications
51
- %p Block notifications are similar to the basic notification, in fact nothing needs to change on the outer container. Just add a <code>header</code>, <code>section</code> and/or <code>footer</code> to the internal markup to provide more information around the notification.
52
- %pre.prettyprint.html
53
- = preserve do
54
- :escaped
55
- <!-- Success Block -->
56
- <div class="notification success fade in">
57
- <header>...</header>
58
- <section>...</section>
59
- <footer>... </footer>
60
- <a class="close" data-dismiss="alert">&times;</a>
61
- </div>
62
-
63
- <!-- Danger Block -->
64
- <div class="notification danger fade in">
65
- <section>...</section>
66
- <footer class="footer-right">... </footer>
67
- <a class="close" data-dismiss="alert">&times;</a>
68
- </div>
69
-
70
- <!-- Primary Block -->
71
- <div class="notification important fade in">
72
- <header>...</header>
73
- <p>... </p>
74
- <a class="close" data-dismiss="alert">&times;</a>
75
- </div>
76
- %pre.prettyprint.haml.hidden
77
- = preserve do
78
- :escaped
79
- <!-- Success Block -->
80
- .notification.success.fade.in
81
- %header ...
82
- %section ...
83
- %footer ...
84
- %a.close(data-dismiss="alert") &times;
85
-
86
- <!-- Danger Block -->
87
- .notification.danger.fade.in
88
- %section ...
89
- %footer.footer-right ...
90
- %a.close(data-dismiss="alert") &times;
91
-
92
- <!-- Primary Block -->
93
- .notification.important.fade.in
94
- %header ...
95
- %p ...
96
- %a.close(data-dismiss="alert") &times;
97
- .sg-half.push
98
- .notification.success.fade.in
99
- %header
100
- %h5.heading Header with an h5
101
- %section
102
- %p=@lorem_sm
103
- %footer
104
- %button.btn.success(href="#") Action
105
- %button.btn(href="#") Cancel
106
- %a.close(href="#" data-dismiss="alert") &times;
107
- .notification.danger.fade.in
108
- %section
109
- %p
110
- %strong Yikes! This doesn't have a header and the footer is on the right!
111
- =@lorem_sm
112
- %footer.footer-right
113
- %button.btn.danger(href="#") Action
114
- %button.btn(href="#") Cancel
115
- %a.close(href="#" data-dismiss="alert") &times;
116
- .notification.important.fade.in
117
- %header
118
- %strong Header with strong tag, no section or footer!
119
- %p=@lorem_sm
120
- %a.close(href="#" data-dismiss="alert") &times;
121
-
122
-
123
- .sg-subsection
124
- %h4 Flash Notifications
125
- %p(style="width:67%") Flash notifications enhance the standard <code>.notification</code> component by allowing them to appear fixed above all other elements on the page. Wrap the notifications within a <code>#flash_messages.flash-messages</code> container at the root of the body, sprinkle a little JavaScript and you're ready to go.
126
- %br
127
- %p(style="width:67%") Adding different positional classes to the <code>.flash-messages</code> container will allow them to appear in different quadrants of the viewport as seen below:
128
- .sg-subsection
129
- %table.box.banded.thead-decorate
130
- %thead
131
- %tr
132
- %th Type
133
- %th Class
134
- %th Usage
135
- %tbody
136
- %tr
137
- %td
138
- %a.flash-example(href="#" data-position="top") Top
139
- %td <code>.flash-messages.top</code>
140
- %td Fixed to the top of the browser, spans the entire viewport (<em>the default</em>)
141
- %tr
142
- %td
143
- %a.flash-example(href="#" data-position="bottom") Bottom
144
- %td <code>.flash-messages.bottom</code>
145
- %td Fixed to the bottom of the browser, spans the entire viewport
146
- %tr
147
- %td
148
- %a.flash-example(href="#" data-position="top-left") Top left
149
- %td <code>.flash-messages.top-left</code>
150
- %td Upper left quadrant of the viewport, with a size of 25%
151
- %tr
152
- %td
153
- %a.flash-example(href="#" data-position="top-right") Top right
154
- %td <code>.flash-messages.top-right</code>
155
- %td Upper right quadrant of the viewport, with a size of 25%
156
- %tr
157
- %td
158
- %a.flash-example(href="#" data-position="top-center") Top center
159
- %td <code>.flash-messages.top-center</code>
160
- %td Upper center quadrant of the viewport, with a size of 50%
161
- %tr
162
- %td
163
- %a.flash-example(href="#" data-position="middle") Middle
164
- %td <code>.flash-messages.middle</code>
165
- %td Dead center baby, with a size of 50%
166
-
167
- .notification.important.fade.in
168
- %p <strong>Note!</strong> You don't necessarily need to use notifications within the <code>.flash-messages</code> container, it's left fairly flexible to allow for various interpretations
169
-
@@ -1,68 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Paddles <span>paddles.sass</span>
4
-
5
- .sg-subsection
6
- .sg-onethird.pull
7
- %h4 Default paddles
8
- %p Paddles are commonly used in carousel or simple paging navigations. The default set contains simple inline links.
9
- .sg-twothird.push
10
- .well
11
- %nav
12
- %ul.paddles
13
- %li
14
- %a(href="#") &larr; Previous
15
- %li
16
- %a(href="#") Next &rarr;
17
- %pre.prettyprint.html
18
- = preserve do
19
- :escaped
20
- <nav>
21
- <ul class="paddles">
22
- <li> <a href="#">&larr; Previous</a> </li>
23
- <li> <a href="#">Next &rarr;</a> </li>
24
- </ul>
25
- </nav>
26
- %pre.prettyprint.haml.hidden
27
- = preserve do
28
- :escaped
29
- %nav
30
- %ul.paddles
31
- %li
32
- %a(href="#") &larr; Previous
33
- %li
34
- %a(href="#") Next &rarr;
35
- .notification.important.fade.in
36
- %p <strong>Note!</strong> Add <code>.paddles-center</code> or <code>.paddles-right</code> on the container to change the alignment
37
-
38
- .sg-subsection
39
- .sg-onethird.pull
40
- %h4 Aligned paddles
41
- %p To allow paddles to float on the sides of the container, apply the <code>.prev</code> and <code>.next</code> classes to the containing paddles <code>li</code> element.
42
- .sg-twothird.push
43
- .well
44
- %nav
45
- %ul.paddles
46
- %li.prev
47
- %a(href="#") &larr; Previous
48
- %li.next
49
- %a(href="#") Next &rarr;
50
- %pre.prettyprint.html
51
- = preserve do
52
- :escaped
53
- <nav>
54
- <ul class="paddles">
55
- <li class="prev"><a href="#">&larr; Previous</a> </li>
56
- <li class="next"><a href="#">Next &rarr;</a> </li>
57
- </ul>
58
- </nav>
59
- %pre.prettyprint.haml.hidden
60
- = preserve do
61
- :escaped
62
- %nav
63
- %ul.paddles
64
- %li.prev
65
- %a(href="#") &larr; Previous
66
- %li.next
67
- %a(href="#") Next &rarr;
68
-
@@ -1,64 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Pagination <span>pagination.sass</span>
4
- .sg-onethird.pull
5
- %p Apply the <code>.pagination</code> class to the <code>ol</code> or <code>ul</code> element to represent pagination navigation.
6
- .sg-twothird.push
7
- .well
8
- %nav
9
- %ol.nav.pagination
10
- %li.disabled
11
- %a(href="#") &laquo;
12
- %li
13
- %a(href="#") 1
14
- %li.active
15
- %a(href="#") 2
16
- %li
17
- %a(href="#" rel="next") 3
18
- %li.disabled
19
- %a(href="#") &hellip;
20
- %li
21
- %a(href="#") 11
22
- %li
23
- %a(href="#") 12
24
- %li
25
- %a(href="#" rel="next") &raquo;
26
-
27
- %pre.prettyprint.html
28
- = preserve do
29
- :escaped
30
- <nav>
31
- <ol class="nav pagination">
32
- <li class="disabled"><a href="#">&laquo;</a></li>
33
- <li><a href="#">1</a></li>
34
- <li class="active"><a href="#">2</a></li>
35
- <li><a href="#" rel="next">3</a></li>
36
- <li class="disabled"><a href="#">&hellip;</a></li>
37
- <li><a href="#">11</a></li>
38
- <li><a href="#">12</a></li>
39
- <li><a href="#">&raquo;</a></li>
40
- </ol>
41
- </nav>
42
- %pre.prettyprint.haml.hidden
43
- = preserve do
44
- :escaped
45
- %ol.nav.pagination
46
- %li.disabled
47
- %a(href="#") &laquo;
48
- %li
49
- %a(href="#") 1
50
- %li.active
51
- %a(href="#") 2
52
- %li
53
- %a(href="#" rel="next") 3
54
- %li.disabled
55
- %a(href="#") &hellip;
56
- %li
57
- %a(href="#") 11
58
- %li
59
- %a(href="#") 12
60
- %li
61
- %a(href="#" rel="next") &raquo;
62
- .notification.important.fade.in
63
- %p <strong>Note!</strong> Add <code>.pagination-center</code> or <code>.pagination-right</code> on the container to change the alignment
64
-