style-guide 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. data/.gitignore +11 -0
  2. data/.gitmodules +3 -0
  3. data/.pairs +11 -0
  4. data/.rvmrc +1 -0
  5. data/Gemfile +5 -0
  6. data/Gemfile.lock +144 -0
  7. data/Guardfile +14 -0
  8. data/LICENSE +7 -0
  9. data/README.md +7 -0
  10. data/Rakefile +27 -0
  11. data/app/assets/images/style_guide/.gitkeep +0 -0
  12. data/app/assets/images/style_guide/img/bird.png +0 -0
  13. data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  14. data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  15. data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  16. data/app/assets/images/style_guide/img/browsers.png +0 -0
  17. data/app/assets/images/style_guide/img/bs-docs-bootstrap-features.png +0 -0
  18. data/app/assets/images/style_guide/img/bs-docs-masthead-pattern.png +0 -0
  19. data/app/assets/images/style_guide/img/bs-docs-responsive-illustrations.png +0 -0
  20. data/app/assets/images/style_guide/img/bs-docs-twitter-github.png +0 -0
  21. data/app/assets/images/style_guide/img/example-diagram-01.png +0 -0
  22. data/app/assets/images/style_guide/img/example-diagram-02.png +0 -0
  23. data/app/assets/images/style_guide/img/example-diagram-03.png +0 -0
  24. data/app/assets/images/style_guide/img/example-sites/8020select.png +0 -0
  25. data/app/assets/images/style_guide/img/example-sites/adoptahydrant.png +0 -0
  26. data/app/assets/images/style_guide/img/example-sites/bartop.png +0 -0
  27. data/app/assets/images/style_guide/img/example-sites/breakingnews.png +0 -0
  28. data/app/assets/images/style_guide/img/example-sites/fleetio.png +0 -0
  29. data/app/assets/images/style_guide/img/example-sites/gathercontent.png +0 -0
  30. data/app/assets/images/style_guide/img/example-sites/jshint.png +0 -0
  31. data/app/assets/images/style_guide/img/example-sites/kippt.png +0 -0
  32. data/app/assets/images/style_guide/img/example-sites/railwayjs.png +0 -0
  33. data/app/assets/images/style_guide/img/example-sites/soundready.png +0 -0
  34. data/app/assets/images/style_guide/img/example-sites/totalwireframe.png +0 -0
  35. data/app/assets/images/style_guide/img/examples/bootstrap-example-carousel.png +0 -0
  36. data/app/assets/images/style_guide/img/examples/bootstrap-example-fluid.jpg +0 -0
  37. data/app/assets/images/style_guide/img/examples/bootstrap-example-hero.jpg +0 -0
  38. data/app/assets/images/style_guide/img/examples/bootstrap-example-marketing-narrow.png +0 -0
  39. data/app/assets/images/style_guide/img/examples/bootstrap-example-signin.png +0 -0
  40. data/app/assets/images/style_guide/img/examples/bootstrap-example-starter.jpg +0 -0
  41. data/app/assets/images/style_guide/img/examples/bootstrap-example-sticky-footer.png +0 -0
  42. data/app/assets/images/style_guide/img/examples/browser-icon-chrome.png +0 -0
  43. data/app/assets/images/style_guide/img/examples/browser-icon-firefox.png +0 -0
  44. data/app/assets/images/style_guide/img/examples/browser-icon-safari.png +0 -0
  45. data/app/assets/images/style_guide/img/examples/slide-01.jpg +0 -0
  46. data/app/assets/images/style_guide/img/examples/slide-02.jpg +0 -0
  47. data/app/assets/images/style_guide/img/examples/slide-03.jpg +0 -0
  48. data/app/assets/images/style_guide/img/github-16px.png +0 -0
  49. data/app/assets/images/style_guide/img/glyphicons/glyphicons_009_magic.png +0 -0
  50. data/app/assets/images/style_guide/img/glyphicons/glyphicons_042_group.png +0 -0
  51. data/app/assets/images/style_guide/img/glyphicons/glyphicons_079_podium.png +0 -0
  52. data/app/assets/images/style_guide/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  53. data/app/assets/images/style_guide/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  54. data/app/assets/images/style_guide/img/glyphicons/glyphicons_163_iphone.png +0 -0
  55. data/app/assets/images/style_guide/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  56. data/app/assets/images/style_guide/img/glyphicons/glyphicons_266_book_open.png +0 -0
  57. data/app/assets/images/style_guide/img/glyphicons-halflings-white.png +0 -0
  58. data/app/assets/images/style_guide/img/glyphicons-halflings.png +0 -0
  59. data/app/assets/images/style_guide/img/grid-18px-masked.png +0 -0
  60. data/app/assets/images/style_guide/img/grid-baseline-20px.png +0 -0
  61. data/app/assets/images/style_guide/img/icon-css3.png +0 -0
  62. data/app/assets/images/style_guide/img/icon-github.png +0 -0
  63. data/app/assets/images/style_guide/img/icon-html5.png +0 -0
  64. data/app/assets/images/style_guide/img/icon-twitter.png +0 -0
  65. data/app/assets/images/style_guide/img/less-logo-large.png +0 -0
  66. data/app/assets/images/style_guide/img/less-small.png +0 -0
  67. data/app/assets/images/style_guide/img/responsive-illustrations.png +0 -0
  68. data/app/assets/javascripts/style_guide/application.js +13 -0
  69. data/app/assets/javascripts/style_guide/docs.js +154 -0
  70. data/app/assets/javascripts/style_guide/prettify.js +28 -0
  71. data/app/assets/stylesheets/style_guide/application.css +13 -0
  72. data/app/assets/stylesheets/style_guide/docs.css +1015 -0
  73. data/app/assets/stylesheets/style_guide/prettify.css +30 -0
  74. data/app/controllers/style_guide/application_controller.rb +4 -0
  75. data/app/controllers/style_guide/style_controller.rb +12 -0
  76. data/app/helpers/style_guide/application_helper.rb +4 -0
  77. data/app/views/layouts/style_guide/application.html.erb +44 -0
  78. data/app/views/style_guide/partials/_buttons.erb +167 -0
  79. data/app/views/style_guide/partials/_code.erb +31 -0
  80. data/app/views/style_guide/partials/_forms.erb +714 -0
  81. data/app/views/style_guide/partials/_images.erb +318 -0
  82. data/app/views/style_guide/partials/_tables.erb +409 -0
  83. data/app/views/style_guide/partials/_typography.erb +331 -0
  84. data/app/views/style_guide/style/index.html.erb +32 -0
  85. data/config/routes.rb +3 -0
  86. data/lib/style_guide/engine.rb +12 -0
  87. data/lib/style_guide/version.rb +3 -0
  88. data/lib/style_guide.rb +4 -0
  89. data/script/rails +8 -0
  90. data/spec/dummy/README.rdoc +261 -0
  91. data/spec/dummy/Rakefile +7 -0
  92. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_009_magic.png +0 -0
  93. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_042_group.png +0 -0
  94. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_079_podium.png +0 -0
  95. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  96. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  97. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_163_iphone.png +0 -0
  98. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  99. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_266_book_open.png +0 -0
  100. data/spec/dummy/app/assets/images/img/glyphicons-halflings-white.png +0 -0
  101. data/spec/dummy/app/assets/images/img/glyphicons-halflings.png +0 -0
  102. data/spec/dummy/app/assets/javascripts/application.js +27 -0
  103. data/spec/dummy/app/assets/javascripts/bootstrap-affix.js +106 -0
  104. data/spec/dummy/app/assets/javascripts/bootstrap-alert.js +88 -0
  105. data/spec/dummy/app/assets/javascripts/bootstrap-button.js +94 -0
  106. data/spec/dummy/app/assets/javascripts/bootstrap-carousel.js +176 -0
  107. data/spec/dummy/app/assets/javascripts/bootstrap-collapse.js +156 -0
  108. data/spec/dummy/app/assets/javascripts/bootstrap-dropdown.js +148 -0
  109. data/spec/dummy/app/assets/javascripts/bootstrap-modal.js +234 -0
  110. data/spec/dummy/app/assets/javascripts/bootstrap-popover.js +103 -0
  111. data/spec/dummy/app/assets/javascripts/bootstrap-scrollspy.js +151 -0
  112. data/spec/dummy/app/assets/javascripts/bootstrap-tab.js +133 -0
  113. data/spec/dummy/app/assets/javascripts/bootstrap-tooltip.js +276 -0
  114. data/spec/dummy/app/assets/javascripts/bootstrap-transition.js +60 -0
  115. data/spec/dummy/app/assets/javascripts/bootstrap-typeahead.js +310 -0
  116. data/spec/dummy/app/assets/javascripts/jquery.js +2 -0
  117. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  118. data/spec/dummy/app/assets/stylesheets/bootstrap/accordion.less +34 -0
  119. data/spec/dummy/app/assets/stylesheets/bootstrap/alerts.less +65 -0
  120. data/spec/dummy/app/assets/stylesheets/bootstrap/bootstrap.less +63 -0
  121. data/spec/dummy/app/assets/stylesheets/bootstrap/breadcrumbs.less +24 -0
  122. data/spec/dummy/app/assets/stylesheets/bootstrap/button-groups.less +242 -0
  123. data/spec/dummy/app/assets/stylesheets/bootstrap/buttons.less +232 -0
  124. data/spec/dummy/app/assets/stylesheets/bootstrap/carousel.less +131 -0
  125. data/spec/dummy/app/assets/stylesheets/bootstrap/close.less +31 -0
  126. data/spec/dummy/app/assets/stylesheets/bootstrap/code.less +58 -0
  127. data/spec/dummy/app/assets/stylesheets/bootstrap/component-animations.less +22 -0
  128. data/spec/dummy/app/assets/stylesheets/bootstrap/dropdowns.less +237 -0
  129. data/spec/dummy/app/assets/stylesheets/bootstrap/forms.less +683 -0
  130. data/spec/dummy/app/assets/stylesheets/bootstrap/grid.less +21 -0
  131. data/spec/dummy/app/assets/stylesheets/bootstrap/hero-unit.less +25 -0
  132. data/spec/dummy/app/assets/stylesheets/bootstrap/labels-badges.less +74 -0
  133. data/spec/dummy/app/assets/stylesheets/bootstrap/layouts.less +16 -0
  134. data/spec/dummy/app/assets/stylesheets/bootstrap/media.less +55 -0
  135. data/spec/dummy/app/assets/stylesheets/bootstrap/mixins.less +687 -0
  136. data/spec/dummy/app/assets/stylesheets/bootstrap/modals.less +94 -0
  137. data/spec/dummy/app/assets/stylesheets/bootstrap/navbar.less +475 -0
  138. data/spec/dummy/app/assets/stylesheets/bootstrap/navs.less +385 -0
  139. data/spec/dummy/app/assets/stylesheets/bootstrap/pager.less +41 -0
  140. data/spec/dummy/app/assets/stylesheets/bootstrap/pagination.less +121 -0
  141. data/spec/dummy/app/assets/stylesheets/bootstrap/popovers.less +117 -0
  142. data/spec/dummy/app/assets/stylesheets/bootstrap/progress-bars.less +122 -0
  143. data/spec/dummy/app/assets/stylesheets/bootstrap/reset.less +138 -0
  144. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-1200px-min.less +28 -0
  145. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-767px-max.less +193 -0
  146. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-768px-979px.less +19 -0
  147. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-navbar.less +185 -0
  148. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-utilities.less +43 -0
  149. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive.less +48 -0
  150. data/spec/dummy/app/assets/stylesheets/bootstrap/scaffolding.less +52 -0
  151. data/spec/dummy/app/assets/stylesheets/bootstrap/sprites.less +193 -0
  152. data/spec/dummy/app/assets/stylesheets/bootstrap/tables.less +236 -0
  153. data/spec/dummy/app/assets/stylesheets/bootstrap/thumbnails.less +52 -0
  154. data/spec/dummy/app/assets/stylesheets/bootstrap/tooltip.less +70 -0
  155. data/spec/dummy/app/assets/stylesheets/bootstrap/type.less +227 -0
  156. data/spec/dummy/app/assets/stylesheets/bootstrap/utilities.less +30 -0
  157. data/spec/dummy/app/assets/stylesheets/bootstrap/variables.less +301 -0
  158. data/spec/dummy/app/assets/stylesheets/bootstrap/wells.less +29 -0
  159. data/spec/dummy/app/assets/stylesheets/bootstrap-responsive.css +1088 -0
  160. data/spec/dummy/app/assets/stylesheets/bootstrap.css +5893 -0
  161. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/_colors.scss +10 -0
  162. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/ars-maquette-web.css +35 -0
  163. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/button.less +5 -0
  164. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/layout.css.scss +11 -0
  165. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/typography.css.scss +20 -0
  166. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/variables.css.less +10 -0
  167. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap.css.less +3 -0
  168. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  169. data/spec/dummy/app/controllers/home_controller.rb +3 -0
  170. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  171. data/spec/dummy/app/mailers/.gitkeep +0 -0
  172. data/spec/dummy/app/models/.gitkeep +0 -0
  173. data/spec/dummy/app/views/home/index.html.erb +1 -0
  174. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  175. data/spec/dummy/app/views/styles/_info-header.erb +1 -0
  176. data/spec/dummy/config/application.rb +32 -0
  177. data/spec/dummy/config/boot.rb +10 -0
  178. data/spec/dummy/config/environment.rb +5 -0
  179. data/spec/dummy/config/environments/development.rb +30 -0
  180. data/spec/dummy/config/environments/production.rb +67 -0
  181. data/spec/dummy/config/environments/test.rb +34 -0
  182. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  183. data/spec/dummy/config/initializers/inflections.rb +15 -0
  184. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  185. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  186. data/spec/dummy/config/initializers/session_store.rb +8 -0
  187. data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
  188. data/spec/dummy/config/locales/en.yml +5 -0
  189. data/spec/dummy/config/routes.rb +4 -0
  190. data/spec/dummy/config.ru +4 -0
  191. data/spec/dummy/lib/assets/.gitkeep +0 -0
  192. data/spec/dummy/log/.gitkeep +0 -0
  193. data/spec/dummy/public/404.html +26 -0
  194. data/spec/dummy/public/422.html +26 -0
  195. data/spec/dummy/public/500.html +25 -0
  196. data/spec/dummy/public/favicon.ico +0 -0
  197. data/spec/dummy/public/img/glyphicons/glyphicons_009_magic.png +0 -0
  198. data/spec/dummy/public/img/glyphicons/glyphicons_042_group.png +0 -0
  199. data/spec/dummy/public/img/glyphicons/glyphicons_079_podium.png +0 -0
  200. data/spec/dummy/public/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  201. data/spec/dummy/public/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  202. data/spec/dummy/public/img/glyphicons/glyphicons_163_iphone.png +0 -0
  203. data/spec/dummy/public/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  204. data/spec/dummy/public/img/glyphicons/glyphicons_266_book_open.png +0 -0
  205. data/spec/dummy/public/img/glyphicons-halflings-white.png +0 -0
  206. data/spec/dummy/public/img/glyphicons-halflings.png +0 -0
  207. data/spec/dummy/script/rails +6 -0
  208. data/style-guide.gemspec +26 -0
  209. metadata +500 -0
