2015-01-16 14:56:10 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Sidebar
|
|
|
|
|
2015-03-04 09:59:39 +08:00
|
|
|
@media @desktop, @desktop-hd {
|
2015-03-12 10:29:32 +08:00
|
|
|
.index-nav {
|
2015-03-04 09:59:39 +08:00
|
|
|
& .new-discussion {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-16 14:56:10 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Results
|
|
|
|
|
|
|
|
.index-toolbar {
|
2015-02-10 15:35:40 +08:00
|
|
|
margin-bottom: 15px;
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.index-toolbar-view {
|
2015-02-10 15:35:40 +08:00
|
|
|
display: inline-block;
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-02-10 15:35:40 +08:00
|
|
|
& .control-show {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.index-toolbar-action {
|
2015-02-10 15:35:40 +08:00
|
|
|
float: right;
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.index-results .loading-indicator {
|
|
|
|
height: 46px;
|
|
|
|
}
|
|
|
|
|
2015-03-04 09:59:39 +08:00
|
|
|
@media @phone, @tablet {
|
2015-03-17 14:34:35 +08:00
|
|
|
.offset-content {
|
2015-03-03 18:00:52 +08:00
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-04 09:59:39 +08:00
|
|
|
@media @desktop, @desktop-hd {
|
2015-03-17 14:34:35 +08:00
|
|
|
.offset-content {
|
2015-03-03 18:00:52 +08:00
|
|
|
margin-top: 30px;
|
|
|
|
margin-left: 225px;
|
|
|
|
}
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|
// Discussions Pane
|
|
|
|
|
2015-03-04 07:47:36 +08:00
|
|
|
@media @phone {
|
|
|
|
.index-area.paned {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
|
|
|
.index-area {
|
|
|
|
left: -@index-pane-width;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&.paned {
|
|
|
|
position: fixed;
|
|
|
|
z-index: @zindex-pane;
|
|
|
|
overflow: auto;
|
2015-03-05 09:34:10 +08:00
|
|
|
top: @header-height;
|
2015-03-03 18:00:52 +08:00
|
|
|
bottom: 0;
|
|
|
|
width: @index-pane-width;
|
|
|
|
background: @fl-body-bg;
|
|
|
|
padding-bottom: 200px;
|
2015-03-05 09:34:10 +08:00
|
|
|
border-top: 1px solid @fl-body-control-bg;
|
2015-03-03 18:00:52 +08:00
|
|
|
.box-shadow(2px 2px 6px -2px @fl-shadow-color);
|
|
|
|
.transition(left 0.2s);
|
|
|
|
|
2015-04-25 21:01:37 +08:00
|
|
|
.pane-showing & {
|
2015-03-03 18:00:52 +08:00
|
|
|
left: 0;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
& .container {
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
& .index-results {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
& .hero, & .index-nav, & .index-toolbar {
|
|
|
|
display: none;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
& .discussions-list > li {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 65px + 15px;
|
|
|
|
padding-right: 65px + 15px;
|
|
|
|
&.active {
|
|
|
|
background: @fl-body-control-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
& .discussion-summary {
|
|
|
|
& .title {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
& .count strong {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-04 10:00:18 +08:00
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
|
2015-03-04 10:00:18 +08:00
|
|
|
@media @desktop-hd {
|
|
|
|
.index-area.paned {
|
2015-04-25 21:01:37 +08:00
|
|
|
.pane-pinned & {
|
2015-03-04 10:00:18 +08:00
|
|
|
left: 0;
|
|
|
|
z-index: @zindex-composer - 1;
|
|
|
|
.transition(none);
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
// When the pane is pinned, move the other page content inwards
|
2015-03-04 07:47:36 +08:00
|
|
|
.global-content, .global-footer {
|
2015-04-25 21:01:37 +08:00
|
|
|
.has-pane.pane-pinned & {
|
2015-03-03 18:00:52 +08:00
|
|
|
margin-left: @index-pane-width;
|
|
|
|
& .container {
|
|
|
|
max-width: 100%;
|
|
|
|
padding: 0 30px;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
.global-header .container {
|
2015-04-25 21:01:37 +08:00
|
|
|
.has-pane.pane-pinned & {
|
2015-03-03 18:00:52 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|
// Discussions List
|
|
|
|
|
|
|
|
.discussions-list {
|
2015-02-10 15:35:40 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
position: relative;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
.discussions-list > li {
|
|
|
|
padding-right: 45px;
|
2015-02-10 15:35:40 +08:00
|
|
|
|
|
|
|
& .contextual-controls {
|
2015-03-03 18:00:52 +08:00
|
|
|
display: none;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
|
|
|
.discussions-list {
|
|
|
|
& > li {
|
|
|
|
margin-right: -25px;
|
|
|
|
padding-right: 65px + 25px;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-01-16 14:56:10 +08:00
|
|
|
.discussion-summary {
|
2015-02-10 15:35:40 +08:00
|
|
|
position: relative;
|
|
|
|
|
2015-03-05 09:37:16 +08:00
|
|
|
&, & .main {
|
2015-02-10 15:35:40 +08:00
|
|
|
color: @fl-body-muted-color;
|
2015-02-16 10:10:57 +08:00
|
|
|
text-decoration: none;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-03-17 14:34:35 +08:00
|
|
|
& .contextual-controls {
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 18px;
|
|
|
|
}
|
|
|
|
&:hover .contextual-controls, & .contextual-controls.open {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
& .author {
|
|
|
|
float: left;
|
2015-05-02 06:59:43 +08:00
|
|
|
margin-top: 19px;
|
2015-03-05 09:37:16 +08:00
|
|
|
}
|
2015-05-06 10:05:30 +08:00
|
|
|
& > .tooltip {
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
& .tooltip-inner {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
}
|
2015-03-05 09:37:16 +08:00
|
|
|
& .badges {
|
|
|
|
float: left;
|
|
|
|
margin-top: 17px;
|
|
|
|
text-align: right;
|
|
|
|
white-space: nowrap;
|
2015-05-06 10:10:35 +08:00
|
|
|
pointer-events: none;
|
2015-03-05 09:37:16 +08:00
|
|
|
|
|
|
|
& .badge {
|
|
|
|
margin-left: -15px;
|
|
|
|
position: relative;
|
2015-05-06 10:10:35 +08:00
|
|
|
pointer-events: auto;
|
2015-03-05 09:37:16 +08:00
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
& .main {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 20px 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
&:hover .title {
|
|
|
|
text-decoration: underline;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
& .title {
|
2015-05-07 05:08:09 +08:00
|
|
|
margin: 0 0 6px;
|
2015-02-10 15:35:40 +08:00
|
|
|
line-height: 1.3;
|
2015-05-02 06:59:43 +08:00
|
|
|
color: @fl-secondary-color;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
2015-02-16 10:10:57 +08:00
|
|
|
&.unread .title {
|
|
|
|
color: @fl-body-heading-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
& .info {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2015-05-02 07:04:09 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-02-10 15:35:40 +08:00
|
|
|
|
|
|
|
& > li {
|
2015-05-02 07:04:09 +08:00
|
|
|
display: inline;
|
2015-02-10 15:35:40 +08:00
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
& .username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-02-10 15:35:40 +08:00
|
|
|
& .count {
|
|
|
|
float: right;
|
|
|
|
margin-top: 18px;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
.unread& {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2015-01-16 14:56:10 +08:00
|
|
|
}
|
|
|
|
.load-more {
|
2015-02-10 15:35:40 +08:00
|
|
|
text-align: center;
|
|
|
|
margin-top: 10px;
|
2015-02-06 08:04:41 +08:00
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
.discussion-summary {
|
|
|
|
padding-left: 45px;
|
|
|
|
padding-right: 45px;
|
|
|
|
|
|
|
|
& .author {
|
|
|
|
margin-left: -45px;
|
|
|
|
}
|
2015-03-05 09:37:16 +08:00
|
|
|
& .badges {
|
|
|
|
margin-left: -45px;
|
|
|
|
width: 38px;
|
|
|
|
|
|
|
|
& .badge {
|
|
|
|
.badge-size(20px);
|
|
|
|
margin-left: -13px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
& .avatar {
|
|
|
|
.avatar-size(32px);
|
|
|
|
}
|
|
|
|
& .main {
|
|
|
|
margin-right: -45px;
|
|
|
|
}
|
|
|
|
& .title {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
& .count {
|
|
|
|
margin-right: -45px;
|
|
|
|
background: @fl-body-control-bg;
|
|
|
|
color: @fl-body-control-color;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
font-size: 12px;
|
|
|
|
padding: 1px 6px;
|
|
|
|
|
|
|
|
.unread& {
|
|
|
|
background: @fl-body-primary-color;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
|
|
|
.discussion-summary {
|
|
|
|
padding-left: 65px;
|
|
|
|
padding-right: 65px;
|
|
|
|
|
|
|
|
& .author {
|
|
|
|
margin-left: -65px;
|
|
|
|
}
|
2015-03-05 09:37:16 +08:00
|
|
|
& .badges {
|
|
|
|
margin-left: -65px;
|
|
|
|
width: 58px;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
& .main {
|
|
|
|
margin-right: -65px;
|
|
|
|
}
|
|
|
|
& .title {
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
& .count {
|
|
|
|
margin-right: -65px;
|
|
|
|
width: 60px;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: @fl-body-muted-color;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
& .label {
|
|
|
|
font-size: 11px;
|
|
|
|
display: block;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
.unread& {
|
|
|
|
color: @fl-body-heading-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|