Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 101 additions & 16 deletions ckanext/open_alberta/fanstatic/css/ab-opengov.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* IDDP/OGP css tweeks.
* The base CSS is alberta.ca.css
*/
/* Bootstrap v3.x folds the naviation at viewport width <= 768px, so desktop users see phone interface in many cases.
/* Bootstrap v3.x folds the navigation at viewport width <= 768px, so desktop users see phone interface in many cases.
This helps to override that to a custom value without rebuilding bootstrap. */
#alberta-ca.IDDP {
overflow-x: hidden;
Expand Down Expand Up @@ -75,6 +75,8 @@
#alberta-ca.IDDP .form-horizontal .form-group {
margin-left: 0;
margin-right: 0; }
#alberta-ca.IDDP .list-group > .clearfix {
list-style: none; }
#alberta-ca.IDDP .badge a.remove {
color: white;
margin-left: 5px; }
Expand All @@ -101,14 +103,22 @@
overflow: auto; }
#alberta-ca.IDDP .wrapper-package-read .page-footer a {
margin-right: 30px; }
@media screen and (min-width: 25em) {
#alberta-ca.IDDP .wrapper-package-read .page-footer button {
float: right; } }
#alberta-ca.IDDP .wrapper-package-read .page-footer a:last-child {
/* Download Metadata button */ }
@media screen and (min-width: 25em) {
#alberta-ca.IDDP .wrapper-package-read .page-footer a:last-child {
float: right; } }
#alberta-ca.IDDP .page-preprimary > :last-child {
margin-bottom: 30px; }
#alberta-ca.IDDP .logo a {
background: url(/img/AlbertaLogoWhiteV.svg) no-repeat center center;
background-size: 120px 51px; }
#alberta-ca.IDDP .page_primary_action {
margin-bottom: 15px; }
#alberta-ca.IDDP .search-giant .btn {
background: #555;
border-radius: 0;
border: 1px solid #555; }
#alberta-ca.IDDP #content {
background-color: #fff;
padding-top: 0; }
Expand All @@ -125,7 +135,11 @@
float: left; }
#alberta-ca.IDDP #content .secondary aside {
border: dotted 1px #ccc;
padding: 15px; }
padding: 15px;
/* TODO:
&.filter-results {
}
*/ }
#alberta-ca.IDDP #content .secondary aside section *:first-child {
margin-top: 0; }
#alberta-ca.IDDP #content .secondary aside section *:last-child {
Expand All @@ -139,11 +153,18 @@
#alberta-ca.IDDP #content .secondary aside h4 {
color: #000;
background: #ccc;
font-size: 1em;
font-size: 0.9em;
padding: 5px 10px;
margin: 0; }
#alberta-ca.IDDP #content .secondary aside h4.suggest {
text-align: center; }
#alberta-ca.IDDP #content .secondary aside h4 i.fa {
float: right;
margin-left: 5px;
color: #808080;
cursor: pointer; }
#alberta-ca.IDDP #content .secondary aside h4 i.fa:hover {
color: #000; }
#alberta-ca.IDDP #content .secondary aside li.nav-item {
font-size: 0.9em;
margin: 0 -5px;
Expand All @@ -152,6 +173,15 @@
#alberta-ca.IDDP #content .secondary aside li.nav-item a {
margin: -5px -5px;
padding: 5px; }
#alberta-ca.IDDP #content .secondary aside p.module-footer {
text-align: center;
font-size: 0.8em;
background: #ddd;
padding: 5px; }
#alberta-ca.IDDP #content .secondary aside p.module-footer a.show-less {
display: none; }
#alberta-ca.IDDP #content .secondary.no-padding {
padding: 0; }
#alberta-ca.IDDP #content.no-sidebar .secondary {
display: none; }
#alberta-ca.IDDP .account-masthead {
Expand Down Expand Up @@ -275,14 +305,60 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; }
#alberta-ca.IDDP .suggest-resource p {
margin-bottom: 0; }
#alberta-ca.IDDP .dataset-content {
position: relative; }
#alberta-ca.IDDP .dataset-flag-wrapper {
position: absolute;
right: 0;
top: 0;
overflow: hidden;
width: 100px;
height: 100px; }
#alberta-ca.IDDP .dataset-flag-wrapper span {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transform-origin: top left;
-moz-transform-origin: top left;
-ms-transform-origin: top left;
-o-transform-origin: top left;
transform-origin: top left;
position: absolute;
right: 0;
width: 120px;
height: 26px;
line-height: 26px;
text-align: center;
top: -18px;
right: -54px;
font-size: 11px;
font-weight: bold;
color: white;
background-color: #666;
text-transform: capitalize; }
#alberta-ca.IDDP #field-image-upload {
width: 84px;
position: absolute;
opacity: 0;
height: 32px;
cursor: pointer; }
#alberta-ca.IDDP #field-image-upload::-webkit-file-upload-button {
cursor: pointer; }
@media only screen and (max-width: 40em) {
#alberta-ca.IDDP .navbar {
border-radius: 0px; }
border: 2px solid #77B800;
min-height: 0; }
#alberta-ca.IDDP .navbar-header {
float: none; }
#alberta-ca.IDDP .navbar-toggle {
display: block;
margin-left: 0; }
#alberta-ca.IDDP .navbar-collapse {
min-height: 0; }
#alberta-ca.IDDP .navbar-collapse.collapse {
display: none !important; }
#alberta-ca.IDDP .navbar-nav {
Expand Down Expand Up @@ -326,13 +402,8 @@
border-top: solid 1px #a0a0a0;
border-bottom: solid 1px #a0a0a0;
margin: 15px 0;
padding: 5px 0; }
#alberta-ca.IDDP .resources-order-by, #alberta-ca.IDDP .resources-page-size {
display: inline-block;
width: 48%; }
@media only screen and (max-width: 40em) {
#alberta-ca.IDDP .resources-order-by, #alberta-ca.IDDP .resources-page-size {
width: 100%; } }
padding: 15px 0;
font-size: 0.8em; }
#alberta-ca.IDDP .control-medium input, #alberta-ca.IDDP .control-medium textarea, #alberta-ca.IDDP .control-medium select {
min-width: 320px; }
#alberta-ca.IDDP .control-full input, #alberta-ca.IDDP .control-full textarea, #alberta-ca.IDDP .control-full select {
Expand Down Expand Up @@ -384,6 +455,18 @@
padding-left: 0 !important; }
#alberta-ca.IDDP .dataset-list .pub-date span:last-child {
padding-left: 1em; }
#alberta-ca.IDDP .clone {
display: none;
border-radius: 5px;
padding: 10px 15px 0 15px; }
#alberta-ca.IDDP .clone .control-group {
max-width: 40em; }
#alberta-ca.IDDP .clone .control-group input {
width: 100%; }
#alberta-ca.IDDP .clone .slug-preview {
margin-top: 10px; }
#alberta-ca.IDDP .clone .form-actions {
margin: 0 auto 15px; }
#alberta-ca.IDDP .pagination ul {
overflow: auto;
list-style-type: none;
Expand Down Expand Up @@ -432,7 +515,9 @@
border-bottom: dashed 1px #ddd;
border-right: none;
position: relative; }
#alberta-ca.IDDP .resource-item > a.heading {
#alberta-ca.IDDP .resource-item div.heading {
width: auto;
word-wrap: break-word;
margin-left: 35px; }
#alberta-ca.IDDP .resource-item i.rc-icon {
color: #000;
Expand All @@ -449,7 +534,7 @@
text-transform: uppercase; }
#alberta-ca.IDDP .resource-item .links .fa-download {
margin-right: 5px; }
#alberta-ca.IDDP .resource-item .links .fa-info-circle {
#alberta-ca.IDDP .resource-item .links .fa-info-circle, #alberta-ca.IDDP .resource-item .links .fa-edit {
margin-left: 5px; }
#alberta-ca.IDDP .tags li {
display: inline-block;
Expand Down
4 changes: 3 additions & 1 deletion ckanext/open_alberta/sass/ab-opengov.scss
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ $active-bg-color: #005072;
border-right: none;
position: relative;

