mno-enterprise-frontend 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +1 -0
  3. data/Rakefile +12 -0
  4. data/app/assets/images/favicon.ico +0 -0
  5. data/app/assets/images/mno_enterprise/impac/close-widget-pink.png +0 -0
  6. data/app/assets/images/mno_enterprise/impac/close-widget.png +0 -0
  7. data/app/assets/images/mno_enterprise/loader-32x32-bg-inverse.gif +0 -0
  8. data/app/assets/images/mno_enterprise/loader-32x32-bg-main.gif +0 -0
  9. data/app/assets/images/mno_enterprise/maestrano/logo-whitebg.png +0 -0
  10. data/app/assets/javascripts/mno_enterprise/angular/app.js.coffee.erb +173 -0
  11. data/app/assets/javascripts/mno_enterprise/angular/controllers/maestrano-controllers.js.coffee +4 -0
  12. data/app/assets/javascripts/mno_enterprise/angular/controllers/modals/modals-ctrl.js.coffee +62 -0
  13. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-account.js.coffee +157 -0
  14. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-app-deletion-request.js.coffee +62 -0
  15. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-apps-list.js.coffee +127 -0
  16. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-components.js.coffee +25 -0
  17. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-marketplace-app.js.coffee +77 -0
  18. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-marketplace.js.coffee +51 -0
  19. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-menu.js.coffee +174 -0
  20. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/arrears.js.coffee +70 -0
  21. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/billing.js.coffee +48 -0
  22. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/credit-card.js.coffee +142 -0
  23. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/index.js.coffee +61 -0
  24. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/invoices.js.coffee +42 -0
  25. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/members.js.coffee +280 -0
  26. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/settings.js.coffee +91 -0
  27. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/team-list.js.coffee +179 -0
  28. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/teams.js.coffee +268 -0
  29. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/file-model.js.coffee +33 -0
  30. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/maestrano-components.js.coffee +22 -0
  31. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-autostop-app.js.coffee +123 -0
  32. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-compile.js.coffee +18 -0
  33. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-currency-widget.js.coffee +43 -0
  34. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-current-currency.js.coffee +22 -0
  35. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-editable.js.coffee +68 -0
  36. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-flash-msg.js.coffee +40 -0
  37. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-helptext.js.coffee +38 -0
  38. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-loading-lounge.js.coffee +184 -0
  39. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-match.js.coffee +14 -0
  40. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-message-modal.js.coffee +56 -0
  41. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-notification-widget.js.coffee +192 -0
  42. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-partner-code-popup.js.coffee +74 -0
  43. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-partner-contact.js.coffee +59 -0
  44. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-password-strength.js.coffee +154 -0
  45. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-password.js.coffee +40 -0
  46. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-price-converter.js.coffee +49 -0
  47. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-scroll-to.js.coffee +14 -0
  48. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-typeahead.js.coffee +89 -0
  49. data/app/assets/javascripts/mno_enterprise/angular/directives/user-setup/components.js.coffee +7 -0
  50. data/app/assets/javascripts/mno_enterprise/angular/directives/user-setup/index.js.coffee +256 -0
  51. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-app-by-category.js.coffee +5 -0
  52. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-currency.js.coffee +30 -0
  53. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-filters.js.coffee +7 -0
  54. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-replace-underscore-with-space.js.coffee +4 -0
  55. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-titleize.js.coffee +7 -0
  56. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-truncate.js.coffee +24 -0
  57. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/maestrano-app-instance.js.coffee +15 -0
  58. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/maestrano-apps-document.js.coffee +83 -0
  59. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/maestrano-user.js.coffee +27 -0
  60. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/organization-svc.js.coffee +318 -0
  61. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/team-svc.js.coffee +180 -0
  62. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/tickets-svc.js.coffee +109 -0
  63. data/app/assets/javascripts/mno_enterprise/angular/services/impac-config.svc.js.coffee +35 -0
  64. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-apps-list-helper.js.coffee +337 -0
  65. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-assets.js.coffee.erb +21 -0
  66. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-current-currency.js.coffee +7 -0
  67. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-current-user-svc.js.coffee +99 -0
  68. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-exchange-rates.js.coffee +102 -0
  69. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-message-svc.js.coffee +71 -0
  70. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-miscellaneous.js.coffee.erb +46 -0
  71. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-modal.js.coffee +67 -0
  72. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-msg-bus.js.coffee +50 -0
  73. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-services.js.coffee +21 -0
  74. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-shopping-cart.js.coffee +361 -0
  75. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-utilities.js.coffee +61 -0
  76. data/app/assets/javascripts/mno_enterprise/angular/services/marketplace-svc.js.coffee +59 -0
  77. data/app/assets/javascripts/mno_enterprise/application.js +17 -0
  78. data/app/assets/javascripts/mno_enterprise/application_lib.js +14 -0
  79. data/app/assets/javascripts/mno_enterprise/lib/angular-really-click.js +17 -0
  80. data/app/assets/javascripts/mno_enterprise/lib/sortable.js +315 -0
  81. data/app/assets/javascripts/mno_enterprise/lib/ui-bootstrap-tpls-0.13.4.js +5836 -0
  82. data/app/assets/javascripts/mno_enterprise/lib/xeditable.js +1588 -0
  83. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap.js +12 -0
  84. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/affix.js +162 -0
  85. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/alert.js +94 -0
  86. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/button.js +116 -0
  87. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/carousel.js +237 -0
  88. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/collapse.js +211 -0
  89. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/dropdown.js +161 -0
  90. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/modal.js +324 -0
  91. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/popover.js +113 -0
  92. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/scrollspy.js +175 -0
  93. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/tab.js +153 -0
  94. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/tooltip.js +472 -0
  95. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/transition.js +59 -0
  96. data/app/assets/javascripts/ng-performance/ngPerformance.html +109 -0
  97. data/app/assets/javascripts/ng-performance/ngPerformance.js +211 -0
  98. data/app/assets/stylesheets/mno_enterprise/application.css +13 -0
  99. data/app/assets/stylesheets/mno_enterprise/custom/accordion.less +90 -0
  100. data/app/assets/stylesheets/mno_enterprise/custom/alert.less +30 -0
  101. data/app/assets/stylesheets/mno_enterprise/custom/angular-animate.less +42 -0
  102. data/app/assets/stylesheets/mno_enterprise/custom/angular-material.less +56 -0
  103. data/app/assets/stylesheets/mno_enterprise/custom/bootstrap-on-juice.less +22 -0
  104. data/app/assets/stylesheets/mno_enterprise/custom/button.less +84 -0
  105. data/app/assets/stylesheets/mno_enterprise/custom/footer.less +44 -0
  106. data/app/assets/stylesheets/mno_enterprise/custom/form.less +191 -0
  107. data/app/assets/stylesheets/mno_enterprise/custom/header.less +281 -0
  108. data/app/assets/stylesheets/mno_enterprise/custom/impac-variables-override.less +65 -0
  109. data/app/assets/stylesheets/mno_enterprise/custom/modal.less +183 -0
  110. data/app/assets/stylesheets/mno_enterprise/custom/utilities.less +729 -0
  111. data/app/assets/stylesheets/mno_enterprise/custom/utility/app-presentation.less +77 -0
  112. data/app/assets/stylesheets/mno_enterprise/custom/utility/banners.less +145 -0
  113. data/app/assets/stylesheets/mno_enterprise/custom/utility/carousel.less +68 -0
  114. data/app/assets/stylesheets/mno_enterprise/custom/utility/helptext.less +40 -0
  115. data/app/assets/stylesheets/mno_enterprise/custom/utility/miscellaneous.less +134 -0
  116. data/app/assets/stylesheets/mno_enterprise/custom/utility/progress-bar.less +55 -0
  117. data/app/assets/stylesheets/mno_enterprise/custom/utility/step.less +101 -0
  118. data/app/assets/stylesheets/mno_enterprise/custom/utility/tabset.less +87 -0
  119. data/app/assets/stylesheets/mno_enterprise/custom/utility/testimonial.less +118 -0
  120. data/app/assets/stylesheets/mno_enterprise/custom/utility/text.less +23 -0
  121. data/app/assets/stylesheets/mno_enterprise/custom/views/apps.less +243 -0
  122. data/app/assets/stylesheets/mno_enterprise/custom/views/myspace.less +477 -0
  123. data/app/assets/stylesheets/mno_enterprise/custom/views/pages/confirmation_lounge.less +31 -0
  124. data/app/assets/stylesheets/mno_enterprise/custom/views/pages/home.less +57 -0
  125. data/app/assets/stylesheets/mno_enterprise/custom/views/pages/oauth-config-page.less +6 -0
  126. data/app/assets/stylesheets/mno_enterprise/custom/views/registration.less +84 -0
  127. data/app/assets/stylesheets/mno_enterprise/custom/views/star.less +18 -0
  128. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/bootstrap-wizard.less +63 -0
  129. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/dashboard-marketplace.less +187 -0
  130. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/dashboard-organization.less +149 -0
  131. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/dashboard-teams.less +119 -0
  132. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/support.less +42 -0
  133. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/tickets.less +80 -0
  134. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/mno-editable.less +60 -0
  135. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/notification-widget.less +49 -0
  136. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/password-strength.less +28 -0
  137. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/shopping-cart.less +333 -0
  138. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/star-wizard.less +49 -0
  139. data/app/assets/stylesheets/mno_enterprise/custom/views/user-setup.less +10 -0
  140. data/app/assets/stylesheets/mno_enterprise/custom/xeditable.less +40 -0
  141. data/app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome-regular.less +13 -0
  142. data/app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome-sprockets.less +13 -0
  143. data/app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome.less +16 -0
  144. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/FontAwesome.otf +0 -0
  145. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  146. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.svg +640 -0
  147. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  148. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  149. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  150. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/animated.less +34 -0
  151. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/bordered-pulled.less +25 -0
  152. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/core.less +12 -0
  153. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/extras.less +2 -0
  154. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/fixed-width.less +6 -0
  155. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/icons.less +677 -0
  156. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/larger.less +13 -0
  157. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/list.less +19 -0
  158. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/mixins.less +26 -0
  159. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/rotated-flipped.less +20 -0
  160. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/stacked.less +20 -0
  161. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/variables.less +687 -0
  162. data/app/assets/stylesheets/mno_enterprise/main.less +132 -0
  163. data/app/assets/stylesheets/mno_enterprise/mixins.less +75 -0
  164. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/alerts.less +73 -0
  165. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/badges.less +65 -0
  166. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/bootstrap.less +50 -0
  167. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/breadcrumbs.less +26 -0
  168. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/button-groups.less +243 -0
  169. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/buttons.less +160 -0
  170. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/carousel.less +269 -0
  171. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/close.less +34 -0
  172. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/code.less +69 -0
  173. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/component-animations.less +34 -0
  174. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/dropdowns.less +214 -0
  175. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/forms.less +566 -0
  176. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/glyphicons.less +301 -0
  177. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/grid.less +84 -0
  178. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/input-groups.less +166 -0
  179. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/jumbotron.less +50 -0
  180. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/labels.less +64 -0
  181. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/list-group.less +124 -0
  182. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/media.less +61 -0
  183. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins.less +39 -0
  184. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/alerts.less +14 -0
  185. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/background-variant.less +8 -0
  186. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/border-radius.less +18 -0
  187. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/buttons.less +52 -0
  188. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/center-block.less +7 -0
  189. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/clearfix.less +22 -0
  190. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/forms.less +85 -0
  191. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/gradients.less +59 -0
  192. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/grid-framework.less +91 -0
  193. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/grid.less +122 -0
  194. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/hide-text.less +21 -0
  195. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/image.less +33 -0
  196. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/labels.less +12 -0
  197. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/list-group.less +29 -0
  198. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/nav-divider.less +10 -0
  199. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/nav-vertical-align.less +9 -0
  200. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/opacity.less +8 -0
  201. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/pagination.less +23 -0
  202. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/panels.less +24 -0
  203. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/progress-bar.less +10 -0
  204. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/reset-filter.less +8 -0
  205. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/resize.less +6 -0
  206. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/responsive-visibility.less +15 -0
  207. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/size.less +10 -0
  208. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/tab-focus.less +9 -0
  209. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/table-row.less +28 -0
  210. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/text-emphasis.less +8 -0
  211. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/text-overflow.less +8 -0
  212. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/vendor-prefixes.less +227 -0
  213. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/modals.less +148 -0
  214. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/navbar.less +661 -0
  215. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/navs.less +244 -0
  216. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/normalize.less +427 -0
  217. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/pager.less +54 -0
  218. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/pagination.less +88 -0
  219. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/panels.less +265 -0
  220. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/popovers.less +135 -0
  221. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/print.less +107 -0
  222. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/progress-bars.less +87 -0
  223. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/responsive-embed.less +35 -0
  224. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/responsive-utilities.less +194 -0
  225. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/scaffolding.less +150 -0
  226. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/tables.less +234 -0
  227. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/theme.less +273 -0
  228. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/thumbnails.less +36 -0
  229. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/tooltip.less +103 -0
  230. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/type.less +302 -0
  231. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/utilities.less +56 -0
  232. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/variables.less +857 -0
  233. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/wells.less +29 -0
  234. data/app/assets/stylesheets/mno_enterprise/variables.less +226 -0
  235. data/app/assets/templates/mno_enterprise/dashboard/account.html +131 -0
  236. data/app/assets/templates/mno_enterprise/dashboard/app_deletion.html +36 -0
  237. data/app/assets/templates/mno_enterprise/dashboard/apps_list.html +103 -0
  238. data/app/assets/templates/mno_enterprise/dashboard/horizontal_menu.html +85 -0
  239. data/app/assets/templates/mno_enterprise/dashboard/marketplace/index.html +60 -0
  240. data/app/assets/templates/mno_enterprise/dashboard/marketplace/show.html +133 -0
  241. data/app/assets/templates/mno_enterprise/dashboard/menu.html +161 -0
  242. data/app/assets/templates/mno_enterprise/dashboard/organization/arrears.html +37 -0
  243. data/app/assets/templates/mno_enterprise/dashboard/organization/billing.html +37 -0
  244. data/app/assets/templates/mno_enterprise/dashboard/organization/credit-card.html +156 -0
  245. data/app/assets/templates/mno_enterprise/dashboard/organization/index.full.html +181 -0
  246. data/app/assets/templates/mno_enterprise/dashboard/organization/index.html +173 -0
  247. data/app/assets/templates/mno_enterprise/dashboard/organization/invoices.html +27 -0
  248. data/app/assets/templates/mno_enterprise/dashboard/organization/members.html +288 -0
  249. data/app/assets/templates/mno_enterprise/dashboard/organization/settings.html +55 -0
  250. data/app/assets/templates/mno_enterprise/dashboard/teams/index.html +175 -0
  251. data/app/assets/templates/mno_enterprise/dashboard/teams/member-add-modal.html +60 -0
  252. data/app/assets/templates/mno_enterprise/dashboard/teams/member-removal-modal.html +35 -0
  253. data/app/assets/templates/mno_enterprise/dashboard/teams/team-add-modal.html +35 -0
  254. data/app/assets/templates/mno_enterprise/dashboard/teams/team-delete-modal.html +35 -0
  255. data/app/assets/templates/mno_enterprise/dashboard/teams/team-list.html +107 -0
  256. data/app/assets/templates/mno_enterprise/default_template.html +20 -0
  257. data/app/assets/templates/mno_enterprise/maestrano-components/autostop_app.html +42 -0
  258. data/app/assets/templates/mno_enterprise/maestrano-components/currency_widget.html +1 -0
  259. data/app/assets/templates/mno_enterprise/maestrano-components/editable.html +28 -0
  260. data/app/assets/templates/mno_enterprise/maestrano-components/loading_lounge.html +63 -0
  261. data/app/assets/templates/mno_enterprise/maestrano-components/modal-messages/congratulations.html +8 -0
  262. data/app/assets/templates/mno_enterprise/maestrano-components/modal-messages/default.html +1 -0
  263. data/app/assets/templates/mno_enterprise/maestrano-components/modal-messages/information.html +8 -0
  264. data/app/assets/templates/mno_enterprise/maestrano-components/notification-widget.html +31 -0
  265. data/app/assets/templates/mno_enterprise/maestrano-components/password.html +55 -0
  266. data/app/assets/templates/mno_enterprise/maestrano-components/star_wizard.html +254 -0
  267. data/app/assets/templates/mno_enterprise/maestrano-components/upload_spreadsheet.html +191 -0
  268. data/app/assets/templates/mno_enterprise/modals/new-organization-reseller-req.html +35 -0
  269. data/app/assets/templates/mno_enterprise/modals/new-organization.html +35 -0
  270. data/app/assets/templates/mno_enterprise/user-setup/index.html +312 -0
  271. data/app/controllers/mno_enterprise/invoices_controller.rb +22 -0
  272. data/app/controllers/mno_enterprise/pages_controller.rb +9 -0
  273. data/app/controllers/mno_enterprise/user_setup_controller.rb +11 -0
  274. data/app/views/layouts/mno_enterprise/_application_js.html.haml +17 -0
  275. data/app/views/layouts/mno_enterprise/_common_cdn_lib_js.html.haml +19 -0
  276. data/app/views/layouts/mno_enterprise/_footer_files.html.haml +5 -0
  277. data/app/views/layouts/mno_enterprise/_header_files.html.haml +31 -0
  278. data/app/views/layouts/mno_enterprise/_impersonate_header.html.haml +7 -0
  279. data/app/views/layouts/mno_enterprise/_public_page_header.html.haml +2 -0
  280. data/app/views/layouts/mno_enterprise/application.html.haml +18 -0
  281. data/app/views/layouts/mno_enterprise/application_dashboard.html.haml +22 -0
  282. data/app/views/layouts/mno_enterprise/third_party/_google_tag_container.html.haml +10 -0
  283. data/app/views/mno_enterprise/pages/app_access_unauthorized.html.haml +19 -0
  284. data/app/views/mno_enterprise/pages/app_logout.html.haml +18 -0
  285. data/app/views/mno_enterprise/pages/billing_details_required.html.haml +19 -0
  286. data/app/views/mno_enterprise/pages/loading.html.haml +3 -0
  287. data/app/views/mno_enterprise/pages/myspace.html.haml +6 -0
  288. data/app/views/mno_enterprise/provision/_provision_apps.html.haml +43 -0
  289. data/app/views/mno_enterprise/provision/_select_organization.html.haml +17 -0
  290. data/app/views/mno_enterprise/provision/new.html.haml +4 -0
  291. data/app/views/mno_enterprise/user_setup/index.html.haml +2 -0
  292. data/config/initializers/ng-annotate.rb +3 -0
  293. data/config/initializers/ng-performance.rb +3 -0
  294. data/config/routes.rb +19 -0
  295. data/lib/assets/javascripts/impac-angular.js +8719 -0
  296. data/lib/assets/stylesheets/impac-angular.less +2352 -0
  297. data/lib/mno-enterprise-frontend.rb +1 -0
  298. data/lib/mno_enterprise/frontend.rb +13 -0
  299. data/lib/mno_enterprise/frontend/assets_util.rb +47 -0
  300. data/lib/mno_enterprise/frontend/concerns/README.md +6 -0
  301. data/lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb +25 -0
  302. data/lib/mno_enterprise/frontend/engine.rb +13 -0
  303. data/spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb +84 -0
  304. data/spec/controllers/mno_enterprise/invoices_controller_spec.rb +34 -0
  305. data/spec/controllers/mno_enterprise/pages_controller_spec.rb +42 -0
  306. data/spec/controllers/mno_enterprise/user_setup_controller_spec.rb +33 -0
  307. data/spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb +76 -0
  308. data/spec/rails_helper.rb +92 -0
  309. data/spec/routing/mno_enterprise/invoices_controller_routing_spec.rb +11 -0
  310. data/spec/routing/mno_enterprise/pages_controller_routing_spec.rb +18 -0
  311. data/spec/routing/mno_enterprise/user_setup_controller_routing_spec.rb +11 -0
  312. data/spec/spec_helper.rb +78 -0
  313. metadata +464 -0
