Files
notifications-admin/app/assets/stylesheets/components/navigation.scss

108 lines
1.6 KiB
SCSS

.navigation {
padding: 0 $gutter 0 0;
&-service {
padding: 11px 0 9px 0;
border-bottom: 1px solid $border-colour;
margin: 0 0 10px;
position: relative;
&-name {
@include bold-19;
margin: 0 0 0 0;
}
&-switch {
@include core-16;
text-align: right;
position: absolute;
top: 0;
right: 0;
padding: 13px 0 9px 15px;
&:focus {
outline: none;
border-bottom: 4px solid $yellow;
border-left: 10px solid $yellow;
border-right: 3px solid $yellow;
right: -3px;
color: $text-colour;
}
}
}
li {
@include core-19;
margin: 0;
list-style-type: none;
}
a {
display: block;
padding: 5px 0;
position: relative;
top: 5px;
&:link,
&:visited {
text-decoration: none;
}
&:hover {
color: $link-hover-colour;
text-decoration: underline;
}
&:focus {
color: $text-colour;
}
}
}
// https://github.com/alphagov/product-page-example/blob/master/source/stylesheets/modules/_sub-navigation.scss
.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;
a:link, a:visited {
color: $text-colour;
}
}
}