File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,23 @@ dataset {
5050
5151.homepage-categories {
5252 text-align : justify;
53+ display : grid;
54+ grid-template-columns : repeat (auto-fill, minmax (150px , 1fr ));
55+ grid-gap : 1rem ;
56+ grid-auto-flow : dense;
5357}
5458
55- /* allows last line of categories to be justify aligned */
56- .homepage-categories : after {
57- display : inline-block;
58- width : 100% ;
59- content : '' ;
59+ .homepage-categories .thumbnail : hover {
60+ background-color : # abccfb ;
6061}
6162
6263.homepage-categories .thumbnail {
63- display : inline-grid;
64- min-width : 120px ;
64+ min-width : 150px ;
6565 text-align : center;
6666 border : none;
6767 padding : 10px ;
68+ text-decoration : none;
69+ transition : all 0.3s ease-in-out;
6870}
6971
7072.homepage-categories .thumbnail img {
Original file line number Diff line number Diff line change 66 < div class ="col-lg-6 justify-content-center ">
77 < h1 class ="display-5 "> {{ site.greeting }}</ h1 >
88 < p class ="col-md-8 fs-4 mb-4 "> {{ site.description }}</ p >
9- < a href ="{{ "/datasets" | relative_url }}" class="btn btn-primary btn-lg" role="button"> Start browsing </ a >
9+ < a href ="{{ "/datasets" | relative_url }}" class="btn btn-primary btn-lg" role="button"> Browse all datasets </ a >
1010 </ div >
1111 < img alt ="Example homepage hero image " class ="d-none d-md-block img-responsive rounded-circle " src ="{{ site.baseurl }} {{ site.hero_image }} " style ="max-height: 300px " />
1212</ div >
@@ -16,9 +16,9 @@ <h3>Browse by Category</h3>
1616{% for category in site.dataset_categories %}
1717 {% if category.featured == true %}
1818 {% capture logo_alt %}{{ category.name }}{% if category.logo_credit and category.logo_credit != empty %} logo by {{ category.logo_credit }}{% endif %}{% endcapture %}
19- < a href ="{{ site.baseurl }}/categories/{{ category.name | slugify }} " class =" thumbnail " title ="{{ logo_alt }} ">
19+ < a class =" card border thumbnail hover-overlay " href ="{{ site.baseurl }}/categories/{{ category.name | slugify }} " title ="{{ logo_alt }} ">
2020 {% if category.logo and category.logo != empty %}
21- < img src ="{{ site.baseurl }}{{ category.logo }} " alt ="{{ logo_alt }} ">
21+ < img class =" card-img-top " src ="{{ site.baseurl }}{{ category.logo }} " alt ="{{ logo_alt }} ">
2222 {% endif %}
2323 {{ category.name }}
2424 </ a >
You can’t perform that action at this time.
0 commit comments