-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy path_navigation.scss
62 lines (52 loc) · 1.14 KB
/
_navigation.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
$navigation-height: 50px;
.app-navigation {
@include govuk-font(19, $weight: bold);
box-sizing: border-box;
width: 100%;
background-color: $app-light-grey;
@include govuk-media-query($until: tablet) {
display: none;
}
}
.app-navigation__list {
position: relative;
left: -(govuk-spacing(3));
margin: 0;
padding: 0;
list-style: none;
}
.app-navigation__list-item {
box-sizing: border-box;
display: block;
position: relative;
height: $navigation-height;
padding: 0 govuk-spacing(3);
float: left;
line-height: $navigation-height;
}
.app-navigation__list-item--current {
border-bottom: 4px solid govuk-colour("blue");
}
.app-navigation__link {
@include govuk-typography-weight-bold;
text-decoration: none;
&:not(:focus):visited {
color: $govuk-link-colour;
}
&:not(:focus):hover {
color: $govuk-link-colour;
text-decoration: underline;
}
// Extend the touch area of the link to the list
&:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
}
.app-navigation__list-item--current .app-navigation__link:hover {
text-decoration: none;
}