Admin.module.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. @use '@growi/core/scss/bootstrap/init' as *;
  2. @use '~/styles/mixins';
  3. $slack-work-space-name-card-background: #fff5ff;
  4. $slack-work-space-name-card-border: #efc1f6;
  5. .admin-page :global {
  6. .admin-user-menu {
  7. .dropdown-menu {
  8. right: 0;
  9. left: auto;
  10. width: 400px;
  11. }
  12. }
  13. .admin-group-menu {
  14. .dropdown-menu {
  15. right: 0;
  16. left: auto;
  17. }
  18. }
  19. .admin-customize {
  20. .ss-container img {
  21. padding: 0.5em;
  22. background-color: $gray-300;
  23. }
  24. .table-user-list {
  25. .label-admin {
  26. margin-left: 1em;
  27. }
  28. }
  29. }
  30. .admin-setting-header {
  31. border-bottom: 1px solid transparent;
  32. }
  33. .admin-security {
  34. .passport-logo {
  35. height: 32px;
  36. padding: 3px;
  37. margin-top: -0.5em;
  38. background-color: black;
  39. }
  40. .auth-mechanism-configurations {
  41. min-height: 80vh;
  42. }
  43. }
  44. .admin-customize-sidebar-icon {
  45. svg {
  46. width: 20px;
  47. height: 20px;
  48. }
  49. }
  50. .admin-notification {
  51. table .admin-notif-list {
  52. td {
  53. vertical-align: middle;
  54. }
  55. .td-abs-center {
  56. width: 1px; // to keep the cell small
  57. text-align: center;
  58. }
  59. }
  60. }
  61. .admin-importer {
  62. table.table-mapping {
  63. th,
  64. td {
  65. text-align: center;
  66. }
  67. }
  68. }
  69. .admin-export {
  70. .progress {
  71. height: 8px;
  72. }
  73. }
  74. /*
  75. Slack Integration
  76. */
  77. .selecting-bot-type {
  78. .supplementary-bot-name {
  79. font-size: 1rem;
  80. }
  81. .bg-info {
  82. font-size: 0.6rem;
  83. }
  84. .admin-bot-card {
  85. min-width: 280px;
  86. max-width: 500px;
  87. border-radius: 8px !important;
  88. }
  89. .border-primary {
  90. border-width: 2px;
  91. }
  92. }
  93. // TODO: change to utility class on Bootstrap 5
  94. .slack-connection-log {
  95. .slack-connection-log-title {
  96. border-left: 2px solid;
  97. }
  98. .slack-connection-log-body {
  99. border: 2px solid;
  100. }
  101. }
  102. .admin-slack-integration {
  103. .admin-setting-header {
  104. .btn-link {
  105. font-size: 1rem;
  106. }
  107. }
  108. }
  109. .bot-integration {
  110. .admin-bot-card {
  111. border-radius: 8px !important;
  112. }
  113. .admin-border-failed {
  114. border-style: dashed;
  115. border-width: 2px;
  116. }
  117. .admin-border-success {
  118. border-width: 3px;
  119. }
  120. .grw-bridge-proxy-circle {
  121. .circle {
  122. left: 50%;
  123. width: 100px;
  124. height: 100px;
  125. border: 13px solid;
  126. transform: translate(-50%, -50%);
  127. @include media-breakpoint-down(md) {
  128. width: 50px;
  129. height: 50px;
  130. border: 8px solid;
  131. }
  132. }
  133. .circle-inner {
  134. position: absolute;
  135. top: 50%;
  136. left: 50%;
  137. transform: translate(-50%, -50%);
  138. }
  139. .circle-inner.grw-proxy-server-name {
  140. margin-top: 55px;
  141. }
  142. }
  143. // switch layout for Bridge component
  144. .grw-bridge-container {
  145. // with ProxyCircle
  146. &.with-proxy {
  147. .hr-container {
  148. margin-top: 40px;
  149. @include media-breakpoint-up(lg) {
  150. margin-top: 65px;
  151. }
  152. }
  153. }
  154. }
  155. .slack-work-space-name-card {
  156. background-color: $slack-work-space-name-card-background;
  157. border: 1px solid $slack-work-space-name-card-border;
  158. }
  159. }
  160. //// TODO: migrate to Bootstrap 4
  161. //// omit all .btn-toggle and use Switches
  162. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  163. //
  164. // Toggle Twitter Bootstrap button class when active
  165. // https://jsfiddle.net/ms040m01/3/
  166. // @mixin active-color($color, $bg-color, $border-color) {
  167. // color: $color;
  168. // background-color: darken($bg-color, 10%);
  169. // border-color: $border-color;
  170. // &:hover {
  171. // background-color: darken($bg-color, 15%);
  172. // }
  173. // }
  174. // .btn-group.btn-toggle {
  175. // .btn {
  176. // min-width: 60px;
  177. // }
  178. // .btn.active[data-active-class='default'] {
  179. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  180. // }
  181. // .btn.active[data-active-class='primary'] {
  182. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  183. // }
  184. // // disabled btn-group styles
  185. // &.btn-group-disabled {
  186. // .btn:hover {
  187. // cursor: not-allowed;
  188. // background-color: unset;
  189. // }
  190. // }
  191. // }
  192. .admin-audit-log {
  193. .select-action-dropdown {
  194. max-height: 500px;
  195. overflow-y: auto;
  196. }
  197. .date-range-picker {
  198. width: 188px;
  199. }
  200. .jump-page-input {
  201. width: 50px;
  202. }
  203. }
  204. #layoutOptions {
  205. .customize-layout-card {
  206. border: 4px solid $border-color;
  207. }
  208. }
  209. // theme selector
  210. #themeOptions {
  211. // layout
  212. .theme-option-container {
  213. min-width: 100px;
  214. a {
  215. padding: 3px;
  216. margin-right: 10px;
  217. margin-bottom: 10px;
  218. svg {
  219. display: block;
  220. }
  221. }
  222. }
  223. &.disabled {
  224. cursor: not-allowed;
  225. opacity: 0.5;
  226. }
  227. // style
  228. .theme-option-container a {
  229. background-color: $gray-100;
  230. border: 1px solid $border-color;
  231. }
  232. .theme-option-name, .theme-option-badge {
  233. opacity: 0.3;
  234. }
  235. // style (active)
  236. .theme-option-container.active {
  237. .theme-option-name, .theme-option-badge {
  238. opacity: 1;
  239. }
  240. }
  241. }
  242. .settings-table {
  243. table-layout: fixed;
  244. .item-name {
  245. width: 150px;
  246. }
  247. td.unused {
  248. opacity: 0.5;
  249. }
  250. &.use-only-env-vars .from-env-vars {
  251. background-color: rgba($info, 0.1);
  252. }
  253. }
  254. .admin-navigation {
  255. & > a + a {
  256. margin-top: 2px;
  257. }
  258. &.sticky-top {
  259. top: 30px;
  260. }
  261. }
  262. }