Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="primary-nav-dropdown__heading">{{ dropdown.main_heading }}</h2>
{% endif %}
<ul class="primary-nav-dropdown__row-list">
{% for child in dropdown.main_items %}
<li class="primary-nav-dropdown__row-item{% if child.accent_colour %} primary-nav-dropdown__row-item--{{ child.accent_colour }}{% endif %}">
<li class="primary-nav-dropdown__row-item{% if child.accent_colour %} primary-nav-dropdown__row-item--show-accent-colour primary-nav-dropdown__row-item--{{ child.accent_colour }}{% endif %}">
<a href="{{ child.url }}" class="primary-nav-dropdown__row-link">
<span class="primary-nav-dropdown__row-body">
<span class="primary-nav-dropdown__row-title">{{ child.text }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2 class="primary-nav-dropdown__heading">{{ dropdown.main_heading }}</h2>
{% endif %}
<ul class="primary-nav-dropdown__row-list primary-nav-dropdown__row-list--two-columns">
{% for child in dropdown.main_items %}
<li class="primary-nav-dropdown__row-item{% if child.accent_colour %} primary-nav-dropdown__row-item--{{ child.accent_colour }}{% endif %}">
<li class="primary-nav-dropdown__row-item{% if child.accent_colour %} primary-nav-dropdown__row-item--show-accent-colour primary-nav-dropdown__row-item--{{ child.accent_colour }}{% endif %}">
<a href="{{ child.url }}" class="primary-nav-dropdown__row-link">
<span class="primary-nav-dropdown__row-body">
<span class="primary-nav-dropdown__row-title">{{ child.text }}</span>
Expand Down
1 change: 1 addition & 0 deletions tbx/static_src/sass/components/_mode-switcher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
justify-content: space-between;
align-items: center;
position: relative;
cursor: pointer;

&::before {
top: 3px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ Styles for primary navigation dropdown panels at desktop
gap: $spacer-mini;
width: 100%;
padding: $spacer-mini;
border-left: 3px solid transparent;
border-radius: 4px;
text-decoration: none;
color: inherit;
Expand Down Expand Up @@ -185,24 +184,38 @@ Styles for primary navigation dropdown panels at desktop
}

&__row-item {
&--theme-coral #{$root}__row-link {
border-left-color: var(--color--coral);
&--show-accent-colour #{$root}__row-link {
position: relative;

&::before {
content: '';
position: absolute;
top: 0;
left: -1.5px;
bottom: 0;
width: 3px;
border-radius: 1.5px;
}
}

&--theme-coral #{$root}__row-link::before {
background-color: var(--color--coral);
}

&--theme-nebuline #{$root}__row-link {
border-left-color: var(--color--nebuline);
&--theme-nebuline #{$root}__row-link::before {
background-color: var(--color--nebuline);
}

&--theme-lagoon #{$root}__row-link {
border-left-color: var(--color--lagoon);
&--theme-lagoon #{$root}__row-link::before {
background-color: var(--color--lagoon);
}

&--theme-green #{$root}__row-link {
border-left-color: var(--color--green);
&--theme-green #{$root}__row-link::before {
background-color: var(--color--green);
}

&--theme-earth #{$root}__row-link {
border-left-color: var(--color--earth);
&--theme-earth #{$root}__row-link::before {
background-color: var(--color--earth);
}
}

Expand Down
1 change: 1 addition & 0 deletions tbx/static_src/sass/config/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ $color--black: #000;
--color--background-swirls-two: #{$color--white};
// The following base variables do not change with either theme or mode
--color--white: #{$color--white};
--color--grey-5: #{$color--grey-5};
--color--grey-10: #{$color--grey-10};
--color--grey-20: #{$color--grey-20};
--color--grey-50: #{$color--grey-50};
Expand Down
Loading