diff --git a/public/scss/admin/admin.scss b/public/scss/admin/admin.scss index 8f1900e0f8..5106c22f06 100644 --- a/public/scss/admin/admin.scss +++ b/public/scss/admin/admin.scss @@ -8,7 +8,7 @@ @import "./general/dashboard"; @import "./general/navigation"; @import "./manage/categories"; -// @import "./manage/privileges"; +@import "./manage/privileges"; // @import "./manage/tags"; // @import "./manage/groups"; // @import "./manage/registration"; diff --git a/public/scss/admin/manage/categories.scss b/public/scss/admin/manage/categories.scss index 51da87d4a4..ff0650691e 100644 --- a/public/scss/admin/manage/categories.scss +++ b/public/scss/admin/manage/categories.scss @@ -111,25 +111,5 @@ div.categories { tr > th:first-child { min-width: 150px; } - - .privilege-table-header { - background: white; - - th { - text-align: center; - border-top: 0; - text-transform: uppercase; - font-size: 9px; - vertical-align: bottom; - } - - .arrowed:after { - border-bottom: 1px dashed #ccc; - content: ""; - width: 100%; - display: block; - padding-top: 5px; - } - } } } \ No newline at end of file diff --git a/public/scss/admin/manage/privileges.scss b/public/scss/admin/manage/privileges.scss new file mode 100644 index 0000000000..84e0571008 --- /dev/null +++ b/public/scss/admin/manage/privileges.scss @@ -0,0 +1,36 @@ +.page-admin-privileges { + @keyframes fadeOut { + 0% {background-color: $primary;} + 100% {background-color: white;} + } + + [data-group-name].selected, [data-uid].selected { + animation-name: fadeOut; + animation-duration: 5s; + animation-fill-mode: both; + animation-timing-function: ease-out; + } + + .privilege-table { + td:first-child { + white-space: nowrap; + } + + td[data-delta="true"] > input { + &:after { + border-color: $success; + background-color: $success; + } + } + + td[data-delta="false"] > input { + &:after { + border-color: $danger; + } + + &:indeterminate:after { + background-color: $danger; + } + } + } +} \ No newline at end of file diff --git a/src/views/admin/manage/privileges.tpl b/src/views/admin/manage/privileges.tpl index 3bc1dccc7b..9402c05fee 100644 --- a/src/views/admin/manage/privileges.tpl +++ b/src/views/admin/manage/privileges.tpl @@ -1,24 +1,26 @@