From b49d45f26864894e81632f7e3b843d67590396fe Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 28 Oct 2015 17:25:48 -0400 Subject: [PATCH] account page profile cover --- less/account.less | 110 +++++++++++++++++++++++++++++++++- templates/account/profile.tpl | 12 +++- 2 files changed, 118 insertions(+), 4 deletions(-) diff --git a/less/account.less b/less/account.less index 0208f7d..08e93b8 100644 --- a/less/account.less +++ b/less/account.less @@ -1,9 +1,115 @@ -// TODO: Needs to be cleaned up - do not child theme or you will lose your work. - .account { + .cover { + background-size: cover; + background-repeat: no-repeat; + min-height: 200px; + position: relative; + margin-bottom: 1em; + background-origin: content-box; + width: 100%; + top: 50px; + position: absolute; + left: auto; + right: 0px; + + &:hover { + .controls { + .opacity(0.8); + } + } + + .controls { + text-align: center; + min-height: 200px; + line-height: 200px; + .opacity(0); + .transition(opacity .15s linear); + cursor: pointer; + pointer-events: none; + + > * { + pointer-events: all; + } + + .fa { + color: white; + background-color: #333; + opacity: 1; + margin: 15px; + padding: 5px; + } + } + + &.active { + &:hover { + cursor: move; + } + + .controls { + > * { + display: none; + } + } + + .save { + display: inline-block; + } + } + + &.saving { + .save { + display: none; + } + + .indicator { + display: inline-block; + } + } + + .save, .indicator { + display: inline-block; + position: absolute; + top: 1em; + right: 2em; + opacity: 1; + background-color: @brand-primary; + color: #eee; + padding: 0.5em; + font-weight: bold; + + &:hover { + cursor: pointer; + } + } + + .save { + display: none; + } + + .indicator { + display: none; + } + } + @media (min-width: @screen-md-min) { + margin-top: 300px; + + .cover { + min-height: 300px; + + .controls { + min-height: 300px; + line-height: 300px; + } + } + } } + + + + +// .nav-pills.account-sub-links { border:none; diff --git a/templates/account/profile.tpl b/templates/account/profile.tpl index 4ba7c74..5d1067b 100644 --- a/templates/account/profile.tpl +++ b/templates/account/profile.tpl @@ -1,6 +1,14 @@ - -
+ + +
+
+ + +
+
[[groups:cover-save]]
+
[[groups:cover-saving]]
+