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,69 +44,99 @@
// 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;
margin-bottom: 0;
padding-left: 0;
} }
li { li {
border-bottom: 2px solid transparent; border: 1px solid $border;
cursor: pointer; display: block;
display: inline-block; margin: rem-calc(-1) 0;
margin-bottom: $line-height; position: relative;
margin-right: $line-height;
transition: all 0.4s;
@include breakpoint(medium) { @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;
margin-right: $line-height / 4;
margin-top: 0;
&:hover:not(.is-active) {
background: $highlight;
} }
&:hover, &::after {
&:active, content: '' !important;
&:focus { }
border-bottom: 2px solid $brand;
} }
a, &::after {
h4 { content: '\63';
display: block; font-family: "icons" !important;
color: #6d6d6d; font-size: rem-calc(24);
margin-bottom: 0; pointer-events: none;
} position: absolute;
right: 12px;
top: 12px;
} }
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 { .is-active {
border-bottom: 2px solid $brand; background: $highlight;
position: relative;
a, @include breakpoint(medium) {
h4 { background: none;
color: $brand; border: 1px solid $border;
border-bottom: 0;
&::after {
border-bottom: 1px solid #fefefe;
bottom: -1px;
content: '' !important;
left: 0;
position: absolute;
width: 100%;
} }
} }
&::after {
content: '\61';
color: $link;
}
} }
} }