Admin.module.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. .title {
  7. padding-top: 1rem;
  8. padding-bottom: 1rem;
  9. line-height: 1em;
  10. @include mixins.variable-font-size(28px);
  11. line-height: 1.1em;
  12. }
  13. .admin-user-menu {
  14. .dropdown-menu {
  15. right: 0;
  16. left: auto;
  17. width: 400px;
  18. }
  19. }
  20. .admin-group-menu {
  21. .dropdown-menu {
  22. right: 0;
  23. left: auto;
  24. }
  25. }
  26. .admin-customize {
  27. .ss-container img {
  28. padding: 0.5em;
  29. background-color: $gray-300;
  30. }
  31. .table-user-list {
  32. .label-admin {
  33. margin-left: 1em;
  34. }
  35. }
  36. }
  37. .admin-setting-header {
  38. border-bottom: 1px solid transparent;
  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: 280px;
  93. max-width: 500px;
  94. border-radius: 8px !important;
  95. }
  96. .border-primary {
  97. border-width: 2px;
  98. }
  99. }
  100. // TODO: change to utility class on Bootstrap 5
  101. .slack-connection-log {
  102. .slack-connection-log-title {
  103. border-left: 2px solid;
  104. }
  105. .slack-connection-log-body {
  106. border: 2px solid;
  107. }
  108. }
  109. .admin-slack-integration {
  110. .admin-setting-header {
  111. .btn-link {
  112. font-size: 1rem;
  113. }
  114. }
  115. }
  116. .bot-integration {
  117. .admin-bot-card {
  118. border-radius: 8px !important;
  119. }
  120. .admin-border-failed {
  121. border-style: dashed;
  122. border-width: 2px;
  123. }
  124. .admin-border-success {
  125. border-width: 3px;
  126. }
  127. .grw-bridge-proxy-circle {
  128. .circle {
  129. left: 50%;
  130. width: 100px;
  131. height: 100px;
  132. border: 13px solid;
  133. transform: translate(-50%, -50%);
  134. @include media-breakpoint-down(md) {
  135. width: 50px;
  136. height: 50px;
  137. border: 8px solid;
  138. }
  139. }
  140. .circle-inner {
  141. position: absolute;
  142. top: 50%;
  143. left: 50%;
  144. transform: translate(-50%, -50%);
  145. }
  146. .circle-inner.grw-proxy-server-name {
  147. margin-top: 55px;
  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. //
  171. // Toggle Twitter Bootstrap button class when active
  172. // https://jsfiddle.net/ms040m01/3/
  173. // @mixin active-color($color, $bg-color, $border-color) {
  174. // color: $color;
  175. // background-color: darken($bg-color, 10%);
  176. // border-color: $border-color;
  177. // &:hover {
  178. // background-color: darken($bg-color, 15%);
  179. // }
  180. // }
  181. // .btn-group.btn-toggle {
  182. // .btn {
  183. // min-width: 60px;
  184. // }
  185. // .btn.active[data-active-class='default'] {
  186. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  187. // }
  188. // .btn.active[data-active-class='primary'] {
  189. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  190. // }
  191. // // disabled btn-group styles
  192. // &.btn-group-disabled {
  193. // .btn:hover {
  194. // cursor: not-allowed;
  195. // background-color: unset;
  196. // }
  197. // }
  198. // }
  199. .admin-audit-log {
  200. .select-action-dropdown {
  201. max-height: 500px;
  202. overflow-y: auto;
  203. }
  204. .date-range-picker {
  205. width: 188px;
  206. }
  207. .jump-page-input {
  208. width: 50px;
  209. }
  210. }
  211. #layoutOptions {
  212. .customize-layout-card {
  213. border: 4px solid $border-color;
  214. }
  215. }
  216. // theme selector
  217. #themeOptions {
  218. // layout
  219. .theme-option-container {
  220. min-width: 100px;
  221. a {
  222. padding: 3px;
  223. margin-right: 10px;
  224. margin-bottom: 10px;
  225. svg {
  226. display: block;
  227. }
  228. }
  229. }
  230. &.disabled {
  231. cursor: not-allowed;
  232. opacity: 0.5;
  233. }
  234. // style
  235. .theme-option-container a {
  236. background-color: $gray-100;
  237. border: 1px solid $border-color;
  238. }
  239. .theme-option-name, .theme-option-badge {
  240. opacity: 0.3;
  241. }
  242. // style (active)
  243. .theme-option-container.active {
  244. .theme-option-name, .theme-option-badge {
  245. opacity: 1;
  246. }
  247. }
  248. }
  249. .settings-table {
  250. table-layout: fixed;
  251. .item-name {
  252. width: 150px;
  253. }
  254. td.unused {
  255. opacity: 0.5;
  256. }
  257. &.use-only-env-vars .from-env-vars {
  258. background-color: rgba($info, 0.1);
  259. }
  260. }
  261. .admin-navigation {
  262. & > a + a {
  263. margin-top: 2px;
  264. }
  265. &.sticky-top {
  266. top: 30px;
  267. }
  268. }
  269. }