2020-10-19 17:26:38 -04:00
|
|
|
.d-header-wrap {
|
|
|
|
@include sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: z("header");
|
|
|
|
}
|
|
|
|
|
2014-05-26 11:33:47 -04:00
|
|
|
.d-header {
|
2018-11-21 21:21:49 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2017-09-06 10:47:48 -04:00
|
|
|
width: 100%;
|
2018-01-16 19:05:12 -05:00
|
|
|
z-index: z("header");
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--header_background);
|
2018-02-20 12:18:20 -05:00
|
|
|
box-shadow: shadow("header");
|
2020-10-19 17:26:38 -04:00
|
|
|
backface-visibility: hidden; /** do magic for scrolling performance **/
|
2017-09-06 10:47:48 -04:00
|
|
|
|
2018-11-21 21:21:49 -05:00
|
|
|
> .wrap {
|
2022-05-05 11:34:01 -04:00
|
|
|
box-sizing: border-box;
|
2022-02-01 16:36:34 -05:00
|
|
|
width: 100%;
|
2018-11-21 21:21:49 -05:00
|
|
|
height: 100%;
|
2022-07-26 23:16:34 -04:00
|
|
|
|
2018-11-21 21:21:49 -05:00
|
|
|
.contents {
|
2022-09-12 21:46:57 -04:00
|
|
|
display: grid;
|
|
|
|
grid-template-areas: "logo-wrapper extra-info panel";
|
|
|
|
grid-template-columns: auto 1fr auto;
|
|
|
|
.has-sidebar-page & {
|
|
|
|
grid-template-columns: minmax(var(--d-sidebar-width), auto) 1fr auto;
|
|
|
|
}
|
2018-11-21 21:21:49 -05:00
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
2019-07-08 19:21:19 -04:00
|
|
|
|
|
|
|
.header-row {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.logo-wrapper {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.auth-buttons {
|
|
|
|
float: right;
|
|
|
|
margin-top: 0.4em;
|
|
|
|
|
|
|
|
.login-button,
|
|
|
|
.signup-button {
|
|
|
|
padding: 8px 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-12 21:46:57 -04:00
|
|
|
.header-logo-wrapper {
|
|
|
|
grid-area: logo-wrapper;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2017-09-06 10:47:48 -04:00
|
|
|
.title {
|
2018-11-21 21:21:49 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
2018-06-08 05:49:31 -04:00
|
|
|
a,
|
|
|
|
a:visited {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary);
|
2014-05-26 11:33:47 -04:00
|
|
|
}
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#site-logo {
|
2018-11-21 21:21:49 -05:00
|
|
|
width: auto;
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
|
|
|
|
2017-11-23 11:14:51 -05:00
|
|
|
.d-icon-home {
|
2019-03-19 06:39:38 -04:00
|
|
|
font-size: $font-up-6;
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
2022-09-12 21:46:57 -04:00
|
|
|
grid-area: panel;
|
2017-09-06 10:47:48 -04:00
|
|
|
position: relative;
|
2018-02-16 15:58:10 -05:00
|
|
|
display: flex;
|
2018-11-21 21:21:49 -05:00
|
|
|
flex: 0 0 auto;
|
|
|
|
margin-left: auto;
|
2018-02-16 15:58:10 -05:00
|
|
|
align-items: center;
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.hamburger-panel,
|
|
|
|
.user-menu,
|
|
|
|
.search-menu {
|
|
|
|
width: 0; // Flexbox fix for Safari
|
2018-03-02 14:13:43 -05:00
|
|
|
}
|
|
|
|
|
2018-02-16 17:13:10 -05:00
|
|
|
.header-buttons {
|
2018-12-07 13:56:54 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-06-08 05:49:31 -04:00
|
|
|
margin-top: 0.2em;
|
2018-02-16 17:13:10 -05:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.login-button,
|
2020-02-25 08:31:04 -05:00
|
|
|
.sign-up-button {
|
2017-09-06 10:47:48 -04:00
|
|
|
padding: 6px 10px;
|
2018-06-08 05:49:31 -04:00
|
|
|
.fa {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
|
|
|
|
2020-02-25 08:31:04 -05:00
|
|
|
.login-button {
|
2017-09-06 10:47:48 -04:00
|
|
|
margin-left: 7px;
|
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
2017-09-06 10:47:48 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.header-dropdown-toggle,
|
|
|
|
.drop-down,
|
|
|
|
.panel-body {
|
|
|
|
.flagged-posts,
|
2019-01-03 12:03:01 -05:00
|
|
|
.reviewables {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--danger);
|
2018-02-20 17:31:02 -05:00
|
|
|
min-width: 6px;
|
2017-09-10 14:26:55 -04:00
|
|
|
}
|
2017-09-07 16:22:17 -04:00
|
|
|
}
|
|
|
|
|
2017-09-06 11:29:43 -04:00
|
|
|
.d-header-icons {
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 0 5px;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.icon {
|
2017-09-06 17:33:35 -04:00
|
|
|
position: relative;
|
2018-02-16 15:58:10 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 2.2857em;
|
|
|
|
height: 2.2857em;
|
2018-06-08 05:49:31 -04:00
|
|
|
padding: 0.2143em;
|
2017-09-06 11:29:43 -04:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
2018-06-08 05:49:31 -04:00
|
|
|
transition: all linear 0.15s;
|
2018-04-13 12:53:04 -04:00
|
|
|
outline: none;
|
2018-02-16 15:58:10 -05:00
|
|
|
img.avatar {
|
2019-01-17 21:47:26 -05:00
|
|
|
width: 2.1333em;
|
|
|
|
height: 2.1333em;
|
2018-02-16 15:58:10 -05:00
|
|
|
}
|
2021-02-03 11:45:54 -05:00
|
|
|
.discourse-no-touch &:hover,
|
|
|
|
.discourse-no-touch &:focus {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--primary-low);
|
2017-09-06 10:47:48 -04:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
2019-01-31 19:31:09 -05:00
|
|
|
.d-icon {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2019-01-31 19:31:09 -05:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
|
|
|
&:active {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
|
|
|
background-color: var(--primary-low);
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
|
|
|
}
|
2018-01-17 11:38:22 -05:00
|
|
|
.drop-down-mode & {
|
2017-09-06 11:29:43 -04:00
|
|
|
.active .icon {
|
|
|
|
position: relative;
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--secondary);
|
2017-09-06 11:29:43 -04:00
|
|
|
cursor: default;
|
2020-08-03 22:57:10 -04:00
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
border-left: 1px solid var(--primary-low);
|
|
|
|
border-right: 1px solid var(--primary-low);
|
2019-01-31 13:59:49 -05:00
|
|
|
.d-icon {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2019-01-31 13:59:49 -05:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
&:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
2018-01-16 19:05:12 -05:00
|
|
|
z-index: z("header") + 1; // Higher than .menu-panel
|
2017-09-06 11:29:43 -04:00
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
content: "";
|
2020-08-03 22:57:10 -04:00
|
|
|
border-top: 1px solid var(--secondary);
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
&:hover {
|
|
|
|
border-bottom: none;
|
2014-05-26 11:33:47 -04:00
|
|
|
}
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
2017-07-27 15:03:41 -04:00
|
|
|
|
2017-09-06 11:29:43 -04:00
|
|
|
.d-icon {
|
2018-02-16 15:58:10 -05:00
|
|
|
width: 100%;
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-up-4;
|
|
|
|
line-height: $line-height-large;
|
2017-09-06 11:29:43 -04:00
|
|
|
display: inline-block;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary-low-mid);
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
.notifications {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.ring {
|
|
|
|
position: absolute;
|
|
|
|
top: -9px;
|
2018-01-16 19:05:12 -05:00
|
|
|
z-index: z("base");
|
2017-09-06 11:29:43 -04:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.header-dropdown-toggle {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.badge-notification {
|
|
|
|
position: absolute;
|
2018-01-16 19:05:12 -05:00
|
|
|
z-index: z("base");
|
2017-09-06 11:29:43 -04:00
|
|
|
left: 0;
|
2018-01-12 17:27:38 -05:00
|
|
|
top: -4px;
|
2019-01-17 15:46:55 -05:00
|
|
|
min-width: 0.6em;
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
|
|
|
.unread-notifications {
|
|
|
|
left: auto;
|
2018-01-12 17:27:38 -05:00
|
|
|
right: -3px;
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--tertiary-med-or-tertiary);
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
2020-03-31 19:09:20 -04:00
|
|
|
.unread-high-priority-notifications,
|
2018-06-08 05:49:31 -04:00
|
|
|
.ring {
|
2017-09-06 11:29:43 -04:00
|
|
|
left: auto;
|
|
|
|
right: 25px;
|
2017-09-06 10:47:48 -04:00
|
|
|
}
|
2014-05-26 11:33:47 -04:00
|
|
|
}
|
|
|
|
|
2022-08-09 22:12:35 -04:00
|
|
|
.header-sidebar-toggle {
|
2022-09-12 21:46:57 -04:00
|
|
|
grid-area: hamburger;
|
2022-08-09 22:12:35 -04:00
|
|
|
button {
|
|
|
|
margin-right: 1em;
|
|
|
|
box-sizing: content-box; // matches other header icons
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
width: 2.2857em;
|
|
|
|
height: 2.2857em;
|
|
|
|
padding: 0.2143em;
|
|
|
|
&:focus,
|
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.d-icon {
|
|
|
|
width: 100%;
|
|
|
|
font-size: var(--font-up-4);
|
|
|
|
line-height: var(--line-height-large);
|
|
|
|
display: inline-block;
|
|
|
|
color: var(--header_primary-low-mid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-04 01:01:01 -04:00
|
|
|
.highlight-strong {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--highlight-medium);
|
2014-09-04 01:01:01 -04:00
|
|
|
}
|
2014-09-04 04:00:01 -04:00
|
|
|
|
2018-11-21 21:21:49 -05:00
|
|
|
// topic info in the header
|
|
|
|
.extra-info-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
line-height: $line-height-medium;
|
|
|
|
padding: 0 1.5em 0 0.5em;
|
|
|
|
// we need to hide overflow in both to truncate the title in a flexbox
|
|
|
|
overflow: hidden;
|
|
|
|
.extra-info {
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
animation: fadein 0.5s;
|
|
|
|
}
|
2020-07-15 19:30:35 -04:00
|
|
|
.title-wrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-template-areas:
|
|
|
|
"title title"
|
|
|
|
"categories extra";
|
|
|
|
grid-template-columns: auto minmax(2em, 1fr); // min must be as wide as ellipsis
|
|
|
|
align-items: baseline;
|
|
|
|
.header-title {
|
|
|
|
grid-area: title;
|
|
|
|
}
|
|
|
|
.categories-wrapper {
|
|
|
|
grid-area: categories;
|
|
|
|
}
|
|
|
|
.topic-header-extra {
|
|
|
|
grid-area: extra;
|
|
|
|
}
|
|
|
|
}
|
2018-11-21 21:21:49 -05:00
|
|
|
.topic-link {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary);
|
2018-11-21 21:21:49 -05:00
|
|
|
display: block;
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
.topic-statuses {
|
2018-12-06 19:22:04 -05:00
|
|
|
.d-icon {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary-medium);
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
.d-icon-envelope {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--danger);
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
}
|
2019-08-28 04:18:27 -04:00
|
|
|
.header-title {
|
2020-07-15 19:30:35 -04:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2018-11-21 21:21:49 -05:00
|
|
|
font-size: $font-up-3;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.categories-wrapper {
|
|
|
|
display: inline-flex;
|
2019-03-19 06:39:38 -04:00
|
|
|
flex: 0 1 auto;
|
2020-07-15 19:30:35 -04:00
|
|
|
@include ellipsis;
|
2019-03-19 06:39:38 -04:00
|
|
|
.badge-wrapper {
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.badge-wrapper {
|
2020-07-15 19:30:35 -04:00
|
|
|
margin-right: 0.7em;
|
|
|
|
min-width: 2.75em; // min needed for ellipsis
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
2018-12-07 20:01:38 -05:00
|
|
|
.badge-wrapper {
|
|
|
|
&.bullet,
|
|
|
|
&.bar,
|
|
|
|
&.none {
|
|
|
|
span.badge-category {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary-high);
|
2018-12-07 20:01:38 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-11-21 21:21:49 -05:00
|
|
|
.topic-header-extra {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
max-width: 100%;
|
|
|
|
.discourse-tags {
|
2021-06-04 17:16:54 -04:00
|
|
|
display: inline;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary-high);
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2018-11-21 21:21:49 -05:00
|
|
|
.discourse-tag {
|
2019-01-05 10:09:44 -05:00
|
|
|
display: inline; // tags need to stay inline in order for them to truncate
|
2020-07-15 19:30:35 -04:00
|
|
|
vertical-align: unset;
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-30 09:40:40 -05:00
|
|
|
|
2019-01-05 10:09:44 -05:00
|
|
|
// PM header participants
|
|
|
|
|
|
|
|
$avatar-height: 1.641em;
|
|
|
|
$mobile-avatar-height: 1.532em;
|
|
|
|
|
2018-12-30 09:40:40 -05:00
|
|
|
.topic-header-participants {
|
2019-01-05 10:09:44 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: $font-down-1;
|
2020-07-15 19:30:35 -04:00
|
|
|
@include ellipsis;
|
2019-01-05 11:11:53 -05:00
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2019-01-05 10:09:44 -05:00
|
|
|
.trigger-user-card,
|
|
|
|
.trigger-group-card {
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.trigger-user-card {
|
|
|
|
.icon {
|
|
|
|
height: $avatar-height;
|
|
|
|
.mobile-view & {
|
|
|
|
height: $mobile-avatar-height;
|
|
|
|
}
|
|
|
|
display: inline-block;
|
|
|
|
img {
|
|
|
|
height: 100%;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
2018-12-30 09:40:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.trigger-group-card {
|
2019-01-05 10:09:44 -05:00
|
|
|
padding: 0 5px;
|
2020-08-03 22:57:10 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2019-01-02 04:56:42 -05:00
|
|
|
border-radius: 0.25em;
|
2020-07-15 19:30:35 -04:00
|
|
|
min-width: 3em;
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2019-01-02 04:56:42 -05:00
|
|
|
|
2019-01-05 10:09:44 -05:00
|
|
|
.icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: $avatar-height;
|
|
|
|
.mobile-view & {
|
|
|
|
height: $mobile-avatar-height;
|
|
|
|
}
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2019-01-02 04:56:42 -05:00
|
|
|
|
|
|
|
.d-icon {
|
2019-01-05 10:09:44 -05:00
|
|
|
margin-right: 5px;
|
2019-01-02 04:56:42 -05:00
|
|
|
}
|
|
|
|
}
|
2019-01-05 10:09:44 -05:00
|
|
|
|
|
|
|
span {
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2019-01-05 10:09:44 -05:00
|
|
|
}
|
2018-12-30 09:40:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.more-participants {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header_primary-high);
|
2019-01-05 10:09:44 -05:00
|
|
|
margin-left: 5px;
|
2018-12-30 09:40:40 -05:00
|
|
|
}
|
|
|
|
}
|