Skip to content

Commit 0b51db8

Browse files
committed
Add white border to simple-tiles to avoid jitter on hover
1 parent 4863ac6 commit 0b51db8

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

_includes/tiles-simple.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- endif %}
66
<div class="simple-tiles">
77
<div class="simple-tiles-container">
8-
<div class="simple-tiles-list">
8+
<div class="simple-tiles-list row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} gy-2 gx-4 my-4">
99
{%- for item in tiles %}
1010
{%- if item.title %}
1111
<a href="{{ item.url | relative_url }}" class="simple-tile-link">
@@ -24,12 +24,6 @@
2424

2525
<style>
2626

27-
.simple-tiles-list {
28-
display: grid;
29-
grid-template-columns: repeat(auto-fit, minmax(300px, 0.5fr));
30-
gap: 20px;
31-
}
32-
3327
.simple-tile-link {
3428
text-decoration: none;
3529
color: inherit;

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tiles:
1313

1414
This website is a virtual meeting place and hub for all users of **computing for structural biology research in Australia**. This is a collective community effort. It can be what we make it!
1515

16-
{% include tiles-simple.html target = "tiles" col = "1" %}
16+
{% include tiles-simple.html target = "tiles" col = "2" %}
1717

1818

1919
## Upcoming Events

0 commit comments

Comments
 (0)