2014-05-26 23:33:47 +08:00
|
|
|
.d-header {
|
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;
|
|
|
|
box-shadow: 0 2px 4px -1px rgba(0,0,0, .25);
|
|
|
|
|
|
|
|
.docked & {
|
|
|
|
position: fixed;
|
|
|
|
backface-visibility: hidden; /** do magic for scrolling performance **/
|
|
|
|
}
|
|
|
|
|
|
|
|
.contents {
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
float: left;
|
|
|
|
a, a:visited {
|
|
|
|
color: $header_primary;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2017-09-06 22:47:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#site-logo {
|
|
|
|
max-height: 40px;
|
|
|
|
}
|
|
|
|
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-home {
|
2017-09-06 22:47:48 +08:00
|
|
|
font-size: 1.643em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
|
|
|
float: right;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.login-button, button.sign-up-button {
|
|
|
|
float: left;
|
|
|
|
margin-top: 7px;
|
|
|
|
padding: 6px 10px;
|
|
|
|
.fa { margin-right: 3px; }
|
|
|
|
}
|
|
|
|
|
|
|
|
button.login-button {
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
|
2017-09-06 23:29:43 +08:00
|
|
|
.d-header-icons {
|
2017-09-06 22:47:48 +08:00
|
|
|
float: right;
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-06 22:47:48 +08:00
|
|
|
|
2017-12-01 06:29:29 +08:00
|
|
|
.header-dropdown-toggle, .drop-down, .panel-body {
|
2017-09-11 02:26:55 +08:00
|
|
|
.flagged-posts, .queued-posts {
|
|
|
|
background: $danger;
|
|
|
|
}
|
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;
|
2017-09-06 23:29:43 +08:00
|
|
|
display: block;
|
|
|
|
padding: 3px;
|
|
|
|
color: dark-light-choose(scale-color($header_primary, $lightness: 50%), $header_primary);
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
transition: all linear .15s;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
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 {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
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
|
|
|
}
|
|
|
|
.unread-private-messages, .ring {
|
|
|
|
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;
|
|
|
|
}
|