2014-05-26 23:33:47 +08:00
|
|
|
.d-header {
|
2014-09-10 02:42:44 +08:00
|
|
|
width: 100%;
|
2014-05-26 23:33:47 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1001;
|
|
|
|
background-color: $header_background;
|
2014-10-11 06:31:54 +08:00
|
|
|
box-shadow: 0 2px 4px -1px rgba(0,0,0, .25);
|
2014-05-26 23:33:47 +08:00
|
|
|
|
|
|
|
.docked & {
|
|
|
|
position: fixed;
|
2015-01-27 09:47:43 +08:00
|
|
|
backface-visibility: hidden; /** do magic for scrolling performance **/
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.contents {
|
2014-10-07 23:41:04 +08:00
|
|
|
margin: 8px 0;
|
2015-08-05 06:56:05 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
|
2015-08-05 06:56:05 +08:00
|
|
|
.title {
|
|
|
|
float: left;
|
2015-02-19 15:55:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.valign-helper {
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#site-logo {
|
|
|
|
max-height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa-home {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.643em;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
2015-08-05 06:56:05 +08:00
|
|
|
float: right;
|
2014-05-26 23:33:47 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2015-07-06 20:42:37 +08:00
|
|
|
.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
|
|
|
|
2014-08-13 01:51:00 +08:00
|
|
|
button.login-button {
|
2014-08-13 01:47:01 +08:00
|
|
|
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;
|
2014-10-20 21:54:36 +08:00
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
display: block;
|
|
|
|
padding: 3px;
|
2015-08-19 06:11:49 +08:00
|
|
|
color: dark-light-choose(scale-color($header_primary, $lightness: 50%), $header_primary);
|
2014-05-26 23:33:47 +08:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
2014-12-23 19:09:17 +08:00
|
|
|
transition: all linear .15s;
|
2014-05-26 23:33:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
2015-06-15 10:59:49 +08:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-05-26 23:33:47 +08:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
color: $primary;
|
2015-06-15 10:59:49 +08:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.active .icon {
|
|
|
|
position: relative;
|
|
|
|
color: #7b7b7b;
|
|
|
|
background-color: $secondary;
|
|
|
|
cursor: default;
|
2015-06-15 10:59:49 +08:00
|
|
|
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
|
|
|
border-left: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
|
|
|
border-right: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-05-26 23:33:47 +08:00
|
|
|
&: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;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.714em;
|
2014-05-26 23:33:47 +08:00
|
|
|
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;
|
2015-06-15 10:59:49 +08:00
|
|
|
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-06-04 09:56:50 +08:00
|
|
|
padding: 5px;
|
|
|
|
|
2014-10-11 06:02:46 +08:00
|
|
|
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-08-26 03:14:47 +08:00
|
|
|
font-size: 11px;
|
2014-08-05 13:01:01 +08:00
|
|
|
}
|
|
|
|
|
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-12-16 11:12:56 +08:00
|
|
|
font-size: 0.929em;
|
2014-05-26 23:33:47 +08:00
|
|
|
line-height: 16px;
|
2014-06-04 09:56:50 +08:00
|
|
|
|
2014-07-04 14:20:41 +08:00
|
|
|
.fa {
|
2014-09-06 04:17:26 +08:00
|
|
|
font-size: inherit;
|
2014-07-04 14:20:41 +08:00
|
|
|
}
|
2014-06-04 09:56:50 +08:00
|
|
|
|
2014-07-04 14:20:41 +08:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding: 5px;
|
2014-12-23 19:09:17 +08:00
|
|
|
transition: all linear .15s;
|
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-13 12:03:29 +08:00
|
|
|
background-color: dark-light-diff($highlight, $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 {
|
2015-05-20 09:10:40 +08:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
|
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 {
|
2015-05-20 09:10:40 +08:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
|
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; }
|
2014-08-13 12:03:29 +08:00
|
|
|
&:hover a { background-color: dark-light-diff($highlight, $secondary, 50%, -70%); }
|
|
|
|
a { padding: 4px 0 3px 2px; }
|
2014-08-06 05:36:37 +08:00
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
2014-06-04 09:59:42 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2014-09-08 23:11:56 +08:00
|
|
|
.is-warning {
|
|
|
|
i.fa-envelope-o {
|
|
|
|
&:before {
|
|
|
|
content: "\f0e0";
|
|
|
|
}
|
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
.read {
|
|
|
|
background-color: $secondary;
|
|
|
|
}
|
|
|
|
.none {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2014-11-13 02:37:36 +08:00
|
|
|
.spinner {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0 auto;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2014-08-13 14:32:10 +08:00
|
|
|
/* as a big ol' click target, don't let text inside be selected */
|
|
|
|
@include unselectable;
|
2014-05-26 23:33:47 +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;
|
2015-06-26 23:24:56 +08:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
2014-07-04 14:20:41 +08:00
|
|
|
}
|
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-10-19 11:07:55 +08:00
|
|
|
width: 518px;
|
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-12-03 06:10:14 +08:00
|
|
|
label { margin-bottom: 0; }
|
2014-06-20 02:04:23 +08:00
|
|
|
}
|
|
|
|
|
2014-05-26 23:33:47 +08:00
|
|
|
.searching {
|
|
|
|
position: absolute;
|
2014-11-06 09:13:51 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
.spinner {
|
2014-11-11 22:22:14 +08:00
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 20px 0 0 0;
|
2014-11-06 09:13:51 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2014-09-05 17:19:00 +08:00
|
|
|
// I am ghetto using this to display "Show More".. be warned
|
2014-05-26 23:33:47 +08:00
|
|
|
.no-results {
|
2014-06-04 09:56:50 +08:00
|
|
|
padding: 5px;
|
2014-10-19 11:07:55 +08:00
|
|
|
text-align: center;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
.filter {
|
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;
|
2015-01-29 14:34:05 +08:00
|
|
|
width: 45%;
|
2014-06-04 09:56:50 +08:00
|
|
|
margin: 5px 5px 0 5px;
|
2015-03-05 11:15:21 +08:00
|
|
|
.box {margin-top: 0;}
|
2014-08-05 12:17:31 +08:00
|
|
|
.badge-notification {
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
background-color: transparent;
|
2015-03-05 11:15:21 +08:00
|
|
|
vertical-align: top;
|
|
|
|
padding: 5px 5px 2px 5px;
|
2014-08-05 12:17:31 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&#user-dropdown {
|
|
|
|
width: 118px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
padding: 2px 8px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
.fa {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-09-03 10:13:13 +08:00
|
|
|
|
2015-01-21 06:51:12 +08:00
|
|
|
.search-link {
|
|
|
|
.badge-category-parent {
|
|
|
|
line-height: 0.8em;
|
|
|
|
}
|
|
|
|
.topic-title {
|
|
|
|
margin-right: 6px;
|
2014-09-03 10:13:13 +08:00
|
|
|
}
|
|
|
|
|
2015-01-21 06:51:12 +08:00
|
|
|
.topic-statuses {
|
|
|
|
float: none;
|
|
|
|
display: inline-block;
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
margin: 0;
|
|
|
|
.fa {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2014-09-03 10:13:13 +08:00
|
|
|
}
|
2014-09-04 13:01:01 +08:00
|
|
|
|
|
|
|
.highlight-strong {
|
|
|
|
background-color: dark-light-diff($highlight, $secondary, 40%, -50%);
|
|
|
|
}
|
2014-09-04 16:00:01 +08:00
|
|
|
|
|
|
|
.search-highlight {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2014-10-18 15:00:38 +08:00
|
|
|
|
|
|
|
.search-context .show-help {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-context {
|
|
|
|
min-height: 30px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2014-10-27 06:16:51 +08:00
|
|
|
.d-dropdown#search-dropdown {
|
|
|
|
max-height: none;
|
|
|
|
overflow: inherit;
|
|
|
|
}
|
|
|
|
|
2014-10-18 15:00:38 +08:00
|
|
|
#search-dropdown .results {
|
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|