@@ -0,0 +1,132 @@
1
+ // Font Awesome
2
+ @import "font-awesome/font-awesome-sprockets";
3
+ @import "font-awesome/font-awesome";
4
+
5
+ // Core variables and mixins
6
+ @import "twitter-bootstrap/variables.less";
7
+ //@import "theme.less"; // Modify this for custom colors, font-sizes, etc
8
+ @import "variables.less"; // Modify this for custom colors, font-sizes, etc
9
+ @import "twitter-bootstrap/mixins.less";
10
+ @import "mixins.less"; // Modify this for custom mixins
11
+
12
+ // Reset and dependencies
13
+ @import "twitter-bootstrap/normalize.less";
14
+ @import "twitter-bootstrap/print.less";
15
+ @import "twitter-bootstrap/glyphicons.less";
16
+
17
+ // Core CSS
18
+ @import "twitter-bootstrap/scaffolding.less";
19
+ @import "twitter-bootstrap/type.less";
20
+ @import "twitter-bootstrap/code.less";
21
+ @import "twitter-bootstrap/grid.less";
22
+ @import "twitter-bootstrap/tables.less";
23
+ @import "twitter-bootstrap/forms.less";
24
+ @import "twitter-bootstrap/buttons.less";
25
+
26
+ // Components
27
+ @import "twitter-bootstrap/component-animations.less";
28
+ @import "twitter-bootstrap/dropdowns.less";
29
+ @import "twitter-bootstrap/button-groups.less";
30
+ @import "twitter-bootstrap/input-groups.less";
31
+ @import "twitter-bootstrap/navs.less";
32
+ @import "twitter-bootstrap/navbar.less";
33
+ @import "twitter-bootstrap/breadcrumbs.less";
34
+ @import "twitter-bootstrap/pagination.less";
35
+ @import "twitter-bootstrap/pager.less";
36
+ @import "twitter-bootstrap/labels.less";
37
+ @import "twitter-bootstrap/badges.less";
38
+ @import "twitter-bootstrap/jumbotron.less";
39
+ @import "twitter-bootstrap/thumbnails.less";
40
+ @import "twitter-bootstrap/alerts.less";
41
+ @import "twitter-bootstrap/progress-bars.less";
42
+ @import "twitter-bootstrap/media.less";
43
+ @import "twitter-bootstrap/list-group.less";
44
+ @import "twitter-bootstrap/panels.less";
45
+ @import "twitter-bootstrap/responsive-embed.less";
46
+ @import "twitter-bootstrap/wells.less";
47
+ @import "twitter-bootstrap/close.less";
48
+
49
+ // Components w/ JavaScript
50
+ @import "twitter-bootstrap/modals.less";
51
+ @import "twitter-bootstrap/tooltip.less";
52
+ @import "twitter-bootstrap/popovers.less";
53
+ @import "twitter-bootstrap/carousel.less";
54
+
55
+ // Utility classes
56
+ @import "twitter-bootstrap/utilities.less";
57
+ @import "twitter-bootstrap/responsive-utilities.less";
58
+
59
+
60
+ /*-----------------------------------------------------------------------*/
61
+ /*-----------------------------------------------------------------------*/
62
+ /*-----------------------------------------------------------------------*/
63
+ /* Bootstrap 3 */
64
+ /*-----------------------------------------------------------------------*/
65
+ /*-----------------------------------------------------------------------*/
66
+ /*-----------------------------------------------------------------------*/
67
+ @import "custom/header";
68
+ @import "custom/form";
69
+ @import "custom/button";
70
+ @import "custom/footer";
71
+ @import "custom/bootstrap-on-juice";
72
+ @import "custom/utilities";
73
+ @import "custom/modal";
74
+ @import "custom/accordion";
75
+ @import "custom/alert";
76
+ @import "custom/xeditable";
77
+
78
+ /*-----------------------------------------------------------------------*/
79
+ /* Include the utilities spreadsheets */
80
+ /*-----------------------------------------------------------------------*/
81
+ @import "custom/utility/helptext";
82
+ @import "custom/utility/banners";
83
+ @import "custom/utility/testimonial";
84
+ @import "custom/utility/text";
85
+ @import "custom/utility/miscellaneous";
86
+ @import "custom/utility/app-presentation";
87
+ @import "custom/utility/step";
88
+ @import "custom/utility/progress-bar";
89
+ @import "custom/utility/carousel";
90
+ @import "custom/utility/tabset";
91
+
92
+ /*-----------------------------------------------------------------------*/
93
+ /* Include the stylsheets specific to the views */
94
+ /*-----------------------------------------------------------------------*/
95
+ @import "custom/views/myspace";
96
+ @import "custom/views/pages/home";
97
+ @import "custom/views/apps";
98
+ @import "custom/views/registration";
99
+ @import "custom/views/star";
100
+ @import "custom/views/user-setup";
101
+
102
+ @import "custom/views/pages/confirmation_lounge";
103
+ @import "custom/views/pages/oauth-config-page";
104
+
105
+ /*-----------------------------------------------------------------------*/
106
+ /* Include the stylsheets specific to angular templates */
107
+ /*-----------------------------------------------------------------------*/
108
+ @import "custom/views/templates/mno-editable";
109
+ @import "custom/views/templates/notification-widget";
110
+ @import "custom/views/templates/password-strength";
111
+ @import "custom/views/templates/shopping-cart";
112
+ @import "custom/views/templates/star-wizard";
113
+
114
+ @import "custom/views/templates/dashboard/dashboard-organization";
115
+ @import "custom/views/templates/dashboard/dashboard-marketplace";
116
+ @import "custom/views/templates/dashboard/tickets";
117
+ @import "custom/views/templates/dashboard/support";
118
+ @import "custom/views/templates/dashboard/bootstrap-wizard";
119
+ @import "custom/views/templates/dashboard/dashboard-teams";
120
+
121
+ /*-----------------------------------------------------------------------*/
122
+ /* Include the stylsheets specific to Angular */
123
+ /*-----------------------------------------------------------------------*/
124
+ @import "custom/angular-material";
125
+ @import "custom/angular-animate";
126
+
127
+
128
+ /*-----------------------------------------------------------------------*/
129
+ /* Impac! */
130
+ /*-----------------------------------------------------------------------*/
131
+ @import "impac-angular";
132
+ @import "custom/impac-variables-override";
@@ -0,0 +1,75 @@
1
+ // Use this file to override Twitter Bootstrap mixins or define own mixins.
2
+
3
+ html, body {
4
+ height: 100%;
5
+ }
6
+
7
+ // .border-radius doesn't exist anymore in bootstrap3
8
+ .border-radius(@radius) {
9
+ .border-top-radius(@radius);
10
+ .border-bottom-radius(@radius);
11
+ }
12
+
13
+
14
+ // Thoses mixins don't exist anymore in bootstrap 3. I just did a dummy
15
+ // implementation of them to prevent errors
16
+ .muted {
17
+ }
18
+
19
+ .rgba(@color,@alpha) {
20
+ background-color:@color;
21
+ background-color:rgba(red(@color),green(@color),blue(@color),@alpha);
22
+ }
23
+
24
+ .font(@size,@weight,@color) {
25
+ font-weight:@weight;
26
+ font-size:@size;
27
+ color:@color;
28
+ }
29
+
30
+ .buttonBackground(@a,@b) {
31
+ }
32
+
33
+ .border-top-left-radius(@a) {
34
+ }
35
+
36
+ .border-top-right-radius(@a) {
37
+ }
38
+
39
+ .border-bottom-right-radius(@a) {
40
+ }
41
+
42
+ .border-bottom-left-radius(@a) {
43
+ }
44
+
45
+ .inherit-all {
46
+ .font(inherit,inherit,inherit);
47
+ background-color:inherit;
48
+ text-align:inherit;
49
+ }
50
+
51
+ // Fontawesome icon mixing
52
+ // E.g.:
53
+ // .my-class {
54
+ // .icon-fa(exchange);
55
+ // }
56
+ //
57
+ // E.g.:
58
+ // .my-class {
59
+ // .fa-lg();
60
+ // .icon-fa(exchange);
61
+ // }
62
+ //
63
+ .icon-fa(@icon) {
64
+ .fa;
65
+ @fa-icon-variable: "fa-var-@{icon}";
66
+ &:before { content: @@fa-icon-variable; }
67
+ };
68
+
69
+ // Replace glyphicon by fontawesome
70
+ .glyphicon.glyphicon-chevron-right {
71
+ .icon-fa(chevron-right)
72
+ }
73
+ .glyphicon.glyphicon-chevron-left {
74
+ .icon-fa(chevron-left)
75
+ }
@@ -0,0 +1,73 @@
1
+ //
2
+ // Alerts
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base styles
7
+ // -------------------------
8
+
9
+ .alert {
10
+ padding: @alert-padding;
11
+ margin-bottom: @line-height-computed;
12
+ border: 1px solid transparent;
13
+ border-radius: @alert-border-radius;
14
+
15
+ // Headings for larger alerts
16
+ h4 {
17
+ margin-top: 0;
18
+ // Specified for the h4 to prevent conflicts of changing @headings-color
19
+ color: inherit;
20
+ }
21
+
22
+ // Provide class for links that match alerts
23
+ .alert-link {
24
+ font-weight: @alert-link-font-weight;
25
+ }
26
+
27
+ // Improve alignment and spacing of inner content
28
+ > p,
29
+ > ul {
30
+ margin-bottom: 0;
31
+ }
32
+
33
+ > p + p {
34
+ margin-top: 5px;
35
+ }
36
+ }
37
+
38
+ // Dismissible alerts
39
+ //
40
+ // Expand the right padding and account for the close button's positioning.
41
+
42
+ .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
43
+ .alert-dismissible {
44
+ padding-right: (@alert-padding + 20);
45
+
46
+ // Adjust close link position
47
+ .close {
48
+ position: relative;
49
+ top: -2px;
50
+ right: -21px;
51
+ color: inherit;
52
+ }
53
+ }
54
+
55
+ // Alternate styles
56
+ //
57
+ // Generate contextual modifier classes for colorizing the alert.
58
+
59
+ .alert-success {
60
+ .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
61
+ }
62
+
63
+ .alert-info {
64
+ .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
65
+ }
66
+
67
+ .alert-warning {
68
+ .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
69
+ }
70
+
71
+ .alert-danger {
72
+ .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
73
+ }
@@ -0,0 +1,65 @@
1
+ //
2
+ // Badges
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .badge {
8
+ display: inline-block;
9
+ min-width: 10px;
10
+ padding: 3px 7px;
11
+ font-size: @font-size-small;
12
+ font-weight: @badge-font-weight;
13
+ color: @badge-color;
14
+ line-height: @badge-line-height;
15
+ vertical-align: baseline;
16
+ white-space: nowrap;
17
+ text-align: center;
18
+ background-color: @badge-bg;
19
+ border-radius: @badge-border-radius;
20
+
21
+ // Empty badges collapse automatically (not available in IE8)
22
+ &:empty {
23
+ display: none;
24
+ }
25
+
26
+ // Quick fix for badges in buttons
27
+ .btn & {
28
+ position: relative;
29
+ top: -1px;
30
+ }
31
+
32
+ .btn-xs & {
33
+ top: 0;
34
+ padding: 1px 5px;
35
+ }
36
+
37
+ // Hover state, but only for links
38
+ a& {
39
+ &:hover,
40
+ &:focus {
41
+ color: @badge-link-hover-color;
42
+ text-decoration: none;
43
+ cursor: pointer;
44
+ }
45
+ }
46
+
47
+ // Account for badges in navs
48
+ .list-group-item.active > &,
49
+ .nav-pills > .active > a > & {
50
+ color: @badge-active-color;
51
+ background-color: @badge-active-bg;
52
+ }
53
+
54
+ .list-group-item > & {
55
+ float: right;
56
+ }
57
+
58
+ .list-group-item > & + & {
59
+ margin-right: 5px;
60
+ }
61
+
62
+ .nav-pills > li > a > & {
63
+ margin-left: 3px;
64
+ }
65
+ }
@@ -0,0 +1,50 @@
1
+ // Core variables and mixins
2
+ @import "variables.less";
3
+ @import "mixins.less";
4
+
5
+ // Reset and dependencies
6
+ @import "normalize.less";
7
+ @import "print.less";
8
+ @import "glyphicons.less";
9
+
10
+ // Core CSS
11
+ @import "scaffolding.less";
12
+ @import "type.less";
13
+ @import "code.less";
14
+ @import "grid.less";
15
+ @import "tables.less";
16
+ @import "forms.less";
17
+ @import "buttons.less";
18
+
19
+ // Components
20
+ @import "component-animations.less";
21
+ @import "dropdowns.less";
22
+ @import "button-groups.less";
23
+ @import "input-groups.less";
24
+ @import "navs.less";
25
+ @import "navbar.less";
26
+ @import "breadcrumbs.less";
27
+ @import "pagination.less";
28
+ @import "pager.less";
29
+ @import "labels.less";
30
+ @import "badges.less";
31
+ @import "jumbotron.less";
32
+ @import "thumbnails.less";
33
+ @import "alerts.less";
34
+ @import "progress-bars.less";
35
+ @import "media.less";
36
+ @import "list-group.less";
37
+ @import "panels.less";
38
+ @import "responsive-embed.less";
39
+ @import "wells.less";
40
+ @import "close.less";
41
+
42
+ // Components w/ JavaScript
43
+ @import "modals.less";
44
+ @import "tooltip.less";
45
+ @import "popovers.less";
46
+ @import "carousel.less";
47
+
48
+ // Utility classes
49
+ @import "utilities.less";
50
+ @import "responsive-utilities.less";
@@ -0,0 +1,26 @@
1
+ //
2
+ // Breadcrumbs
3
+ // --------------------------------------------------
4
+
5
+
6
+ .breadcrumb {
7
+ padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
8
+ margin-bottom: @line-height-computed;
9
+ list-style: none;
10
+ background-color: @breadcrumb-bg;
11
+ border-radius: @border-radius-base;
12
+
13
+ > li {
14
+ display: inline-block;
15
+
16
+ + li:before {
17
+ content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
18
+ padding: 0 5px;
19
+ color: @breadcrumb-color;
20
+ }
21
+ }
22
+
23
+ > .active {
24
+ color: @breadcrumb-active-color;
25
+ }
26
+ }
@@ -0,0 +1,243 @@
1
+ //
2
+ // Button groups
3
+ // --------------------------------------------------
4
+
5
+ // Make the div behave like a button
6
+ .btn-group,
7
+ .btn-group-vertical {
8
+ position: relative;
9
+ display: inline-block;
10
+ vertical-align: middle; // match .btn alignment given font-size hack above
11
+ > .btn {
12
+ position: relative;
13
+ float: left;
14
+ // Bring the "active" button to the front
15
+ &:hover,
16
+ &:focus,
17
+ &:active,
18
+ &.active {
19
+ z-index: 2;
20
+ }
21
+ }
22
+ }
23
+
24
+ // Prevent double borders when buttons are next to each other
25
+ .btn-group {
26
+ .btn + .btn,
27
+ .btn + .btn-group,
28
+ .btn-group + .btn,
29
+ .btn-group + .btn-group {
30
+ margin-left: -1px;
31
+ }
32
+ }
33
+
34
+ // Optional: Group multiple button groups together for a toolbar
35
+ .btn-toolbar {
36
+ margin-left: -5px; // Offset the first child's margin
37
+ &:extend(.clearfix all);
38
+
39
+ .btn-group,
40
+ .input-group {
41
+ float: left;
42
+ }
43
+ > .btn,
44
+ > .btn-group,
45
+ > .input-group {
46
+ margin-left: 5px;
47
+ }
48
+ }
49
+
50
+ .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
51
+ border-radius: 0;
52
+ }
53
+
54
+ // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
55
+ .btn-group > .btn:first-child {
56
+ margin-left: 0;
57
+ &:not(:last-child):not(.dropdown-toggle) {
58
+ .border-right-radius(0);
59
+ }
60
+ }
61
+ // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
62
+ .btn-group > .btn:last-child:not(:first-child),
63
+ .btn-group > .dropdown-toggle:not(:first-child) {
64
+ .border-left-radius(0);
65
+ }
66
+
67
+ // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
68
+ .btn-group > .btn-group {
69
+ float: left;
70
+ }
71
+ .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
72
+ border-radius: 0;
73
+ }
74
+ .btn-group > .btn-group:first-child:not(:last-child) {
75
+ > .btn:last-child,
76
+ > .dropdown-toggle {
77
+ .border-right-radius(0);
78
+ }
79
+ }
80
+ .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
81
+ .border-left-radius(0);
82
+ }
83
+
84
+ // On active and open, don't show outline
85
+ .btn-group .dropdown-toggle:active,
86
+ .btn-group.open .dropdown-toggle {
87
+ outline: 0;
88
+ }
89
+
90
+
91
+ // Sizing
92
+ //
93
+ // Remix the default button sizing classes into new ones for easier manipulation.
94
+
95
+ .btn-group-xs > .btn { &:extend(.btn-xs); }
96
+ .btn-group-sm > .btn { &:extend(.btn-sm); }
97
+ .btn-group-lg > .btn { &:extend(.btn-lg); }
98
+
99
+
100
+ // Split button dropdowns
101
+ // ----------------------
102
+
103
+ // Give the line between buttons some depth
104
+ .btn-group > .btn + .dropdown-toggle {
105
+ padding-left: 8px;
106
+ padding-right: 8px;
107
+ }
108
+ .btn-group > .btn-lg + .dropdown-toggle {
109
+ padding-left: 12px;
110
+ padding-right: 12px;
111
+ }
112
+
113
+ // The clickable button for toggling the menu
114
+ // Remove the gradient and set the same inset shadow as the :active state
115
+ .btn-group.open .dropdown-toggle {
116
+ .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
117
+
118
+ // Show no shadow for `.btn-link` since it has no other button styles.
119
+ &.btn-link {
120
+ .box-shadow(none);
121
+ }
122
+ }
123
+
124
+
125
+ // Reposition the caret
126
+ .btn .caret {
127
+ margin-left: 0;
128
+ }
129
+ // Carets in other button sizes
130
+ .btn-lg .caret {
131
+ border-width: @caret-width-large @caret-width-large 0;
132
+ border-bottom-width: 0;
133
+ }
134
+ // Upside down carets for .dropup
135
+ .dropup .btn-lg .caret {
136
+ border-width: 0 @caret-width-large @caret-width-large;
137
+ }
138
+
139
+
140
+ // Vertical button groups
141
+ // ----------------------
142
+
143
+ .btn-group-vertical {
144
+ > .btn,
145
+ > .btn-group,
146
+ > .btn-group > .btn {
147
+ display: block;
148
+ float: none;
149
+ width: 100%;
150
+ max-width: 100%;
151
+ }
152
+
153
+ // Clear floats so dropdown menus can be properly placed
154
+ > .btn-group {
155
+ &:extend(.clearfix all);
156
+ > .btn {
157
+ float: none;
158
+ }
159
+ }
160
+
161
+ > .btn + .btn,
162
+ > .btn + .btn-group,
163
+ > .btn-group + .btn,
164
+ > .btn-group + .btn-group {
165
+ margin-top: -1px;
166
+ margin-left: 0;
167
+ }
168
+ }
169
+
170
+ .btn-group-vertical > .btn {
171
+ &:not(:first-child):not(:last-child) {
172
+ border-radius: 0;
173
+ }
174
+ &:first-child:not(:last-child) {
175
+ border-top-right-radius: @border-radius-base;
176
+ .border-bottom-radius(0);
177
+ }
178
+ &:last-child:not(:first-child) {
179
+ border-bottom-left-radius: @border-radius-base;
180
+ .border-top-radius(0);
181
+ }
182
+ }
183
+ .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
184
+ border-radius: 0;
185
+ }
186
+ .btn-group-vertical > .btn-group:first-child:not(:last-child) {
187
+ > .btn:last-child,
188
+ > .dropdown-toggle {
189
+ .border-bottom-radius(0);
190
+ }
191
+ }
192
+ .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
193
+ .border-top-radius(0);
194
+ }
195
+
196
+
197
+ // Justified button groups
198
+ // ----------------------
199
+
200
+ .btn-group-justified {
201
+ display: table;
202
+ width: 100%;
203
+ table-layout: fixed;
204
+ border-collapse: separate;
205
+ > .btn,
206
+ > .btn-group {
207
+ float: none;
208
+ display: table-cell;
209
+ width: 1%;
210
+ }
211
+ > .btn-group .btn {
212
+ width: 100%;
213
+ }
214
+
215
+ > .btn-group .dropdown-menu {
216
+ left: auto;
217
+ }
218
+ }
219
+
220
+
221
+ // Checkbox and radio options
222
+ //
223
+ // In order to support the browser's form validation feedback, powered by the
224
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
225
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
226
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
227
+ // certain cases which is prevented by using `clip` and `pointer-events`.
228
+ // This way, we ensure a DOM element is visible to position the popover from.
229
+ //
230
+ // See https://github.com/twbs/bootstrap/pull/12794 and
231
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
232
+
233
+ [data-toggle="buttons"] {
234
+ > .btn,
235
+ > .btn-group > .btn {
236
+ input[type="radio"],
237
+ input[type="checkbox"] {
238
+ position: absolute;
239
+ clip: rect(0,0,0,0);
240
+ pointer-events: none;
241
+ }
242
+ }
243
+ }