@@ -0,0 +1,385 @@
1
+ //
2
+ // Navs
3
+ // --------------------------------------------------
4
+
5
+
6
+ // BASE CLASS
7
+ // ----------
8
+
9
+ .nav {
10
+ margin-left: 0;
11
+ margin-bottom: @baseLineHeight;
12
+ list-style: none;
13
+ }
14
+
15
+ // Make links block level
16
+ .nav > li > a {
17
+ display: block;
18
+ }
19
+ .nav > li > a:hover {
20
+ text-decoration: none;
21
+ background-color: @grayLighter;
22
+ }
23
+
24
+ // Redeclare pull classes because of specifity
25
+ .nav > .pull-right {
26
+ float: right;
27
+ }
28
+
29
+ // Nav headers (for dropdowns and lists)
30
+ .nav-header {
31
+ display: block;
32
+ padding: 3px 15px;
33
+ font-size: 11px;
34
+ font-weight: bold;
35
+ line-height: @baseLineHeight;
36
+ color: @grayLight;
37
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
38
+ text-transform: uppercase;
39
+ }
40
+ // Space them out when they follow another list item (link)
41
+ .nav li + .nav-header {
42
+ margin-top: 9px;
43
+ }
44
+
45
+
46
+
47
+ // NAV LIST
48
+ // --------
49
+
50
+ .nav-list {
51
+ padding-left: 15px;
52
+ padding-right: 15px;
53
+ margin-bottom: 0;
54
+ }
55
+ .nav-list > li > a,
56
+ .nav-list .nav-header {
57
+ margin-left: -15px;
58
+ margin-right: -15px;
59
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
60
+ }
61
+ .nav-list > li > a {
62
+ padding: 3px 15px;
63
+ }
64
+ .nav-list > .active > a,
65
+ .nav-list > .active > a:hover {
66
+ color: @white;
67
+ text-shadow: 0 -1px 0 rgba(0,0,0,.2);
68
+ background-color: @linkColor;
69
+ }
70
+ .nav-list [class^="icon-"],
71
+ .nav-list [class*=" icon-"] {
72
+ margin-right: 2px;
73
+ }
74
+ // Dividers (basically an hr) within the dropdown
75
+ .nav-list .divider {
76
+ .nav-divider();
77
+ }
78
+
79
+
80
+
81
+ // TABS AND PILLS
82
+ // -------------
83
+
84
+ // Common styles
85
+ .nav-tabs,
86
+ .nav-pills {
87
+ .clearfix();
88
+ }
89
+ .nav-tabs > li,
90
+ .nav-pills > li {
91
+ float: left;
92
+ }
93
+ .nav-tabs > li > a,
94
+ .nav-pills > li > a {
95
+ padding-right: 12px;
96
+ padding-left: 12px;
97
+ margin-right: 2px;
98
+ line-height: 14px; // keeps the overall height an even number
99
+ }
100
+
101
+ // TABS
102
+ // ----
103
+
104
+ // Give the tabs something to sit on
105
+ .nav-tabs {
106
+ border-bottom: 1px solid #ddd;
107
+ }
108
+ // Make the list-items overlay the bottom border
109
+ .nav-tabs > li {
110
+ margin-bottom: -1px;
111
+ }
112
+ // Actual tabs (as links)
113
+ .nav-tabs > li > a {
114
+ padding-top: 8px;
115
+ padding-bottom: 8px;
116
+ line-height: @baseLineHeight;
117
+ border: 1px solid transparent;
118
+ .border-radius(4px 4px 0 0);
119
+ &:hover {
120
+ border-color: @grayLighter @grayLighter #ddd;
121
+ }
122
+ }
123
+ // Active state, and it's :hover to override normal :hover
124
+ .nav-tabs > .active > a,
125
+ .nav-tabs > .active > a:hover {
126
+ color: @gray;
127
+ background-color: @bodyBackground;
128
+ border: 1px solid #ddd;
129
+ border-bottom-color: transparent;
130
+ cursor: default;
131
+ }
132
+
133
+
134
+ // PILLS
135
+ // -----
136
+
137
+ // Links rendered as pills
138
+ .nav-pills > li > a {
139
+ padding-top: 8px;
140
+ padding-bottom: 8px;
141
+ margin-top: 2px;
142
+ margin-bottom: 2px;
143
+ .border-radius(5px);
144
+ }
145
+
146
+ // Active state
147
+ .nav-pills > .active > a,
148
+ .nav-pills > .active > a:hover {
149
+ color: @white;
150
+ background-color: @linkColor;
151
+ }
152
+
153
+
154
+
155
+ // STACKED NAV
156
+ // -----------
157
+
158
+ // Stacked tabs and pills
159
+ .nav-stacked > li {
160
+ float: none;
161
+ }
162
+ .nav-stacked > li > a {
163
+ margin-right: 0; // no need for the gap between nav items
164
+ }
165
+
166
+ // Tabs
167
+ .nav-tabs.nav-stacked {
168
+ border-bottom: 0;
169
+ }
170
+ .nav-tabs.nav-stacked > li > a {
171
+ border: 1px solid #ddd;
172
+ .border-radius(0);
173
+ }
174
+ .nav-tabs.nav-stacked > li:first-child > a {
175
+ .border-top-radius(4px);
176
+ }
177
+ .nav-tabs.nav-stacked > li:last-child > a {
178
+ .border-bottom-radius(4px);
179
+ }
180
+ .nav-tabs.nav-stacked > li > a:hover {
181
+ border-color: #ddd;
182
+ z-index: 2;
183
+ }
184
+
185
+ // Pills
186
+ .nav-pills.nav-stacked > li > a {
187
+ margin-bottom: 3px;
188
+ }
189
+ .nav-pills.nav-stacked > li:last-child > a {
190
+ margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
191
+ }
192
+
193
+
194
+
195
+ // DROPDOWNS
196
+ // ---------
197
+
198
+ .nav-tabs .dropdown-menu {
199
+ .border-radius(0 0 6px 6px); // remove the top rounded corners here since there is a hard edge above the menu
200
+ }
201
+ .nav-pills .dropdown-menu {
202
+ .border-radius(6px); // make rounded corners match the pills
203
+ }
204
+
205
+ // Default dropdown links
206
+ // -------------------------
207
+ // Make carets use linkColor to start
208
+ .nav .dropdown-toggle .caret {
209
+ border-top-color: @linkColor;
210
+ border-bottom-color: @linkColor;
211
+ margin-top: 6px;
212
+ }
213
+ .nav .dropdown-toggle:hover .caret {
214
+ border-top-color: @linkColorHover;
215
+ border-bottom-color: @linkColorHover;
216
+ }
217
+ /* move down carets for tabs */
218
+ .nav-tabs .dropdown-toggle .caret {
219
+ margin-top: 8px;
220
+ }
221
+
222
+ // Active dropdown links
223
+ // -------------------------
224
+ .nav .active .dropdown-toggle .caret {
225
+ border-top-color: #fff;
226
+ border-bottom-color: #fff;
227
+ }
228
+ .nav-tabs .active .dropdown-toggle .caret {
229
+ border-top-color: @gray;
230
+ border-bottom-color: @gray;
231
+ }
232
+
233
+ // Active:hover dropdown links
234
+ // -------------------------
235
+ .nav > .dropdown.active > a:hover {
236
+ cursor: pointer;
237
+ }
238
+
239
+ // Open dropdowns
240
+ // -------------------------
241
+ .nav-tabs .open .dropdown-toggle,
242
+ .nav-pills .open .dropdown-toggle,
243
+ .nav > li.dropdown.open.active > a:hover {
244
+ color: @white;
245
+ background-color: @grayLight;
246
+ border-color: @grayLight;
247
+ }
248
+ .nav li.dropdown.open .caret,
249
+ .nav li.dropdown.open.active .caret,
250
+ .nav li.dropdown.open a:hover .caret {
251
+ border-top-color: @white;
252
+ border-bottom-color: @white;
253
+ .opacity(100);
254
+ }
255
+
256
+ // Dropdowns in stacked tabs
257
+ .tabs-stacked .open > a:hover {
258
+ border-color: @grayLight;
259
+ }
260
+
261
+
262
+
263
+ // TABBABLE
264
+ // --------
265
+
266
+
267
+ // COMMON STYLES
268
+ // -------------
269
+
270
+ // Clear any floats
271
+ .tabbable {
272
+ .clearfix();
273
+ }
274
+ .tab-content {
275
+ overflow: auto; // prevent content from running below tabs
276
+ }
277
+
278
+ // Remove border on bottom, left, right
279
+ .tabs-below > .nav-tabs,
280
+ .tabs-right > .nav-tabs,
281
+ .tabs-left > .nav-tabs {
282
+ border-bottom: 0;
283
+ }
284
+
285
+ // Show/hide tabbable areas
286
+ .tab-content > .tab-pane,
287
+ .pill-content > .pill-pane {
288
+ display: none;
289
+ }
290
+ .tab-content > .active,
291
+ .pill-content > .active {
292
+ display: block;
293
+ }
294
+
295
+
296
+ // BOTTOM
297
+ // ------
298
+
299
+ .tabs-below > .nav-tabs {
300
+ border-top: 1px solid #ddd;
301
+ }
302
+ .tabs-below > .nav-tabs > li {
303
+ margin-top: -1px;
304
+ margin-bottom: 0;
305
+ }
306
+ .tabs-below > .nav-tabs > li > a {
307
+ .border-radius(0 0 4px 4px);
308
+ &:hover {
309
+ border-bottom-color: transparent;
310
+ border-top-color: #ddd;
311
+ }
312
+ }
313
+ .tabs-below > .nav-tabs > .active > a,
314
+ .tabs-below > .nav-tabs > .active > a:hover {
315
+ border-color: transparent #ddd #ddd #ddd;
316
+ }
317
+
318
+ // LEFT & RIGHT
319
+ // ------------
320
+
321
+ // Common styles
322
+ .tabs-left > .nav-tabs > li,
323
+ .tabs-right > .nav-tabs > li {
324
+ float: none;
325
+ }
326
+ .tabs-left > .nav-tabs > li > a,
327
+ .tabs-right > .nav-tabs > li > a {
328
+ min-width: 74px;
329
+ margin-right: 0;
330
+ margin-bottom: 3px;
331
+ }
332
+
333
+ // Tabs on the left
334
+ .tabs-left > .nav-tabs {
335
+ float: left;
336
+ margin-right: 19px;
337
+ border-right: 1px solid #ddd;
338
+ }
339
+ .tabs-left > .nav-tabs > li > a {
340
+ margin-right: -1px;
341
+ .border-radius(4px 0 0 4px);
342
+ }
343
+ .tabs-left > .nav-tabs > li > a:hover {
344
+ border-color: @grayLighter #ddd @grayLighter @grayLighter;
345
+ }
346
+ .tabs-left > .nav-tabs .active > a,
347
+ .tabs-left > .nav-tabs .active > a:hover {
348
+ border-color: #ddd transparent #ddd #ddd;
349
+ *border-right-color: @white;
350
+ }
351
+
352
+ // Tabs on the right
353
+ .tabs-right > .nav-tabs {
354
+ float: right;
355
+ margin-left: 19px;
356
+ border-left: 1px solid #ddd;
357
+ }
358
+ .tabs-right > .nav-tabs > li > a {
359
+ margin-left: -1px;
360
+ .border-radius(0 4px 4px 0);
361
+ }
362
+ .tabs-right > .nav-tabs > li > a:hover {
363
+ border-color: @grayLighter @grayLighter @grayLighter #ddd;
364
+ }
365
+ .tabs-right > .nav-tabs .active > a,
366
+ .tabs-right > .nav-tabs .active > a:hover {
367
+ border-color: #ddd #ddd #ddd transparent;
368
+ *border-left-color: @white;
369
+ }
370
+
371
+
372
+
373
+ // DISABLED STATES
374
+ // ---------------
375
+
376
+ // Gray out text
377
+ .nav > .disabled > a {
378
+ color: @grayLight;
379
+ }
380
+ // Nuke hover effects
381
+ .nav > .disabled > a:hover {
382
+ text-decoration: none;
383
+ background-color: transparent;
384
+ cursor: default;
385
+ }
@@ -0,0 +1,41 @@
1
+ //
2
+ // Pager pagination
3
+ // --------------------------------------------------
4
+
5
+
6
+ .pager {
7
+ margin: @baseLineHeight 0;
8
+ list-style: none;
9
+ text-align: center;
10
+ .clearfix();
11
+ }
12
+ .pager li {
13
+ display: inline;
14
+ }
15
+ .pager li > a,
16
+ .pager li > span {
17
+ display: inline-block;
18
+ padding: 5px 14px;
19
+ background-color: #fff;
20
+ border: 1px solid #ddd;
21
+ .border-radius(15px);
22
+ }
23
+ .pager li > a:hover {
24
+ text-decoration: none;
25
+ background-color: #f5f5f5;
26
+ }
27
+ .pager .next > a,
28
+ .pager .next > span {
29
+ float: right;
30
+ }
31
+ .pager .previous > a,
32
+ .pager .previous > span {
33
+ float: left;
34
+ }
35
+ .pager .disabled > a,
36
+ .pager .disabled > a:hover,
37
+ .pager .disabled > span {
38
+ color: @grayLight;
39
+ background-color: #fff;
40
+ cursor: default;
41
+ }
@@ -0,0 +1,121 @@
1
+ //
2
+ // Pagination (multiple pages)
3
+ // --------------------------------------------------
4
+
5
+ // Space out pagination from surrounding content
6
+ .pagination {
7
+ margin: @baseLineHeight 0;
8
+ }
9
+
10
+ .pagination ul {
11
+ // Allow for text-based alignment
12
+ display: inline-block;
13
+ .ie7-inline-block();
14
+ // Reset default ul styles
15
+ margin-left: 0;
16
+ margin-bottom: 0;
17
+ // Visuals
18
+ .border-radius(@baseBorderRadius);
19
+ .box-shadow(0 1px 2px rgba(0,0,0,.05));
20
+ }
21
+ .pagination ul > li {
22
+ display: inline; // Remove list-style and block-level defaults
23
+ }
24
+ .pagination ul > li > a,
25
+ .pagination ul > li > span {
26
+ float: left; // Collapse white-space
27
+ padding: 4px 12px;
28
+ line-height: @baseLineHeight;
29
+ text-decoration: none;
30
+ background-color: @paginationBackground;
31
+ border: 1px solid @paginationBorder;
32
+ border-left-width: 0;
33
+ }
34
+ .pagination ul > li > a:hover,
35
+ .pagination ul > .active > a,
36
+ .pagination ul > .active > span {
37
+ background-color: @paginationActiveBackground;
38
+ }
39
+ .pagination ul > .active > a,
40
+ .pagination ul > .active > span {
41
+ color: @grayLight;
42
+ cursor: default;
43
+ }
44
+ .pagination ul > .disabled > span,
45
+ .pagination ul > .disabled > a,
46
+ .pagination ul > .disabled > a:hover {
47
+ color: @grayLight;
48
+ background-color: transparent;
49
+ cursor: default;
50
+ }
51
+ .pagination ul > li:first-child > a,
52
+ .pagination ul > li:first-child > span {
53
+ border-left-width: 1px;
54
+ .border-left-radius(@baseBorderRadius);
55
+ }
56
+ .pagination ul > li:last-child > a,
57
+ .pagination ul > li:last-child > span {
58
+ .border-right-radius(@baseBorderRadius);
59
+ }
60
+
61
+
62
+ // Alignment
63
+ // --------------------------------------------------
64
+
65
+ .pagination-centered {
66
+ text-align: center;
67
+ }
68
+ .pagination-right {
69
+ text-align: right;
70
+ }
71
+
72
+
73
+ // Sizing
74
+ // --------------------------------------------------
75
+
76
+ // Large
77
+ .pagination-large {
78
+ ul > li > a,
79
+ ul > li > span {
80
+ padding: @paddingLarge;
81
+ font-size: @fontSizeLarge;
82
+ }
83
+ ul > li:first-child > a,
84
+ ul > li:first-child > span {
85
+ .border-left-radius(@borderRadiusLarge);
86
+ }
87
+ ul > li:last-child > a,
88
+ ul > li:last-child > span {
89
+ .border-right-radius(@borderRadiusLarge);
90
+ }
91
+ }
92
+
93
+ // Small and mini
94
+ .pagination-mini,
95
+ .pagination-small {
96
+ ul > li:first-child > a,
97
+ ul > li:first-child > span {
98
+ .border-left-radius(@borderRadiusSmall);
99
+ }
100
+ ul > li:last-child > a,
101
+ ul > li:last-child > span {
102
+ .border-right-radius(@borderRadiusSmall);
103
+ }
104
+ }
105
+
106
+ // Small
107
+ .pagination-small {
108
+ ul > li > a,
109
+ ul > li > span {
110
+ padding: @paddingSmall;
111
+ font-size: @fontSizeSmall;
112
+ }
113
+ }
114
+ // Mini
115
+ .pagination-mini {
116
+ ul > li > a,
117
+ ul > li > span {
118
+ padding: @paddingMini;
119
+ font-size: @fontSizeMini;
120
+ }
121
+ }