diff --git a/plugins/Directory/templates/directory/actor.html.twig b/plugins/Directory/templates/directory/actor.html.twig index 0ce3da2bbb..733a01527d 100644 --- a/plugins/Directory/templates/directory/actor.html.twig +++ b/plugins/Directory/templates/directory/actor.html.twig @@ -4,23 +4,23 @@ {% set actor_bio = actor.getBio() %} {% block body %} -
- - {{ 'Your account\'s avatar.' | trans }} -
- {{ actor_nickname }} +
+ + {{ 'Your account\'s avatar.' | trans }} +
+ {{ actor_nickname }} -
+ +
{% endblock body %} \ No newline at end of file diff --git a/public/assets/css/base.css b/public/assets/css/base.css index 6ef601a3de..90f1e3f008 100644 --- a/public/assets/css/base.css +++ b/public/assets/css/base.css @@ -41,6 +41,10 @@ html { --fade-out: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1); } +h1,h2,h3,h4,h5,h6 { + font-family: var(--display-font); +} + @media (prefers-color-scheme: dark) { :root { /* colours and shadows */ @@ -125,7 +129,7 @@ figcaption a:link { hr { all: unset; display: block; - height: 2px; + height: 1px; background: var(--bg2); } @@ -297,7 +301,7 @@ hr { .note-sidebar * { display: flex; flex-direction: column; - margin-left: auto; + margin-left: auto;hr margin-right: auto; max-height: 100%; } @@ -632,8 +636,8 @@ textarea:hover, textarea:focus, button:hover, button:focus, -input:hover :not([type=checkbox], [type=radio]), -input:focus :not([type=checkbox], [type=radio]), +input:hover, +input:focus, select:hover, select:focus { color: var(--white) !important; @@ -760,11 +764,53 @@ input[type=file] { } } + +/* PROFILE */ +.profile { + display: flex; + font-family: var(--main-font); + + background-color: var(--translucent); + margin-bottom: var(--unit-size); + + border-radius: var(--unit-size); + + padding: var(--unit-size); +} +.profile > * { + flex: 1; +} + +.profile-info { + display: flex; + flex-direction: column; +} +.profile-info-nickname { + font-size: var(--medium-size); +} +.profile-info-tags { + margin: unset; +} +.profile-info-stats strong { + margin-right: 5px; +} +.profile-info-stats { + margin-top: var(--unit-size); +} + +.profile-avatar { + max-width: 4rem; + width: 100%; + height: auto; + margin-right: 5px; +} + /* MEDIA QUERIES */ /* sidepanels need to be shown by default on desktop, hidden on mobile */ .panel .panel-content { display: flex; flex-direction: column; + font-family: var(--main-font); font-size: var(--small-size); /* should remain in place for the user */ diff --git a/public/assets/css/left/left.css b/public/assets/css/left/left.css index f9885e094e..4960a7c5f1 100644 --- a/public/assets/css/left/left.css +++ b/public/assets/css/left/left.css @@ -16,44 +16,6 @@ border: 2px solid transparent; } -.panel-left nav { - padding-top: var(--unit-size); - font-size: var(--small-size); -} - -/* PROFILE */ -.profile { - display: flex; - flex-direction: column; - font-family: var(--display-font); - - background-color: var(--translucent); - margin-bottom: var(--main-size); - border: solid 2px var(--bg2); - border-radius: var(--unit-size); - - padding: var(--unit-size); - box-sizing: border-box; -} - -.profile ~ * { - padding: var(--unit-size); -} - -#user { - align-content: center; -} -#user img { - float: left; - width: 5rem; - height: auto; - margin-right: 5px; -} -#user-nickname { - font-size: var(--medium-size); -} - - .profile-navigation { display: flex; flex-direction: column; diff --git a/templates/actor/view.html.twig b/templates/actor/view.html.twig index d220a5bf35..e97cc2a25c 100644 --- a/templates/actor/view.html.twig +++ b/templates/actor/view.html.twig @@ -2,42 +2,43 @@ {% set id = actor.getId() %} {% set nickname = actor.getNickname() %} - +{% set actor_bio = actor.getBio() %} +{% set actor_tags = actor.getSelfTags() %} {% set avatar = actor.getAvatarUrl() %} {% block title %}{{ nickname }}'s profile{% endblock %} {% block body %} -
-
- {{ nickname }}'s avatar{{ nickname }} -
+
+ + {{ nickname }}{{ '\'s avatar.' | trans }} +
+ {{ nickname }} -
+ - {% set actor_tags = actor.getSelfTags() %} -
- {% if actor_tags %} - {% for tag in actor_tags %} - #{{ tag }} - {% endfor %} - {% else %} - {{ '(No tags)' | trans }} - {% endif %} +
+ {% if actor_bio %} +

{{ actor_bio }}

+ {% else %} +

{{ '(no bio)' | trans }}

+ {% endif %} +
-
- - {% set actor_bio = actor.getBio() %} -
- {% if actor_bio %} -

{{ actor_bio }}

- {% else %} -

{{ '(No bio)' | trans }}

- {% endif %} -
+
+
+
{% if notes is defined and notes is not empty %} diff --git a/templates/sidepanel/left/left.html.twig b/templates/sidepanel/left/left.html.twig index b77a46e698..2b1f35eb77 100644 --- a/templates/sidepanel/left/left.html.twig +++ b/templates/sidepanel/left/left.html.twig @@ -6,29 +6,37 @@