2013-09-06 03:37:07 +08:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
|
|
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Discourse header
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.d-header {
|
|
|
|
min-width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1000;
|
2014-02-24 09:47:44 +08:00
|
|
|
box-shadow: 0 1px 3px rgba($primary_shadow_color, .2);
|
|
|
|
background-color: $primary_background_color;
|
2014-01-09 01:43:37 +08:00
|
|
|
padding-right: 3px;
|
|
|
|
padding-top: 3px;
|
2013-09-06 03:37:07 +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 {
|
2013-11-09 00:29:39 +08:00
|
|
|
max-width: 122px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa-home {
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 20px;
|
|
|
|
line-height: 40px;
|
2014-01-09 01:43:37 +08:00
|
|
|
padding-right: 3px;
|
|
|
|
padding-top: 3px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.panel {
|
|
|
|
float: right;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.current-username {
|
|
|
|
float: left;
|
|
|
|
a {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $primary_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 14px;
|
|
|
|
line-height: 40px;
|
|
|
|
}
|
|
|
|
button {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.icons {
|
|
|
|
float: left;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 0 15px;
|
|
|
|
list-style: none;
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
&:first-child .icon {
|
|
|
|
}
|
|
|
|
&:first-child.active .icon {
|
|
|
|
}
|
|
|
|
&:last-child .icon {
|
2014-02-24 09:47:44 +08:00
|
|
|
border-right: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
display: block;
|
2014-02-24 09:47:44 +08:00
|
|
|
border-top: 1px solid $primary_border_color;
|
|
|
|
border-bottom: 1px solid $primary_border_color;
|
|
|
|
border-left: 1px solid $primary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
padding: 3px;
|
|
|
|
color: $nav-button-color;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
|
|
color: $nav-button-color-hover;
|
|
|
|
background-color: $nav-button-background-color-hover;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
color: $nav-button-color-active;
|
|
|
|
background-color: $nav-button-background-color-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.active .icon {
|
|
|
|
position: relative;
|
|
|
|
color: #7b7b7b;
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $primary_background_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
cursor: default;
|
2014-02-24 09:47:44 +08:00
|
|
|
@include box-shadow((6px 0 6px -6px rgba($primary_shadow_color, 0.2), -6px 0 6px -6px rgba($primary_shadow_color, 0.2), inset 0 13px 13px -13px rgba($primary_shadow_color, 0.1)));
|
2013-09-06 03:37:07 +08:00
|
|
|
&:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1101;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
content: "";
|
2014-02-24 09:47:44 +08:00
|
|
|
border-top: 1px solid $tertiary_border_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-12-10 05:27:49 +08:00
|
|
|
[class^="fa fa-"] {
|
2013-09-06 03:37:07 +08:00
|
|
|
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-02-24 09:47:44 +08:00
|
|
|
background-color: $emphasis_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.unread-private-messages {
|
|
|
|
left: -4px;
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $success_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.flagged-posts {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $warning_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#main {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main-outlet {
|
|
|
|
padding-top: 75px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdowns
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.d-dropdown {
|
|
|
|
display: none;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 320px;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1100;
|
|
|
|
margin-top: -1px;
|
2014-02-24 09:47:44 +08:00
|
|
|
border: 1px solid $primary_border_color;
|
|
|
|
background-color: $primary_background_color;
|
|
|
|
@include box-shadow(0 3px 3px rgba($primary_shadow_color, .4));
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
// Common
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
padding: 5px;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 16px;
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2013-09-06 03:37:07 +08:00
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.heading {
|
2014-02-24 09:47:44 +08:00
|
|
|
border-top: 1px solid $primary_border_color;
|
|
|
|
|
|
|
|
border-bottom: 1px solid $primary_border_color;
|
|
|
|
color: $primary_text_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 15px;
|
|
|
|
}
|
|
|
|
.selected {
|
|
|
|
background-color: $header-item-highlight;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Notifications
|
|
|
|
|
|
|
|
&#notifications-dropdown {
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: lighten($primary_text_color, 50%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
li {
|
|
|
|
background-color: $header-item-highlight;
|
|
|
|
}
|
|
|
|
.read {
|
2014-02-24 09:47:44 +08:00
|
|
|
background-color: $primary_background_color;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.none {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Search
|
|
|
|
|
|
|
|
input[type='text'] {
|
|
|
|
width: 298px;
|
|
|
|
height: 22px;
|
|
|
|
margin: 5px;
|
|
|
|
padding: 5px;
|
|
|
|
&:focus {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.searching {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 13px;
|
|
|
|
right: 13px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: lighten($primary_text_color, 50%);
|
2013-09-06 03:37:07 +08:00
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
.no-results {
|
|
|
|
padding: 0 5px 5px;
|
|
|
|
}
|
|
|
|
.filter {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Categories
|
|
|
|
|
|
|
|
.category {
|
|
|
|
float: left;
|
|
|
|
background-color: transparent;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
2014-02-12 09:56:49 +08:00
|
|
|
|
|
|
|
&#user-dropdown {
|
2014-02-14 03:43:07 +08:00
|
|
|
width: 155px;
|
2014-02-12 09:56:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
padding: 2px 8px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
.fa {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|