diff --git a/backend/templates/ciroh.html b/backend/templates/ciroh.html index add17da..7bc432b 100644 --- a/backend/templates/ciroh.html +++ b/backend/templates/ciroh.html @@ -12,7 +12,6 @@ background-size: cover; text-align: center; background-repeat: no-repeat; - } .section-accent { padding-top: 195px; @@ -20,14 +19,6 @@ background-color: url('{% static "images/ciroh/water_data.jpeg" %}'); text-align: center; } - .section-datasets { - padding-top: 100px; - padding-bottom: 100px; - background-color: #19a7ce; - background-size: cover; - text-align: center; - background-repeat: no-repeat; - } {% endblock %} {% block base_js %} @@ -65,9 +56,6 @@ diff --git a/backend/templates/hydroshare_list_resources.html b/backend/templates/hydroshare_list_resources.html index 8b5e364..5d328d6 100644 --- a/backend/templates/hydroshare_list_resources.html +++ b/backend/templates/hydroshare_list_resources.html @@ -12,22 +12,71 @@ } .name{ - width: 80%; - - text-overflow: ellipsis; - margin-bottom: 12px; + height: 150px; cursor: pointer; - word-break: break-all; - overflow:hidden; - white-space: nowrap; -} -.name:hover{ - overflow: visible; - white-space: normal; - height:auto; /* just added this line */ -} + } + /* Hide scrollbar for Chrome, Safari and Opera */ + .name::-webkit-scrollbar { + display: none; + } + /* Hide scrollbar for IE, Edge and Firefox */ + .name { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + } + + .hydroshare_resource{ + box-shadow: 0 1px 10px 0 rgba(0,0,0,0.125), inset 0 0 0 1px rgba(255,255,255,0.75); + border-color: white; + border-bottom: 3px solid #255f9c; + } + .hydroshare_resource:hover, + .hydroshare_resource:focus { + background: #f5f5f5; + border-color: #bebebe; + box-shadow: 0 1px 4px 0 rgba(0,117,180,0.4); + } + .cover-image { + position: relative; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + cursor: pointer; + } + + .cover-image img { + display: block; + width: 100%; + transition: filter 0.5s ease; /* Smooth transition for the filter */ + } + + .learn-more { + position: absolute; + color: white; + padding: 5px 10px; + visibility: hidden; + transition: visibility 0s, opacity 0.5s linear; /* Smooth transition for visibility and opacity */ + opacity: 0; + border-color: #255f9c; + border-radius: 3px; + background: #255f9c; + } + + .cover-image:hover .learn-more { + visibility: visible; + opacity: 1; /* Make it fully opaque on hover */ + } + + .cover-image:hover img { + filter: brightness(50%); /* Darken the image */ + } + .learn-more > a { + color: inherit; + text-decoration: none; + } {% endaddtoblock %} diff --git a/backend/templates/single_hs_resource.html b/backend/templates/single_hs_resource.html index cfa47a4..5f8ca42 100644 --- a/backend/templates/single_hs_resource.html +++ b/backend/templates/single_hs_resource.html @@ -1,81 +1,31 @@ {% load cms_tags sekizai_tags %} {% addtoblock "js" %} - -{% endaddtoblock %} -
-
-
- {% if resource.web_site_url %} - - ... - {% else %} ... @@ -83,7 +33,7 @@ {% endif %}
-
+
{{ resource.title }}
@@ -102,8 +52,8 @@
{{ resource.title }}

{{ resource.subtitle }}

-
-

+

+

{{ resource.abstract }}

diff --git a/backend/templates/single_hydrolearn_module.html b/backend/templates/single_hydrolearn_module.html index c683808..2bb1b18 100644 --- a/backend/templates/single_hydrolearn_module.html +++ b/backend/templates/single_hydrolearn_module.html @@ -22,7 +22,6 @@
{{ module.course_title }}
-