_admin.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. $slack-work-space-name-card-background: #fff5ff;
  2. $slack-work-space-name-card-border: #efc1f6;
  3. .admin-page {
  4. .title {
  5. padding-top: 1rem;
  6. padding-bottom: 1rem;
  7. line-height: 1em;
  8. @include variable-font-size(28px);
  9. line-height: 1.1em;
  10. }
  11. .admin-user-menu {
  12. .dropdown-menu {
  13. right: 0;
  14. left: auto;
  15. width: 400px;
  16. }
  17. }
  18. .admin-group-menu {
  19. .dropdown-menu {
  20. right: 0;
  21. left: auto;
  22. }
  23. }
  24. .admin-customize {
  25. @import 'hljs';
  26. .ss-container img {
  27. padding: 0.5em;
  28. background-color: $gray-300;
  29. }
  30. .table-user-list {
  31. .label-admin {
  32. margin-left: 1em;
  33. }
  34. }
  35. }
  36. .admin-setting-header {
  37. border-bottom: 1px solid transparent;
  38. }
  39. .admin-security {
  40. .passport-logo {
  41. height: 32px;
  42. padding: 3px;
  43. margin-top: -0.5em;
  44. background-color: black;
  45. }
  46. .auth-mechanism-configurations {
  47. min-height: 80vh;
  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. .btn-link {
  79. font-size: 1rem;
  80. }
  81. .supplementary-bot-name {
  82. font-size: 1rem;
  83. }
  84. .badge-info {
  85. font-size: 0.6rem;
  86. }
  87. .admin-bot-card {
  88. min-width: 280px;
  89. max-width: 500px;
  90. border-radius: 8px !important;
  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. .bot-integration {
  106. .admin-bot-card {
  107. border-radius: 8px !important;
  108. }
  109. .admin-border-failed {
  110. border-style: dashed;
  111. border-width: 2px;
  112. }
  113. .admin-border-success {
  114. border-width: 3px;
  115. }
  116. .grw-bridge-proxy-circle {
  117. left: 50%;
  118. width: 100px;
  119. height: 100px;
  120. border: 13px solid;
  121. border-radius: 50%;
  122. transform: translate(-50%, -50%);
  123. .circle-inner {
  124. position: absolute;
  125. top: 50%;
  126. left: 50%;
  127. transform: translate(-50%, -50%);
  128. }
  129. }
  130. // switch layout for Bridge component
  131. .grw-bridge-container {
  132. .label {
  133. @extend .mt-5;
  134. }
  135. // with ProxyCircle
  136. &.with-proxy {
  137. .label {
  138. @extend .mt-0;
  139. }
  140. .hr-container {
  141. margin-top: 65px;
  142. }
  143. }
  144. }
  145. .slack-work-space-name-card {
  146. background-color: $slack-work-space-name-card-background;
  147. border: 1px solid $slack-work-space-name-card-border;
  148. }
  149. }
  150. //// TODO: migrate to Bootstrap 4
  151. //// omit all .btn-toggle and use Switches
  152. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  153. //
  154. // Toggle Twitter Bootstrap button class when active
  155. // https://jsfiddle.net/ms040m01/3/
  156. // @mixin active-color($color, $bg-color, $border-color) {
  157. // color: $color;
  158. // background-color: darken($bg-color, 10%);
  159. // border-color: $border-color;
  160. // &:hover {
  161. // background-color: darken($bg-color, 15%);
  162. // }
  163. // }
  164. // .btn-group.btn-toggle {
  165. // .btn {
  166. // min-width: 60px;
  167. // }
  168. // .btn.active[data-active-class='default'] {
  169. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  170. // }
  171. // .btn.active[data-active-class='primary'] {
  172. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  173. // }
  174. // // disabled btn-group styles
  175. // &.btn-group-disabled {
  176. // .btn:hover {
  177. // cursor: not-allowed;
  178. // background-color: unset;
  179. // }
  180. // }
  181. // }
  182. #layoutOptions {
  183. .customize-layout-card {
  184. border: 4px solid $border-color;
  185. }
  186. }
  187. // theme selector
  188. #themeOptions {
  189. // layout
  190. .theme-option-container {
  191. min-width: 100px;
  192. a {
  193. padding: 3px;
  194. margin-right: 10px;
  195. margin-bottom: 10px;
  196. svg {
  197. display: block;
  198. }
  199. }
  200. }
  201. &.disabled {
  202. cursor: not-allowed;
  203. opacity: 0.5;
  204. }
  205. // style
  206. .theme-option-container a {
  207. background-color: $gray-50;
  208. border: 1px solid $border-color;
  209. }
  210. .theme-option-name {
  211. opacity: 0.3;
  212. }
  213. // style (active)
  214. .theme-option-container.active {
  215. .theme-option-name {
  216. opacity: 1;
  217. }
  218. }
  219. }
  220. .settings-table {
  221. table-layout: fixed;
  222. .item-name {
  223. width: 150px;
  224. }
  225. td.unused {
  226. opacity: 0.5;
  227. }
  228. &.use-only-env-vars .from-env-vars {
  229. background-color: rgba($info, 0.1);
  230. }
  231. }
  232. }
  233. .admin-navigation {
  234. & > a + a {
  235. margin-top: 2px;
  236. }
  237. &.sticky-top {
  238. top: 30px;
  239. }
  240. }