2015-09-25 15:17:39 +02:00
|
|
|
.tab-nav {
|
2014-06-19 13:25:53 +02:00
|
|
|
@include row();
|
2015-09-25 15:17:39 +02:00
|
|
|
padding: 0;
|
|
|
|
background: $color-grey-4;
|
2014-01-24 18:34:26 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
li {
|
|
|
|
list-style-type: none;
|
|
|
|
width: 33%;
|
|
|
|
float: left;
|
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
2020-06-15 19:02:32 +02:00
|
|
|
margin-right: 2px;
|
2016-10-25 20:22:38 +02:00
|
|
|
|
|
|
|
&:first-of-type {
|
2020-06-15 19:02:32 +02:00
|
|
|
padding-left: $desktop-nice-padding;
|
|
|
|
margin-left: 0;
|
2016-10-25 20:22:38 +02:00
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2019-05-22 18:17:51 +02:00
|
|
|
h2 {
|
|
|
|
margin: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
a {
|
2014-02-11 18:18:59 +01:00
|
|
|
@include transition(border-color 0.2s ease);
|
2018-09-26 22:53:48 +02:00
|
|
|
background-color: $color-teal-darker;
|
2015-09-25 15:17:39 +02:00
|
|
|
text-transform: uppercase;
|
2020-06-16 17:53:57 +02:00
|
|
|
font-weight: 600;
|
2015-09-25 15:17:39 +02:00
|
|
|
text-decoration: none;
|
|
|
|
display: block;
|
2020-06-18 18:18:08 +02:00
|
|
|
padding: 0.6em 0.7em 0.8em;
|
2015-11-03 13:15:33 +01:00
|
|
|
color: $color-white;
|
2018-09-26 22:53:48 +02:00
|
|
|
border-top: 0.3em solid $color-teal-darker;
|
2020-06-16 17:53:57 +02:00
|
|
|
max-height: 1.44em;
|
2015-09-25 15:17:39 +02:00
|
|
|
overflow: hidden;
|
2014-01-24 18:34:26 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
&:hover {
|
2015-11-03 13:15:33 +01:00
|
|
|
color: $color-white;
|
2018-10-10 13:06:56 +02:00
|
|
|
border-top-color: darken($color-teal-darker, 8);
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2014-02-05 12:12:18 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
a.errors {
|
|
|
|
&:after {
|
2015-11-03 18:12:12 +01:00
|
|
|
border-radius: 50px;
|
|
|
|
box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
|
2015-09-25 15:17:39 +02:00
|
|
|
position: absolute;
|
|
|
|
right: -0.5em;
|
|
|
|
top: -0.5em;
|
|
|
|
z-index: 5;
|
|
|
|
min-width: 0.9em;
|
2015-11-03 13:15:33 +01:00
|
|
|
color: $color-white;
|
2015-09-25 15:17:39 +02:00
|
|
|
background: $color-red;
|
|
|
|
content: attr(data-count);
|
|
|
|
padding: 0 0.3em;
|
|
|
|
line-height: 1.4em;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 0.8em;
|
2014-02-14 16:14:26 +01:00
|
|
|
}
|
2014-02-06 17:41:52 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
li.active a {
|
2015-11-03 18:12:12 +01:00
|
|
|
box-shadow: none;
|
2015-09-25 15:17:39 +02:00
|
|
|
color: $color-grey-1;
|
2015-11-03 13:15:33 +01:00
|
|
|
background-color: $color-white;
|
2015-09-25 15:17:39 +02:00
|
|
|
border-top: 0.3em solid $color-grey-1;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
// For cases where tab-nav should merge with header
|
2015-09-25 15:17:39 +02:00
|
|
|
&.merged {
|
|
|
|
margin-top: 0;
|
|
|
|
background-color: $color-header-bg;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.tab-content {
|
2020-08-11 16:25:40 +02:00
|
|
|
> section {
|
2015-09-25 15:17:39 +02:00
|
|
|
display: none;
|
|
|
|
padding-top: 1em;
|
2014-01-24 18:34:26 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
&.active {
|
|
|
|
display: block;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
.page-locked & {
|
|
|
|
cursor: not-allowed;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
|
2018-11-04 22:46:42 +01:00
|
|
|
@include media-breakpoint-up(sm) {
|
2015-09-25 15:17:39 +02:00
|
|
|
.tab-nav {
|
2017-08-11 01:13:57 +02:00
|
|
|
// For cases where tab-nav should merge with header
|
2015-09-25 15:17:39 +02:00
|
|
|
&.merged {
|
|
|
|
background-color: $color-header-bg;
|
2014-06-17 17:37:22 +02:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
li {
|
|
|
|
width: auto;
|
|
|
|
padding: 0;
|
2014-06-17 17:37:22 +02:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
a {
|
2020-06-16 17:53:57 +02:00
|
|
|
padding-left: $mobile-nice-padding;
|
|
|
|
padding-right: $mobile-nice-padding;
|
2014-06-17 17:37:22 +02:00
|
|
|
}
|
2014-02-05 12:12:55 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
li.settings a {
|
|
|
|
padding-left: 2em;
|
|
|
|
padding-right: 2em;
|
2014-06-19 13:25:53 +02:00
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.modal-content .tab-nav li {
|
|
|
|
padding: 0;
|
|
|
|
min-width: 0;
|
2016-10-25 20:22:38 +02:00
|
|
|
|
|
|
|
&:first-of-type {
|
2020-06-16 17:53:57 +02:00
|
|
|
padding-left: $desktop-nice-padding;
|
2016-10-25 20:22:38 +02:00
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
}
|
2016-10-27 21:27:35 +02:00
|
|
|
|
2018-11-04 22:46:42 +01:00
|
|
|
@include media-breakpoint-down(xs) {
|
2016-10-27 21:27:35 +02:00
|
|
|
// To allow tabs on the edit page to be editable
|
|
|
|
.tab-nav li:first-of-type {
|
|
|
|
padding-left: 1.6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-nav li {
|
2019-06-17 23:41:40 +02:00
|
|
|
width: auto;
|
2016-10-27 21:27:35 +02:00
|
|
|
}
|
|
|
|
}
|