Skip to content

Commit c2c9c78

Browse files
authored
Merge pull request #555 from itk-dev/feature/early_inclusion_dialogue_navigation_underline
Add underline to active state in nav
2 parents 78764cb + fbf891e commit c2c9c78

4 files changed

Lines changed: 24 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
88

9+
* [PR-555](https://github.com/itk-dev/deltag.aarhus.dk/pull/555)
10+
* Add underline to active navigation.
11+
* Adjust header witdt
912
* [PR-556](https://github.com/itk-dev/deltag.aarhus.dk/pull/556)
1013
* Change OIDC container
1114

web/themes/custom/hoeringsportal/assets/css/module/_header-v2.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
}
3838
}
3939

40+
@include media-breakpoint-up(xxl) {
41+
&.with-image {
42+
margin-left: auto;
43+
margin-right: auto;
44+
max-width: 1400px;
45+
}
46+
}
47+
4048
.type {
4149
color: $petroleum;
4250
}

web/themes/custom/hoeringsportal/assets/css/module/_nav.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,23 @@ nav.navbar {
4545
}
4646

4747
&.active {
48-
color: $gray-700;
48+
color: $primary;
49+
text-decoration: underline;
50+
text-underline-offset: 19px;
51+
text-decoration-thickness: 5px;
52+
transition: text-underline-offset 200ms ease-in;
53+
54+
@include media-breakpoint-down(md) {
55+
text-underline-offset: 9px;
56+
text-decoration-thickness: 3px;
57+
}
4958
}
5059

5160
@include media-breakpoint-up(md) {
5261
.scrolled & {
5362
padding-top: $spacer * 0.25;
63+
text-underline-offset: 14px;
64+
transition: text-underline-offset 200ms ease-out;
5465
}
5566
}
5667
}

web/themes/custom/hoeringsportal/templates/components/header-default.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{% endblock %}
1919
{% block header_text_box %}
2020
<div class="content-wrapper position-relative {{ images ? 'with-image' : '' }} {{ type ?? 'type-default' }}">
21-
<div class="container">
21+
<div class="container px-md-5">
2222
{% if category %}
2323
<div class="small fw-semibold text-background-match">{{ category }}</div>
2424
{% endif %}

0 commit comments

Comments
 (0)