Skip to content
Snippets Groups Projects
Commit 68676a67 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

fix: embl-grid-and-breadcrumbs

Anticipates placement of breadcrumbs inside `embl-grid`
parent 997db75d
No related branches found
No related tags found
No related merge requests found
{% render "@embl-content-meta-properties", {"meta_who": "James Sharpe", "meta_what": "Sharpe Group", "meta_where": "EMBL Barcelona"} %}
<nav class="vf-breadcrumbs embl-breadcrumbs-lookup" aria-label="Breadcrumb" data-embl-js-breadcrumbs-lookup>
<div class="vf-list vf-list--inline | vf-breadcrumbs__list | embl-breadcrumbs-lookup--ghosting"></div>
</nav>
{% render "@embl-content-meta-properties", {"meta_who": "James Sharpe", "meta_what": "Sharpe Group", "meta_where": "EMBL Barcelona", "meta_active": "what"} %}
<div class="embl-grid">
<nav class="vf-breadcrumbs embl-breadcrumbs-lookup" aria-label="Breadcrumb" data-embl-js-breadcrumbs-lookup>
<div class="vf-list vf-list--inline | vf-breadcrumbs__list | embl-breadcrumbs-lookup--ghosting"></div>
</nav>
</div>
// embl-breadcrumbs-lookup
.embl-grid .embl-breadcrumbs-lookup:first-child {
// .embl-grid's frist-child property brings higher specificity
// it also has a margin bottom, so we don't need the .vf-breadcrumbs margin
grid-column: 1/-1;
margin-bottom: 0;
}
.embl-breadcrumbs-lookup--ghosting {
animation: embl-breadcrumbs-lookup-ghosting-animation 4s ease-in-out infinite alternate;
background: 50% top / 15% 60% linear-gradient(90deg, set-ui-color(vf-ui-color-gray-light) 0%, set-ui-color(vf-ui-color-gray) 30%, set-ui-color(vf-ui-color-gray) 50%, set-ui-color(vf-ui-color-gray-light) 100%);
......
......@@ -3,7 +3,7 @@
.vf-breadcrumbs {
display: flex;
grid-column: main;
grid-column: 1/-1;
margin-bottom: $vf-breadcrumbs__margin--bottom;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment