openshift-origin-console 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. data/COPYRIGHT +1 -0
  2. data/Gemfile +21 -0
  3. data/LICENSE +203 -0
  4. data/README.md +123 -0
  5. data/Rakefile +44 -0
  6. data/app/assets/images/cartridge-edge.gif +0 -0
  7. data/app/assets/images/console/arrow-down.png +0 -0
  8. data/app/assets/images/console/console-sprite.png +0 -0
  9. data/app/assets/images/favicon-32.png +0 -0
  10. data/app/assets/images/loader-dark.gif +0 -0
  11. data/app/assets/images/loader.gif +0 -0
  12. data/app/assets/images/sprite-vert.png +0 -0
  13. data/app/assets/javascripts/console.js +10 -0
  14. data/app/assets/javascripts/console/form.js.coffee +51 -0
  15. data/app/assets/stylesheets/_alerts.scss +84 -0
  16. data/app/assets/stylesheets/_breadcrumbs.scss +31 -0
  17. data/app/assets/stylesheets/_buttons.scss +229 -0
  18. data/app/assets/stylesheets/_code.scss +86 -0
  19. data/app/assets/stylesheets/_custom.scss +207 -0
  20. data/app/assets/stylesheets/_footer.scss +54 -0
  21. data/app/assets/stylesheets/_forms.scss +710 -0
  22. data/app/assets/stylesheets/_grid.scss +28 -0
  23. data/app/assets/stylesheets/_input-prepend-append.scss +138 -0
  24. data/app/assets/stylesheets/_labels.scss +40 -0
  25. data/app/assets/stylesheets/_mixins.scss +76 -0
  26. data/app/assets/stylesheets/_override-variables.scss +1 -0
  27. data/app/assets/stylesheets/_responsive.scss +438 -0
  28. data/app/assets/stylesheets/_ribbon.scss +57 -0
  29. data/app/assets/stylesheets/_type.scss +306 -0
  30. data/app/assets/stylesheets/_utilities.scss +10 -0
  31. data/app/assets/stylesheets/_variables.scss +131 -0
  32. data/app/assets/stylesheets/common.css.scss +82 -0
  33. data/app/assets/stylesheets/console/_application.scss +194 -0
  34. data/app/assets/stylesheets/console/_base.scss +26 -0
  35. data/app/assets/stylesheets/console/_breadcrumbs.scss +32 -0
  36. data/app/assets/stylesheets/console/_buttons.scss +214 -0
  37. data/app/assets/stylesheets/console/_core.scss +1002 -0
  38. data/app/assets/stylesheets/console/_dropdowns.scss +63 -0
  39. data/app/assets/stylesheets/console/_help.scss +54 -0
  40. data/app/assets/stylesheets/console/_mixins.scss +11 -0
  41. data/app/assets/stylesheets/console/_navbar.scss +415 -0
  42. data/app/assets/stylesheets/console/_ribbon.scss +82 -0
  43. data/app/assets/stylesheets/console/_tile.scss +122 -0
  44. data/app/assets/stylesheets/origin.css.scss +37 -0
  45. data/app/controllers/account/dashboard.rb +13 -0
  46. data/app/controllers/account_controller.rb +3 -0
  47. data/app/controllers/application_types_controller.rb +80 -0
  48. data/app/controllers/applications_controller.rb +183 -0
  49. data/app/controllers/building_controller.rb +81 -0
  50. data/app/controllers/capability_aware.rb +18 -0
  51. data/app/controllers/cartridge_types_controller.rb +53 -0
  52. data/app/controllers/cartridges_controller.rb +43 -0
  53. data/app/controllers/console/auth/basic.rb +65 -0
  54. data/app/controllers/console/auth/none.rb +5 -0
  55. data/app/controllers/console/auth/remote_user.rb +69 -0
  56. data/app/controllers/console/rescue.rb +48 -0
  57. data/app/controllers/console_controller.rb +19 -0
  58. data/app/controllers/console_index_controller.rb +14 -0
  59. data/app/controllers/domain_aware.rb +26 -0
  60. data/app/controllers/domain_session_sweeper.rb +29 -0
  61. data/app/controllers/domains_controller.rb +30 -0
  62. data/app/controllers/keys_controller.rb +43 -0
  63. data/app/controllers/scaling_controller.rb +46 -0
  64. data/app/controllers/sshkey_aware.rb +23 -0
  65. data/app/controllers/sshkey_session_sweeper.rb +29 -0
  66. data/app/controllers/user_session_sweeper.rb +29 -0
  67. data/app/helpers/console/community_helper.rb +78 -0
  68. data/app/helpers/console/console_helper.rb +26 -0
  69. data/app/helpers/console/help_helper.rb +270 -0
  70. data/app/helpers/console/html5_boilerplate_helper.rb +63 -0
  71. data/app/helpers/console/layout_helper.rb +277 -0
  72. data/app/helpers/console/model_helper.rb +106 -0
  73. data/app/helpers/console/secured_helper.rb +5 -0
  74. data/app/models/alias.rb +10 -0
  75. data/app/models/application.rb +148 -0
  76. data/app/models/application_associations.rb +36 -0
  77. data/app/models/application_template.rb +90 -0
  78. data/app/models/application_type.rb +258 -0
  79. data/app/models/async_aware.rb +60 -0
  80. data/app/models/capabilities.rb +62 -0
  81. data/app/models/cartridge.rb +122 -0
  82. data/app/models/cartridge_type.rb +140 -0
  83. data/app/models/domain.rb +44 -0
  84. data/app/models/domain_associations.rb +33 -0
  85. data/app/models/embedded.rb +11 -0
  86. data/app/models/gear.rb +13 -0
  87. data/app/models/gear_group.rb +104 -0
  88. data/app/models/key.rb +87 -0
  89. data/app/models/quickstart.rb +135 -0
  90. data/app/models/rest_api.rb +130 -0
  91. data/app/models/rest_api/base.rb +781 -0
  92. data/app/models/rest_api/cacheable.rb +91 -0
  93. data/app/models/rest_api/environment.rb +13 -0
  94. data/app/models/rest_api/info.rb +34 -0
  95. data/app/models/rest_api/log_subscriber.rb +29 -0
  96. data/app/models/rest_api/railties/controller_runtime.rb +37 -0
  97. data/app/models/user.rb +27 -0
  98. data/app/models/user_associations.rb +6 -0
  99. data/app/views/account/_domain.html.haml +14 -0
  100. data/app/views/account/_keys.html.haml +20 -0
  101. data/app/views/account/_user.html.haml +5 -0
  102. data/app/views/account/show.html.haml +15 -0
  103. data/app/views/application_templates/_application_template.html.haml +5 -0
  104. data/app/views/application_types/_application_type.html.haml +19 -0
  105. data/app/views/application_types/_custom.html.haml +19 -0
  106. data/app/views/application_types/_persisted.html.haml +26 -0
  107. data/app/views/application_types/_tile.html.haml +9 -0
  108. data/app/views/application_types/index.html.haml +87 -0
  109. data/app/views/application_types/search.html.haml +67 -0
  110. data/app/views/application_types/show.html.haml +219 -0
  111. data/app/views/applications/_application.html.haml +34 -0
  112. data/app/views/applications/_applications_filter.html.haml +8 -0
  113. data/app/views/applications/_footer.html.haml +0 -0
  114. data/app/views/applications/_name.html.haml +28 -0
  115. data/app/views/applications/delete.html.haml +19 -0
  116. data/app/views/applications/get_started.html.haml +145 -0
  117. data/app/views/applications/index.html.haml +55 -0
  118. data/app/views/applications/show.html.haml +193 -0
  119. data/app/views/building/delete.html.haml +22 -0
  120. data/app/views/building/new.html.haml +57 -0
  121. data/app/views/building/show.html.haml +12 -0
  122. data/app/views/cartridge_types/_cartridge_type.html.haml +61 -0
  123. data/app/views/cartridge_types/index.html.haml +37 -0
  124. data/app/views/cartridge_types/show.html.haml +21 -0
  125. data/app/views/cartridges/next_steps.html.haml +58 -0
  126. data/app/views/cartridges/show.html.haml +1 -0
  127. data/app/views/console/error.html.haml +58 -0
  128. data/app/views/console/help.html.haml +90 -0
  129. data/app/views/console/not_found.html.haml +69 -0
  130. data/app/views/console/unauthorized.html.haml +7 -0
  131. data/app/views/domains/_domain.html.haml +14 -0
  132. data/app/views/domains/_form.html.haml +13 -0
  133. data/app/views/domains/edit.html.haml +5 -0
  134. data/app/views/domains/new.html.haml +6 -0
  135. data/app/views/keys/_form.html.haml +14 -0
  136. data/app/views/keys/_simple_form.html.haml +14 -0
  137. data/app/views/keys/new.html.haml +2 -0
  138. data/app/views/layouts/_footer.html.haml +38 -0
  139. data/app/views/layouts/_head.html.haml +35 -0
  140. data/app/views/layouts/console.html.haml +60 -0
  141. data/app/views/layouts/console/_header.html.haml +44 -0
  142. data/app/views/layouts/console/_identity.html.haml +7 -0
  143. data/app/views/layouts/console/_javascripts.html.haml +5 -0
  144. data/app/views/layouts/console/_stylesheets.html.haml +6 -0
  145. data/app/views/scaling/delete.html.haml +17 -0
  146. data/app/views/scaling/new.html.haml +24 -0
  147. data/app/views/scaling/show.html.haml +81 -0
  148. data/app/views/shared/_tracking.html.haml +0 -0
  149. data/conf/console.conf.example +108 -0
  150. data/conf/openshift_console.conf +10 -0
  151. data/config/cartridge_types.yml +54 -0
  152. data/config/initializers/barista_config.rb +86 -0
  153. data/config/initializers/cartridge_types.rb +5 -0
  154. data/config/initializers/console_security.rb +1 -0
  155. data/config/initializers/date_helper.rb +5 -0
  156. data/config/initializers/extended_logger.rb +51 -0
  157. data/config/initializers/formtastic.rb +100 -0
  158. data/config/initializers/inflections.rb +38 -0
  159. data/config/initializers/rdiscount.rb +8 -0
  160. data/config/initializers/rest_api.rb +22 -0
  161. data/config/initializers/sass.rb +30 -0
  162. data/config/initializers/session_trace.rb +32 -0
  163. data/config/initializers/x_frame_options.rb +53 -0
  164. data/config/locales/en.yml +12 -0
  165. data/lib/active_resource/associations.rb +107 -0
  166. data/lib/active_resource/associations/builder/association.rb +35 -0
  167. data/lib/active_resource/associations/builder/belongs_to.rb +5 -0
  168. data/lib/active_resource/associations/builder/has_many.rb +5 -0
  169. data/lib/active_resource/associations/builder/has_one.rb +5 -0
  170. data/lib/active_resource/persistent_connection.rb +341 -0
  171. data/lib/active_resource/persistent_http_mock.rb +68 -0
  172. data/lib/active_resource/reflection.rb +78 -0
  173. data/lib/console.rb +8 -0
  174. data/lib/console/config_file.rb +13 -0
  175. data/lib/console/configuration.rb +163 -0
  176. data/lib/console/engine.rb +28 -0
  177. data/lib/console/formtastic/bootstrap_form_builder.rb +369 -0
  178. data/lib/console/rails/app_redirector.rb +40 -0
  179. data/lib/console/rails/filter_hash.rb +15 -0
  180. data/lib/console/rails/routes.rb +51 -0
  181. data/lib/console/version.rb +5 -0
  182. data/lib/tasks/assets.rake +79 -0
  183. data/lib/tasks/stats.rake +18 -0
  184. data/lib/tasks/test_suites.rake +73 -0
  185. data/test/coverage_helper.rb +27 -0
  186. data/test/fixtures/cartridges.json +1 -0
  187. data/test/fixtures/quickstarts.csv +3 -0
  188. data/test/functional/account_controller_test.rb +14 -0
  189. data/test/functional/application_types_controller_test.rb +251 -0
  190. data/test/functional/applications_controller_sanity_test.rb +26 -0
  191. data/test/functional/applications_controller_test.rb +365 -0
  192. data/test/functional/building_controller_test.rb +203 -0
  193. data/test/functional/cartridge_types_controller_isolation_test.rb +68 -0
  194. data/test/functional/cartridge_types_controller_test.rb +48 -0
  195. data/test/functional/cartridges_controller_test.rb +83 -0
  196. data/test/functional/console_auth_basic_controller_test.rb +82 -0
  197. data/test/functional/console_auth_remote_user_controller_test.rb +90 -0
  198. data/test/functional/console_index_controller_test.rb +22 -0
  199. data/test/functional/domains_controller_test.rb +194 -0
  200. data/test/functional/keys_controller_test.rb +163 -0
  201. data/test/functional/quickstarts.json +18 -0
  202. data/test/functional/scaling_controller_test.rb +153 -0
  203. data/test/integration/assets_test.rb +34 -0
  204. data/test/integration/help_link_test.rb +43 -0
  205. data/test/integration/quickstarts_test.rb +24 -0
  206. data/test/integration/rescue_from_test.rb +25 -0
  207. data/test/integration/rest_api/application_test.rb +115 -0
  208. data/test/integration/rest_api/cartridge_test.rb +44 -0
  209. data/test/integration/rest_api/cartridge_type_test.rb +143 -0
  210. data/test/integration/rest_api/domain_test.rb +91 -0
  211. data/test/integration/rest_api/info_test.rb +9 -0
  212. data/test/integration/rest_api/key_test.rb +85 -0
  213. data/test/integration/static_pages_test.rb +44 -0
  214. data/test/rails_app/Rakefile +7 -0
  215. data/test/rails_app/app/controllers/application_controller.rb +5 -0
  216. data/test/rails_app/config.ru +4 -0
  217. data/test/rails_app/config/application.rb +48 -0
  218. data/test/rails_app/config/boot.rb +10 -0
  219. data/test/rails_app/config/database.yml +25 -0
  220. data/test/rails_app/config/environment.rb +5 -0
  221. data/test/rails_app/config/environments/development.rb +38 -0
  222. data/test/rails_app/config/environments/production.rb +70 -0
  223. data/test/rails_app/config/environments/test.rb +43 -0
  224. data/test/rails_app/config/initializers/auth.rb +0 -0
  225. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  226. data/test/rails_app/config/initializers/inflections.rb +10 -0
  227. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  228. data/test/rails_app/config/initializers/secret_token.rb +7 -0
  229. data/test/rails_app/config/initializers/session_store.rb +8 -0
  230. data/test/rails_app/config/locales/en.yml +5 -0
  231. data/test/rails_app/config/routes.rb +4 -0
  232. data/test/rails_app/script/rails +6 -0
  233. data/test/support/auth.rb +111 -0
  234. data/test/support/base.rb +142 -0
  235. data/test/support/errors.rb +28 -0
  236. data/test/support/rest_api.rb +189 -0
  237. data/test/test_helper.rb +14 -0
  238. data/test/unit/active_model_compliance_test.rb +23 -0
  239. data/test/unit/async_aware_test.rb +55 -0
  240. data/test/unit/configuration_test.rb +158 -0
  241. data/test/unit/filter_hash_test.rb +64 -0
  242. data/test/unit/helpers/model_helper_test.rb +61 -0
  243. data/test/unit/overrides_test.rb +9 -0
  244. data/test/unit/rest_api_test.rb +1590 -0
  245. data/vendor/assets/javascripts/MIT-LICENSE.txt +20 -0
  246. data/vendor/assets/javascripts/bootstrap-collapse.js +157 -0
  247. data/vendor/assets/javascripts/bootstrap-dropdown.js +100 -0
  248. data/vendor/assets/javascripts/bootstrap-tab.js +135 -0
  249. data/vendor/assets/javascripts/bootstrap-transition.js +61 -0
  250. data/vendor/assets/javascripts/jquery.spin.js +47 -0
  251. data/vendor/assets/javascripts/jquery.ui.widget.js +16 -0
  252. data/vendor/assets/javascripts/jquery_cookie.js +41 -0
  253. data/vendor/assets/javascripts/jquery_validate_min.js +51 -0
  254. data/vendor/assets/javascripts/modernizr.min.js +2 -0
  255. data/vendor/assets/javascripts/plugins.js +16 -0
  256. data/vendor/assets/stylesheets/bootstrap/_accordion.scss +28 -0
  257. data/vendor/assets/stylesheets/bootstrap/_alerts.scss +70 -0
  258. data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +22 -0
  259. data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +147 -0
  260. data/vendor/assets/stylesheets/bootstrap/_buttons.scss +183 -0
  261. data/vendor/assets/stylesheets/bootstrap/_carousel.scss +121 -0
  262. data/vendor/assets/stylesheets/bootstrap/_close.scss +18 -0
  263. data/vendor/assets/stylesheets/bootstrap/_code.scss +57 -0
  264. data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +18 -0
  265. data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +130 -0
  266. data/vendor/assets/stylesheets/bootstrap/_forms.scss +522 -0
  267. data/vendor/assets/stylesheets/bootstrap/_grid.scss +8 -0
  268. data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +20 -0
  269. data/vendor/assets/stylesheets/bootstrap/_labels.scss +32 -0
  270. data/vendor/assets/stylesheets/bootstrap/_layouts.scss +17 -0
  271. data/vendor/assets/stylesheets/bootstrap/_mixins.scss +602 -0
  272. data/vendor/assets/stylesheets/bootstrap/_modals.scss +84 -0
  273. data/vendor/assets/stylesheets/bootstrap/_navbar.scss +299 -0
  274. data/vendor/assets/stylesheets/bootstrap/_navs.scss +353 -0
  275. data/vendor/assets/stylesheets/bootstrap/_pager.scss +30 -0
  276. data/vendor/assets/stylesheets/bootstrap/_pagination.scss +55 -0
  277. data/vendor/assets/stylesheets/bootstrap/_popovers.scss +49 -0
  278. data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
  279. data/vendor/assets/stylesheets/bootstrap/_reset.scss +126 -0
  280. data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +33 -0
  281. data/vendor/assets/stylesheets/bootstrap/_sprites.scss +158 -0
  282. data/vendor/assets/stylesheets/bootstrap/_tables.scss +150 -0
  283. data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +35 -0
  284. data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +35 -0
  285. data/vendor/assets/stylesheets/bootstrap/_type.scss +218 -0
  286. data/vendor/assets/stylesheets/bootstrap/_utilities.scss +23 -0
  287. data/vendor/assets/stylesheets/bootstrap/_variables.scss +107 -0
  288. data/vendor/assets/stylesheets/bootstrap/_wells.scss +17 -0
  289. data/vendor/assets/stylesheets/bootstrap/bootstrap.scss +66 -0
  290. data/vendor/assets/stylesheets/bootstrap/responsive.scss +334 -0
  291. metadata +506 -0
