underoos 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,28 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Carets <span>carets.sass</span>
4
- %p Carets are used as icons for links. Apply them in <code>span</code> elements.
5
- .sg-subsection
6
- %table.box.banded.thead-decorate
7
- %thead
8
- %tr
9
- %th Caret
10
- %th Markup
11
- %tbody
12
- %tr
13
- %td <span class="caret"></span>
14
- %td.html <code>&lt;span class="caret"&gt;&lt;/span&gt;</code> or <code>&lt;span class="caret south"&gt;&lt;/span&gt;</code>
15
- %td.haml.hidden <code>%span.caret</code> or <code>%span.caret.south</code>
16
- %tr
17
- %td <span class="caret north"></span>
18
- %td.html <code>&lt;span class="caret north"&gt;&lt;/span&gt;</code>
19
- %td.haml.hidden <code>%span.caret.north</code>
20
- %tr
21
- %td <span class="caret east"></span>
22
- %td.html <code>&lt;span class="caret east"&gt;&lt;/span&gt;</code>
23
- %td.haml.hidden <code>%span.caret.east</code>
24
- %tr
25
- %td <span class="caret west"></span>
26
- %td.html <code>&lt;span class="caret west"&gt;&lt;/span&gt;</code>
27
- %td.haml.hidden <code>%span.caret.west</code>
28
-
@@ -1,20 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Close <span>close.sass</span>
4
- %p(style="width:67%;") Use the close icon to dismiss modals and notifications. Coupled with Bootstrap's <a href="http://twitter.github.com/bootstrap/javascript.html#alerts">alert</a> or <a href="http://twitter.github.com/bootstrap/javascript.html#modals">modal</a> plugins, you can pass the <code>data-dismiss="modal|alert"</code> attribute to trigger dismissal.
5
- .sg-subsection
6
- %table.box.banded.thead-decorate
7
- %thead
8
- %tr
9
- %th Icon
10
- %th Markup
11
- %tbody
12
- %tr
13
- %td <a class="close" style="float:none;" href="#">&times;</a>
14
- %td.html <code>&lt;a class="close" href="#"&gt;#{"&times;"}&lt;/a&gt;</code>
15
- %td.haml.hidden <code>%a.close(href="#") #{"&times;"}</code>
16
- %tr(style="background-color:#333;")
17
- %td <a class="close alt" style="float:none;" href="#">&times;</a>
18
- %td.html <code>&lt;a class="close alt" href="#"&gt;#{"&times;"}&lt;/a&gt;</code>
19
- %td.haml.hidden <code>%a.close.alt(href="#") #{"&times;"}</code>
20
-
@@ -1,40 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Decals <span>decals.sass</span>
4
- %p(style="width:67%;") Decals are used to <span class="decal important">pop</span> information in a block of text. They are typically used with <code>inline</code> elements and wrapped in a <code>span</code> element.
5
- .sg-subsection
6
- %table.box.banded.thead-decorate
7
- %thead
8
- %tr
9
- %th Decal
10
- %th Markup
11
- %tbody
12
- %tr
13
- %td <span class="decal">Default</span>
14
- %td.html <code>&lt;span class="decal"&gt;Default&lt;/span&gt;</code>
15
- %td.haml.hidden <code>%span.decal Default</code>
16
- %tr
17
- %td <span class="decal info">Info</span>
18
- %td.html <code>&lt;span class="decal info"&gt;Info&lt;/span&gt;</code>
19
- %td.haml.hidden <code>%span.decal.info Info</code>
20
- %tr
21
- %td <span class="decal important">Important</span>
22
- %td.html <code>&lt;span class="decal important"&gt;Important&lt;/span&gt;</code>
23
- %td.haml.hidden <code>%span.decal.important Important</code>
24
- %tr
25
- %td <span class="decal success">Success</span>
26
- %td.html <code>&lt;span class="decal success"&gt;Success&lt;/span&gt;</code>
27
- %td.haml.hidden <code>%span.decal.success Success</code>
28
- %tr
29
- %td <span class="decal warning">Warning</span>
30
- %td.html <code>&lt;span class="decal warning"&gt;Warning&lt;/span&gt;</code>
31
- %td.haml.hidden <code>%span.decal.warning Warning</code>
32
- %tr
33
- %td <span class="decal danger">Danger</span>
34
- %td.html <code>&lt;span class="decal danger"&gt;Danger&lt;/span&gt;</code>
35
- %td.haml.hidden <code>%span.decal.danger Danger</code>
36
- %tr
37
- %td <span class="decal primary">Primary</span>
38
- %td.html <code>&lt;span class="decal primary"&gt;Primary&lt;/span&gt;</code>
39
- %td.haml.hidden <code>%span.decal.primary Primary</code>
40
-
@@ -1,189 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Dropdowns <span>dropdowns.sass</span>
4
- %p Requires <a href="http://twitter.github.com/bootstrap/javascript.html#dropdowns">Bootstrap's Dropdown plugin</a>.
5
-
6
- .sg-subsection
7
- .sg-onethird.pull
8
- %h4 Basic Dropdowns
9
- %p Add dropdown menus to just about any type of navigation list element by applying the attribute <code>data-toggle="dropdown"</code> to the target button.
10
- .sg-twothird.push
11
- .well
12
- %nav
13
- %ul.nav
14
- %li.dropdown(style="display:inline-block; margin-right: 2em;")
15
- %a.dropdown-toggle(href="#" data-toggle="dropdown") Dropdown<span class="caret"></span>
16
- %ul.dropdown-menu
17
- %li
18
- %a(href="#") Subnav 1
19
- %li
20
- %a(href="#") Subnav 2
21
- %li.divider
22
- %li
23
- %a(href="#") Subnav 3
24
-
25
- %li.dropdown(style="display:inline-block;")
26
- %a.dropdown-toggle(href="#" data-toggle="dropdown") Dropup<span class="caret"></span>
27
- %ul.dropdown-menu.drop-up
28
- %li
29
- %a(href="#") Subnav 1
30
- %li
31
- %a(href="#") Subnav 2
32
- %li.divider
33
- %li
34
- %a(href="#") Subnav 3
35
- %pre.prettyprint.html
36
- = preserve do
37
- :escaped
38
- <nav>
39
- <ul class="nav">
40
- <li class="dropdown">
41
- <a href="#" data-toggle="dropdown">Dropdown<span class="caret"></span></a>
42
- <ul class="dropdown-menu">
43
- <li><a href="#">Subnav 1</a></li>
44
- <li><a href="#">Subnav 2</a></li>
45
- <li class="divider"></li>
46
- <li><a href="#">Subnav 3</a></li>
47
- </ul>
48
- </li>
49
- </ul>
50
- </nav>
51
- %pre.prettyprint.haml.hidden
52
- = preserve do
53
- :escaped
54
- %nav
55
- %ul.nav
56
- %li.dropdown
57
- %a(href="#" data-toggle="dropdown") Dropdown <span class="caret"></span>
58
- %ul.dropdown-menu
59
- %li
60
- %a(href="#") Subnav 1
61
- %li
62
- %a(href="#") Subnav 2
63
- %li.divider
64
- %li
65
- %a(href="#") Subnav 3
66
- .notification.important.fade.in
67
- %p <strong>Note!</strong> Add the <code>.drop-up</code> class to the <code>ul.dropdown-menu</code> to pop the menu above the target
68
-
69
- .sg-subsection
70
- .sg-onethird.pull
71
- %h4 Button dropdowns
72
- %p For elements outside of a list, typically in stand alone buttons, utilize the <code>button-group</code> structure for creating dropdowns.
73
- .sg-twothird.push
74
- .well.button-toolbar
75
- %nav.button-group
76
- %button.btn.dropdown-toggle(href="#" data-toggle="dropdown") Dropdown<span class="caret"></span>
77
- %ul.dropdown-menu
78
- %li
79
- %a(href="#") Subnav 1
80
- %li
81
- %a(href="#") Subnav 2
82
- %li.divider
83
- %li
84
- %a(href="#") Subnav 3
85
-
86
- %nav.button-group
87
- %button.btn.important.dropdown-toggle(href="#" data-toggle="dropdown") Important<span class="caret"></span>
88
- %ul.dropdown-menu.drop-up
89
- %li
90
- %a(href="#") Subnav 1
91
- %li
92
- %a(href="#") Subnav 2
93
- %li.divider
94
- %li
95
- %a(href="#") Subnav 3
96
- %nav.button-group
97
- %button.btn.success.dropdown-toggle(href="#" data-toggle="dropdown") Success<span class="caret"></span>
98
- %ul.dropdown-menu
99
- %li
100
- %a(href="#") Subnav 1
101
- %li
102
- %a(href="#") Subnav 2
103
- %li.divider
104
- %li
105
- %a(href="#") Subnav 3
106
- %pre.prettyprint.html
107
- = preserve do
108
- :escaped
109
- <nav class="button-group">
110
- <button class="btn dropdown-toggle" data-toggle="dropdown">Dropdown<span class="caret">
111
- <ul class="dropdown-menu">
112
- ...
113
- </ul>
114
- </nav>
115
- %pre.prettyprint.haml.hidden
116
- = preserve do
117
- :escaped
118
- %nav.button-group
119
- %button.btn.dropdown-toggle(data-toggle="dropdown") Dropdown<span class="caret"></span>
120
- %ul.dropdown-menu
121
- ...
122
- .sg-subsection
123
- .sg-onethird.pull
124
- %h4 Split button dropdowns
125
- %p Building on the <code>button-group</code> structure, create split buttons where there is action on the left button and contextual menu items under the caret to the right.
126
- .sg-twothird.push
127
- .well.button-toolbar
128
- %nav.button-group
129
- %button.btn(href="#") Action
130
- %button.btn.dropdown-toggle(href="#" data-toggle="dropdown") <span class="caret split"></span>
131
- %ul.dropdown-menu
132
- %li
133
- %a(href="#") Subnav 1
134
- %li
135
- %a(href="#") Subnav 2
136
- %li.divider
137
- %li
138
- %a(href="#") Subnav 3
139
- %nav.button-group
140
- %button.btn.important(href="#") Action
141
- %button.btn.important.dropdown-toggle(href="#" data-toggle="dropdown") <span class="caret split"></span>
142
- %ul.dropdown-menu.drop-up
143
- %li
144
- %a(href="#") Subnav 1
145
- %li
146
- %a(href="#") Subnav 2
147
- %li.divider
148
- %li
149
- %a(href="#") Subnav 3
150
- %nav.button-group
151
- %button.btn.success(href="#") Action
152
- %button.btn.success.dropdown-toggle(href="#" data-toggle="dropdown") <span class="caret split"></span>
153
- %ul.dropdown-menu
154
- %li
155
- %a(href="#") Subnav 1
156
- %li
157
- %a(href="#") Subnav 2
158
- %li.divider
159
- %li
160
- %a(href="#") Subnav 3
161
-
162
- %pre.prettyprint.html
163
- = preserve do
164
- :escaped
165
- <nav class="button-group">
166
- <button class="btn" href="#">Action</button>
167
- <button class="btn dropdown-toggle" data-toggle="dropdown">
168
- <span class="caret split"></span>
169
- </button>
170
- <ul class="dropdown-menu">
171
- ...
172
- </ul>
173
- </nav>
174
- %pre.prettyprint.haml.hidden
175
- = preserve do
176
- :escaped
177
- %nav.button-group
178
- %button.btn(href="#") Action
179
- %button.btn.dropdown-toggle(data-toggle="dropdown")
180
- %span.caret.split
181
- %ul.dropdown-menu
182
- ...
183
-
184
- .notification.important.fade.in
185
- %p <strong>Note!</strong> Add the <code>.split</code> class to the caret <code>&lt;span&gt;</code> to center within the button
186
- .notification.important.fade.in
187
- %p <strong>WTF: IE 7!</strong> Out of the box, dropdowns utilize <code>visuallyhidden</code> when hiding their content instead of <code>display:none</code>. This ensures the content is available to <a href="http://css-tricks.com/places-its-tempting-to-use-display-none-but-dont/">screen readers</a>. If you must support IE 7, remove the mixin for <code>visuallyhidden</code> and uncomment <code>display:none</code>. The <code>visuallyhidden</code> mixin works fine for modern browsers and IE8+
188
-
189
-
@@ -1,78 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Media <span>media.sass</span>
4
-
5
- .sg-subsection
6
- .sg-half.pull
7
- %h4 Media grid
8
- %p Media items within a grid, provide a simple way for showcasing images, video and other media items.
9
- .sg-half.push
10
- %h4 Media item
11
- %p With some additional markup, it's simple to create more complex media containers to showcase more information.
12
-
13
- .sg-subsection
14
- .sg-half.pull
15
- .well
16
- %nav
17
- %ul.media-grid
18
- -(1..4).each do |media|
19
- %li.sg-half
20
- %a.media-item(href="#")
21
- %img(src="http://placehold.it/260x180" alt="alt")
22
- %pre.prettyprint.html
23
- = preserve do
24
- :escaped
25
- <nav>
26
- <ul class="media-grid">
27
- <li class="col-half">
28
- <a class="media-item" href="#">
29
- <img alt="alt" src="http://placehold.it/260x180">
30
- </a>
31
- </li>
32
- ...
33
- </ul>
34
- </nav>
35
- %pre.prettyprint.haml.hidden
36
- = preserve do
37
- :escaped
38
- %nav
39
- %ul.media-grid
40
- %li.col-half
41
- %a.media-item(href="#")
42
- %img(alt="alt" src="http://placehold.it/260x180")
43
-
44
- .sg-half.push
45
- .well
46
- .media-item
47
- %img(src="http://placehold.it/540x180" alt="alt")
48
- %section.caption
49
- %h5 This is a title
50
- %p=@lorem_sm
51
- %footer(style="margin-top:1.2em;")
52
- %button.btn(href="#") Action
53
- %button.btn(href="#") Cancel
54
- %pre.prettyprint.html
55
- = preserve do
56
- :escaped
57
- <div class="media-item">
58
- <img alt="alt" src="http://placehold.it/460x180">
59
- <section class="caption">
60
- ...
61
- </section>
62
- </div>
63
- %pre.prettyprint.haml.hidden
64
- = preserve do
65
- :escaped
66
- .media-item
67
- %img(alt="alt" src="http://placehold.it/260x180")
68
- %section.caption
69
- ...
70
-
71
- .sg-subsection
72
- .sg-half.pull
73
- .notification.important.fade.in
74
- %p <strong>Note!</strong> Define the column span on the list item for grid settings
75
- .sg-half.push
76
- .notification.important.fade.in
77
- %p <strong>Note!</strong> Include a <code>caption</code> class after the media for additional padding
78
-
@@ -1,42 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Modals <span>modals.sass</span>
4
- .sg-onethird.pull
5
- %p Modals utilize <a href="http://twitter.github.com/bootstrap/javascript.html#modals">Bootstrap's Modal plugin</a>. You can control various options of how modals are shown based on attributes set in the trigger or the modal markup itself.
6
- %br
7
- %p We do not include any styles for the contents of a modal. This is better suited for other components or custom layouts within the application.
8
- .sg-twothird.push
9
- .well
10
- %button.btn.primary(data-toggle="modal" href="#modal") Launch Modal
11
- %pre.prettyprint.html
12
- = preserve do
13
- :escaped
14
- <!-- Modal Trigger Button -->
15
- <button class="btn important" data-toggle="modal" href="#modal_name"></button>
16
-
17
- <!-- Modal Wrapper -->
18
- <div id="modal_name" class="modal fade" data-backdrop="true" data-keyboard="true">
19
- ...
20
- <a class="close" data-dismiss="modal">&times;</a>
21
- </div>
22
- %pre.prettyprint.haml.hidden
23
- = preserve do
24
- :escaped
25
- <!-- Modal Trigger Button -->
26
- %button.btn.important(data-toggle="modal" href="#modal_name")
27
-
28
- <!-- Modal Wrapper -->
29
- #modal_name.modal.fade(data-backdrop="true" data-keyboard="true")
30
- ...
31
- %a.close(data-dismiss="modal") &times;
32
- #modal.modal.fade(data-backdrop="true" data-keyboard="true")
33
- .notification
34
- %header
35
- %h3.heading Notification within a Modal
36
- %section
37
- %p=@lorem
38
- %footer.footer-right
39
- %button.btn.important(href="#") Action
40
- %button.btn.danger(href="#") Cancel
41
- %a.close(href="#" data-dismiss="modal") &times;
42
-
@@ -1,52 +0,0 @@
1
-
2
- .sg-subsection
3
- %h3.sg-subheading Nav lists <span>nav-lists.sass</span>
4
- .sg-onethird.pull
5
- %p Nav lists build off of the same markup as <code>tabs</code> and <code>pills</code>. They are typically used in aside style navigation systems.
6
- %br
7
- %p To include a header, just supply the <code>li</code> with the class <code>.nav-header</code>
8
- .sg-twothird.push
9
- .well.lite
10
- %nav
11
- %ul.nav.nav-list
12
- %li.nav-header List Header
13
- %li
14
- %a(href="#") List One
15
- %li.active
16
- %a(href="#") List Two
17
- %li
18
- %a(href="#") List Three
19
- %li.nav-header Another List Header
20
- %li
21
- %a(href="#") List Four
22
- %li
23
- %a(href="#") List Five
24
- %pre.prettyprint.html
25
- = preserve do
26
- :escaped
27
- <nav>
28
- <ul class="nav nav-list">
29
- <li class="nav-header">List Header</li>
30
- <li><a href="#">List 1</a></li>
31
- <li><a href="#" class="active">List 2</a></li>
32
- <li><a href="#">List 3</a></li>
33
- <li class="nav-header">Another List Header</li>
34
- <li><a href="#">List 4</a></li>
35
- </ul>
36
- </nav>
37
- %pre.prettyprint.haml.hidden
38
- = preserve do
39
- :escaped
40
- %nav>
41
- %ul.nav.nav-list
42
- %li.nav-header List Header
43
- %li
44
- %a(href="#") List 1
45
- %li.active
46
- %a(href="#") List 2
47
- %li
48
- %a(href="#") List 3
49
- %li.nav-header Another List Header
50
- %li
51
- %a(href="#") List 4
52
-