diff --git a/public/scss/admin/admin.scss b/public/scss/admin/admin.scss index 05df1f8df5..65f9c0d677 100644 --- a/public/scss/admin/admin.scss +++ b/public/scss/admin/admin.scss @@ -11,7 +11,7 @@ @import "./manage/privileges"; @import "./manage/tags"; @import "./manage/groups"; -// @import "./appearance/customise"; +@import "./appearance/customise"; // @import "./appearance/themes"; // @import "./extend/plugins"; // @import "./extend/rewards"; @@ -27,9 +27,9 @@ // @import "../flags"; @import "./modules/alerts"; -// @import "./modules/selectable"; -// @import "./modules/nprogress"; -// @import "./modules/search"; +@import "./modules/selectable"; +@import "./modules/nprogress"; +@import "./modules/search"; body { overflow-y: scroll; diff --git a/public/scss/admin/appearance/customise.scss b/public/scss/admin/appearance/customise.scss new file mode 100644 index 0000000000..ee4e4b0dd4 --- /dev/null +++ b/public/scss/admin/appearance/customise.scss @@ -0,0 +1,9 @@ +#customCSS, #customJS, #customHTML, #email-editor { + width: 100%; + height: 450px; + display: block; +} +// ACP text colour when searching through custom CSS or JS. +.ace_search_field { + color: #000 !important; +} \ No newline at end of file diff --git a/public/scss/admin/header.scss b/public/scss/admin/header.scss index 7aa0c9a212..b0cbae638b 100644 --- a/public/scss/admin/header.scss +++ b/public/scss/admin/header.scss @@ -75,10 +75,8 @@ padding: 10px 20px; width: 250px; height: 44px; - background-color: rgba(0, 0, 0, 0.2); border-radius: 3px; box-shadow: none; - // @include transition(.4s ease background-color); transition: .4s ease background-color; &:focus { diff --git a/public/scss/admin/modules/nprogress.scss b/public/scss/admin/modules/nprogress.scss new file mode 100644 index 0000000000..4584a127d7 --- /dev/null +++ b/public/scss/admin/modules/nprogress.scss @@ -0,0 +1,80 @@ +#nprogress { + pointer-events: none; + } + + #nprogress .bar { + background: #29d; + + position: fixed; + z-index: 1031; + top: 0; + left: 0; + + width: 100%; + height: 2px; + } + + #nprogress .peg { + display: block; + position: absolute; + right: 0px; + width: 100px; + height: 100%; + box-shadow: 0 0 10px #29d, 0 0 5px #29d; + opacity: 1.0; + + -webkit-transform: rotate(3deg) translate(0px, -4px); + -ms-transform: rotate(3deg) translate(0px, -4px); + transform: rotate(3deg) translate(0px, -4px); + } + + #nprogress .spinner { + display: block; + position: fixed; + z-index: 1031; + top: 165px; + right: 35px; + } + + @include media-breakpoint-down(sm) { + #nprogress .spinner { + bottom: 15px; + right: 15px; + top: initial; + } + } + + + #nprogress .spinner-icon { + width: 18px; + height: 18px; + box-sizing: border-box; + + border: solid 2px transparent; + border-top-color: #29d; + border-left-color: #29d; + border-radius: 50%; + + -webkit-animation: nprogress-spinner 400ms linear infinite; + animation: nprogress-spinner 400ms linear infinite; + } + + .nprogress-custom-parent { + overflow: hidden; + position: relative; + } + + .nprogress-custom-parent #nprogress .spinner, + .nprogress-custom-parent #nprogress .bar { + position: absolute; + } + + @-webkit-keyframes nprogress-spinner { + 0% { -webkit-transform: rotate(0deg); } + 100% { -webkit-transform: rotate(360deg); } + } + @keyframes nprogress-spinner { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } + } + diff --git a/public/scss/admin/modules/search.scss b/public/scss/admin/modules/search.scss new file mode 100644 index 0000000000..57b8d8613e --- /dev/null +++ b/public/scss/admin/modules/search.scss @@ -0,0 +1,45 @@ +#acp-search { + .dropdown-menu { + max-height: 75vh; + overflow-y: auto; + + > li > a { + // &.focus { + // &:extend(.dropdown-menu>li>a:focus); + // } + &:focus { + outline: none; + } + } + } + + .state-start-typing { + .keep-typing, .search-forum, .no-results { + display: none; + } + } + + .state-keep-typing { + .start-typing, .search-forum, .no-results { + display: none; + } + } + + .state-no-results { + .keep-typing, .start-typing { + display: none; + } + } + + .state-yes-results { + .keep-typing, .start-typing, .no-results { + display: none; + } + } + + .search-disabled { + .search-forum { + display: none; + } + } +} \ No newline at end of file diff --git a/public/scss/admin/modules/selectable.scss b/public/scss/admin/modules/selectable.scss new file mode 100644 index 0000000000..938a459932 --- /dev/null +++ b/public/scss/admin/modules/selectable.scss @@ -0,0 +1,23 @@ +.selectable { + user-select: none; + position: relative; + + .selector { + position: absolute; + border: 1px solid #89B; + background: #BCE; + background-color: #BEC; + border-color: #8B9; + z-index: 999; + } + + .selection { + border: 1px solid transparent; + margin: 2px; + + &.selected, &.active { + background-color: #ECF1DB; + border: 1px dashed #9B8; + } + } +} \ No newline at end of file diff --git a/public/src/admin/modules/search.js b/public/src/admin/modules/search.js index ddf0eedaf7..16fe21a26d 100644 --- a/public/src/admin/modules/search.js +++ b/public/src/admin/modules/search.js @@ -33,7 +33,7 @@ define('admin/modules/search', ['mousetrap', 'alerts'], function (mousetrap, ale ); return '
' +
diff --git a/src/views/admin/partials/menu.tpl b/src/views/admin/partials/menu.tpl
index eff7cfd352..c5f0202aca 100644
--- a/src/views/admin/partials/menu.tpl
+++ b/src/views/admin/partials/menu.tpl
@@ -141,7 +141,7 @@
-