1+ .js-enabled {
2+ .js-app-c-nested-navigation--hidden {
3+ display : none ;
4+ }
5+
6+ .app-c-nested-navigation__sub-list {
7+ position : absolute ;
8+ }
9+ }
10+
11+ .app-c-nested-navigation {
12+ background-color : $govuk-blue-tint-95 ;
13+ border-bottom : 1px solid govuk-colour (" blue" );
14+ position : relative ;
15+ }
16+
17+ .app-c-nested-navigation__button {
18+ background : none ;
19+ border : 0 ;
20+ color : govuk-colour (" blue" );
21+ cursor : pointer ;
22+ padding : 0 ;
23+ text-decoration : none ;
24+ position : relative ;
25+ @include govuk-link-style-default ;
26+ @include govuk-font ($size : 19 );
27+ }
28+
29+ .app-c-nested-navigation__button [aria-expanded = " false" ] {
30+ background : none ;
31+ }
32+
33+ .app-c-nested-navigation__button [aria-expanded = " true" ] {
34+ background-color : govuk-colour (" white" );
35+ }
36+
37+ .app-c-nested-navigation__button :focus [aria-expanded = " true" ], .app-c-nested-navigation__button :focus [aria-expanded = " false" ] {
38+ background-color : $govuk-focus-colour ;
39+ }
40+
41+
42+
43+ .app-c-nested-navigation__link {
44+ text-decoration : none ;
45+ }
46+
47+ // Shared styles for the expanded and collapsed arrow icon. Based off of the super navigation menu button.
48+ .app-c-nested-navigation__button ::after {
49+ border-bottom : 2px solid govuk-colour (" blue" );
50+ border-right : 2px solid govuk-colour (" blue" );
51+ content : " " ;
52+ display : inline-block ;
53+ height : 8px ;
54+ margin-left : 10px ;
55+ vertical-align : middle ;
56+ width : 8px ;
57+ }
58+
59+ .app-c-nested-navigation__button :focus ::after {
60+ border-color : govuk-colour (" black" );
61+ }
62+
63+ .app-c-nested-navigation__button [aria-expanded = " false" ]::after {
64+ // Collapsed arrow icon
65+ transform : translateY (-35% ) rotate (45deg ) scale (1 );
66+ }
67+
68+ .app-c-nested-navigation__button [aria-expanded = " true" ]::after {
69+ transform : translateY (1px ) rotate (225deg ) scale (1 );
70+ }
71+
72+
73+ // .app-c-nested-navigation__button[aria-expanded=false]::after {
74+ // content: "▼"
75+ // }
76+
77+ // .app-c-nested-navigation__button[aria-expanded=true]::after {
78+ // content: "▲"
79+ // }
80+
81+ .app-c-nested-navigation__service-name :link {
82+ color : govuk-colour (" black" );
83+ font-weight : bold ;
84+ }
85+
86+ .app-c-nested-navigation__sub-list {
87+ padding-left : 0 ;
88+ background-color : govuk-colour (" white" );
89+ }
90+
91+ .app-c-nested-navigation__sub-list-item {
92+ padding-top : 15px ;
93+ padding-left : 15px ;
94+ padding-right : 15px ;
95+ list-style : none ;
96+ @include govuk-font ($size : 19 );
97+ }
98+
99+ .app-c-nested-navigation__list-item {
100+ display : inline-block ;
101+ vertical-align : top ;
102+ @include govuk-font ($size : 19 );
103+ padding : 15px ;
104+ }
0 commit comments