Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
With this commit, ZaRR should work with master branch of fjelltopp-th…
Browse files Browse the repository at this point in the history
…eme without further changes (#5)

Co-authored-by: toavina <[email protected]>
  • Loading branch information
A-Souhei and toavina authored Aug 14, 2024
1 parent 7e861cd commit 1a083b3
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckanext/zarr/assets/css/zarr.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
padding-left: 14px;
}

.badge {
color: #EF7D00;
.dataset-resources li a.badge, .dataset-resources li a.badge:hover {
color: #EF7D00 !important;
}

51 changes: 51 additions & 0 deletions ckanext/zarr/assets/css/zarr_palette.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
:root {
/* theme*/
--theme: 'zarr';
/* palette */
--primary: #13240F;
--secondary: #198A00;
--background: #DFF0DB;
--tag: #EF7D00;
--tag-dark: #EF7D00;
--tag-light: #EF7D00;
--tag-background: #FCF0E3;
--dark: #13240F;
--light: #FFFFFF;
--primary65: #9ad98c;
--primary25: #DFF0DB;
--primary10: #EBF1EA;
--neutral-light-grey:#e6e7e8;
--A11y: #757575;
--highlight-box-bgcolor: #192f14;
/* fonts */
--default-font-weight: 700;
--default-font-size: 18px;
--default-line-height: 20px;
--default-font-family: 'Inter';
--default-font-color: #13240F;
/* logo vertical bar (right) */
--logo-left-v-bar-display: none; /* or inline-block if shown */
--logo-left-v-bar-padding-right: 10px; /* set to 19px if visible */
/* promoted background color */
--promoted-background-color: #13240F;
/* insights */
--show-insights-title-display: none; /* set to block to show */
--upper-container-display: none; /* set to flex to show */
--upper-container-display-mobile: none; /* set to block to show */
--lower-container-display: flex; /* set to flex to show */
--after-insights-min-height: 400px;
/* masthead */
--masthead-visibility: block;
--development-banner-visibility: block;
--locales-visibility: none;
/* recently updated */
--recently-updated-title-visibility: none;
/* footer */
--footer-search-section-padding-top: 64px;
--footer-search-section-padding-bottom: 0px;
/* badge */
--badge-font-size: 0.7em;
/* user profile */
--breadcrumbs-color: #FFFFFF;
}

7 changes: 6 additions & 1 deletion ckanext/zarr/assets/webassets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ zarr-theme:
filter: cssrewrite
output: zarr/%(version)s-zarr.css
contents:
- css/source-sans-3VF.css
- css/zarr.css

zarr-theme-palette:
filter: cssrewrite
output: zarr/%(version)s-zarr.css
contents:
- css/zarr_palette.css

FileInputComponentStyles:
contents:
- css/FileInputComponent.css
Expand Down
2 changes: 2 additions & 0 deletions ckanext/zarr/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

{% block styles %}
{{ super() }}
{% block fjelltopp_theme_palette %}{% asset 'zarr/zarr-theme-palette' %}{% endblock %}
{% block fjelltopp_theme_extended %}{% endblock %}
{% asset 'zarr/zarr-theme' %}
{% endblock %}

0 comments on commit 1a083b3

Please sign in to comment.