publish_my_data 0.0.32 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. data/app/assets/images/publish_my_data/small-spinner.gif +0 -0
  2. data/app/assets/images/publish_my_data/sort-asc.gif +0 -0
  3. data/app/assets/images/publish_my_data/sort-desc.gif +0 -0
  4. data/app/assets/javascripts/bootstrap/affix.js +126 -0
  5. data/app/assets/javascripts/bootstrap/alert.js +98 -0
  6. data/app/assets/javascripts/bootstrap/button.js +109 -0
  7. data/app/assets/javascripts/bootstrap/carousel.js +217 -0
  8. data/app/assets/javascripts/bootstrap/collapse.js +179 -0
  9. data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
  10. data/app/assets/javascripts/bootstrap/modal.js +246 -0
  11. data/app/assets/javascripts/bootstrap/popover.js +117 -0
  12. data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
  13. data/app/assets/javascripts/bootstrap/tab.js +135 -0
  14. data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
  15. data/app/assets/javascripts/bootstrap/transition.js +56 -0
  16. data/app/assets/javascripts/publish_my_data/grid/10_data-loader.js +142 -0
  17. data/app/assets/javascripts/publish_my_data/grid/20_cube-grid.js +512 -0
  18. data/app/assets/javascripts/publish_my_data/grid/30_cube-dimension.js +77 -0
  19. data/app/assets/javascripts/publish_my_data/grid/40_cube-dimension-dropdown.js +87 -0
  20. data/app/assets/javascripts/publish_my_data/grid/45_cube-dimension-label.js +58 -0
  21. data/app/assets/javascripts/publish_my_data/grid/50_cube-dimensions-controls.js +336 -0
  22. data/app/assets/javascripts/publish_my_data/grid/60_dataset_cube_grid.js +187 -0
  23. data/app/assets/javascripts/publish_my_data/grid/70_sparql_results_grid.js +135 -0
  24. data/app/assets/javascripts/publish_my_data/select_text.js +27 -0
  25. data/app/assets/javascripts/publish_my_data.js +3 -0
  26. data/app/assets/javascripts/slick_grid/10_event-drag.js +402 -0
  27. data/app/assets/javascripts/slick_grid/20_slick-core.js +458 -0
  28. data/app/assets/javascripts/slick_grid/30_slick-grid.js +3295 -0
  29. data/app/assets/stylesheets/bootstrap/_alerts.scss +67 -0
  30. data/app/assets/stylesheets/bootstrap/_badges.scss +51 -0
  31. data/app/assets/stylesheets/bootstrap/_breadcrumbs.scss +23 -0
  32. data/app/assets/stylesheets/bootstrap/_button-groups.scss +248 -0
  33. data/app/assets/stylesheets/bootstrap/_buttons.scss +160 -0
  34. data/app/assets/stylesheets/bootstrap/_carousel.scss +209 -0
  35. data/app/assets/stylesheets/bootstrap/_close.scss +33 -0
  36. data/app/assets/stylesheets/bootstrap/_code.scss +56 -0
  37. data/app/assets/stylesheets/bootstrap/_component-animations.scss +29 -0
  38. data/app/assets/stylesheets/bootstrap/_dropdowns.scss +194 -0
  39. data/app/assets/stylesheets/bootstrap/_forms.scss +350 -0
  40. data/app/assets/stylesheets/bootstrap/_glyphicons.scss +232 -0
  41. data/app/assets/stylesheets/bootstrap/_grid.scss +346 -0
  42. data/app/assets/stylesheets/bootstrap/_input-groups.scss +127 -0
  43. data/app/assets/stylesheets/bootstrap/_jumbotron.scss +40 -0
  44. data/app/assets/stylesheets/bootstrap/_labels.scss +58 -0
  45. data/app/assets/stylesheets/bootstrap/_list-group.scss +88 -0
  46. data/app/assets/stylesheets/bootstrap/_media.scss +56 -0
  47. data/app/assets/stylesheets/bootstrap/_mixins.scss +728 -0
  48. data/app/assets/stylesheets/bootstrap/_modals.scss +145 -0
  49. data/app/assets/stylesheets/bootstrap/_navbar.scss +625 -0
  50. data/app/assets/stylesheets/bootstrap/_navs.scss +229 -0
  51. data/app/assets/stylesheets/bootstrap/_normalize.scss +396 -0
  52. data/app/assets/stylesheets/bootstrap/_pager.scss +55 -0
  53. data/app/assets/stylesheets/bootstrap/_pagination.scss +83 -0
  54. data/app/assets/stylesheets/bootstrap/_panels.scss +148 -0
  55. data/app/assets/stylesheets/bootstrap/_popovers.scss +133 -0
  56. data/app/assets/stylesheets/bootstrap/_print.scss +100 -0
  57. data/app/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
  58. data/app/assets/stylesheets/bootstrap/_responsive-utilities.scss +209 -0
  59. data/app/assets/stylesheets/bootstrap/_scaffolding.scss +130 -0
  60. data/app/assets/stylesheets/bootstrap/_tables.scss +236 -0
  61. data/app/assets/stylesheets/bootstrap/_theme.scss +232 -0
  62. data/app/assets/stylesheets/bootstrap/_thumbnails.scss +31 -0
  63. data/app/assets/stylesheets/bootstrap/_tooltip.scss +95 -0
  64. data/app/assets/stylesheets/bootstrap/_type.scss +238 -0
  65. data/app/assets/stylesheets/bootstrap/_utilities.scss +42 -0
  66. data/app/assets/stylesheets/bootstrap/_variables.scss +620 -0
  67. data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
  68. data/app/assets/stylesheets/bootstrap/bootstrap.scss +59 -0
  69. data/app/assets/stylesheets/publish_my_data/core.scss +244 -0
  70. data/app/assets/stylesheets/publish_my_data/data_grid.scss +103 -0
  71. data/app/assets/stylesheets/publish_my_data/variables.scss +1 -0
  72. data/app/assets/stylesheets/{publish_my_data.css → publish_my_data.scss} +13 -2
  73. data/app/assets/stylesheets/slick_grid/slick_grid.scss +155 -0
  74. data/app/assets/stylesheets/slick_grid/slick_grid_default_theme.scss +97 -0
  75. data/app/controllers/concerns/publish_my_data/data_cube.rb +42 -0
  76. data/app/controllers/publish_my_data/data_cube/dimensions_controller.rb +58 -0
  77. data/app/controllers/publish_my_data/data_cube/observations_controller.rb +54 -0
  78. data/app/controllers/publish_my_data/datasets_controller.rb +0 -11
  79. data/app/controllers/publish_my_data/example_resources_controller.rb +11 -0
  80. data/app/controllers/publish_my_data/home_controller.rb +4 -0
  81. data/app/controllers/publish_my_data/information_resources_controller.rb +0 -13
  82. data/app/helpers/publish_my_data/application_helper.rb +66 -0
  83. data/app/helpers/publish_my_data/crumb_helper.rb +61 -0
  84. data/app/helpers/publish_my_data/datasets_helper.rb +31 -0
  85. data/app/helpers/publish_my_data/resources_helper.rb +24 -0
  86. data/app/models/concerns/publish_my_data/cube_results.rb +51 -0
  87. data/app/models/concerns/publish_my_data/dataset_powers.rb +13 -0
  88. data/app/models/publish_my_data/data_cube/cube.rb +358 -0
  89. data/app/models/publish_my_data/data_cube/dimension.rb +58 -0
  90. data/app/models/publish_my_data/vocabulary.rb +0 -4
  91. data/app/views/layouts/publish_my_data/application.html.haml +18 -0
  92. data/app/views/layouts/publish_my_data/error.html.haml +21 -0
  93. data/app/views/publish_my_data/classes/show.html.haml +28 -0
  94. data/app/views/publish_my_data/concept_schemes/show.html.haml +79 -0
  95. data/app/views/publish_my_data/concepts/show.html.haml +28 -0
  96. data/app/views/publish_my_data/data_cube/_controls.html.haml +19 -0
  97. data/app/views/publish_my_data/data_cube/_grid.html.haml +37 -0
  98. data/app/views/publish_my_data/datasets/_example_resources.html.haml +47 -0
  99. data/app/views/publish_my_data/datasets/_types_table.html.erb +33 -0
  100. data/app/views/publish_my_data/datasets/index.html.haml +32 -0
  101. data/app/views/publish_my_data/datasets/show.html.haml +186 -0
  102. data/app/views/publish_my_data/errors/not_found.html.haml +18 -0
  103. data/app/views/publish_my_data/errors/response_too_large.html.haml +16 -0
  104. data/app/views/publish_my_data/errors/timeout.html.haml +16 -0
  105. data/app/views/publish_my_data/errors/uncaught.html.haml +16 -0
  106. data/app/views/publish_my_data/example_resources/index.js.erb +1 -0
  107. data/app/views/publish_my_data/home/accessibility.html.haml +1 -0
  108. data/app/views/publish_my_data/home/docs.html.haml +1 -0
  109. data/app/views/publish_my_data/home/home.html.haml +5 -0
  110. data/app/views/publish_my_data/home/privacy.html.haml +1 -0
  111. data/app/views/publish_my_data/ontologies/show.html.haml +100 -0
  112. data/app/views/publish_my_data/properties/show.html.haml +28 -0
  113. data/app/views/publish_my_data/resources/_resource_data.html.haml +16 -0
  114. data/app/views/publish_my_data/resources/_sparql_section.html.haml +22 -0
  115. data/app/views/publish_my_data/resources/index.html.haml +37 -0
  116. data/app/views/publish_my_data/resources/show.html.haml +36 -0
  117. data/app/views/publish_my_data/shared/_browser_warning.html.haml +4 -0
  118. data/app/views/publish_my_data/shared/_deprecation_notice.html.haml +8 -0
  119. data/app/views/publish_my_data/shared/_footer.html.haml +11 -0
  120. data/app/views/publish_my_data/shared/_google_analytics.html.haml +11 -0
  121. data/app/views/publish_my_data/shared/_logo.html.haml +1 -0
  122. data/app/views/publish_my_data/shared/_meta_title.html.haml +2 -0
  123. data/app/views/publish_my_data/sparql/_form.html.haml +28 -0
  124. data/app/views/publish_my_data/sparql/_formats_dropdown.html.haml +11 -0
  125. data/app/views/publish_my_data/sparql/endpoint.html.haml +125 -0
  126. data/app/views/publish_my_data/sparql/formats_dropdowns/_ask.html.haml +7 -0
  127. data/app/views/publish_my_data/sparql/formats_dropdowns/_construct.html.haml +7 -0
  128. data/app/views/publish_my_data/sparql/formats_dropdowns/_describe.html.haml +1 -0
  129. data/app/views/publish_my_data/sparql/formats_dropdowns/_select.html.haml +9 -0
  130. data/app/views/publish_my_data/themes/index.html.haml +30 -0
  131. data/app/views/publish_my_data/themes/show.html.haml +43 -0
  132. data/config/routes.rb +20 -5
  133. data/lib/publish_my_data/version.rb +1 -1
  134. data/lib/publish_my_data.rb +7 -12
  135. data/spec/controllers/publish_my_data/datasets_controller_spec.rb +0 -75
  136. data/spec/controllers/publish_my_data/information_resources_controller_spec.rb +2 -11
  137. data/spec/dummy/config/environments/development.rb +0 -4
  138. data/spec/dummy/config/environments/test.rb +0 -4
  139. data/spec/dummy/log/test.log +62962 -0
  140. data/spec/dummy/tmp/cache/sass/e509ccd4d793d2c162d70125e9f3656b6c28f357/(__TEMPLATE__)c +0 -0
  141. data/spec/features/running_a_sparql_query_spec.rb +1 -1
  142. data/spec/features/uri_dereferencing_spec.rb +1 -1
  143. metadata +200 -58
  144. data/app/controllers/concerns/publish_my_data/data_download.rb +0 -22
  145. data/app/controllers/publish_my_data/vocabularies_controller.rb +0 -18
  146. data/app/views/layouts/publish_my_data/application.html.erb +0 -13
  147. data/app/views/layouts/publish_my_data/error.html.erb +0 -13
  148. data/app/views/publish_my_data/classes/show.html.erb +0 -3
  149. data/app/views/publish_my_data/concept_schemes/_concepts.html.erb +0 -18
  150. data/app/views/publish_my_data/concept_schemes/show.html.erb +0 -11
  151. data/app/views/publish_my_data/concepts/show.html.erb +0 -3
  152. data/app/views/publish_my_data/datasets/index.html.erb +0 -20
  153. data/app/views/publish_my_data/datasets/show.html.erb +0 -18
  154. data/app/views/publish_my_data/errors/not_found.html.erb +0 -1
  155. data/app/views/publish_my_data/errors/response_too_large.html.erb +0 -1
  156. data/app/views/publish_my_data/errors/timeout.html.erb +0 -1
  157. data/app/views/publish_my_data/errors/uncaught.html.erb +0 -6
  158. data/app/views/publish_my_data/ontologies/show.html.erb +0 -17
  159. data/app/views/publish_my_data/properties/show.html.erb +0 -3
  160. data/app/views/publish_my_data/resources/_predicates_table.html.erb +0 -30
  161. data/app/views/publish_my_data/resources/_predicates_table_head.html.erb +0 -6
  162. data/app/views/publish_my_data/resources/_resource_formats.html.erb +0 -4
  163. data/app/views/publish_my_data/resources/_summaries.html.erb +0 -18
  164. data/app/views/publish_my_data/resources/_uri_and_label.html.erb +0 -3
  165. data/app/views/publish_my_data/resources/index.html.erb +0 -40
  166. data/app/views/publish_my_data/resources/show.html.erb +0 -3
  167. data/app/views/publish_my_data/sparql/_ask_formats.html.erb +0 -3
  168. data/app/views/publish_my_data/sparql/_construct_formats.html.erb +0 -3
  169. data/app/views/publish_my_data/sparql/_describe_formats.html.erb +0 -1
  170. data/app/views/publish_my_data/sparql/_error_message.html.erb +0 -3
  171. data/app/views/publish_my_data/sparql/_form.html.erb +0 -4
  172. data/app/views/publish_my_data/sparql/_formats.html.erb +0 -6
  173. data/app/views/publish_my_data/sparql/_pagination.html.erb +0 -6
  174. data/app/views/publish_my_data/sparql/_results.html.erb +0 -5
  175. data/app/views/publish_my_data/sparql/_results_data.html.erb +0 -4
  176. data/app/views/publish_my_data/sparql/_select_formats.html.erb +0 -3
  177. data/app/views/publish_my_data/sparql/endpoint.html.erb +0 -10
  178. data/app/views/publish_my_data/themes/index.html.erb +0 -13
  179. data/app/views/publish_my_data/themes/show.html.erb +0 -15
  180. data/config/initializers/20_s3_setup.rb +0 -4
  181. data/spec/controllers/publish_my_data/vocabularies_controller_spec.rb +0 -14
  182. data/spec/support/data_download.rb +0 -60
