2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:math';
|
2022-04-08 02:33:48 +02:00
|
|
|
@use 'sass:color';
|
2021-12-23 03:42:22 +01:00
|
|
|
|
2022-07-05 12:25:27 +02:00
|
|
|
.w-header {
|
2022-07-29 13:31:36 +02:00
|
|
|
@apply w-text-primary;
|
|
|
|
margin-bottom: theme('spacing.8');
|
2022-04-29 13:59:52 +02:00
|
|
|
|
2022-02-04 12:57:55 +01:00
|
|
|
h1,
|
2015-09-25 15:17:39 +02:00
|
|
|
h2 {
|
2022-04-08 18:36:47 +02:00
|
|
|
@apply w-text-primary;
|
2015-09-25 15:17:39 +02:00
|
|
|
margin: 0;
|
2014-06-10 15:33:08 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
|
|
|
|
h1 {
|
2022-04-29 13:59:52 +02:00
|
|
|
@apply w-h1;
|
|
|
|
position: relative;
|
2022-06-30 12:23:07 +02:00
|
|
|
}
|
|
|
|
|
2022-07-13 07:53:30 +02:00
|
|
|
.w-header__glyph {
|
2022-06-30 12:23:07 +02:00
|
|
|
position: absolute;
|
2022-07-29 13:31:36 +02:00
|
|
|
inset-inline-start: calc(0 - theme('spacing.11'));
|
2022-06-30 12:23:07 +02:00
|
|
|
vertical-align: text-top;
|
2014-06-10 15:33:08 +02:00
|
|
|
|
2022-06-30 12:23:07 +02:00
|
|
|
&.icon {
|
2022-04-29 13:59:52 +02:00
|
|
|
top: 0.125em;
|
|
|
|
max-width: 1em;
|
|
|
|
max-height: 1em;
|
2014-05-13 16:51:28 +02:00
|
|
|
}
|
2022-04-08 18:36:47 +02:00
|
|
|
|
2022-06-30 12:23:07 +02:00
|
|
|
&.avatar {
|
2022-07-29 13:31:36 +02:00
|
|
|
margin-top: theme('spacing.2');
|
|
|
|
margin-inline-start: calc(0 - theme('spacing.2'));
|
2022-04-08 18:36:47 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2014-05-13 16:51:28 +02:00
|
|
|
|
2022-06-30 12:23:07 +02:00
|
|
|
.w-header__subtitle {
|
2022-07-29 13:31:36 +02:00
|
|
|
margin-inline-start: theme('spacing[1.5]');
|
|
|
|
font-weight: theme('fontWeight.normal');
|
|
|
|
}
|
|
|
|
|
|
|
|
.w-header__description {
|
|
|
|
font-size: theme('fontSize.18');
|
|
|
|
font-weight: theme('fontWeight.normal');
|
2022-06-30 12:23:07 +02:00
|
|
|
}
|
|
|
|
|
2022-05-10 17:54:23 +02:00
|
|
|
// Give padding to the rows inside of headers so that nested breadcrumbs aren't padded by their parent header el.
|
2022-07-05 12:25:27 +02:00
|
|
|
// Use w-header--with-padding for headers that don't contain .row elements.
|
|
|
|
&.w-header--with-padding,
|
2022-05-10 17:54:23 +02:00
|
|
|
> .row {
|
2022-07-29 13:31:36 +02:00
|
|
|
padding-top: theme('spacing.2');
|
|
|
|
padding-bottom: theme('spacing.6');
|
2022-05-10 17:54:23 +02:00
|
|
|
padding-inline-start: 110px;
|
2022-07-29 13:31:36 +02:00
|
|
|
padding-inline-end: theme('spacing.5');
|
2022-05-10 17:54:23 +02:00
|
|
|
}
|
|
|
|
|
2022-07-05 12:25:27 +02:00
|
|
|
&.w-header--merged .w-breadcrumb {
|
2022-06-13 20:56:25 +02:00
|
|
|
padding-inline-start: $mobile-nav-indent;
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.col {
|
|
|
|
float: left;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 2em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2014-05-13 16:51:28 +02:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.left {
|
|
|
|
float: left;
|
2022-04-08 18:36:47 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.right {
|
2022-03-15 14:21:06 +01:00
|
|
|
text-align: end;
|
2015-09-25 15:17:39 +02:00
|
|
|
float: right;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2014-05-13 16:51:28 +02:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
// For case where content below header should merge with it
|
2022-07-05 12:25:27 +02:00
|
|
|
&.w-header--merged {
|
2015-09-25 15:17:39 +02:00
|
|
|
margin-bottom: 0;
|
2022-07-29 13:31:36 +02:00
|
|
|
padding-bottom: theme('spacing.1');
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2020-06-15 19:02:32 +02:00
|
|
|
|
2022-07-05 12:25:27 +02:00
|
|
|
&.w-header--no-border {
|
2021-12-21 12:13:08 +01:00
|
|
|
border: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2016-10-27 09:28:43 +02:00
|
|
|
|
2022-07-05 12:25:27 +02:00
|
|
|
&.w-header--merged.w-header--no-border {
|
2020-06-15 19:02:32 +02:00
|
|
|
padding-bottom: 0;
|
2016-10-27 09:28:43 +02:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.error-message {
|
2014-05-13 16:51:28 +02:00
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.last-updated {
|
2022-02-04 12:57:55 +01:00
|
|
|
ul {
|
2015-09-25 15:17:39 +02:00
|
|
|
padding: 0;
|
2014-05-13 16:51:28 +02:00
|
|
|
}
|
2014-05-13 18:03:31 +02:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
li {
|
|
|
|
display: inline;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 2em;
|
2014-05-13 18:03:31 +02:00
|
|
|
}
|
2021-08-18 16:55:11 +02:00
|
|
|
|
|
|
|
.avatar.small {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: 0;
|
2021-08-18 16:55:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-07-29 13:31:36 +02:00
|
|
|
font-weight: theme('fontWeight.bold');
|
2021-08-18 16:55:11 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2014-05-13 16:51:28 +02:00
|
|
|
}
|
|
|
|
|
2018-11-04 22:46:42 +01:00
|
|
|
@include media-breakpoint-up(sm) {
|
2022-07-05 12:25:27 +02:00
|
|
|
.w-header {
|
2022-05-10 17:54:23 +02:00
|
|
|
.row {
|
2022-07-25 16:20:19 +02:00
|
|
|
padding-inline-start: $desktop-nice-padding;
|
|
|
|
padding-inline-end: $desktop-nice-padding;
|
2022-07-29 13:31:36 +02:00
|
|
|
padding-top: theme('spacing.6');
|
2022-05-10 17:54:23 +02:00
|
|
|
}
|
|
|
|
|
2022-07-05 12:25:27 +02:00
|
|
|
&.w-header--merged .w-breadcrumb {
|
2022-06-13 20:56:25 +02:00
|
|
|
padding-inline-start: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-29 13:31:36 +02:00
|
|
|
.w-header__glyph {
|
|
|
|
&.avatar {
|
|
|
|
margin-inline-start: calc(0 - theme('spacing.5'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.left {
|
|
|
|
float: left;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 0;
|
2014-05-13 16:51:28 +02:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
&:first-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
float: left;
|
2014-05-13 16:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.second {
|
|
|
|
clear: none;
|
2014-05-13 16:51:28 +02:00
|
|
|
|
2016-10-27 21:43:18 +02:00
|
|
|
.right,
|
2015-11-02 15:39:36 +01:00
|
|
|
.left {
|
2015-09-25 15:17:39 +02:00
|
|
|
float: right;
|
2014-05-13 16:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.col3 {
|
2014-05-13 16:51:28 +02:00
|
|
|
@include column(3);
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2020-02-22 21:31:13 +01:00
|
|
|
.col3.actionbutton {
|
2015-09-25 15:17:39 +02:00
|
|
|
width: auto;
|
2014-05-13 16:51:28 +02:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.col6 {
|
2014-05-13 16:51:28 +02:00
|
|
|
@include column(6);
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.col9 {
|
2014-05-13 16:51:28 +02:00
|
|
|
@include column(9);
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
}
|