discourse/app/assets/stylesheets/mobile/header.scss

251 lines
4.5 KiB
SCSS
Raw Normal View History

2013-09-06 03:37:07 +08:00
// --------------------------------------------------
// Discourse header
// --------------------------------------------------
.d-header {
2013-12-10 05:27:49 +08:00
padding-left: 10px !important;
2013-09-11 11:56:55 +08:00
padding-right: 10px !important;
2013-09-06 03:37:07 +08:00
min-width: 100%;
position: absolute;
top: 0;
z-index: 1001;
background-color: $secondary;
box-shadow: 0 0 3px rgba($primary, .6);
2013-09-06 03:37:07 +08:00
.docked & {
position: fixed;
}
a.star {float: left;}
.contents {
margin: 10px 0;
}
.title {
display: table;
float: left;
height: 40px;
> a {
display: table-cell;
vertical-align: middle;
}
}
#site-logo {
max-height: 40px;
2014-03-28 06:01:12 +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;
}
.panel {
float: right;
position: relative;
2013-09-11 11:56:55 +08:00
margin-right: 20px;
2013-09-06 03:37:07 +08:00
}
.current-username {
float: left;
display: none;
a {
color: darken($primary, 40%);
2013-09-06 03:37:07 +08:00
font-size: 14px;
line-height: 40px;
}
}
button.login-button {
float: left;
margin-top: 7px;
padding: 6px 10px;
.fa { margin-right: 3px; }
2013-09-06 03:37:07 +08:00
}
.icons {
float: left;
text-align: center;
margin: 0 0 0 5px;
2013-09-06 03:37:07 +08:00
list-style: none;
> li {
float: left;
}
.icon {
display: block;
padding: 4px;
color: scale-color($primary, $lightness: 50%);
2013-09-06 03:37:07 +08:00
text-decoration: none;
cursor: pointer;
&:hover {
color: $primary;
background-color: scale-color($primary, $lightness: 75%);
2013-09-06 03:37:07 +08:00
}
&:active {
color: $primary;
background-color: scale-color($primary, $lightness: 75%);
2013-09-06 03:37:07 +08:00
}
}
.active .icon {
position: relative;
color: scale-color($primary, $lightness: 75%);
background-color: $secondary;
2013-09-06 03:37:07 +08:00
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)));
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: "";
border-top: 1px solid scale-color($primary, $lightness: 90%);
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;
background-color: scale-color($tertiary, $lightness: 40%);
color: $tertiary;
2013-09-06 03:37:07 +08:00
}
.unread-private-messages {
left: -4px;
background-color: $success;
2013-09-06 03:37:07 +08:00
}
}
.flagged-posts {
background-color: $danger;
2013-09-06 03:37:07 +08:00
}
}
#main {
position: relative;
}
#main-outlet {
padding-top: 60px;
}
// Dropdowns
// --------------------------------------------------
.d-dropdown {
display: none;
width: 290px;
position: absolute;
top: 100%;
right: 0;
z-index: 1100;
margin-top: -1px;
border: 1px solid scale-color($primary, $lightness: 90%);;
background-color: $secondary;
@include box-shadow(0 1px 1px rgba($primary, 0.2));
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 {
color: $primary;
2013-09-06 03:37:07 +08:00
font-weight: bold;
font-size: 12px;
line-height: 15px;
}
.selected {
2014-05-06 23:37:09 +08:00
background-color: scale-color($tertiary, $lightness: 75%);
2013-09-06 03:37:07 +08:00
}
// Notifications
&#notifications-dropdown {
2013-12-10 05:27:49 +08:00
.fa {
2013-09-06 03:37:07 +08:00
color: #777;
}
li {
2014-05-06 23:37:09 +08:00
background-color: scale-color($tertiary, $lightness: 85%);
2013-09-06 03:37:07 +08:00
}
.read {
background-color: $secondary;
2013-09-06 03:37:07 +08:00
}
.none {
padding: 5px;
}
.loading {
padding: 10px;
display: block;
color: #777;
font-size: 24px;
text-align: center;
}
2013-09-06 03:37:07 +08:00
}
// Search
input[type='text'] {
width: 267px;
height: 22px;
margin: 5px;
padding: 5px;
font-size: 16px;
&:focus {
@include box-shadow((inset 0 1px 1px rgba($primary, 0.075), 0 0 4px rgba(82, 168, 236, 0.6)));
2013-09-06 03:37:07 +08:00
}
}
.searching {
display: block;
position: absolute;
top: 13px;
right: 13px;
color: #777;
font-size: 18px;
}
.no-results {
padding: 0 5px 5px;
}
.filter {
float: right;
}
// Categories
.category {
float: left;
background-color: transparent;
}
2014-02-12 09:56:49 +08:00
&#user-dropdown {
width: 155px;
2014-02-12 09:56:49 +08:00
}
.btn {
padding: 2px 8px;
.fa {
margin-right: 5px;
}
}
2013-09-06 03:37:07 +08:00
}