2014-05-26 23:33:47 +08:00
|
|
|
.d-header {
|
2018-11-22 10:21:49 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2017-09-06 22:47:48 +08:00
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("header");
|
2017-09-06 22:47:48 +08:00
|
|
|
background-color: $header_background;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("header");
|
2017-09-06 22:47:48 +08:00
|
|
|
|
2018-11-22 10:21:49 +08:00
|
|
|
> .wrap {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
.contents {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-06 22:47:48 +08:00
|
|
|
.docked & {
|
|
|
|
position: fixed;
|
2018-06-08 17:49:31 +08:00
|
|
|
backface-visibility: hidden; /** do magic for scrolling performance **/
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2018-11-22 10:21:49 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
2018-06-08 17:49:31 +08:00
|
|
|
a,
|
|
|
|
a:visited {
|
2017-09-06 22:47:48 +08:00
|
|
|
color: $header_primary;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#site-logo {
|
2018-11-22 10:21:49 +08:00
|
|
|
width: auto;
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-home {
|
2018-11-22 10:21:49 +08:00
|
|
|
font-size: $font-up-5;
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
|
|
|
position: relative;
|
2018-02-17 04:58:10 +08:00
|
|
|
display: flex;
|
2018-11-22 10:21:49 +08:00
|
|
|
flex: 0 0 auto;
|
|
|
|
margin-left: auto;
|
2018-02-17 04:58:10 +08:00
|
|
|
align-items: center;
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.hamburger-panel,
|
|
|
|
.user-menu,
|
|
|
|
.search-menu {
|
|
|
|
width: 0; // Flexbox fix for Safari
|
2018-03-03 03:13:43 +08:00
|
|
|
}
|
|
|
|
|
2018-02-17 06:13:10 +08:00
|
|
|
.header-buttons {
|
2018-12-08 02:56:54 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-06-08 17:49:31 +08:00
|
|
|
margin-top: 0.2em;
|
2018-02-17 06:13:10 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.login-button,
|
|
|
|
button.sign-up-button {
|
2017-09-06 22:47:48 +08:00
|
|
|
padding: 6px 10px;
|
2018-06-08 17:49:31 +08:00
|
|
|
.fa {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
button.login-button {
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
2017-09-06 22:47:48 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.header-dropdown-toggle,
|
|
|
|
.drop-down,
|
|
|
|
.panel-body {
|
|
|
|
.flagged-posts,
|
|
|
|
.queued-posts {
|
2017-09-11 02:26:55 +08:00
|
|
|
background: $danger;
|
2018-02-21 06:31:02 +08:00
|
|
|
min-width: 6px;
|
2017-09-11 02:26:55 +08:00
|
|
|
}
|
2017-09-08 04:22:17 +08:00
|
|
|
}
|
|
|
|
|
2017-09-06 23:29:43 +08:00
|
|
|
.d-header-icons {
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 0 5px;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.icon {
|
2017-09-07 05:33:35 +08:00
|
|
|
position: relative;
|
2018-02-17 04:58:10 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 2.2857em;
|
|
|
|
height: 2.2857em;
|
2018-06-08 17:49:31 +08:00
|
|
|
padding: 0.2143em;
|
|
|
|
color: dark-light-choose(
|
|
|
|
scale-color($header_primary, $lightness: 50%),
|
|
|
|
$header_primary
|
|
|
|
);
|
2017-09-06 23:29:43 +08:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: all linear 0.15s;
|
2018-04-14 00:53:04 +08:00
|
|
|
outline: none;
|
2018-02-17 04:58:10 +08:00
|
|
|
img.avatar {
|
|
|
|
width: 2.2857em;
|
|
|
|
height: 2.2857em;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-09-06 23:29:43 +08:00
|
|
|
color: $primary;
|
2018-02-17 04:58:10 +08:00
|
|
|
background-color: $primary-low;
|
2017-09-06 22:47:48 +08:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
color: $primary;
|
|
|
|
background-color: $primary-low;
|
|
|
|
}
|
|
|
|
}
|
2018-01-18 00:38:22 +08:00
|
|
|
.drop-down-mode & {
|
2017-09-06 23:29:43 +08:00
|
|
|
.active .icon {
|
|
|
|
position: relative;
|
|
|
|
color: #7b7b7b;
|
|
|
|
background-color: $secondary;
|
|
|
|
cursor: default;
|
|
|
|
border-top: 1px solid $primary-low;
|
|
|
|
border-left: 1px solid $primary-low;
|
|
|
|
border-right: 1px solid $primary-low;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("header") + 1; // Higher than .menu-panel
|
2017-09-06 23:29:43 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
content: "";
|
|
|
|
border-top: 1px solid $secondary;
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
&:hover {
|
|
|
|
border-bottom: none;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
2017-07-28 03:03:41 +08:00
|
|
|
|
2017-09-06 23:29:43 +08:00
|
|
|
.d-icon {
|
2018-02-17 04:58:10 +08:00
|
|
|
width: 100%;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-4;
|
|
|
|
line-height: $line-height-large;
|
2017-09-06 23:29:43 +08:00
|
|
|
display: inline-block;
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
.notifications {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.ring {
|
|
|
|
position: absolute;
|
|
|
|
top: -9px;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base");
|
2017-09-06 23:29:43 +08:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.header-dropdown-toggle {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.badge-notification {
|
|
|
|
position: absolute;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base");
|
2017-09-06 23:29:43 +08:00
|
|
|
left: 0;
|
2018-01-13 06:27:38 +08:00
|
|
|
top: -4px;
|
2017-09-07 05:33:35 +08:00
|
|
|
min-width: 6px;
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
|
|
|
.unread-notifications {
|
|
|
|
left: auto;
|
2018-01-13 06:27:38 +08:00
|
|
|
right: -3px;
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: dark-light-choose($tertiary-medium, $tertiary);
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.unread-private-messages,
|
|
|
|
.ring {
|
2017-09-06 23:29:43 +08:00
|
|
|
left: auto;
|
|
|
|
right: 25px;
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
2014-09-04 13:01:01 +08:00
|
|
|
.highlight-strong {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2014-09-04 13:01:01 +08:00
|
|
|
}
|
2014-09-04 16:00:01 +08:00
|
|
|
|
|
|
|
.search-highlight {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2014-10-18 15:00:38 +08:00
|
|
|
|
2014-10-18 15:12:48 +08:00
|
|
|
#search-help table td {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
2014-11-10 18:31:15 +08:00
|
|
|
|
|
|
|
// we don't need this X to clear field
|
|
|
|
#search-term::-ms-clear {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-11-22 10:21:49 +08:00
|
|
|
|
|
|
|
// topic info in the header
|
|
|
|
.extra-info-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex: 1 1 0%; // unit on flex-basis is required for IE11
|
|
|
|
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%;
|
|
|
|
-webkit-animation: fadein 0.5s;
|
|
|
|
animation: fadein 0.5s;
|
|
|
|
}
|
|
|
|
.topic-link {
|
|
|
|
color: $header_primary;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
.topic-statuses {
|
2018-12-07 08:22:04 +08:00
|
|
|
.d-icon {
|
|
|
|
color: $header_primary-medium;
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
.d-icon-envelope {
|
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
margin: 0 0 0.25em 0;
|
|
|
|
font-size: $font-up-3;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.categories-wrapper {
|
|
|
|
display: inline-flex;
|
|
|
|
max-width: 100%;
|
|
|
|
// only truncate the last category name.
|
|
|
|
> a:last-of-type {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badge-wrapper {
|
|
|
|
margin-right: 8px;
|
2018-12-09 11:33:11 +08:00
|
|
|
&.bullet {
|
2019-01-09 05:25:11 +08:00
|
|
|
padding-top: 1px; // alignment hack
|
2018-12-09 11:33:11 +08:00
|
|
|
}
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
.badge-wrapper.bullet {
|
|
|
|
.badge-category-parent-bg,
|
|
|
|
.badge-category-bg {
|
|
|
|
min-width: 5px;
|
|
|
|
}
|
|
|
|
}
|
2018-12-08 09:01:38 +08:00
|
|
|
.badge-wrapper {
|
|
|
|
&.bullet,
|
|
|
|
&.bar,
|
|
|
|
&.none {
|
|
|
|
span.badge-category {
|
|
|
|
color: $header_primary-high;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-11-22 10:21:49 +08:00
|
|
|
.topic-header-extra {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
max-width: 100%;
|
|
|
|
flex: 1 0 0%; // unit on flex-basis is required for IE11
|
|
|
|
.discourse-tags {
|
2018-12-08 09:01:38 +08:00
|
|
|
color: $header_primary-high;
|
2018-11-22 10:21:49 +08:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
.discourse-tag {
|
2019-01-05 23:09:44 +08:00
|
|
|
display: inline; // tags need to stay inline in order for them to truncate
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-01-05 23:09:44 +08:00
|
|
|
// the tag container should shrink
|
|
|
|
.topic-header-extra {
|
|
|
|
min-width: 1px; // 1px value is needed to avoid IE11 flexbox bug
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
}
|
2018-12-30 22:40:40 +08:00
|
|
|
|
2019-01-05 23:09:44 +08:00
|
|
|
// PM header participants
|
|
|
|
|
|
|
|
$avatar-height: 1.641em;
|
|
|
|
$mobile-avatar-height: 1.532em;
|
|
|
|
|
2018-12-30 22:40:40 +08:00
|
|
|
.topic-header-participants {
|
2019-01-05 23:09:44 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
font-size: $font-down-1;
|
2019-01-06 00:11:53 +08:00
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2019-01-05 23:09:44 +08: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 22:40:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.trigger-group-card {
|
2019-01-05 23:09:44 +08:00
|
|
|
padding: 0 5px;
|
2019-01-02 17:56:42 +08:00
|
|
|
border: 1px solid $primary-low;
|
|
|
|
border-radius: 0.25em;
|
2019-01-05 23:09:44 +08:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-01-02 17:56:42 +08:00
|
|
|
|
2019-01-05 23:09:44 +08:00
|
|
|
.icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: $avatar-height;
|
|
|
|
.mobile-view & {
|
|
|
|
height: $mobile-avatar-height;
|
|
|
|
}
|
2019-01-02 17:56:42 +08:00
|
|
|
color: $primary-high;
|
|
|
|
|
|
|
|
.d-icon {
|
2019-01-05 23:09:44 +08:00
|
|
|
margin-right: 5px;
|
2019-01-02 17:56:42 +08:00
|
|
|
}
|
|
|
|
}
|
2019-01-05 23:09:44 +08:00
|
|
|
|
|
|
|
span {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2018-12-30 22:40:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.more-participants {
|
|
|
|
color: $header_primary-high;
|
2019-01-05 23:09:44 +08:00
|
|
|
margin-left: 5px;
|
2018-12-30 22:40:40 +08:00
|
|
|
}
|
|
|
|
}
|