@@ -0,0 +1,107 @@
1
+ // Variables.scss
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+ // Links
11
+ $linkColor: #08c !default;
12
+ $linkColorHover: darken($linkColor, 15) !default;
13
+
14
+ // Grays
15
+ $black: #000 !default;
16
+ $grayDarker: #222 !default;
17
+ $grayDark: #333 !default;
18
+ $gray: #555 !default;
19
+ $grayLight: #999 !default;
20
+ $grayLighter: #eee !default;
21
+ $white: #fff !default;
22
+
23
+ // Accent colors
24
+ $blue: #049cdb !default;
25
+ $blueDark: #0064cd !default;
26
+ $green: #46a546 !default;
27
+ $red: #9d261d !default;
28
+ $yellow: #ffc40d !default;
29
+ $orange: #f89406 !default;
30
+ $pink: #c3325f !default;
31
+ $purple: #7a43b6 !default;
32
+
33
+ // Typography
34
+ $baseFontSize: 13px !default;
35
+ $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
36
+ $baseLineHeight: 18px !default;
37
+ $textColor: $grayDark !default;
38
+
39
+ // Buttons
40
+ $primaryButtonBackground: $linkColor !default;
41
+
42
+
43
+
44
+ // COMPONENT VARIABLES
45
+ // --------------------------------------------------
46
+
47
+ // Z-index master list
48
+ // Used for a bird's eye view of components dependent on the z-axis
49
+ // Try to avoid customizing these :)
50
+ $zindexDropdown: 1000 !default;
51
+ $zindexPopover: 1010 !default;
52
+ $zindexTooltip: 1020 !default;
53
+ $zindexFixedNavbar: 1030 !default;
54
+ $zindexModalBackdrop: 1040 !default;
55
+ $zindexModal: 1050 !default;
56
+
57
+ // Sprite icons path
58
+ $iconSpritePath: "../img/glyphicons-halflings.png";
59
+ $iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
60
+
61
+ // Input placeholder text color
62
+ $placeholderText: $grayLight !default;
63
+
64
+ // Hr border color
65
+ $hrBorder: $grayLighter !default;
66
+
67
+ // Navbar
68
+ $navbarHeight: 40px !default;
69
+ $navbarBackground: $grayDarker !default;
70
+ $navbarBackgroundHighlight: $grayDark !default;
71
+ $navbarLinkBackgroundHover: transparent !default;
72
+
73
+ $navbarText: $grayLight !default;
74
+ $navbarLinkColor: $grayLight !default;
75
+ $navbarLinkColorHover: $white !default;
76
+
77
+ // Form states and alerts
78
+ $warningText: #c09853 !default;
79
+ $warningBackground: #fcf8e3 !default;
80
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
81
+
82
+ $errorText: #b94a48 !default;
83
+ $errorBackground: #f2dede !default;
84
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default;
85
+
86
+ $successText: #468847 !default;
87
+ $successBackground: #dff0d8 !default;
88
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%) !default;
89
+
90
+ $infoText: #3a87ad !default;
91
+ $infoBackground: #d9edf7 !default;
92
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
93
+
94
+
95
+
96
+ // GRID
97
+ // --------------------------------------------------
98
+
99
+ // Default 940px grid
100
+ $gridColumns: 12 !default;
101
+ $gridColumnWidth: 60px !default;
102
+ $gridGutterWidth: 20px !default;
103
+ $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
104
+
105
+ // Fluid grid
106
+ $fluidGridColumnWidth: 6.382978723% !default;
107
+ $fluidGridGutterWidth: 2.127659574% !default;
@@ -0,0 +1,17 @@
1
+ // WELLS
2
+ // -----
3
+
4
+ .well {
5
+ min-height: 20px;
6
+ padding: 19px;
7
+ margin-bottom: 20px;
8
+ background-color: #f5f5f5;
9
+ border: 1px solid #eee;
10
+ border: 1px solid rgba(0,0,0,.05);
11
+ @include border-radius(4px);
12
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
13
+ blockquote {
14
+ border-color: #ddd;
15
+ border-color: rgba(0,0,0,.15);
16
+ }
17
+ }
@@ -0,0 +1,66 @@
1
+ /*!
2
+ * Bootstrap v2.0.1
3
+ *
4
+ * Copyright 2012 Twitter, Inc
5
+ * Licensed under the Apache License v2.0
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+ *
10
+ * Converted to Sass by @johnwlong / @m5o.
11
+ *
12
+ * Date: @DATE
13
+ */
14
+
15
+ // Core variables and mixins
16
+ @import "variables"; // Modify this for custom colors, font-sizes, etc
17
+ @import "mixins";
18
+
19
+ // CSS Reset
20
+ @import "reset";
21
+
22
+ // Grid system and page structure
23
+ @import "scaffolding";
24
+ @import "grid";
25
+ @import "layouts";
26
+
27
+ // Base CSS
28
+ @import "type";
29
+ @import "code";
30
+ @import "forms";
31
+ @import "tables";
32
+
33
+ // Components: common
34
+ @import "sprites";
35
+ @import "dropdowns";
36
+ @import "wells";
37
+ @import "component-animations";
38
+ @import "close";
39
+
40
+ // Components: Buttons & Alerts
41
+ @import "buttons";
42
+ @import "button-groups";
43
+ @import "alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons.scss
44
+
45
+ // Components: Nav
46
+ @import "navs";
47
+ @import "navbar";
48
+ @import "breadcrumbs";
49
+ @import "pagination";
50
+ @import "pager";
51
+
52
+ // Components: Popovers
53
+ @import "modals";
54
+ @import "tooltip";
55
+ @import "popovers";
56
+
57
+ // Components: Misc
58
+ @import "thumbnails";
59
+ @import "labels";
60
+ @import "progress-bars";
61
+ @import "accordion";
62
+ @import "carousel";
63
+ @import "hero-unit";
64
+
65
+ // Utility classes
66
+ @import "utilities"; // Has to be last to override when necessary
@@ -0,0 +1,334 @@
1
+ /*!
2
+ * Bootstrap Responsive v2.0.1
3
+ *
4
+ * Copyright 2012 Twitter, Inc
5
+ * Licensed under the Apache License v2.0
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+ *
10
+ * Converted to Sass by @johnwlong / @m5o.
11
+ *
12
+ * Date: @DATE
13
+ */
14
+
15
+ // Responsive.scss
16
+ // For phone and tablet devices
17
+ // -------------------------------------------------------------
18
+
19
+
20
+ // REPEAT VARIABLES & MIXINS
21
+ // -------------------------
22
+ // Required since we compile the responsive stuff separately
23
+
24
+ @import "variables"; // Modify this for custom colors, font-sizes, etc
25
+ @import "mixins";
26
+
27
+ .clearfix {
28
+ @include clearfix();
29
+ }
30
+
31
+ // RESPONSIVE CLASSES
32
+ // ------------------
33
+
34
+ // Hide from screenreaders and browsers
35
+ // Credit: HTML5 Boilerplate
36
+ .hidden {
37
+ display: none;
38
+ visibility: hidden;
39
+ }
40
+
41
+
42
+
43
+ // UP TO LANDSCAPE PHONE
44
+ // ---------------------
45
+
46
+ @media (max-width: 480px) {
47
+
48
+ // Smooth out the collapsing/expanding nav
49
+ .nav-collapse {
50
+ -webkit-transform: translate3d(0, 0, 0); // activate the GPU
51
+ }
52
+
53
+ // Block level the page header small tag for readability
54
+ .page-header h1 small {
55
+ display: block;
56
+ line-height: $baseLineHeight;
57
+ }
58
+
59
+ // Make span* classes full width
60
+ input[class*="span"],
61
+ select[class*="span"],
62
+ textarea[class*="span"],
63
+ .uneditable-input {
64
+ display: block;
65
+ width: 100%;
66
+ min-height: 28px; /* Make inputs at least the height of their button counterpart */
67
+ /* Makes inputs behave like true block-level elements */
68
+ -webkit-box-sizing: border-box; /* Older Webkit */
69
+ -moz-box-sizing: border-box; /* Older FF */
70
+ -ms-box-sizing: border-box; /* IE8 */
71
+ box-sizing: border-box; /* CSS3 spec*/
72
+ }
73
+ // But don't let it screw up prepend/append inputs
74
+ .input-prepend input[class*="span"],
75
+ .input-append input[class*="span"] {
76
+ width: auto;
77
+ }
78
+
79
+ // Update checkboxes for iOS
80
+ input[type="checkbox"],
81
+ input[type="radio"] {
82
+ border: 1px solid #ccc;
83
+ }
84
+
85
+ // Remove the horizontal form styles
86
+ .form-horizontal .control-group > label {
87
+ float: none;
88
+ width: auto;
89
+ padding-top: 0;
90
+ text-align: left;
91
+ }
92
+ // Move over all input controls and content
93
+ .form-horizontal .controls {
94
+ margin-left: 0;
95
+ }
96
+ // Move the options list down to align with labels
97
+ .form-horizontal .control-list {
98
+ padding-top: 0; // has to be padding because margin collaspes
99
+ }
100
+ // Move over buttons in .form-actions to align with .controls
101
+ .form-horizontal .form-actions {
102
+ padding-left: 10px;
103
+ padding-right: 10px;
104
+ }
105
+
106
+ // Modals
107
+ .modal {
108
+ position: absolute;
109
+ top: 10px;
110
+ left: 10px;
111
+ right: 10px;
112
+ width: auto;
113
+ margin: 0;
114
+ &.fade.in { top: auto; }
115
+ }
116
+ .modal-header .close {
117
+ padding: 10px;
118
+ margin: -10px;
119
+ }
120
+
121
+ // Carousel
122
+ .carousel-caption {
123
+ position: static;
124
+ }
125
+
126
+ }
127
+
128
+
129
+
130
+ // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
131
+ // --------------------------------------------------
132
+
133
+ @media (max-width: 767px) {
134
+ // GRID & CONTAINERS
135
+ // -----------------
136
+ // Remove width from containers
137
+ .container {
138
+ width: auto;
139
+ padding: 0 20px;
140
+ }
141
+ // Fluid rows
142
+ .row-fluid {
143
+ width: 100%;
144
+ }
145
+ // Undo negative margin on rows
146
+ .row {
147
+ margin-left: 0;
148
+ }
149
+ // Make all columns even
150
+ .row > [class*="span"],
151
+ .row-fluid > [class*="span"] {
152
+ float: none;
153
+ display: block;
154
+ width: auto;
155
+ margin: 0;
156
+ }
157
+ }
158
+
159
+
160
+
161
+ // PORTRAIT TABLET TO DEFAULT DESKTOP
162
+ // ----------------------------------
163
+
164
+ @media (min-width: 768px) and (max-width: 979px) {
165
+
166
+ // Fixed grid
167
+ @include gridSystem-generate(12, 42px, 20px);
168
+
169
+ // Fluid grid
170
+ @include fluidGridSystem-generate(12, 5.801104972%, 2.762430939%);
171
+
172
+ // Input grid
173
+ @include inputGridSystem-generate(12, 42px, 20px);
174
+
175
+ }
176
+
177
+
178
+
179
+ // TABLETS AND BELOW
180
+ // -----------------
181
+ @media (max-width: 979px) {
182
+
183
+ // UNFIX THE TOPBAR
184
+ // ----------------
185
+ // Remove any padding from the body
186
+ body {
187
+ padding-top: 0;
188
+ }
189
+ // Unfix the navbar
190
+ .navbar-fixed-top {
191
+ position: static;
192
+ margin-bottom: $baseLineHeight;
193
+ }
194
+ .navbar-fixed-top .navbar-inner {
195
+ padding: 5px;
196
+ }
197
+ .navbar .container {
198
+ width: auto;
199
+ padding: 0;
200
+ }
201
+ // Account for brand name
202
+ .navbar .brand {
203
+ padding-left: 10px;
204
+ padding-right: 10px;
205
+ margin: 0 0 0 -5px;
206
+ }
207
+ // Nav collapse clears brand
208
+ .navbar .nav-collapse {
209
+ clear: left;
210
+ }
211
+ // Block-level the nav
212
+ .navbar .nav {
213
+ float: none;
214
+ margin: 0 0 ($baseLineHeight / 2);
215
+ }
216
+ .navbar .nav > li {
217
+ float: none;
218
+ }
219
+ .navbar .nav > li > a {
220
+ margin-bottom: 2px;
221
+ }
222
+ .navbar .nav > .divider-vertical {
223
+ display: none;
224
+ }
225
+ .navbar .nav .nav-header {
226
+ color: $navbarText;
227
+ text-shadow: none;
228
+ }
229
+ // Nav and dropdown links in navbar
230
+ .navbar .nav > li > a,
231
+ .navbar .dropdown-menu a {
232
+ padding: 6px 15px;
233
+ font-weight: bold;
234
+ color: $navbarLinkColor;
235
+ @include border-radius(3px);
236
+ }
237
+ .navbar .dropdown-menu li + li a {
238
+ margin-bottom: 2px;
239
+ }
240
+ .navbar .nav > li > a:hover,
241
+ .navbar .dropdown-menu a:hover {
242
+ background-color: $navbarBackground;
243
+ }
244
+ // Dropdowns in the navbar
245
+ .navbar .dropdown-menu {
246
+ position: static;
247
+ top: auto;
248
+ left: auto;
249
+ float: none;
250
+ display: block;
251
+ max-width: none;
252
+ margin: 0 15px;
253
+ padding: 0;
254
+ background-color: transparent;
255
+ border: none;
256
+ @include border-radius(0);
257
+ @include box-shadow(none);
258
+ }
259
+ .navbar .dropdown-menu:before,
260
+ .navbar .dropdown-menu:after {
261
+ display: none;
262
+ }
263
+ .navbar .dropdown-menu .divider {
264
+ display: none;
265
+ }
266
+ // Forms in navbar
267
+ .navbar-form,
268
+ .navbar-search {
269
+ float: none;
270
+ padding: ($baseLineHeight / 2) 15px;
271
+ margin: ($baseLineHeight / 2) 0;
272
+ border-top: 1px solid $navbarBackground;
273
+ border-bottom: 1px solid $navbarBackground;
274
+ $shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
275
+ @include box-shadow($shadow);
276
+ }
277
+ // Pull right (secondary) nav content
278
+ .navbar .nav.pull-right {
279
+ float: none;
280
+ margin-left: 0;
281
+ }
282
+ // Static navbar
283
+ .navbar-static .navbar-inner {
284
+ padding-left: 10px;
285
+ padding-right: 10px;
286
+ }
287
+ // Navbar button
288
+ .btn-navbar {
289
+ display: block;
290
+ }
291
+
292
+ // Hide everything in the navbar save .brand and toggle button */
293
+ .nav-collapse {
294
+ overflow: hidden;
295
+ height: 0;
296
+ }
297
+ }
298
+
299
+
300
+
301
+ // DEFAULT DESKTOP
302
+ // ---------------
303
+
304
+ @media (min-width: 980px) {
305
+ .nav-collapse.collapse {
306
+ height: auto !important;
307
+ }
308
+ }
309
+
310
+
311
+
312
+ // LARGE DESKTOP & UP
313
+ // ------------------
314
+
315
+ @media (min-width: 1200px) {
316
+
317
+ // Fixed grid
318
+ @include gridSystem-generate(12, 70px, 30px);
319
+
320
+ // Fluid grid
321
+ @include fluidGridSystem-generate(12, 5.982905983%, 2.564102564%);
322
+
323
+ // Input grid
324
+ @include inputGridSystem-generate(12, 70px, 30px);
325
+
326
+ // Thumbnails
327
+ .thumbnails {
328
+ margin-left: -30px;
329
+ }
330
+ .thumbnails > li {
331
+ margin-left: 30px;
332
+ }
333
+
334
+ }