2
0

Admin.module.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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: 300px;
  86. max-width: 500px;
  87. border-radius: 8px !important;
  88. .grw-botcard-title-active {
  89. color: $gray-200;
  90. }
  91. }
  92. .border-primary {
  93. border-width: 2px;
  94. }
  95. }
  96. // TODO: change to utility class on Bootstrap 5
  97. .slack-connection-log {
  98. .slack-connection-log-title {
  99. border-left: 2px solid;
  100. }
  101. .slack-connection-log-body {
  102. border: 2px solid;
  103. }
  104. }
  105. .admin-slack-integration {
  106. .admin-setting-header {
  107. .btn-link {
  108. font-size: 1rem;
  109. }
  110. }
  111. }
  112. .bot-integration {
  113. .admin-bot-card {
  114. border-radius: 8px !important;
  115. }
  116. .admin-border-failed {
  117. border-style: dashed;
  118. border-width: 2px;
  119. }
  120. .admin-border-success {
  121. border-width: 3px;
  122. }
  123. .grw-bridge-proxy-circle {
  124. .circle {
  125. inset: 0;
  126. width: 100px;
  127. height: 100px;
  128. border: 13px solid;
  129. @include media-breakpoint-down(lg) {
  130. width: 50px;
  131. height: 50px;
  132. border: 8px solid;
  133. }
  134. }
  135. .circle-inner {
  136. transform: translate(-50%, 25%);
  137. }
  138. .circle-inner.grw-proxy-server-name {
  139. margin-top: 55px;
  140. transform: translate(-50%, -25%);
  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. .settings-table {
  205. table-layout: fixed;
  206. .item-name {
  207. width: 150px;
  208. }
  209. td.unused {
  210. opacity: 0.5;
  211. }
  212. &.use-only-env-vars .from-env-vars {
  213. background-color: rgba($info, 0.1);
  214. }
  215. }
  216. }