From 159dd69fcb5c687fe200ba27b5753df0e85834c2 Mon Sep 17 00:00:00 2001 From: peterlamber <46559914+peterlamber@users.noreply.github.com> Date: Fri, 15 Feb 2019 09:01:10 -0800 Subject: [PATCH] UX: make adding permissions more visible and intuitive to click. (#6999) --- .../components/edit-category-security.hbs | 2 +- app/assets/stylesheets/common/base/modal.scss | 15 ++++++++++++++- config/locales/client.en.yml | 1 - 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/edit-category-security.hbs b/app/assets/javascripts/discourse/templates/components/edit-category-security.hbs index e4544391568..ea241adae6f 100644 --- a/app/assets/javascripts/discourse/templates/components/edit-category-security.hbs +++ b/app/assets/javascripts/discourse/templates/components/edit-category-security.hbs @@ -27,7 +27,7 @@ content=category.availablePermissions value=selectedPermission}} {{/if}} {{else}} diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss index 848b5cd4d0f..e2911066dad 100644 --- a/app/assets/stylesheets/common/base/modal.scss +++ b/app/assets/stylesheets/common/base/modal.scss @@ -147,6 +147,7 @@ .modal-form { margin-bottom: 0; } + .modal-footer { padding: 14px 15px 10px; border-top: 1px solid $primary-low; @@ -154,11 +155,13 @@ margin: 0 5px 5px 0; } } + .modal-footer:before, .modal-footer:after { display: table; content: ""; } + .modal-footer:after { clear: both; } @@ -315,6 +318,7 @@ } } } + .d-modal-cancel { margin-left: 1em; color: $primary-medium; @@ -431,8 +435,17 @@ } } + .permission-selector { + margin-right: 0.25em; + } + .add-permission { - margin-top: 12px; + position: relative; + top: 0.1em; + } + + .add-permission-icon { + margin: 0; } } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 4ad8fc29b75..ceb0ad6682f 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -2399,7 +2399,6 @@ en: default_top_period: "Default Top Period:" allow_badges_label: "Allow badges to be awarded in this category" edit_permissions: "Edit Permissions" - add_permission: "Add Permission" require_topic_approval: "Require moderator approval of all new topics" require_reply_approval: "Require moderator approval of all new replies" this_year: "this year"