2015-12-17 10:28:15 +00:00
|
|
|
.navigation {
|
2015-12-14 16:37:15 +00:00
|
|
|
|
2016-06-22 09:33:49 +01:00
|
|
|
padding: 0 $gutter 0 0;
|
2015-12-14 16:37:15 +00:00
|
|
|
|
2016-11-18 11:18:29 +00:00
|
|
|
&-service {
|
|
|
|
|
|
|
|
|
|
padding: 11px 0 9px 0;
|
|
|
|
|
border-bottom: 1px solid $border-colour;
|
|
|
|
|
margin: 0 0 10px;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
2017-02-13 10:46:56 +00:00
|
|
|
&-name {
|
2016-11-18 11:18:29 +00:00
|
|
|
@include bold-19;
|
|
|
|
|
margin: 0 0 0 0;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-10 11:26:07 +01:00
|
|
|
&-basic-view {
|
|
|
|
|
|
|
|
|
|
&-preview {
|
|
|
|
|
@include bold-16;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
background: $yellow;
|
|
|
|
|
padding: 4px 10px 3px 10px;
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -1px;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
margin-bottom: -7px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-back-link {
|
|
|
|
|
@include core-16;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-18 11:18:29 +00:00
|
|
|
&-switch {
|
2017-08-07 11:40:17 +01:00
|
|
|
|
2016-11-18 11:18:29 +00:00
|
|
|
@include core-16;
|
|
|
|
|
text-align: right;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
padding: 13px 0 9px 15px;
|
2017-08-07 11:40:17 +01:00
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-bottom: 4px solid $yellow;
|
|
|
|
|
border-left: 10px solid $yellow;
|
|
|
|
|
border-right: 3px solid $yellow;
|
|
|
|
|
right: -3px;
|
2017-08-07 11:40:40 +01:00
|
|
|
color: $text-colour;
|
2017-08-07 11:40:17 +01:00
|
|
|
}
|
|
|
|
|
|
2016-11-18 11:18:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-22 09:28:40 +01:00
|
|
|
li {
|
2016-02-02 13:38:39 +00:00
|
|
|
@include core-19;
|
2017-08-07 11:43:43 +01:00
|
|
|
margin: 0;
|
2015-12-17 10:28:15 +00:00
|
|
|
list-style-type: none;
|
2016-03-21 17:01:31 +00:00
|
|
|
}
|
|
|
|
|
|
2016-02-08 11:11:55 +00:00
|
|
|
a {
|
|
|
|
|
|
2017-08-07 11:43:43 +01:00
|
|
|
display: block;
|
|
|
|
|
padding: 5px 0;
|
|
|
|
|
position: relative;
|
|
|
|
|
top: 5px;
|
|
|
|
|
|
2016-02-08 11:11:55 +00:00
|
|
|
&:link,
|
|
|
|
|
&:visited {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $link-hover-colour;
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
2015-12-17 10:28:15 +00:00
|
|
|
|
2017-08-07 11:40:40 +01:00
|
|
|
&:focus {
|
|
|
|
|
color: $text-colour;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-24 12:48:05 +01:00
|
|
|
&.selected {
|
|
|
|
|
@include bold-19;
|
|
|
|
|
position: relative;
|
|
|
|
|
// These two lines stop the width of the item jumping so much
|
|
|
|
|
// between selected and unselected states
|
|
|
|
|
left: -0.5px;
|
|
|
|
|
letter-spacing: -0.01em;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-17 10:28:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2017-11-28 11:53:24 +00:00
|
|
|
|
2017-11-28 12:00:12 +00:00
|
|
|
// https://github.com/alphagov/product-page-example/blob/master/source/stylesheets/modules/_sub-navigation.scss
|
2017-11-28 11:53:24 +00:00
|
|
|
.sub-navigation {
|
|
|
|
|
@include media(tablet) {
|
|
|
|
|
margin-top: $gutter * 1.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ol,
|
|
|
|
|
ul {
|
|
|
|
|
list-style: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
|
@include core-16;
|
|
|
|
|
|
|
|
|
|
border-bottom: 1px $grey-3 solid;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: $gutter-one-third 0;
|
|
|
|
|
|
|
|
|
|
a:link {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
|
a:active {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__item--active {
|
|
|
|
|
@include bold-16;
|
2018-04-24 12:48:05 +01:00
|
|
|
|
2017-11-28 11:53:24 +00:00
|
|
|
a:link, a:visited {
|
|
|
|
|
color: $text-colour;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|