>a.heading {
div.heading {
width: auto;
word-wrap: break-word;
margin-left: 35px;
}

Expand Down
2 changes: 0 additions & 2 deletions ckanext/open_alberta/templates/package/base_form_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{# Adminscreens sidebar #}
{% block secondary_content %}
{% block info_module %}

<section class="module module-narrow module-shallow">
<h2 class="module-heading"><i class="icon-info-sign"></i> {{ _(dataset_type|capitalize) }}</h2>
<div class="module-content">
Expand All @@ -20,7 +19,6 @@ <h2 class="module-heading"><i class="icon-info-sign"></i> {{ _(dataset_type|capi
</p>
</div>
</section>

{% endblock %}
{% endblock %}
{# Adminscreens sidebar #}
Expand Down
50 changes: 24 additions & 26 deletions ckanext/open_alberta/templates/package/edit.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{% ckan_extends %}

{# Adminscreens sidebar #}
{% block secondary_content %}
{% block info_module %}

<section class="module module-narrow module-shallow">
<h2 class="module-heading"><i class="icon-info-sign"></i> {{ _(dataset_type|capitalize) }}</h2>
<div class="module-content">
<p>
{% if dataset_type == "publications" %}
{% trans %}
Information published by the government in a format meant for an end user/public.
{% endtrans %}
{% else %}
{% trans %}
GoA’s data whose release is not subject to privacy, security or legislative restrictions and which is made available to the public in a structured, machine-readable format with minimal restrictions on its use or re-use.
{% endtrans %}
{% endif %}
</p>
</div>
</section>

{% endblock %}
{% endblock %}
{# Adminscreens sidebar #}
{% ckan_extends %}

{# Adminscreens sidebar #}
{% block secondary_content %}
{% block info_module %}
<section class="module module-narrow module-shallow">
<h2 class="module-heading"><i class="icon-info-sign"></i> {{ _(dataset_type|capitalize) }}</h2>
<div class="module-content">
<p>
{% if dataset_type == "publications" %}
{% trans %}
Information published by the government in a format meant for an end user/public.
{% endtrans %}
{% else %}
{% trans %}
GoA’s data whose release is not subject to privacy, security or legislative restrictions and which is made available to the public in a structured, machine-readable format with minimal restrictions on its use or re-use.
{% endtrans %}
{% endif %}
</p>
</div>
</section>
{% endblock %}
{% endblock %}
{# Adminscreens sidebar #}
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{% set can_edit = h.check_access('package_update', {'id': pkg.id }) %}
{% set resource_icon = h.resource_format_to_icon(res.format) %}

<div class="resource-item">
<div class="resource-item" data-id="{{ res.id }}">
{% if resource_icon != "" %}<i class="rc-icon fa {{ resource_icon }}"></i>{% endif %}

{% block resource_item_title %}
{% if resource_icon != "" %}<i class="rc-icon fa {{ resource_icon }}"></i>{% endif %}
<a class="heading" href="{{ res.url }}" title="{{ res.name or res.description }}" target="_blank">
<div class="heading">
<a href="{{ res.url }}" title="{{ res.name or res.description }}" target="_blank">
{{ h.resource_display_name(res) | truncate(300) }}
{{ h.popular('views', res.tracking_summary.total, min=10) }}
</a>
</div>
{% endblock %}

{% block resource_item_links %}
Expand All @@ -23,3 +26,5 @@
</div>
{% endblock %}
</div>