diff --git a/ember/app/styles/flarum/buttons.less b/ember/app/styles/flarum/buttons.less index 85276238c..4e324434e 100644 --- a/ember/app/styles/flarum/buttons.less +++ b/ember/app/styles/flarum/buttons.less @@ -83,3 +83,30 @@ .btn-rounded { border-radius: 18px; } + + +.back-button { + & .back { + z-index: 3 !important; // z-index of an active .btn-group .btn is 2 + border-radius: @border-radius-base !important; + .transition(border-radius 0.2s); + } + & .pin { + opacity: 0; + margin-left: -36px !important; + .transition(~"opacity 0.2s, margin-left 0.2s"); + + &:not(.active) .fa { + .rotate(45deg); + } + } + &.active { + & .back { + border-radius: @border-radius-base 0 0 @border-radius-base !important; + } + & .pin { + opacity: 1; + margin-left: 1px !important; + } + } +} diff --git a/ember/app/styles/flarum/index.less b/ember/app/styles/flarum/index.less index 0b1269fc3..8c8f2b88c 100644 --- a/ember/app/styles/flarum/index.less +++ b/ember/app/styles/flarum/index.less @@ -102,8 +102,10 @@ // ------------------------------------ // Discussions Pane -.index-area.paned { - display: none; +@media @phone { + .index-area.paned { + display: none; + } } @media @tablet, @desktop, @desktop-hd { @@ -161,7 +163,7 @@ } // When the pane is pinned, move the other page content inwards - .global-main, .global-footer { + .global-content, .global-footer { .with-pane & { margin-left: @index-pane-width; & .container { diff --git a/ember/app/styles/flarum/layout.less b/ember/app/styles/flarum/layout.less index bcbb124dc..b9b42edb2 100644 --- a/ember/app/styles/flarum/layout.less +++ b/ember/app/styles/flarum/layout.less @@ -215,8 +215,13 @@ body { // On phones, the header is displayed inside of the drawer. We lay its // contents out vertically. @media @phone { - .global-header .container { - padding: 0; + .global-header { + & .container { + padding: 0; + } + & .back-button { + display: none; + } } .header-title { border-bottom: 1px solid @fl-drawer-control-bg; @@ -242,6 +247,9 @@ body { // the page toolbar that we styled earlier. We lay its contents out // horizontally. @media @tablet, @desktop, @desktop-hd { + .back-button.back-control { + display: none; + } .global-header { padding: 10px; height: @header-height; @@ -255,6 +263,11 @@ body { & when (@fl-colored-hdr = true) { .drawer-components(); } + + & .back-button { + float: left; + margin-right: 25px; + } } .header-controls { &, & > li { @@ -288,34 +301,6 @@ body { } } } - .back-button { - float: left; - margin-right: 25px; - - & .back { - z-index: 3 !important; // z-index of an active .btn-group .btn is 2 - border-radius: @border-radius-base !important; - .transition(border-radius 0.2s); - } - & .pin { - opacity: 0; - margin-left: -36px !important; - .transition(~"opacity 0.2s, margin-left 0.2s"); - - &:not(.active) .fa { - .rotate(45deg); - } - } - &.active { - & .back { - border-radius: @border-radius-base 0 0 @border-radius-base !important; - } - & .pin { - opacity: 1; - margin-left: 1px !important; - } - } - } } // ------------------------------------ diff --git a/ember/app/templates/application.hbs b/ember/app/templates/application.hbs index aacd68c31..0aec1a4ba 100644 --- a/ember/app/templates/application.hbs +++ b/ember/app/templates/application.hbs @@ -4,6 +4,8 @@