Skip to content

Commit 1605a2c

Browse files
add further customization options
1 parent 00299bd commit 1605a2c

File tree

5 files changed

+35
-1
lines changed

5 files changed

+35
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.env
22
docker-compose.override.yml
3-
ckan/customization/*

ckan/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ RUN for d in $APP_DIR/patches/*; do \
2020
fi ; \
2121
done
2222

23+
### Copy customization files
24+
COPY customization/logo.png ${APP_DIR}/src/ckan/ckan/public/base/images/logo.png
25+
# Theme needs to be tested
26+
#COPY customization/logo.png ${APP_DIR}/src/ckan/ckan/public/base/css/theme.css
27+
2328
### Add extensions
2429

2530
# TIBHannover/ckanext-close-for-guests (1.0.0)

ckan/customization/logo.png

5.95 KB
Loading

ckan/customization/theme.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* This is a placeholder for a theme file */
2+
3+
/* ========================================================================
4+
The main masthead bar that contains the site logo, nav links, and search
5+
======================================================================== */
6+
7+
.masthead {
8+
background-color: #3d3d3d;
9+
}
10+
11+
/* The "navigation pills" in the masthead (the links to Datasets,
12+
Organizations, etc) when the user's pointer hovers over them. */
13+
.masthead .navigation .nav-pills li a:hover {
14+
background-color: rgb(48, 48, 48);
15+
color: white;
16+
}
17+
18+
/* The "active" navigation pill (for example, when you're on the /dataset page
19+
the "Datasets" link is active). */
20+
.masthead .navigation .nav-pills li.active a {
21+
background-color: rgb(74, 74, 74);
22+
}
23+
24+
/* The "box shadow" effect that appears around the search box when it
25+
has the keyboard cursor's focus. */
26+
.masthead input[type="text"]:focus {
27+
-webkit-box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
28+
box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
29+
}

ckan/docker-entrypoint.d/00_configure_core.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ckan config-tool "$CKAN_INI" "WTF_CSRF_SSL_STRICT=${WTF_CSRF_SSL_STRICT:-true}"
66
## Branding
77
ckan config-tool "$CKAN_INI" "ckan.site_title=${CKAN_SITE_TITLE:-CKAN}"
88
ckan config-tool "$CKAN_INI" "ckan.site_logo=${CKAN_SITE_LOGO:-/base/images/ckan-logo.png}"
9+
ckan config-tool "$CKAN_INI" "ckan.site_custom_css=$CKAN_SITE_CUSTOM_CSS"
910
ckan config-tool "$CKAN_INI" "ckan.theme=${CKAN_THEME:-css/main}"
1011

1112
## E-Mail

0 commit comments

Comments
 (0)