// ------------------------------------ // Sidebar @media @desktop, @desktop-hd { .index-nav { & .new-discussion { display: block; margin-bottom: 20px; } } } // ------------------------------------ // Results .index-toolbar { margin-bottom: 15px; } .index-toolbar-view, .index-toolbar-action { display: inline-block; margin: 0; list-style: none; padding: 0; & > li { display: inline-block; } } .index-toolbar-view { & > li { margin-right: 5px; } } .index-toolbar-action { float: right; & > li { margin-left: 5px; } } @media @phone, @tablet { .offset-content { margin-top: 15px; } } @media @desktop, @desktop-hd { .offset-content { margin-top: 30px; margin-left: 225px; } } // ------------------------------------ // Discussions Pane @media @phone { .index-area.paned { display: none; } } @media @tablet, @desktop, @desktop-hd { .index-area { left: -@index-pane-width; width: 100%; &.paned { position: fixed; z-index: @zindex-pane; overflow: auto; top: @header-height; bottom: 0; width: @index-pane-width; background: @fl-body-bg; padding-bottom: 40px; border-top: 1px solid @fl-body-control-bg; .box-shadow(2px 2px 6px -2px @fl-shadow-color); .transition(left 0.2s); .pane-showing & { left: 0; } & .container { width: auto; margin: 0; padding: 0 !important; } & .index-results { margin: 0; } & .hero, & .index-nav, & .index-toolbar { display: none; } & .discussion-list-item { margin: 0; padding: 0; border-radius: 0; &.active { background: @fl-body-control-bg; } & .contextual-controls { top: 5px; } } & .discussion-summary { padding-left: 52px + 15px; padding-right: 65px + 15px; & .title { font-size: 14px; } & .relevant-posts { margin-left: -52px; margin-right: -65px; } & .count { margin-top: 11px; } } } } } @media @desktop-hd { .index-area.paned { .pane-pinned & { left: 0; z-index: @zindex-composer - 1; .transition(none); } } // When the pane is pinned, move the other page content inwards .global-content, .global-footer { .has-pane.pane-pinned & { margin-left: @index-pane-width; & .container { max-width: 100%; padding: 0 30px; } } } .global-header .container { transition: width 0.2s; .has-pane.pane-pinned & { width: 100%; } } } // ------------------------------------ // Discussions List .discussion-list { & .loading-indicator { height: 46px; } & > ul { margin: 0; padding: 0; list-style-type: none; position: relative; } } @media @phone { .discussion-list { margin: 0 -15px; } } .discussion-summary { position: relative; &, & .main { color: @fl-body-muted-color; text-decoration: none; } & .author { float: left; margin-top: 15px; } & .tooltip .tooltip-inner { max-width: none; } & .badges { float: left; margin-top: 10px; text-align: right; white-space: nowrap; pointer-events: none; & .badge { margin-left: -15px; position: relative; pointer-events: auto; } } & .main { display: inline-block; width: 100%; padding: 12px 0; } &:hover .title { // text-decoration: underline; } & .title { margin: 0 0 5px; line-height: 1.3; color: @fl-body-heading-color; } &.unread .title { font-weight: bold; } & .info { list-style-type: none; padding: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; & > li { display: inline; } } & .username { font-weight: bold; } & .count { float: right; margin-top: 12px; text-decoration: none; .unread& { cursor: pointer; } } & .relevant-posts { padding-bottom: 15px; @media @phone { margin-left: -45px; margin-right: -35px; } & .post-preview { background: @fl-body-secondary-color; display: block; padding: 10px 15px; border-bottom: 2px dotted @fl-body-bg; color: @fl-body-muted-color; transition: border-color 0.2s; .discussion-list-item:hover & { border-color: lighten(@fl-body-secondary-color, 3%); } & .avatar, & time { display: none; } & .post-preview-content { padding-left: 0; } &:first-child { border-radius: @border-radius-base @border-radius-base 0 0; } &:hover { background: darken(@fl-body-secondary-color, 3%); text-decoration: none; } } } } .load-more { text-align: center; margin-top: 10px; } @media @phone { .discussion-summary { padding-left: 15px + 45px; padding-right: 15px + 35px; &:active { background: @fl-body-secondary-color; } & .author { margin-left: -45px; } & .badges { margin-left: -45px; width: 38px; & .badge { .badge-size(20px); margin-left: -13px; } } & .avatar { .avatar-size(32px); } & .main { margin-right: -45px; } & .title { font-size: 14px; text-decoration: none !important; } & .count { margin-right: -35px; background: @fl-body-control-bg; color: @fl-body-control-color; border-radius: @border-radius-base; font-size: 12px; padding: 2px 6px; .unread& { background: @fl-body-primary-color; color: #fff; font-weight: bold; &:active { opacity: 0.5; } } & .label { display: none; } } } } .slidable-underneath { display: none; } .discussion-list-item .contextual-controls { display: block; position: static; } .slidable { position: relative; & .slidable-underneath { display: none; background: @fl-secondary-color !important; position: absolute; right: 0; top: 0; bottom: 0; left: 0; width: auto; height: auto; z-index: 0; color: #fff !important; border: 0; border-radius: 0; .box-shadow(none); padding: 20px 0; text-align: right; &.slidable-underneath-left { text-align: left; } & .icon { width: 50px; text-align: center; font-size: 20px; } } & .slidable-slider { .transition(~"box-shadow 0.2s, border-radius 0.2s"); .sliding& { position: relative; background: #fff; z-index: 2; border-radius: 2px; .box-shadow(0 2px 6px @fl-shadow-color); } } } @media @tablet, @desktop, @desktop-hd { .discussion-list-item { position: relative; margin-right: -15px; padding-right: 15px; padding-left: 15px; margin-left: -15px; border-radius: @border-radius-base; transition: background 0.2s; & .contextual-controls { position: absolute; right: 0; top: 15px; z-index: 1; opacity: 0; transition: opacity 0.2s; & .dropdown-toggle { display: block; } } &:hover { background: lighten(@fl-body-secondary-color, 3%); } &:hover .contextual-controls, & .contextual-controls.open { opacity: 1; } } .discussion-summary { padding-left: 52px; padding-right: 75px; & .author { margin-left: -52px; } & .badges { margin-left: -55px; width: 48px; } & .avatar { .avatar-size(36px); } & .main { margin-right: -65px; } & .title { font-size: 16px; } & .count { margin-top: 21px; margin-right: -65px; width: 55px; color: @fl-body-muted-color; font-size: 14px; padding-left: 21px; &:before { .fa(); content: @fa-var-comment-o; float: left; margin-left: -21px; margin-top: 3px; } .unread& { color: @fl-body-heading-color; font-weight: bold; &:before { content: @fa-var-comment; } &:hover:before { content: @fa-var-check; } } } } }