1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Improve permissions page

- Introduce the concept of "required permissions" - basically a permission dependency tree. In order for a group to be granted one permission, they must also have another.
- Improve redraw performance by not building dropdown menu contents until dropdown is opened

ref #904
This commit is contained in:
Toby Zerner
2016-05-27 12:42:19 +09:30
parent 3bfd5ee35d
commit 8d26d2ee8f
7 changed files with 257 additions and 115 deletions

View File

@@ -39,7 +39,7 @@
white-space: nowrap;
td, th {
padding: 10px 0;
padding: 5px;
text-align: left;
}
td {
@@ -65,11 +65,6 @@
font-size: 14px;
}
}
tr:last-child {
td, th {
padding-bottom: 15px !important;
}
}
.Dropdown {
display: block;
@@ -79,12 +74,15 @@
text-align: left;
float: none;
}
.Dropdown-menu {
margin: 0;
}
}
.Button {
text-decoration: none;
.Badge {
margin: -3px 0;
margin: -3px 2px -3px 0;
vertical-align: 0;
}
}
@@ -113,15 +111,17 @@
}
.PermissionGrid-section {
td, th {
padding-top: 15px;
border-top: 1px solid @control-bg;
padding-top: 20px;
}
}
.PermissionGrid-child {
td, th {
padding: 5px 0;
position: relative;
}
th {
font-weight: normal;
}
&:hover {
background: lighten(@control-bg, 3%);
}
}