-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVE] UI of Permissions page (#13732)
* Changes Channel description to textarea * Solves linting issue * Solves invisible permissions issue * Increases size of font-awesome and reorders * Few minor fixes * Coverts CSS to SCSS * Updates linting * Updates linting * Updates linting * Revert "Solves linting issue" This reverts commit 6c8cc95. * Revert "Changes Channel description to textarea" This reverts commit df20b14. * Adds borders, reorganizes template, rotates roles to 90deg * Updates linting * Adds ID of permission below as smaller gray text * Vertically aligns the checkbox
- Loading branch information
Showing
2 changed files
with
71 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,74 @@ | ||
.permissions-manager { | ||
& h2 { | ||
margin-top: 1em !important; | ||
margin-bottom: 1em !important; | ||
.permission-grid { | ||
overflow-x: scroll; | ||
|
||
border-bottom-width: 1px; | ||
table-layout: fixed; | ||
|
||
font-size: 16px; | ||
font-weight: bold !important; | ||
} | ||
border-collapse: collapse; | ||
|
||
& .permission-grid { | ||
& table { | ||
display: block; | ||
overflow-x: auto; | ||
.id-styler { | ||
color: #7f7f7f; | ||
|
||
white-space: nowrap; | ||
font-size: smaller; | ||
} | ||
|
||
& th { | ||
position: relative; | ||
.role-name { | ||
width: 70px; | ||
height: 80px; | ||
|
||
padding: 20px; | ||
text-align: left; | ||
|
||
text-align: center; | ||
white-space: nowrap; | ||
vertical-align: middle; | ||
|
||
border-right: 1px solid black; | ||
border-left: 1px solid black; | ||
} | ||
|
||
& td { | ||
width: 10%; | ||
.role-name-edit-icon { | ||
width: 70px; | ||
height: 70px; | ||
|
||
text-align: center; | ||
} | ||
|
||
& .icon-edit { | ||
position: absolute; | ||
top: 0; | ||
left: 50%; | ||
vertical-align: middle; | ||
|
||
padding-left: 2px; | ||
border-right: 1px solid black; | ||
border-left: 1px solid black; | ||
} | ||
|
||
transform: translateX(-50%); | ||
.rotator { | ||
transform: rotate(-90deg); | ||
} | ||
|
||
font-size: 80%; | ||
.admin-table-row { | ||
height: 50px; | ||
} | ||
|
||
& .permission-name { | ||
cursor: default; | ||
white-space: nowrap; | ||
td { | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
& .empty-role { | ||
padding: 0.5em !important; | ||
} | ||
.permission-name { | ||
width: 25%; | ||
padding-left: 14px; | ||
|
||
vertical-align: middle; | ||
} | ||
|
||
& .form-role { | ||
& label { | ||
display: inline-block; | ||
.admin-table-row .permission-name { | ||
border-top: 1px solid black; | ||
border-bottom: 1px solid black; | ||
} | ||
|
||
width: 150px; | ||
.permission-checkbox { | ||
text-align: center; | ||
vertical-align: middle; | ||
|
||
text-align: right; | ||
border: 1px solid black; | ||
} | ||
|
||
& .form-buttons { | ||
padding-left: 150px; | ||
.icon-edit { | ||
font-size: 1.5em; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters