Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix popover and breadcrumb menu #119

Merged
merged 5 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/menu-breadcrumbs-sd.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- for listItem in breadcrumbsObj.itemListElement %}
{%- assign pageUrl = page.url | remove_first: "/" -%}
PeeterPaal marked this conversation as resolved.
Show resolved Hide resolved

<li class="menu-item">
<li class="menu-item {% if forloop.last %}current-page{% endif %}">
<a href="/{{ listItem.item.id }}">
{{ listItem.item.name }}
</a>
Expand Down
4 changes: 4 additions & 0 deletions components/template-cs-style-rules.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,7 @@ h3,
-webkit-text-decoration: var(--content-area-product-title__text-decoration);
text-decoration: var(--content-area-product-title__text-decoration);
}

.menu-item.current-page a {
color: var(--color-main);
}
8 changes: 8 additions & 0 deletions sources/components/custom-styles/template-cs-style-rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -493,3 +493,11 @@ h3,
text-decoration: var(--content-area-product-title__text-decoration);
}
}

.menu-item {
&.current-page {
a {
color: var(--color-main);
}
}
}
1 change: 1 addition & 0 deletions sources/stylesheets/modules/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ $popover-shadow: 0px 2px 10px rgba($black, .2);
$image-settings-shadow: 0px 0px 5px rgba($black, .05), 0px 25px 35px rgba($black, .03);

$zindex-settings-popover: 56501;
$zindex-ca-interaction-button: 10600;

// Variables for blog settings CSS
$zindex-settings-btn: 104;
Expand Down
1 change: 1 addition & 0 deletions sources/stylesheets/utils/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
.t-sticky {
position: sticky;
top: 32px;
z-index: $zindex-ca-interaction-button + 1;
}
}
1 change: 1 addition & 0 deletions stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3531,6 +3531,7 @@ body .edy-settings-editor:not(.editor_default) .edy-popover-content .edy-setting
position: -webkit-sticky;
position: sticky;
top: 32px;
z-index: 10601;
}
}

Expand Down
2 changes: 1 addition & 1 deletion stylesheets/main.min.css

Large diffs are not rendered by default.