mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
252 lines
4.7 KiB
SCSS
252 lines
4.7 KiB
SCSS
@import "common/foundation/variables";
|
|
@import "common/foundation/mixins";
|
|
|
|
// --------------------------------------------------
|
|
// Discourse header
|
|
// --------------------------------------------------
|
|
|
|
.d-header {
|
|
min-width: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
box-shadow: 0 1px 5px $primary_lighter;
|
|
background-color: $secondary;
|
|
padding-right: 3px;
|
|
padding-top: 3px;
|
|
.docked & {
|
|
position: fixed;
|
|
}
|
|
.contents {
|
|
margin: 10px 0;
|
|
}
|
|
.title {
|
|
display: table;
|
|
float: left;
|
|
height: 40px;
|
|
> a {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
#site-logo {
|
|
max-width: 122px;
|
|
}
|
|
.fa-home {
|
|
font-size: 20px;
|
|
line-height: 40px;
|
|
padding-right: 3px;
|
|
padding-top: 3px;
|
|
}
|
|
.panel {
|
|
float: right;
|
|
position: relative;
|
|
}
|
|
.current-username {
|
|
float: left;
|
|
a {
|
|
color: $primary;
|
|
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 {
|
|
border-right: 1px solid $primary_lighter;
|
|
}
|
|
}
|
|
.icon {
|
|
display: block;
|
|
border-top: 1px solid $primary_lighter;
|
|
border-bottom: 1px solid $primary_lighter;
|
|
border-left: 1px solid $primary_lighter;
|
|
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;
|
|
background-color: $secondary;
|
|
cursor: default;
|
|
@include box-shadow((6px 0 6px -6px rgba($primary, 0.2), -6px 0 6px -6px rgba($primary, 0.2), inset 0 13px 13px -13px rgba($primary, 0.1)));
|
|
&:after {
|
|
display: block;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
z-index: 1101;
|
|
width: 100%;
|
|
height: 0;
|
|
content: "";
|
|
border-top: 1px solid $secondary;
|
|
}
|
|
}
|
|
[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;
|
|
background-color: $tertiary;
|
|
}
|
|
.unread-private-messages {
|
|
left: -4px;
|
|
background-color: $success;
|
|
}
|
|
}
|
|
.flagged-posts {
|
|
background-color: $highlight_danger;
|
|
}
|
|
}
|
|
|
|
#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;
|
|
border: 1px solid $primary_lighter;
|
|
background-color: $secondary;
|
|
@include box-shadow(0 3px 3px $primary_lightest);
|
|
|
|
// Common
|
|
|
|
ul {
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
li {
|
|
padding: 5px;
|
|
font-size: 13px;
|
|
line-height: 16px;
|
|
.fa {
|
|
margin-right: 3px;
|
|
}
|
|
}
|
|
.heading {
|
|
border-bottom: 1px solid $primary_lighter;
|
|
color: $primary;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
line-height: 15px;
|
|
text-shadow: 0 1px 0 $secondary;
|
|
background-color: $secondary;
|
|
@include box-shadow(inset 0 1px 0 $primary_lighter);
|
|
}
|
|
.selected {
|
|
background-color: $header-item-highlight;
|
|
}
|
|
|
|
// Notifications
|
|
|
|
&#notifications-dropdown {
|
|
.fa {
|
|
color: $primary_light;
|
|
}
|
|
li {
|
|
background-color: $header-item-highlight;
|
|
}
|
|
.read {
|
|
background-color: $secondary;
|
|
}
|
|
.none {
|
|
padding: 5px;
|
|
}
|
|
}
|
|
|
|
// Search
|
|
|
|
input[type='text'] {
|
|
width: 298px;
|
|
height: 22px;
|
|
margin: 5px;
|
|
padding: 5px;
|
|
&:focus {
|
|
@include box-shadow((inset 0 1px 1px $primary_lightest, 0 0 4px $primary_lighter));
|
|
}
|
|
}
|
|
.searching {
|
|
display: block;
|
|
position: absolute;
|
|
top: 13px;
|
|
right: 13px;
|
|
color: $primary_light;
|
|
font-size: 18px;
|
|
}
|
|
.no-results {
|
|
padding: 0 5px 5px;
|
|
}
|
|
.filter {
|
|
float: right;
|
|
}
|
|
|
|
// Categories
|
|
|
|
.category {
|
|
float: left;
|
|
background-color: transparent;
|
|
line-height: 20px;
|
|
}
|
|
|
|
&#user-dropdown {
|
|
width: 155px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 2px 8px;
|
|
margin-bottom: 2px;
|
|
.fa {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
}
|