_admin.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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-customize-sidebar-icon {
  51. svg {
  52. width: 20px;
  53. height: 20px;
  54. }
  55. }
  56. .admin-notification {
  57. table .admin-notif-list {
  58. td {
  59. vertical-align: middle;
  60. }
  61. .td-abs-center {
  62. width: 1px; // to keep the cell small
  63. text-align: center;
  64. }
  65. }
  66. }
  67. .admin-importer {
  68. table.table-mapping {
  69. th,
  70. td {
  71. text-align: center;
  72. }
  73. }
  74. }
  75. .admin-export {
  76. .progress {
  77. height: 8px;
  78. }
  79. }
  80. /*
  81. Slack Integration
  82. */
  83. .selecting-bot-type {
  84. .supplementary-bot-name {
  85. font-size: 1rem;
  86. }
  87. .badge-info {
  88. font-size: 0.6rem;
  89. }
  90. .admin-bot-card {
  91. min-width: 280px;
  92. max-width: 500px;
  93. border-radius: 8px !important;
  94. }
  95. .border-primary {
  96. border-width: 2px;
  97. }
  98. }
  99. // TODO: change to utility class on Bootstrap 5
  100. .slack-connection-log {
  101. .slack-connection-log-title {
  102. border-left: 2px solid;
  103. }
  104. .slack-connection-log-body {
  105. border: 2px solid;
  106. }
  107. }
  108. .admin-slack-integration {
  109. .admin-setting-header {
  110. .btn-link {
  111. font-size: 1rem;
  112. }
  113. }
  114. }
  115. .bot-integration {
  116. .admin-bot-card {
  117. border-radius: 8px !important;
  118. }
  119. .admin-border-failed {
  120. border-style: dashed;
  121. border-width: 2px;
  122. }
  123. .admin-border-success {
  124. border-width: 3px;
  125. }
  126. .grw-bridge-proxy-circle {
  127. .circle {
  128. left: 50%;
  129. width: 100px;
  130. height: 100px;
  131. border: 13px solid;
  132. transform: translate(-50%, -50%);
  133. @include media-breakpoint-down(md) {
  134. width: 50px;
  135. height: 50px;
  136. border: 8px solid;
  137. }
  138. }
  139. .circle-inner {
  140. position: absolute;
  141. top: 50%;
  142. left: 50%;
  143. transform: translate(-50%, -50%);
  144. }
  145. .circle-inner.grw-proxy-server-name {
  146. margin-top: 55px;
  147. }
  148. }
  149. // switch layout for Bridge component
  150. .grw-bridge-container {
  151. .label {
  152. @extend .mt-5;
  153. }
  154. // with ProxyCircle
  155. &.with-proxy {
  156. .label {
  157. @extend .mt-0;
  158. }
  159. .hr-container {
  160. margin-top: 40px;
  161. @include media-breakpoint-up(lg) {
  162. margin-top: 65px;
  163. }
  164. }
  165. }
  166. }
  167. .slack-work-space-name-card {
  168. background-color: $slack-work-space-name-card-background;
  169. border: 1px solid $slack-work-space-name-card-border;
  170. }
  171. }
  172. //// TODO: migrate to Bootstrap 4
  173. //// omit all .btn-toggle and use Switches
  174. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  175. //
  176. // Toggle Twitter Bootstrap button class when active
  177. // https://jsfiddle.net/ms040m01/3/
  178. // @mixin active-color($color, $bg-color, $border-color) {
  179. // color: $color;
  180. // background-color: darken($bg-color, 10%);
  181. // border-color: $border-color;
  182. // &:hover {
  183. // background-color: darken($bg-color, 15%);
  184. // }
  185. // }
  186. // .btn-group.btn-toggle {
  187. // .btn {
  188. // min-width: 60px;
  189. // }
  190. // .btn.active[data-active-class='default'] {
  191. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  192. // }
  193. // .btn.active[data-active-class='primary'] {
  194. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  195. // }
  196. // // disabled btn-group styles
  197. // &.btn-group-disabled {
  198. // .btn:hover {
  199. // cursor: not-allowed;
  200. // background-color: unset;
  201. // }
  202. // }
  203. // }
  204. #layoutOptions {
  205. .customize-layout-card {
  206. border: 4px solid $border-color;
  207. }
  208. }
  209. // theme selector
  210. #themeOptions {
  211. // layout
  212. .theme-option-container {
  213. min-width: 100px;
  214. a {
  215. padding: 3px;
  216. margin-right: 10px;
  217. margin-bottom: 10px;
  218. svg {
  219. display: block;
  220. }
  221. }
  222. }
  223. &.disabled {
  224. cursor: not-allowed;
  225. opacity: 0.5;
  226. }
  227. // style
  228. .theme-option-container a {
  229. background-color: $gray-50;
  230. border: 1px solid $border-color;
  231. }
  232. .theme-option-name {
  233. opacity: 0.3;
  234. }
  235. // style (active)
  236. .theme-option-container.active {
  237. .theme-option-name {
  238. opacity: 1;
  239. }
  240. }
  241. }
  242. .settings-table {
  243. table-layout: fixed;
  244. .item-name {
  245. width: 150px;
  246. }
  247. td.unused {
  248. opacity: 0.5;
  249. }
  250. &.use-only-env-vars .from-env-vars {
  251. background-color: rgba($info, 0.1);
  252. }
  253. }
  254. }
  255. .admin-navigation {
  256. & > a + a {
  257. margin-top: 2px;
  258. }
  259. &.sticky-top {
  260. top: 30px;
  261. }
  262. }