Admin.module.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. position: relative;
  125. .circle {
  126. inset: 0;
  127. width: 100px;
  128. height: 100px;
  129. margin:auto;
  130. border: 13px solid;
  131. @include media-breakpoint-down(lg) {
  132. width: 50px;
  133. height: 50px;
  134. border: 8px solid;
  135. }
  136. }
  137. .circle-inner {
  138. transform: translate(-50%, 25%);
  139. }
  140. .circle-inner.grw-proxy-server-name {
  141. margin-top: 55px;
  142. transform: translate(-50%, -25%);
  143. }
  144. }
  145. // switch layout for Bridge component
  146. .grw-bridge-container {
  147. // with ProxyCircle
  148. &.with-proxy {
  149. .hr-container {
  150. margin-top: 40px;
  151. @include media-breakpoint-up(lg) {
  152. margin-top: 65px;
  153. }
  154. }
  155. }
  156. }
  157. .slack-work-space-name-card {
  158. background-color: $slack-work-space-name-card-background;
  159. border: 1px solid $slack-work-space-name-card-border;
  160. }
  161. }
  162. //// TODO: migrate to Bootstrap 4
  163. //// omit all .btn-toggle and use Switches
  164. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  165. //
  166. // Toggle Twitter Bootstrap button class when active
  167. // https://jsfiddle.net/ms040m01/3/
  168. // @mixin active-color($color, $bg-color, $border-color) {
  169. // color: $color;
  170. // background-color: darken($bg-color, 10%);
  171. // border-color: $border-color;
  172. // &:hover {
  173. // background-color: darken($bg-color, 15%);
  174. // }
  175. // }
  176. // .btn-group.btn-toggle {
  177. // .btn {
  178. // min-width: 60px;
  179. // }
  180. // .btn.active[data-active-class='default'] {
  181. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  182. // }
  183. // .btn.active[data-active-class='primary'] {
  184. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  185. // }
  186. // // disabled btn-group styles
  187. // &.btn-group-disabled {
  188. // .btn:hover {
  189. // cursor: not-allowed;
  190. // background-color: unset;
  191. // }
  192. // }
  193. // }
  194. .admin-audit-log {
  195. .select-action-dropdown {
  196. max-height: 500px;
  197. overflow-y: auto;
  198. }
  199. .date-range-picker {
  200. width: 188px;
  201. }
  202. .jump-page-input {
  203. width: 50px;
  204. }
  205. }
  206. #layoutOptions {
  207. .customize-layout-card {
  208. border: 4px solid $border-color;
  209. }
  210. }
  211. // theme selector
  212. #themeOptions {
  213. // layout
  214. .theme-option-container {
  215. min-width: 100px;
  216. a {
  217. padding: 3px;
  218. margin-right: 10px;
  219. margin-bottom: 10px;
  220. svg {
  221. display: block;
  222. }
  223. }
  224. }
  225. &.disabled {
  226. cursor: not-allowed;
  227. opacity: 0.5;
  228. }
  229. // style
  230. .theme-option-container a {
  231. background-color: $gray-100;
  232. border: 1px solid $border-color;
  233. }
  234. .theme-option-name, .theme-option-badge {
  235. opacity: 0.3;
  236. }
  237. // style (active)
  238. .theme-option-container.active {
  239. .theme-option-name, .theme-option-badge {
  240. opacity: 1;
  241. }
  242. }
  243. }
  244. .settings-table {
  245. table-layout: fixed;
  246. .item-name {
  247. width: 150px;
  248. }
  249. td.unused {
  250. opacity: 0.5;
  251. }
  252. &.use-only-env-vars .from-env-vars {
  253. background-color: rgba($info, 0.1);
  254. }
  255. }
  256. .admin-navigation {
  257. & > a + a {
  258. margin-top: 2px;
  259. }
  260. &.sticky-top {
  261. top: 30px;
  262. }
  263. }
  264. }