2014-05-26 23:33:47 +08:00
|
|
|
.d-header {
|
|
|
|
min-width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1001;
|
|
|
|
background-color: $header_background;
|
2014-08-06 21:31:13 +08:00
|
|
|
box-shadow: 0 2px 4px -2px rgba(0,0,0, .25);
|
2014-05-26 23:33:47 +08:00
|
|
|
|
|
|
|
.docked & {
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.contents {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
display: table;
|
|
|
|
float: left;
|
|
|
|
height: 40px;
|
|
|
|
> a {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#site-logo {
|
|
|
|
max-height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa-home {
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
|
|
|
float: right;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.current-username {
|
|
|
|
float: left;
|
|
|
|
a {
|
|
|
|
color: $header_primary;
|
|
|
|
font-size: 14px;
|
2014-07-04 11:40:49 +08:00
|
|
|
max-width: 200px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
}
|
2014-08-13 01:47:01 +08:00
|
|
|
button.login-button, button.sign-up-button {
|
2014-05-26 23:33:47 +08:00
|
|
|
float: left;
|
|
|
|
margin-top: 7px;
|
|
|
|
padding: 6px 10px;
|
|
|
|
.fa { margin-right: 3px; }
|
|
|
|
}
|
2014-08-13 01:47:01 +08:00
|
|
|
|
|
|
|
button.sign-up-button {
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
.icons {
|
|
|
|
float: left;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 0 5px;
|
|
|
|
list-style: none;
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
display: block;
|
|
|
|
padding: 3px;
|
|
|
|
color: scale-color($header_primary, $lightness: 50%);
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
background-color: scale-color-diff();
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
color: $primary;
|
|
|
|
background-color: scale-color-diff();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.active .icon {
|
|
|
|
position: relative;
|
|
|
|
color: #7b7b7b;
|
|
|
|
background-color: $secondary;
|
|
|
|
cursor: default;
|
|
|
|
border-top: 1px solid scale-color-diff();
|
|
|
|
border-left: 1px solid scale-color-diff();
|
|
|
|
border-right: 1px solid scale-color-diff();
|
|
|
|
&:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1101;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
content: "";
|
|
|
|
border-top: 1px solid $secondary;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[class^="fa fa-"] {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 32px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.notifications {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.badge-notification {
|
|
|
|
position: absolute;
|
|
|
|
top: -9px;
|
|
|
|
z-index: 1;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.unread-notifications {
|
|
|
|
right: -4px;
|
2014-07-26 11:06:14 +08:00
|
|
|
background-color: scale-color($tertiary, $lightness: 50%);
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
.unread-private-messages {
|
|
|
|
left: -4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.flagged-posts {
|
2014-07-26 11:06:14 +08:00
|
|
|
background: $danger;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-dropdown {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
background: $secondary;
|
|
|
|
max-height: 417px;
|
|
|
|
top: 100%;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1100;
|
|
|
|
overflow: auto;
|
|
|
|
border: 1px solid scale-color-diff();
|
2014-06-04 09:56:50 +08:00
|
|
|
padding: 5px;
|
|
|
|
|
2014-08-06 21:31:13 +08:00
|
|
|
@include box-shadow(0 2px 2px rgba(0,0,0, .4));
|
2014-05-26 23:33:47 +08:00
|
|
|
|
2014-08-05 13:01:01 +08:00
|
|
|
// note these topic counts only appear for anons in the category hamburger drop down
|
|
|
|
b.topics-count {
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2014-07-04 14:20:41 +08:00
|
|
|
|
|
|
|
li:not(.category):not(.heading) {
|
2014-05-26 23:33:47 +08:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 16px;
|
2014-06-04 09:56:50 +08:00
|
|
|
|
2014-07-04 14:20:41 +08:00
|
|
|
.fa {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
2014-06-04 09:56:50 +08:00
|
|
|
|
2014-07-04 14:20:41 +08:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding: 5px;
|
2014-06-28 07:42:43 +08:00
|
|
|
}
|
2014-06-04 09:56:50 +08:00
|
|
|
|
2014-07-04 14:20:41 +08:00
|
|
|
&:hover a:not(.badge-notification) {
|
2014-08-12 12:11:58 +08:00
|
|
|
background-color: dark-light-diff(rgba($highlight,.7), $secondary, 50%, -70%);
|
2014-07-04 14:20:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
button {margin-left: 5px;}
|
|
|
|
}
|
|
|
|
|
|
|
|
.heading a:hover {
|
2014-08-12 12:11:58 +08:00
|
|
|
background-color: dark-light-diff($highlight, $secondary, 50%, -70%);
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2014-06-04 21:39:43 +08:00
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
.selected {
|
2014-08-06 21:31:13 +08:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 90%, -60%);
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
2014-06-04 09:56:50 +08:00
|
|
|
|
|
|
|
// Notifications
|
2014-05-26 23:33:47 +08:00
|
|
|
&#notifications-dropdown {
|
2014-08-06 05:36:37 +08:00
|
|
|
.fa { color: scale-color($primary, $lightness: 50%); }
|
|
|
|
.icon { color: scale-color($primary, $lightness: 30%); }
|
2014-05-26 23:33:47 +08:00
|
|
|
li {
|
2014-08-12 12:11:58 +08:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 90%, -60%);
|
|
|
|
padding: 4px 0 3px 2px;
|
2014-08-06 05:36:37 +08:00
|
|
|
i {
|
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
2014-08-07 01:08:12 +08:00
|
|
|
padding-top: 2px;
|
2014-08-06 05:36:37 +08:00
|
|
|
}
|
|
|
|
span { color: $primary; }
|
|
|
|
&:hover a { background: transparent; }
|
|
|
|
a { padding: 1px; }
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
2014-06-04 09:59:42 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
.read {
|
|
|
|
background-color: $secondary;
|
|
|
|
}
|
|
|
|
.none {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
.loading {
|
|
|
|
padding: 10px;
|
|
|
|
display: block;
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
font-size: 24px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-04 21:39:43 +08:00
|
|
|
.category-links li:not(.heading) a {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2014-06-04 09:56:50 +08:00
|
|
|
|
2014-06-05 02:54:24 +08:00
|
|
|
|
|
|
|
// Site map
|
|
|
|
|
|
|
|
&#site-map-dropdown {
|
2014-07-04 14:20:41 +08:00
|
|
|
.heading {
|
|
|
|
padding: 5px 5px 5px 0;
|
|
|
|
a {padding: 0 5px;}
|
|
|
|
}
|
2014-06-05 02:54:24 +08:00
|
|
|
}
|
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
// Search
|
|
|
|
|
2014-06-04 21:39:43 +08:00
|
|
|
&#search-dropdown {
|
|
|
|
.heading {
|
2014-07-04 14:20:41 +08:00
|
|
|
padding: 5px 0 5px 5px;
|
|
|
|
.filter {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
2014-06-04 21:39:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
input[type='text'] {
|
2014-06-25 23:39:46 +08:00
|
|
|
width: 93%;
|
2014-05-26 23:33:47 +08:00
|
|
|
height: 22px;
|
|
|
|
margin: 5px;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2014-06-20 02:04:23 +08:00
|
|
|
|
|
|
|
.search-context {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
.searching {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2014-06-06 15:15:14 +08:00
|
|
|
top: 17px;
|
|
|
|
right: 15px;
|
2014-06-17 15:55:00 +08:00
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
|
|
|
background: {
|
|
|
|
image: image-url("spinner_96.gif");
|
|
|
|
repeat: no-repeat;
|
|
|
|
position: 0px 50%;
|
|
|
|
size: 18px;
|
|
|
|
};
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
.no-results {
|
2014-06-04 09:56:50 +08:00
|
|
|
padding: 5px;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
.filter {
|
|
|
|
float: right;
|
2014-06-04 09:56:50 +08:00
|
|
|
padding: 0;
|
|
|
|
&:hover {background: transparent;}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Categories
|
|
|
|
|
|
|
|
.category {
|
|
|
|
float: left;
|
|
|
|
background-color: transparent;
|
|
|
|
line-height: 20px;
|
2014-06-04 09:56:50 +08:00
|
|
|
margin: 5px 5px 0 5px;
|
2014-08-05 12:17:31 +08:00
|
|
|
.badge-notification {
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&#user-dropdown {
|
|
|
|
width: 118px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
padding: 2px 8px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
.fa {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|