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,229 @@
1
+ //
2
+ // Navs
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ // --------------------------------------------------
8
+
9
+ .nav {
10
+ margin-bottom: 0;
11
+ padding-left: 0; // Override default ul/ol
12
+ list-style: none;
13
+ @include clearfix();
14
+
15
+ > li {
16
+ position: relative;
17
+ display: block;
18
+
19
+ > a {
20
+ position: relative;
21
+ display: block;
22
+ padding: $nav-link-padding;
23
+ &:hover,
24
+ &:focus {
25
+ text-decoration: none;
26
+ background-color: $nav-link-hover-bg;
27
+ }
28
+ }
29
+
30
+ // Disabled state sets text to gray and nukes hover/tab effects
31
+ &.disabled > a {
32
+ color: $nav-disabled-link-color;
33
+
34
+ &:hover,
35
+ &:focus {
36
+ color: $nav-disabled-link-hover-color;
37
+ text-decoration: none;
38
+ background-color: transparent;
39
+ cursor: not-allowed;
40
+ }
41
+ }
42
+ }
43
+
44
+ // Open dropdowns
45
+ .open > a {
46
+ &,
47
+ &:hover,
48
+ &:focus {
49
+ background-color: $nav-link-hover-bg;
50
+ border-color: $link-color;
51
+ }
52
+ }
53
+
54
+ // Dividers (basically an hr) within the dropdown
55
+ .nav-divider {
56
+ @include nav-divider();
57
+ }
58
+
59
+ // Prevent IE8 from misplacing imgs
60
+ // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
61
+ > li > a > img {
62
+ max-width: none;
63
+ }
64
+ }
65
+
66
+
67
+ // Tabs
68
+ // -------------------------
69
+
70
+ // Give the tabs something to sit on
71
+ .nav-tabs {
72
+ border-bottom: 1px solid $nav-tabs-border-color;
73
+ > li {
74
+ float: left;
75
+ // Make the list-items overlay the bottom border
76
+ margin-bottom: -1px;
77
+
78
+ // Actual tabs (as links)
79
+ > a {
80
+ margin-right: 2px;
81
+ line-height: $line-height-base;
82
+ border: 1px solid transparent;
83
+ border-radius: $border-radius-base $border-radius-base 0 0;
84
+ &:hover {
85
+ border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
86
+ }
87
+ }
88
+
89
+ // Active state, and it's :hover to override normal :hover
90
+ &.active > a {
91
+ &,
92
+ &:hover,
93
+ &:focus {
94
+ color: $nav-tabs-active-link-hover-color;
95
+ background-color: $nav-tabs-active-link-hover-bg;
96
+ border: 1px solid $nav-tabs-active-link-hover-border-color;
97
+ border-bottom-color: transparent;
98
+ cursor: default;
99
+ }
100
+ }
101
+ }
102
+ // pulling this in mainly for less shorthand
103
+ &.nav-justified {
104
+ @extend .nav-justified;
105
+ @extend .nav-tabs-justified;
106
+ }
107
+ }
108
+
109
+
110
+ // Pills
111
+ // -------------------------
112
+ .nav-pills {
113
+ > li {
114
+ float: left;
115
+
116
+ // Links rendered as pills
117
+ > a {
118
+ border-radius: 5px;
119
+ }
120
+ + li {
121
+ margin-left: 2px;
122
+ }
123
+
124
+ // Active state
125
+ &.active > a {
126
+ &,
127
+ &:hover,
128
+ &:focus {
129
+ color: $nav-pills-active-link-hover-color;
130
+ background-color: $nav-pills-active-link-hover-bg;
131
+ }
132
+ }
133
+ }
134
+ }
135
+
136
+
137
+ // Stacked pills
138
+ .nav-stacked {
139
+ > li {
140
+ float: none;
141
+ + li {
142
+ margin-top: 2px;
143
+ margin-left: 0; // no need for this gap between nav items
144
+ }
145
+ }
146
+ }
147
+
148
+
149
+ // Nav variations
150
+ // --------------------------------------------------
151
+
152
+ // Justified nav links
153
+ // -------------------------
154
+
155
+ .nav-justified {
156
+ width: 100%;
157
+
158
+ > li {
159
+ float: none;
160
+ > a {
161
+ text-align: center;
162
+ }
163
+ }
164
+
165
+ @media (min-width: $screen-sm) {
166
+ > li {
167
+ display: table-cell;
168
+ width: 1%;
169
+ }
170
+ }
171
+ }
172
+
173
+ // Move borders to anchors instead of bottom of list
174
+ .nav-tabs-justified {
175
+ border-bottom: 0;
176
+ > li > a {
177
+ border-bottom: 1px solid $nav-tabs-justified-link-border-color;
178
+
179
+ // Override margin from .nav-tabs
180
+ margin-right: 0;
181
+ }
182
+ > .active > a {
183
+ border-bottom-color: $nav-tabs-justified-active-link-border-color;
184
+ }
185
+ }
186
+
187
+
188
+ // Tabbable tabs
189
+ // -------------------------
190
+
191
+ // Clear any floats
192
+ .tabbable {
193
+ @include clearfix();
194
+ }
195
+
196
+ // Show/hide tabbable areas
197
+ .tab-content > .tab-pane,
198
+ .pill-content > .pill-pane {
199
+ display: none;
200
+ }
201
+ .tab-content,
202
+ .pill-content {
203
+ > .active {
204
+ display: block;
205
+ }
206
+ }
207
+
208
+
209
+
210
+ // Dropdowns
211
+ // -------------------------
212
+
213
+ // Make dropdown carets use link color in navs
214
+ .nav .caret {
215
+ border-top-color: $link-color;
216
+ border-bottom-color: $link-color;
217
+ }
218
+ .nav a:hover .caret {
219
+ border-top-color: $link-hover-color;
220
+ border-bottom-color: $link-hover-color;
221
+ }
222
+
223
+ // Specific dropdowns
224
+ .nav-tabs .dropdown-menu {
225
+ // make dropdown border overlap tab border
226
+ margin-top: -1px;
227
+ // Remove the top rounded corners here since there is a hard edge above the menu
228
+ @include border-top-radius(0);
229
+ }
@@ -0,0 +1,396 @@
1
+ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
2
+
3
+ // ==========================================================================
4
+ // HTML5 display definitions
5
+ // ==========================================================================
6
+
7
+ //
8
+ // Correct `block` display not defined in IE 8/9.
9
+ //
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ main,
20
+ nav,
21
+ section,
22
+ summary {
23
+ display: block;
24
+ }
25
+
26
+ //
27
+ // Correct `inline-block` display not defined in IE 8/9.
28
+ //
29
+
30
+ audio,
31
+ canvas,
32
+ video {
33
+ display: inline-block;
34
+ }
35
+
36
+ //
37
+ // Prevent modern browsers from displaying `audio` without controls.
38
+ // Remove excess height in iOS 5 devices.
39
+ //
40
+
41
+ audio:not([controls]) {
42
+ display: none;
43
+ height: 0;
44
+ }
45
+
46
+ //
47
+ // Address styling not present in IE 8/9.
48
+ //
49
+
50
+ [hidden] {
51
+ display: none;
52
+ }
53
+
54
+ // ==========================================================================
55
+ // Base
56
+ // ==========================================================================
57
+
58
+ //
59
+ // 1. Set default font family to sans-serif.
60
+ // 2. Prevent iOS text size adjust after orientation change, without disabling
61
+ // user zoom.
62
+ //
63
+
64
+ html {
65
+ font-family: sans-serif; // 1
66
+ -webkit-text-size-adjust: 100%; // 2
67
+ -ms-text-size-adjust: 100%; // 2
68
+ }
69
+
70
+ //
71
+ // Remove default margin.
72
+ //
73
+
74
+ body {
75
+ margin: 0;
76
+ }
77
+
78
+ // ==========================================================================
79
+ // Links
80
+ // ==========================================================================
81
+
82
+ //
83
+ // Address `outline` inconsistency between Chrome and other browsers.
84
+ //
85
+
86
+ a:focus {
87
+ outline: thin dotted;
88
+ }
89
+
90
+ //
91
+ // Improve readability when focused and also mouse hovered in all browsers.
92
+ //
93
+
94
+ a:active,
95
+ a:hover {
96
+ outline: 0;
97
+ }
98
+
99
+ // ==========================================================================
100
+ // Typography
101
+ // ==========================================================================
102
+
103
+ //
104
+ // Address variable `h1` font-size and margin within `section` and `article`
105
+ // contexts in Firefox 4+, Safari 5, and Chrome.
106
+ //
107
+
108
+ h1 {
109
+ font-size: 2em;
110
+ margin: 0.67em 0;
111
+ }
112
+
113
+ //
114
+ // Address styling not present in IE 8/9, Safari 5, and Chrome.
115
+ //
116
+
117
+ abbr[title] {
118
+ border-bottom: 1px dotted;
119
+ }
120
+
121
+ //
122
+ // Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
123
+ //
124
+
125
+ b,
126
+ strong {
127
+ font-weight: bold;
128
+ }
129
+
130
+ //
131
+ // Address styling not present in Safari 5 and Chrome.
132
+ //
133
+
134
+ dfn {
135
+ font-style: italic;
136
+ }
137
+
138
+ //
139
+ // Address differences between Firefox and other browsers.
140
+ //
141
+
142
+ hr {
143
+ -moz-box-sizing: content-box;
144
+ box-sizing: content-box;
145
+ height: 0;
146
+ }
147
+
148
+ //
149
+ // Address styling not present in IE 8/9.
150
+ //
151
+
152
+ mark {
153
+ background: #ff0;
154
+ color: #000;
155
+ }
156
+
157
+ //
158
+ // Correct font family set oddly in Safari 5 and Chrome.
159
+ //
160
+
161
+ code,
162
+ kbd,
163
+ pre,
164
+ samp {
165
+ font-family: monospace, serif;
166
+ font-size: 1em;
167
+ }
168
+
169
+ //
170
+ // Improve readability of pre-formatted text in all browsers.
171
+ //
172
+
173
+ pre {
174
+ white-space: pre-wrap;
175
+ }
176
+
177
+ //
178
+ // Set consistent quote types.
179
+ //
180
+
181
+ q {
182
+ quotes: "\201C" "\201D" "\2018" "\2019";
183
+ }
184
+
185
+ //
186
+ // Address inconsistent and variable font size in all browsers.
187
+ //
188
+
189
+ small {
190
+ font-size: 80%;
191
+ }
192
+
193
+ //
194
+ // Prevent `sub` and `sup` affecting `line-height` in all browsers.
195
+ //
196
+
197
+ sub,
198
+ sup {
199
+ font-size: 75%;
200
+ line-height: 0;
201
+ position: relative;
202
+ vertical-align: baseline;
203
+ }
204
+
205
+ sup {
206
+ top: -0.5em;
207
+ }
208
+
209
+ sub {
210
+ bottom: -0.25em;
211
+ }
212
+
213
+ // ==========================================================================
214
+ // Embedded content
215
+ // ==========================================================================
216
+
217
+ //
218
+ // Remove border when inside `a` element in IE 8/9.
219
+ //
220
+
221
+ img {
222
+ border: 0;
223
+ }
224
+
225
+ //
226
+ // Correct overflow displayed oddly in IE 9.
227
+ //
228
+
229
+ svg:not(:root) {
230
+ overflow: hidden;
231
+ }
232
+
233
+ // ==========================================================================
234
+ // Figures
235
+ // ==========================================================================
236
+
237
+ //
238
+ // Address margin not present in IE 8/9 and Safari 5.
239
+ //
240
+
241
+ figure {
242
+ margin: 0;
243
+ }
244
+
245
+ // ==========================================================================
246
+ // Forms
247
+ // ==========================================================================
248
+
249
+ //
250
+ // Define consistent border, margin, and padding.
251
+ //
252
+
253
+ fieldset {
254
+ border: 1px solid #c0c0c0;
255
+ margin: 0 2px;
256
+ padding: 0.35em 0.625em 0.75em;
257
+ }
258
+
259
+ //
260
+ // 1. Correct `color` not being inherited in IE 8/9.
261
+ // 2. Remove padding so people aren't caught out if they zero out fieldsets.
262
+ //
263
+
264
+ legend {
265
+ border: 0; // 1
266
+ padding: 0; // 2
267
+ }
268
+
269
+ //
270
+ // 1. Correct font family not being inherited in all browsers.
271
+ // 2. Correct font size not being inherited in all browsers.
272
+ // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
273
+ //
274
+
275
+ button,
276
+ input,
277
+ select,
278
+ textarea {
279
+ font-family: inherit; // 1
280
+ font-size: 100%; // 2
281
+ margin: 0; // 3
282
+ }
283
+
284
+ //
285
+ // Address Firefox 4+ setting `line-height` on `input` using `!important` in
286
+ // the UA stylesheet.
287
+ //
288
+
289
+ button,
290
+ input {
291
+ line-height: normal;
292
+ }
293
+
294
+ //
295
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
296
+ // All other form control elements do not inherit `text-transform` values.
297
+ // Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
298
+ // Correct `select` style inheritance in Firefox 4+ and Opera.
299
+ //
300
+
301
+ button,
302
+ select {
303
+ text-transform: none;
304
+ }
305
+
306
+ //
307
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
308
+ // and `video` controls.
309
+ // 2. Correct inability to style clickable `input` types in iOS.
310
+ // 3. Improve usability and consistency of cursor style between image-type
311
+ // `input` and others.
312
+ //
313
+
314
+ button,
315
+ html input[type="button"], // 1
316
+ input[type="reset"],
317
+ input[type="submit"] {
318
+ -webkit-appearance: button; // 2
319
+ cursor: pointer; // 3
320
+ }
321
+
322
+ //
323
+ // Re-set default cursor for disabled elements.
324
+ //
325
+
326
+ button[disabled],
327
+ html input[disabled] {
328
+ cursor: default;
329
+ }
330
+
331
+ //
332
+ // 1. Address box sizing set to `content-box` in IE 8/9.
333
+ // 2. Remove excess padding in IE 8/9.
334
+ //
335
+
336
+ input[type="checkbox"],
337
+ input[type="radio"] {
338
+ box-sizing: border-box; // 1
339
+ padding: 0; // 2
340
+ }
341
+
342
+ //
343
+ // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
344
+ // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
345
+ // (include `-moz` to future-proof).
346
+ //
347
+
348
+ input[type="search"] {
349
+ -webkit-appearance: textfield; // 1
350
+ -moz-box-sizing: content-box;
351
+ -webkit-box-sizing: content-box; // 2
352
+ box-sizing: content-box;
353
+ }
354
+
355
+ //
356
+ // Remove inner padding and search cancel button in Safari 5 and Chrome
357
+ // on OS X.
358
+ //
359
+
360
+ input[type="search"]::-webkit-search-cancel-button,
361
+ input[type="search"]::-webkit-search-decoration {
362
+ -webkit-appearance: none;
363
+ }
364
+
365
+ //
366
+ // Remove inner padding and border in Firefox 4+.
367
+ //
368
+
369
+ button::-moz-focus-inner,
370
+ input::-moz-focus-inner {
371
+ border: 0;
372
+ padding: 0;
373
+ }
374
+
375
+ //
376
+ // 1. Remove default vertical scrollbar in IE 8/9.
377
+ // 2. Improve readability and alignment in all browsers.
378
+ //
379
+
380
+ textarea {
381
+ overflow: auto; // 1
382
+ vertical-align: top; // 2
383
+ }
384
+
385
+ // ==========================================================================
386
+ // Tables
387
+ // ==========================================================================
388
+
389
+ //
390
+ // Remove most spacing between table cells.
391
+ //
392
+
393
+ table {
394
+ border-collapse: collapse;
395
+ border-spacing: 0;
396
+ }
@@ -0,0 +1,55 @@
1
+ //
2
+ // Pager pagination
3
+ // --------------------------------------------------
4
+
5
+
6
+ .pager {
7
+ padding-left: 0;
8
+ margin: $line-height-computed 0;
9
+ list-style: none;
10
+ text-align: center;
11
+ @include clearfix();
12
+ li {
13
+ display: inline;
14
+ > a,
15
+ > span {
16
+ display: inline-block;
17
+ padding: 5px 14px;
18
+ background-color: $pagination-bg;
19
+ border: 1px solid $pagination-border;
20
+ border-radius: $pager-border-radius;
21
+ }
22
+
23
+ > a:hover,
24
+ > a:focus {
25
+ text-decoration: none;
26
+ background-color: $pagination-hover-bg;
27
+ }
28
+ }
29
+
30
+ .next {
31
+ > a,
32
+ > span {
33
+ float: right;
34
+ }
35
+ }
36
+
37
+ .previous {
38
+ > a,
39
+ > span {
40
+ float: left;
41
+ }
42
+ }
43
+
44
+ .disabled {
45
+ > a,
46
+ > a:hover,
47
+ > a:focus,
48
+ > span {
49
+ color: $pager-disabled-color;
50
+ background-color: $pagination-bg;
51
+ cursor: not-allowed;
52
+ }
53
+ }
54
+
55
+ }