From 773bccd009c4b139fb052b82e01ebd5633f74507 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 27 Sep 2018 22:02:24 +0200 Subject: [PATCH] Removed guidelines title, it looks better without. --- assets/less/classes/profile/guidelines.less | 11 ++--- templates/user/profile.twig | 46 +++++++++------------ 2 files changed, 24 insertions(+), 33 deletions(-) diff --git a/assets/less/classes/profile/guidelines.less b/assets/less/classes/profile/guidelines.less index 3138d2bc..490aeeda 100644 --- a/assets/less/classes/profile/guidelines.less +++ b/assets/less/classes/profile/guidelines.less @@ -1,13 +1,10 @@ .profile__guidelines { + display: flex; + flex-wrap: auto; + justify-content: space-evenly; + padding: 2px; margin-bottom: 2px; - &__content { - display: flex; - flex-wrap: auto; - justify-content: space-evenly; - padding: 2px; - } - &__section { width: 100%; list-style: none; diff --git a/templates/user/profile.twig b/templates/user/profile.twig index bf2c624f..32c9b0e6 100644 --- a/templates/user/profile.twig +++ b/templates/user/profile.twig @@ -73,36 +73,30 @@ {% if is_editing %}
-
- Guidelines -
+ -
+ {% if perms.edit_avatar %}
    -
  • General
  • -
  • Keep things sane and generally suitable for all ages.
  • -
  • Make sure to adhere to the rules.
  • +
  • Avatar
  • +
  • May not exceed the {{ guidelines.avatar.max_size|byte_symbol(true) }} file size limit.
  • +
  • May not be larger than {{ guidelines.avatar.max_width }}x{{ guidelines.avatar.max_height }}.
  • +
  • Will be centre cropped and scaled to 200x200.
  • +
  • Animated gif images are allowed.
+ {% endif %} - {% if perms.edit_avatar %} -
    -
  • Avatar
  • -
  • May not exceed the {{ guidelines.avatar.max_size|byte_symbol(true) }} file size limit.
  • -
  • May not be larger than {{ guidelines.avatar.max_width }}x{{ guidelines.avatar.max_height }}.
  • -
  • Will be centre cropped and scaled to 200x200.
  • -
  • Animated gif images are allowed.
  • -
- {% endif %} - - {% if perms.edit_background %} -
    -
  • Background
  • -
  • May not exceed the {{ guidelines.background.max_size|byte_symbol(true) }} file size limit.
  • -
  • May not be larger than {{ guidelines.background.max_width }}x{{ guidelines.background.max_height }}.
  • -
  • Gif images, in general, are only allowed when tiling.
  • -
- {% endif %} -
+ {% if perms.edit_background %} + + {% endif %}
{% else %}