Admin.module.scss 4.8 KB

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