diff --git a/less/account.less b/less/account.less index c3ca1fb..45342bc 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/less/groups.less b/less/groups.less index 5f78d9b..666e60d 100644 --- a/less/groups.less +++ b/less/groups.less @@ -1,41 +1,5 @@ -[component="groups/container"] { - [component="groups/summary"] { - .panel-body { - min-height: 72px; - } - - .list-cover { - background-size: cover; - min-height: 125px; - background-position: 50% 50%; - .pointer; - - h3 { - background-color: rgba(0,0,0,0.5); - display: inline-block; - padding: 0.25em 0.5em; - color: white; - font-weight: bold; - } - } - - .members { - padding-left: 0; - - > li { - list-style-type: none; - display: inline-block; - - img, .user-icon { - .user-icon-style(); - } - } - - .truncated { - vertical-align: bottom; - } - } - } +.groups.details { + margin-top: 200px; [component="groups/cover"] { background-size: cover; @@ -43,19 +7,38 @@ min-height: 200px; position: relative; margin-bottom: 1em; - - @media (min-width: @screen-md-min) { - min-height: 250px; + background-origin: content-box; + width: 100%; + top: 50px; + position: absolute; + left: auto; + right: 0px; + + &:hover { + .controls { + .opacity(0.8); + } } - .change { - visibility: hidden; - } + .controls { + text-align: center; + min-height: 200px; + line-height: 200px; + .opacity(0); + .transition(opacity .15s linear); + cursor: pointer; + pointer-events: none; - &.initialised:hover { - .change { - .opacity(1); - visibility: visible; + > * { + pointer-events: all; + } + + .fa { + color: white; + background-color: #333; + opacity: 1; + margin: 15px; + padding: 5px; } } @@ -64,12 +47,10 @@ cursor: move; } - .instructions { - .opacity(1); - } - - .change { - display: none; + .controls { + > * { + display: none; + } } .save { @@ -87,15 +68,15 @@ } } - .change, .save, .indicator { + .save, .indicator { display: inline-block; position: absolute; top: 1em; - right: 1em; - background: rgba(0, 0, 0, 0.2); + right: 2em; + opacity: 1; + background-color: @brand-primary; color: #eee; padding: 0.5em; - border-radius: 5px; font-weight: bold; &:hover { @@ -103,11 +84,6 @@ } } - .change { - .opacity(0); - .transition(opacity .15s linear); - } - .save { display: none; } @@ -115,20 +91,6 @@ .indicator { display: none; } - - .instructions { - display: inline-block; - position: absolute; - right: 1em; - bottom: 1em; - background: rgba(0, 0, 0, 0.2); - color: #eee; - padding: 0.5em; - border-radius: 5px; - margin-top: 2em; - .opacity(0); - .transition(opacity .15s linear); - } } [component="groups/members"], [component="groups/pending"], [component="groups/invited"] { @@ -152,5 +114,57 @@ } } + @media (min-width: @screen-md-min) { + margin-top: 300px; + + [component="groups/cover"] { + min-height: 300px; + + .controls { + min-height: 300px; + line-height: 300px; + } + } + } +} + +.groups.list { + [component="groups/summary"] { + .panel-body { + min-height: 72px; + } + .list-cover { + background-size: cover; + min-height: 125px; + background-position: 50% 50%; + .pointer; + + h3 { + background-color: rgba(0,0,0,0.5); + display: inline-block; + padding: 0.25em 0.5em; + color: white; + font-weight: bold; + text-transform: capitalize; + } + } + + .members { + padding-left: 0; + + > li { + list-style-type: none; + display: inline-block; + + img, .user-icon { + .user-icon-style(); + } + } + + .truncated { + vertical-align: bottom; + } + } + } } \ No newline at end of file diff --git a/package.json b/package.json index 8785a17..be3b338 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodebb-theme-persona", - "version": "3.0.62", + "version": "3.0.68", "nbbpm": { "compatibility": "^0.8.2" }, diff --git a/templates/account/edit.tpl b/templates/account/edit.tpl index c9054ad..0496869 100644 --- a/templates/account/edit.tpl +++ b/templates/account/edit.tpl @@ -1,7 +1,6 @@ - - -
+ +