From bd4dae67e29455f98b4c164607e7531cbd43cc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Nobile?= Date: Thu, 21 Sep 2023 13:24:20 +0200 Subject: [PATCH] fix: permission matrix colors --- docs/cloud/permissions.md | 26 +++++++++++++------------- src/index.css | 28 ++++++++++++++++++++++++---- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/docs/cloud/permissions.md b/docs/cloud/permissions.md index d957d3c..664bffb 100644 --- a/docs/cloud/permissions.md +++ b/docs/cloud/permissions.md @@ -44,18 +44,18 @@ It's important to note that the Project Developer and Project Guest roles are di
-| | Owner | Admin | Billing | Developer | Guest | Project Developer | Project Guest | -|-------------------------------|-----------------------|-------|-----------------------|-----------|-----------------------|-------------------|--------------| -| View projects | | | | | | | | -| View metrics | | | | | | | | -| View members | | | | | | | | -| Manage owner / billing member | | | | | | | | -| Manage other members | | | | | | | | -| Create projects | | | | | | | | -| Start / stop project | | | | | | | | -| Edit project settings | | | | | | | | -| Delete project | | | | | | | | -| View billing | | | | | | | | -| Manage billing | | | | | | | | +| | Owner | Admin | Billing | Developer | Guest | Project Developer | Project Guest | +|-------------------------------|--------------------------------|--------------------------------|--------------------------------|--------------------------------|--------------------------------|--------------------------------|--------------------------------| +| View projects | YES | YES | YES | YES | YES | YES | YES | +| View metrics | YES | YES | YES | YES | YES | YES | YES | +| View members | YES | YES | YES | YES | NO | NO | NO | +| Manage owner / billing member | YES | NO | NO | NO | NO | NO | NO | +| Manage other members | YES | YES | NO | NO | NO | NO | NO | +| Create projects | YES | YES | NO | YES | NO | NO | NO | +| Start / stop project | YES | YES | NO | YES | NO | YES | NO | +| Edit project settings | YES | YES | NO | YES | NO | YES | NO | +| Delete project | YES | YES | NO | NO | NO | NO | NO | +| View billing | YES | NO | YES | NO | NO | NO | NO | +| Manage billing | YES | NO | YES | NO | NO | NO | NO |
diff --git a/src/index.css b/src/index.css index a366ea5..d693097 100644 --- a/src/index.css +++ b/src/index.css @@ -9,6 +9,8 @@ --contember-green-500: #31B875; --contember-green-600: #248F5A; --contember-green-700: #166640; + --contember-green-800: #083E26; + --contember-green-900: #001609; --contember-yellow-50: #F3F3BB; --contember-yellow-100: #F3F3BB; @@ -230,7 +232,6 @@ article { font-size: 1rem; font-weight: var(--ifm-font-weight-normal); padding: var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal); - float: right; } .table-of-contents__link span { @@ -242,12 +243,31 @@ img[alt="Contember Cloud Actions"] { text-align: center; } -.acl-table td:has(.acl-y) { - background: #8ade8a; +.acl-table td { + text-align: center; + font-weight: 800; + position: relative; +} + +.acl-table td span { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + display: inline-flex; + align-items: center; + justify-content: center; +} + +.acl-table td .acl-y { + background: var(--contember-green-400); + color: var(--contember-green-800); } -.acl-table td:has(.acl-n) { +.acl-table td .acl-n { background: #e57575; + color: #630505 } .acl-table th {