diff --git a/package-lock.json b/package-lock.json index 2fa7d931f..378c25d66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nodebb-theme-persona", - "version": "14.2.42", + "version": "15.0.0-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nodebb-theme-persona", - "version": "14.2.42", + "version": "15.0.0-beta.2", "license": "BSD-2-Clause", "dependencies": { "pulling": "^2.0.0" diff --git a/package.json b/package.json index eeb7afdc2..a1630901b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "nodebb-theme-persona", - "version": "14.2.42", + "version": "15.0.0-beta.2", "nbbpm": { - "compatibility": "^4.13.0" + "compatibility": "^4.14.0" }, "description": "Persona theme for NodeBB", "main": "library.js", diff --git a/scss/account.scss b/scss/account.scss index 76acab06c..c404880c0 100644 --- a/scss/account.scss +++ b/scss/account.scss @@ -15,136 +15,6 @@ margin-right: auto; } - .cover { - background-size: cover; - background-repeat: no-repeat; - height: 200px; - position: relative; - margin-bottom: 1em; - background-origin: content-box; - width: 100%; - top: var(--panel-offset); - position: absolute; - left: auto; - right: 0px; - - .avatar-wrapper { - position: absolute; - left: 50%; - margin-left: -64px; - top: 128px; - border: 4px solid var(--bs-body-bg); - background-color: var(--bs-body-bg); - border-radius: 50%; - - .persona-fab.btn-morph { - top: 93px; - right: 4px; - position: absolute; - } - - .status { - position: absolute; - font-size: 23px; - top: 17px; - right: -3px; - padding: 10px; - } - - .chat, .follow { - position: absolute; - width: 30px; - height: 30px; - } - - .chat { - left: -1px; - bottom: 1px; - } - - .follow { - right: 1px; - bottom: 1px; - } - } - - &:hover .controls, .controls:focus-within { - opacity: 0.8; - } - - .controls { - text-align: center; - height: 200px; - line-height: 200px; - opacity: 0; - @include 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: $primary; - color: $gray-200; - padding: 0.5em; - font-weight: bold; - - &:hover { - cursor: pointer; - } - } - - .save { - display: none; - } - - .indicator { - display: none; - } - } - margin-top: 200px; .container { @@ -272,12 +142,3 @@ } } -.user-picture-label { - font-size:20px; -} - - -.account-username{ - font-size:20px; - font-weight:bold; -} diff --git a/scss/groups.scss b/scss/groups.scss deleted file mode 100644 index c44087b0c..000000000 --- a/scss/groups.scss +++ /dev/null @@ -1,111 +0,0 @@ -.groups.details { - margin-top: 200px; - - [component="groups/cover"] { - background-size: cover; - background-repeat: no-repeat; - background-origin: content-box; - - min-height: 200px; - width: 100%; - margin-bottom: 1em; - padding-left: 0; - padding-right: 0; - - position: absolute; - top: var(--panel-offset); - right: 0; - left: auto; - - &:hover { - .controls { - opacity: 0.8; - } - } - - .controls { - text-align: center; - min-height: 200px; - line-height: 200px; - opacity: 0; - @include 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: $primary; - color: $gray-200; - padding: 0.5em; - font-weight: bold; - - &:hover { - cursor: pointer; - } - } - - .save { - display: none; - } - - .indicator { - display: none; - } - } - - @include media-breakpoint-up(md) { - margin-top: 300px; - - [component="groups/cover"] { - min-height: 300px; - - .controls { - min-height: 300px; - line-height: 300px; - } - } - } -} diff --git a/scss/persona.scss b/scss/persona.scss index de6abd8d9..786c2f4d5 100644 --- a/scss/persona.scss +++ b/scss/persona.scss @@ -9,7 +9,6 @@ @import "header"; @import "status"; @import "account"; -@import "groups"; @import "chats"; @import "search"; @import "topics_list"; diff --git a/templates/account/blocks.tpl b/templates/account/blocks.tpl index a5e99c469..cdd5ae798 100644 --- a/templates/account/blocks.tpl +++ b/templates/account/blocks.tpl @@ -16,7 +16,7 @@
  • - {buildAvatar(./user, "24px", true)} + {{buildAvatar(./user, "24px", true)}} @@ -151,7 +151,7 @@ {{{ end }}}

    - [[user:info.banned-reason-label]]: {./reason} + [[user:info.banned-reason-label]]: {tx(./reason)}

    {{{ if ./until }}} @@ -192,7 +192,7 @@

  • - {buildAvatar(./user, "24px", true)} + {{buildAvatar(./user, "24px", true)}} @@ -205,7 +205,7 @@ {{{ end }}}

    - [[user:info.banned-reason-label]]: {./reason} + [[user:info.banned-reason-label]]: {tx(./reason)}

    {{{ if ./until }}} @@ -240,7 +240,7 @@

    - {buildAvatar(./user, "24px", true)} + {{buildAvatar(./user, "24px", true)}} diff --git a/templates/account/posts.tpl b/templates/account/posts.tpl index 47b11d9a0..ec2051a34 100644 --- a/templates/account/posts.tpl +++ b/templates/account/posts.tpl @@ -21,7 +21,7 @@
    -
    {noItemsFoundKey}
    +
    {tx(noItemsFoundKey)}
    diff --git a/templates/account/profile.tpl b/templates/account/profile.tpl index 1f9098dd5..99396fb76 100644 --- a/templates/account/profile.tpl +++ b/templates/account/profile.tpl @@ -36,7 +36,7 @@ {{{ end }}} -
    {aboutmeParsed}
    +
    {{txEscape(aboutmeParsed)}}