diff --git a/ckanext/surrey/fanstatic_library/css/surrey.css b/ckanext/surrey/fanstatic_library/css/surrey.css index f5825f5..b785f9e 100755 --- a/ckanext/surrey/fanstatic_library/css/surrey.css +++ b/ckanext/surrey/fanstatic_library/css/surrey.css @@ -21,11 +21,23 @@ font-weight: normal; width: 450px; float: right; margin-right: 15px; - height: 130px; - line-height: 130px; +height: 130px; +line-height: 130px; display: block; } +@media only screen and (max-width: 551px){ + .intro-text header { + display: none; + } +} +@media only screen and (max-width: 991px){ + .intro-text header{ + float:none; + width:100%; + height:auto; + } +} .intro-text header a { text-decoration: underline; color: #fff; @@ -39,12 +51,29 @@ color: #fff; .intro-text header p { display: inline-block; vertical-align: middle; - line-height: 140%; + line-height: 140%; } .intro-image img { margin-top: 20px; } + +@media only screen and (max-width:991px){ + .intro-image img{ + margin-top:0px; + padding-top:0px; + } +} + +@media only screen and (max-width:551px){ + .intro-image img{ + width:80%; + margin-top:20px; + margin-left:auto; + margin-right:auto; + + } +} .masonry .media-image, .masonry .media-heading { display: block; margin: auto; @@ -194,6 +223,13 @@ body { background: #363636 url("/base/images/bg.png"); } +@media only screen and (max-width:768px) { + .site-footer .row{ + margin-left:50px; + } + +} + .resource-item { margin-top: 12px; margin-bottom: 12px; diff --git a/ckanext/surrey/plugin.py b/ckanext/surrey/plugin.py index baab1f9..830f822 100755 --- a/ckanext/surrey/plugin.py +++ b/ckanext/surrey/plugin.py @@ -40,20 +40,16 @@ def dataset_facets(self, facets_dict, package_type): default_facet_titles = { 'groups': tk._('Categories'), 'tags': tk._('Tags'), - 'res_format': tk._('Formats') + 'res_format': tk._('Formats'), #'license_id': tk._('License'), } return default_facet_titles def group_facets(self, facets_dict, group_type, package_type): - default_facet_titles = { - 'groups': tk._('Categories'), - 'tags': tk._('Tags'), - 'res_format': tk._('Formats') - #'license_id': tk._('License'), - } - return default_facet_titles + facets_dict.pop('license_id') + facets_dict.pop('organization') + return facets_dict class SurreyExtraPagesPlugin(plugins.SingletonPlugin): diff --git a/ckanext/surrey/templates/group/snippets/info.html b/ckanext/surrey/templates/group/snippets/info.html index 4c12647..a484259 100644 --- a/ckanext/surrey/templates/group/snippets/info.html +++ b/ckanext/surrey/templates/group/snippets/info.html @@ -20,7 +20,7 @@