Changes styles to tabs on processes key dates

This commit is contained in:
decabeza
2018-12-27 20:16:39 +01:00
parent 6098fb1188
commit db86f0e7ab

View File

@@ -44,68 +44,98 @@
// 02. Legislation process navigation // 02. Legislation process navigation
// ---------------------------------- // ----------------------------------
.legislation-process-categories { .legislation-process-list {
position: relative; border-bottom: 1px solid $border;
}
.legislation-process-list { .key-dates {
border-bottom: 1px solid $medium-gray; list-style-type: none;
margin: 0 rem-calc(16) rem-calc(16); margin: 0 rem-calc(-10);
ul { @include breakpoint(medium) {
list-style: none; margin: 0;
margin: 0 auto; }
li {
border: 1px solid $border;
display: block;
margin: rem-calc(-1) 0;
position: relative;
@include breakpoint(medium) {
background: #fafafa;
display: inline-block;
border-bottom: 0;
border-top-left-radius: rem-calc(6);
border-top-right-radius: rem-calc(6);
margin-bottom: 0; margin-bottom: 0;
padding-left: 0; margin-right: $line-height / 4;
margin-top: 0;
&:hover:not(.is-active) {
background: $highlight;
}
&::after {
content: '' !important;
}
} }
li { &::after {
border-bottom: 2px solid transparent; content: '\63';
cursor: pointer; font-family: "icons" !important;
display: inline-block; font-size: rem-calc(24);
margin-bottom: $line-height; pointer-events: none;
margin-right: $line-height; position: absolute;
transition: all 0.4s; right: 12px;
top: 12px;
@include breakpoint(medium) {
margin-bottom: 0;
}
&:hover,
&:active,
&:focus {
border-bottom: 2px solid $brand;
}
a,
h4 {
display: block;
color: #6d6d6d;
margin-bottom: 0;
}
} }
a { a {
&:hover, display: block;
&:active { padding: $line-height / 4 $line-height / 2;
@include breakpoint(medium) {
display: inline-block;
}
&:hover {
text-decoration: none; text-decoration: none;
} }
p { h4 {
margin-bottom: 0; margin-bottom: 0;
}
}
}
@include breakpoint(medium) { span {
margin-bottom: rem-calc(16); color: $text-medium;
} font-size: $small-font-size;
}
.is-active {
background: $highlight;
position: relative;
@include breakpoint(medium) {
background: none;
border: 1px solid $border;
border-bottom: 0;
&::after {
border-bottom: 1px solid #fefefe;
bottom: -1px;
content: '' !important;
left: 0;
position: absolute;
width: 100%;
} }
} }
.is-active { &::after {
border-bottom: 2px solid $brand; content: '\61';
color: $link;
a,
h4 {
color: $brand;
}
} }
} }
} }