@@ -0,0 +1,346 @@
1
+ //
2
+ // Grid system
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Set the container width, and override it for fixed navbars in media queries
7
+ .container {
8
+ @include container-fixed();
9
+ }
10
+
11
+ // mobile first defaults
12
+ .row {
13
+ @include make-row();
14
+ }
15
+
16
+ // Common styles for small and large grid columns
17
+ .col-xs-1,
18
+ .col-xs-2,
19
+ .col-xs-3,
20
+ .col-xs-4,
21
+ .col-xs-5,
22
+ .col-xs-6,
23
+ .col-xs-7,
24
+ .col-xs-8,
25
+ .col-xs-9,
26
+ .col-xs-10,
27
+ .col-xs-11,
28
+ .col-xs-12,
29
+ .col-sm-1,
30
+ .col-sm-2,
31
+ .col-sm-3,
32
+ .col-sm-4,
33
+ .col-sm-5,
34
+ .col-sm-6,
35
+ .col-sm-7,
36
+ .col-sm-8,
37
+ .col-sm-9,
38
+ .col-sm-10,
39
+ .col-sm-11,
40
+ .col-sm-12,
41
+ .col-md-1,
42
+ .col-md-2,
43
+ .col-md-3,
44
+ .col-md-4,
45
+ .col-md-5,
46
+ .col-md-6,
47
+ .col-md-7,
48
+ .col-md-8,
49
+ .col-md-9,
50
+ .col-md-10,
51
+ .col-md-11,
52
+ .col-md-12,
53
+ .col-lg-1,
54
+ .col-lg-2,
55
+ .col-lg-3,
56
+ .col-lg-4,
57
+ .col-lg-5,
58
+ .col-lg-6,
59
+ .col-lg-7,
60
+ .col-lg-8,
61
+ .col-lg-9,
62
+ .col-lg-10,
63
+ .col-lg-11,
64
+ .col-lg-12 {
65
+ position: relative;
66
+ // Prevent columns from collapsing when empty
67
+ min-height: 1px;
68
+ // Inner gutter via padding
69
+ padding-left: ($grid-gutter-width / 2);
70
+ padding-right: ($grid-gutter-width / 2);
71
+ }
72
+
73
+
74
+ // Extra small grid
75
+ //
76
+ // Grid classes for extra small devices like smartphones. No offset, push, or
77
+ // pull classes are present here due to the size of the target.
78
+ //
79
+ // Note that `.col-xs-12` doesn't get floated on purpose—there's no need since
80
+ // it's full-width.
81
+
82
+ .col-xs-1,
83
+ .col-xs-2,
84
+ .col-xs-3,
85
+ .col-xs-4,
86
+ .col-xs-5,
87
+ .col-xs-6,
88
+ .col-xs-7,
89
+ .col-xs-8,
90
+ .col-xs-9,
91
+ .col-xs-10,
92
+ .col-xs-11 {
93
+ float: left;
94
+ }
95
+ .col-xs-1 { width: percentage((1 / $grid-columns)); }
96
+ .col-xs-2 { width: percentage((2 / $grid-columns)); }
97
+ .col-xs-3 { width: percentage((3 / $grid-columns)); }
98
+ .col-xs-4 { width: percentage((4 / $grid-columns)); }
99
+ .col-xs-5 { width: percentage((5 / $grid-columns)); }
100
+ .col-xs-6 { width: percentage((6 / $grid-columns)); }
101
+ .col-xs-7 { width: percentage((7 / $grid-columns)); }
102
+ .col-xs-8 { width: percentage((8 / $grid-columns)); }
103
+ .col-xs-9 { width: percentage((9 / $grid-columns)); }
104
+ .col-xs-10 { width: percentage((10/ $grid-columns)); }
105
+ .col-xs-11 { width: percentage((11/ $grid-columns)); }
106
+ .col-xs-12 { width: 100%; }
107
+
108
+
109
+ // Small grid
110
+ //
111
+ // Columns, offsets, pushes, and pulls for the small device range, from phones
112
+ // to tablets.
113
+ //
114
+ // Note that `.col-sm-12` doesn't get floated on purpose—there's no need since
115
+ // it's full-width.
116
+
117
+ @media (min-width: $screen-tablet) {
118
+ .container {
119
+ max-width: $container-tablet;
120
+ }
121
+
122
+ .col-sm-1,
123
+ .col-sm-2,
124
+ .col-sm-3,
125
+ .col-sm-4,
126
+ .col-sm-5,
127
+ .col-sm-6,
128
+ .col-sm-7,
129
+ .col-sm-8,
130
+ .col-sm-9,
131
+ .col-sm-10,
132
+ .col-sm-11 {
133
+ float: left;
134
+ }
135
+ .col-sm-1 { width: percentage((1 / $grid-columns)); }
136
+ .col-sm-2 { width: percentage((2 / $grid-columns)); }
137
+ .col-sm-3 { width: percentage((3 / $grid-columns)); }
138
+ .col-sm-4 { width: percentage((4 / $grid-columns)); }
139
+ .col-sm-5 { width: percentage((5 / $grid-columns)); }
140
+ .col-sm-6 { width: percentage((6 / $grid-columns)); }
141
+ .col-sm-7 { width: percentage((7 / $grid-columns)); }
142
+ .col-sm-8 { width: percentage((8 / $grid-columns)); }
143
+ .col-sm-9 { width: percentage((9 / $grid-columns)); }
144
+ .col-sm-10 { width: percentage((10/ $grid-columns)); }
145
+ .col-sm-11 { width: percentage((11/ $grid-columns)); }
146
+ .col-sm-12 { width: 100%; }
147
+
148
+ // Push and pull columns for source order changes
149
+ .col-sm-push-1 { left: percentage((1 / $grid-columns)); }
150
+ .col-sm-push-2 { left: percentage((2 / $grid-columns)); }
151
+ .col-sm-push-3 { left: percentage((3 / $grid-columns)); }
152
+ .col-sm-push-4 { left: percentage((4 / $grid-columns)); }
153
+ .col-sm-push-5 { left: percentage((5 / $grid-columns)); }
154
+ .col-sm-push-6 { left: percentage((6 / $grid-columns)); }
155
+ .col-sm-push-7 { left: percentage((7 / $grid-columns)); }
156
+ .col-sm-push-8 { left: percentage((8 / $grid-columns)); }
157
+ .col-sm-push-9 { left: percentage((9 / $grid-columns)); }
158
+ .col-sm-push-10 { left: percentage((10/ $grid-columns)); }
159
+ .col-sm-push-11 { left: percentage((11/ $grid-columns)); }
160
+
161
+ .col-sm-pull-1 { right: percentage((1 / $grid-columns)); }
162
+ .col-sm-pull-2 { right: percentage((2 / $grid-columns)); }
163
+ .col-sm-pull-3 { right: percentage((3 / $grid-columns)); }
164
+ .col-sm-pull-4 { right: percentage((4 / $grid-columns)); }
165
+ .col-sm-pull-5 { right: percentage((5 / $grid-columns)); }
166
+ .col-sm-pull-6 { right: percentage((6 / $grid-columns)); }
167
+ .col-sm-pull-7 { right: percentage((7 / $grid-columns)); }
168
+ .col-sm-pull-8 { right: percentage((8 / $grid-columns)); }
169
+ .col-sm-pull-9 { right: percentage((9 / $grid-columns)); }
170
+ .col-sm-pull-10 { right: percentage((10/ $grid-columns)); }
171
+ .col-sm-pull-11 { right: percentage((11/ $grid-columns)); }
172
+
173
+ // Offsets
174
+ .col-sm-offset-1 { margin-left: percentage((1 / $grid-columns)); }
175
+ .col-sm-offset-2 { margin-left: percentage((2 / $grid-columns)); }
176
+ .col-sm-offset-3 { margin-left: percentage((3 / $grid-columns)); }
177
+ .col-sm-offset-4 { margin-left: percentage((4 / $grid-columns)); }
178
+ .col-sm-offset-5 { margin-left: percentage((5 / $grid-columns)); }
179
+ .col-sm-offset-6 { margin-left: percentage((6 / $grid-columns)); }
180
+ .col-sm-offset-7 { margin-left: percentage((7 / $grid-columns)); }
181
+ .col-sm-offset-8 { margin-left: percentage((8 / $grid-columns)); }
182
+ .col-sm-offset-9 { margin-left: percentage((9 / $grid-columns)); }
183
+ .col-sm-offset-10 { margin-left: percentage((10/ $grid-columns)); }
184
+ .col-sm-offset-11 { margin-left: percentage((11/ $grid-columns)); }
185
+ }
186
+
187
+
188
+ // Medium grid
189
+ //
190
+ // Columns, offsets, pushes, and pulls for the desktop device range.
191
+ //
192
+ // Note that `.col-md-12` doesn't get floated on purpose—there's no need since
193
+ // it's full-width.
194
+
195
+ @media (min-width: $screen-desktop) {
196
+ .container {
197
+ max-width: $container-desktop;
198
+ }
199
+ .col-md-1,
200
+ .col-md-2,
201
+ .col-md-3,
202
+ .col-md-4,
203
+ .col-md-5,
204
+ .col-md-6,
205
+ .col-md-7,
206
+ .col-md-8,
207
+ .col-md-9,
208
+ .col-md-10,
209
+ .col-md-11 {
210
+ float: left;
211
+ }
212
+ .col-md-1 { width: percentage((1 / $grid-columns)); }
213
+ .col-md-2 { width: percentage((2 / $grid-columns)); }
214
+ .col-md-3 { width: percentage((3 / $grid-columns)); }
215
+ .col-md-4 { width: percentage((4 / $grid-columns)); }
216
+ .col-md-5 { width: percentage((5 / $grid-columns)); }
217
+ .col-md-6 { width: percentage((6 / $grid-columns)); }
218
+ .col-md-7 { width: percentage((7 / $grid-columns)); }
219
+ .col-md-8 { width: percentage((8 / $grid-columns)); }
220
+ .col-md-9 { width: percentage((9 / $grid-columns)); }
221
+ .col-md-10 { width: percentage((10/ $grid-columns)); }
222
+ .col-md-11 { width: percentage((11/ $grid-columns)); }
223
+ .col-md-12 { width: 100%; }
224
+
225
+ // Push and pull columns for source order changes
226
+ .col-md-push-0 { left: auto; }
227
+ .col-md-push-1 { left: percentage((1 / $grid-columns)); }
228
+ .col-md-push-2 { left: percentage((2 / $grid-columns)); }
229
+ .col-md-push-3 { left: percentage((3 / $grid-columns)); }
230
+ .col-md-push-4 { left: percentage((4 / $grid-columns)); }
231
+ .col-md-push-5 { left: percentage((5 / $grid-columns)); }
232
+ .col-md-push-6 { left: percentage((6 / $grid-columns)); }
233
+ .col-md-push-7 { left: percentage((7 / $grid-columns)); }
234
+ .col-md-push-8 { left: percentage((8 / $grid-columns)); }
235
+ .col-md-push-9 { left: percentage((9 / $grid-columns)); }
236
+ .col-md-push-10 { left: percentage((10/ $grid-columns)); }
237
+ .col-md-push-11 { left: percentage((11/ $grid-columns)); }
238
+
239
+ .col-md-pull-0 { right: auto; }
240
+ .col-md-pull-1 { right: percentage((1 / $grid-columns)); }
241
+ .col-md-pull-2 { right: percentage((2 / $grid-columns)); }
242
+ .col-md-pull-3 { right: percentage((3 / $grid-columns)); }
243
+ .col-md-pull-4 { right: percentage((4 / $grid-columns)); }
244
+ .col-md-pull-5 { right: percentage((5 / $grid-columns)); }
245
+ .col-md-pull-6 { right: percentage((6 / $grid-columns)); }
246
+ .col-md-pull-7 { right: percentage((7 / $grid-columns)); }
247
+ .col-md-pull-8 { right: percentage((8 / $grid-columns)); }
248
+ .col-md-pull-9 { right: percentage((9 / $grid-columns)); }
249
+ .col-md-pull-10 { right: percentage((10/ $grid-columns)); }
250
+ .col-md-pull-11 { right: percentage((11/ $grid-columns)); }
251
+
252
+ // Offsets
253
+ .col-md-offset-0 { margin-left: 0; }
254
+ .col-md-offset-1 { margin-left: percentage((1 / $grid-columns)); }
255
+ .col-md-offset-2 { margin-left: percentage((2 / $grid-columns)); }
256
+ .col-md-offset-3 { margin-left: percentage((3 / $grid-columns)); }
257
+ .col-md-offset-4 { margin-left: percentage((4 / $grid-columns)); }
258
+ .col-md-offset-5 { margin-left: percentage((5 / $grid-columns)); }
259
+ .col-md-offset-6 { margin-left: percentage((6 / $grid-columns)); }
260
+ .col-md-offset-7 { margin-left: percentage((7 / $grid-columns)); }
261
+ .col-md-offset-8 { margin-left: percentage((8 / $grid-columns)); }
262
+ .col-md-offset-9 { margin-left: percentage((9 / $grid-columns)); }
263
+ .col-md-offset-10 { margin-left: percentage((10/ $grid-columns)); }
264
+ .col-md-offset-11 { margin-left: percentage((11/ $grid-columns)); }
265
+ }
266
+
267
+
268
+ // Large grid
269
+ //
270
+ // Columns, offsets, pushes, and pulls for the large desktop device range.
271
+ //
272
+ // Note that `.col-lg-12` doesn't get floated on purpose—there's no need since
273
+ // it's full-width.
274
+
275
+ @media (min-width: $screen-lg-desktop) {
276
+ .container {
277
+ max-width: $container-lg-desktop;
278
+ }
279
+
280
+ .col-lg-1,
281
+ .col-lg-2,
282
+ .col-lg-3,
283
+ .col-lg-4,
284
+ .col-lg-5,
285
+ .col-lg-6,
286
+ .col-lg-7,
287
+ .col-lg-8,
288
+ .col-lg-9,
289
+ .col-lg-10,
290
+ .col-lg-11 {
291
+ float: left;
292
+ }
293
+ .col-lg-1 { width: percentage((1 / $grid-columns)); }
294
+ .col-lg-2 { width: percentage((2 / $grid-columns)); }
295
+ .col-lg-3 { width: percentage((3 / $grid-columns)); }
296
+ .col-lg-4 { width: percentage((4 / $grid-columns)); }
297
+ .col-lg-5 { width: percentage((5 / $grid-columns)); }
298
+ .col-lg-6 { width: percentage((6 / $grid-columns)); }
299
+ .col-lg-7 { width: percentage((7 / $grid-columns)); }
300
+ .col-lg-8 { width: percentage((8 / $grid-columns)); }
301
+ .col-lg-9 { width: percentage((9 / $grid-columns)); }
302
+ .col-lg-10 { width: percentage((10/ $grid-columns)); }
303
+ .col-lg-11 { width: percentage((11/ $grid-columns)); }
304
+ .col-lg-12 { width: 100%; }
305
+
306
+ // Push and pull columns for source order changes
307
+ .col-lg-push-0 { left: auto; }
308
+ .col-lg-push-1 { left: percentage((1 / $grid-columns)); }
309
+ .col-lg-push-2 { left: percentage((2 / $grid-columns)); }
310
+ .col-lg-push-3 { left: percentage((3 / $grid-columns)); }
311
+ .col-lg-push-4 { left: percentage((4 / $grid-columns)); }
312
+ .col-lg-push-5 { left: percentage((5 / $grid-columns)); }
313
+ .col-lg-push-6 { left: percentage((6 / $grid-columns)); }
314
+ .col-lg-push-7 { left: percentage((7 / $grid-columns)); }
315
+ .col-lg-push-8 { left: percentage((8 / $grid-columns)); }
316
+ .col-lg-push-9 { left: percentage((9 / $grid-columns)); }
317
+ .col-lg-push-10 { left: percentage((10/ $grid-columns)); }
318
+ .col-lg-push-11 { left: percentage((11/ $grid-columns)); }
319
+
320
+ .col-lg-pull-0 { right: auto; }
321
+ .col-lg-pull-1 { right: percentage((1 / $grid-columns)); }
322
+ .col-lg-pull-2 { right: percentage((2 / $grid-columns)); }
323
+ .col-lg-pull-3 { right: percentage((3 / $grid-columns)); }
324
+ .col-lg-pull-4 { right: percentage((4 / $grid-columns)); }
325
+ .col-lg-pull-5 { right: percentage((5 / $grid-columns)); }
326
+ .col-lg-pull-6 { right: percentage((6 / $grid-columns)); }
327
+ .col-lg-pull-7 { right: percentage((7 / $grid-columns)); }
328
+ .col-lg-pull-8 { right: percentage((8 / $grid-columns)); }
329
+ .col-lg-pull-9 { right: percentage((9 / $grid-columns)); }
330
+ .col-lg-pull-10 { right: percentage((10/ $grid-columns)); }
331
+ .col-lg-pull-11 { right: percentage((11/ $grid-columns)); }
332
+
333
+ // Offsets
334
+ .col-lg-offset-0 { margin-left: 0; }
335
+ .col-lg-offset-1 { margin-left: percentage((1 / $grid-columns)); }
336
+ .col-lg-offset-2 { margin-left: percentage((2 / $grid-columns)); }
337
+ .col-lg-offset-3 { margin-left: percentage((3 / $grid-columns)); }
338
+ .col-lg-offset-4 { margin-left: percentage((4 / $grid-columns)); }
339
+ .col-lg-offset-5 { margin-left: percentage((5 / $grid-columns)); }
340
+ .col-lg-offset-6 { margin-left: percentage((6 / $grid-columns)); }
341
+ .col-lg-offset-7 { margin-left: percentage((7 / $grid-columns)); }
342
+ .col-lg-offset-8 { margin-left: percentage((8 / $grid-columns)); }
343
+ .col-lg-offset-9 { margin-left: percentage((9 / $grid-columns)); }
344
+ .col-lg-offset-10 { margin-left: percentage((10/ $grid-columns)); }
345
+ .col-lg-offset-11 { margin-left: percentage((11/ $grid-columns)); }
346
+ }
@@ -0,0 +1,127 @@
1
+ //
2
+ // Input groups
3
+ // --------------------------------------------------
4
+
5
+ // Base styles
6
+ // -------------------------
7
+ .input-group {
8
+ position: relative; // For dropdowns
9
+ display: table;
10
+ border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
11
+
12
+ // Undo padding and float of grid classes
13
+ &.col {
14
+ float: none;
15
+ padding-left: 0;
16
+ padding-right: 0;
17
+ }
18
+
19
+ .form-control {
20
+ width: 100%;
21
+ margin-bottom: 0;
22
+ }
23
+ }
24
+
25
+ // Sizing options
26
+ //
27
+ // Remix the default form control sizing classes into new ones for easier
28
+ // manipulation.
29
+
30
+ .input-group-lg > .form-control,
31
+ .input-group-lg > .input-group-addon,
32
+ .input-group-lg > .input-group-btn > .btn { @extend .input-lg; }
33
+ .input-group-sm > .form-control,
34
+ .input-group-sm > .input-group-addon,
35
+ .input-group-sm > .input-group-btn > .btn { @extend .input-sm; }
36
+
37
+
38
+ // Display as table-cell
39
+ // -------------------------
40
+ .input-group-addon,
41
+ .input-group-btn,
42
+ .input-group .form-control {
43
+ display: table-cell;
44
+
45
+ &:not(:first-child):not(:last-child) {
46
+ border-radius: 0;
47
+ }
48
+ }
49
+ // Addon and addon wrapper for buttons
50
+ .input-group-addon,
51
+ .input-group-btn {
52
+ width: 1%;
53
+ white-space: nowrap;
54
+ vertical-align: middle; // Match the inputs
55
+ }
56
+
57
+ // Text input groups
58
+ // -------------------------
59
+ .input-group-addon {
60
+ padding: $padding-base-vertical $padding-base-horizontal;
61
+ font-size: $font-size-base;
62
+ font-weight: normal;
63
+ line-height: 1;
64
+ text-align: center;
65
+ background-color: $input-group-addon-bg;
66
+ border: 1px solid $input-group-addon-border-color;
67
+ border-radius: $border-radius-base;
68
+
69
+ // Sizing
70
+ &.input-sm {
71
+ padding: $padding-small-vertical $padding-small-horizontal;
72
+ font-size: $font-size-small;
73
+ border-radius: $border-radius-small;
74
+ }
75
+ &.input-lg {
76
+ padding: $padding-large-vertical $padding-large-horizontal;
77
+ font-size: $font-size-large;
78
+ border-radius: $border-radius-large;
79
+ }
80
+
81
+ // Nuke default margins from checkboxes and radios to vertically center within.
82
+ input[type="radio"],
83
+ input[type="checkbox"] {
84
+ margin-top: 0;
85
+ }
86
+ }
87
+
88
+ // Reset rounded corners
89
+ .input-group .form-control:first-child,
90
+ .input-group-addon:first-child,
91
+ .input-group-btn:first-child > .btn,
92
+ .input-group-btn:first-child > .dropdown-toggle,
93
+ .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
94
+ @include border-right-radius(0);
95
+ }
96
+ .input-group-addon:first-child {
97
+ border-right: 0;
98
+ }
99
+ .input-group .form-control:last-child,
100
+ .input-group-addon:last-child,
101
+ .input-group-btn:last-child > .btn,
102
+ .input-group-btn:last-child > .dropdown-toggle,
103
+ .input-group-btn:first-child > .btn:not(:first-child) {
104
+ @include border-left-radius(0);
105
+ }
106
+ .input-group-addon:last-child {
107
+ border-left: 0;
108
+ }
109
+
110
+ // Button input groups
111
+ // -------------------------
112
+ .input-group-btn {
113
+ position: relative;
114
+ white-space: nowrap;
115
+ }
116
+ .input-group-btn > .btn {
117
+ position: relative;
118
+ // Jankily prevent input button groups from wrapping
119
+ + .btn {
120
+ margin-left: -4px;
121
+ }
122
+ // Bring the "active" button to the front
123
+ &:hover,
124
+ &:active {
125
+ z-index: 2;
126
+ }
127
+ }
@@ -0,0 +1,40 @@
1
+ //
2
+ // Jumbotron
3
+ // --------------------------------------------------
4
+
5
+
6
+ .jumbotron {
7
+ padding: $jumbotron-padding;
8
+ margin-bottom: $jumbotron-padding;
9
+ font-size: ($font-size-base * 1.5);
10
+ font-weight: 200;
11
+ line-height: ($line-height-base * 1.5);
12
+ color: $jumbotron-color;
13
+ background-color: $jumbotron-bg;
14
+
15
+ h1 {
16
+ line-height: 1;
17
+ color: $jumbotron-heading-color;
18
+ }
19
+ p {
20
+ line-height: 1.4;
21
+ }
22
+
23
+ .container & {
24
+ border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container
25
+ }
26
+
27
+ @media screen and (min-width: $screen-tablet) {
28
+ padding-top: ($jumbotron-padding * 1.6);
29
+ padding-bottom: ($jumbotron-padding * 1.6);
30
+
31
+ .container & {
32
+ padding-left: ($jumbotron-padding * 2);
33
+ padding-right: ($jumbotron-padding * 2);
34
+ }
35
+
36
+ h1 {
37
+ font-size: ($font-size-base * 4.5);
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,58 @@
1
+ //
2
+ // Labels
3
+ // --------------------------------------------------
4
+
5
+ .label {
6
+ display: inline;
7
+ padding: .2em .6em .3em;
8
+ font-size: 75%;
9
+ font-weight: bold;
10
+ line-height: 1;
11
+ color: $label-color;
12
+ text-align: center;
13
+ white-space: nowrap;
14
+ vertical-align: baseline;
15
+ border-radius: .25em;
16
+
17
+ // Add hover effects, but only for links
18
+ &[href] {
19
+ &:hover,
20
+ &:focus {
21
+ color: $label-link-hover-color;
22
+ text-decoration: none;
23
+ cursor: pointer;
24
+ }
25
+ }
26
+
27
+ // Empty labels collapse automatically (not available in IE8)
28
+ &:empty {
29
+ display: none;
30
+ }
31
+ }
32
+
33
+ // Colors
34
+ // Contextual variations (linked labels get darker on :hover)
35
+
36
+ .label-default {
37
+ @include label-variant($label-default-bg);
38
+ }
39
+
40
+ .label-primary {
41
+ @include label-variant($label-primary-bg);
42
+ }
43
+
44
+ .label-success {
45
+ @include label-variant($label-success-bg);
46
+ }
47
+
48
+ .label-info {
49
+ @include label-variant($label-info-bg);
50
+ }
51
+
52
+ .label-warning {
53
+ @include label-variant($label-warning-bg);
54
+ }
55
+
56
+ .label-danger {
57
+ @include label-variant($label-danger-bg);
58
+ }
@@ -0,0 +1,88 @@
1
+ //
2
+ // List groups
3
+ // --------------------------------------------------
4
+
5
+ // Base class
6
+ //
7
+ // Easily usable on <ul>, <ol>, or <div>.
8
+ .list-group {
9
+ // No need to set list-style: none; since .list-group-item is block level
10
+ margin-bottom: 20px;
11
+ padding-left: 0; // reset padding because ul and ol
12
+ }
13
+
14
+ // Individual list items
15
+ // -------------------------
16
+
17
+ .list-group-item {
18
+ position: relative;
19
+ display: block;
20
+ padding: 10px 15px;
21
+ // Place the border on the list items and negative margin up for better styling
22
+ margin-bottom: -1px;
23
+ background-color: $list-group-bg;
24
+ border: 1px solid $list-group-border;
25
+
26
+ // Round the first and last items
27
+ &:first-child {
28
+ @include border-top-radius($list-group-border-radius);
29
+ }
30
+ &:last-child {
31
+ margin-bottom: 0;
32
+ @include border-bottom-radius($list-group-border-radius);
33
+ }
34
+
35
+ // Align badges within list items
36
+ > .badge {
37
+ float: right;
38
+ }
39
+ > .badge + .badge {
40
+ margin-right: 5px;
41
+ }
42
+
43
+ // Active class on item itself, not parent
44
+ &.active,
45
+ &.active:hover,
46
+ &.active:focus {
47
+ z-index: 2; // Place active items above their siblings for proper border styling
48
+ color: $list-group-active-color;
49
+ background-color: $list-group-active-bg;
50
+ border-color: $list-group-active-border;
51
+
52
+ // Force color to inherit for custom content
53
+ .list-group-item-heading {
54
+ color: inherit;
55
+ }
56
+ .list-group-item-text {
57
+ color: lighten($list-group-active-bg, 40%);
58
+ }
59
+ }
60
+ }
61
+
62
+ // Linked list items
63
+ a.list-group-item {
64
+ color: $list-group-link-color;
65
+
66
+ .list-group-item-heading {
67
+ color: $list-group-link-heading-color;
68
+ }
69
+
70
+ // Hover state
71
+ &:hover,
72
+ &:focus {
73
+ text-decoration: none;
74
+ background-color: $list-group-hover-bg;
75
+ }
76
+ }
77
+
78
+ // Custom content options
79
+ // -------------------------
80
+
81
+ .list-group-item-heading {
82
+ margin-top: 0;
83
+ margin-bottom: 5px;
84
+ }
85
+ .list-group-item-text {
86
+ margin-bottom: 0;
87
+ line-height: 1.3;
88
+ }