_admin.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. .supplementary-bot-name {
  79. font-size: 1rem;
  80. }
  81. .badge-info {
  82. font-size: 0.6rem;
  83. }
  84. .admin-bot-card {
  85. min-width: 280px;
  86. max-width: 500px;
  87. border-radius: 8px !important;
  88. }
  89. .border-primary {
  90. border-width: 2px;
  91. }
  92. }
  93. // TODO: change to utility class on Bootstrap 5
  94. .slack-connection-log {
  95. .slack-connection-log-title {
  96. border-left: 2px solid;
  97. }
  98. .slack-connection-log-body {
  99. border: 2px solid;
  100. }
  101. }
  102. .admin-slack-integration {
  103. .admin-setting-header {
  104. .btn-link {
  105. font-size: 1rem;
  106. }
  107. }
  108. }
  109. .bot-integration {
  110. .admin-bot-card {
  111. border-radius: 8px !important;
  112. }
  113. .admin-border-failed {
  114. border-style: dashed;
  115. border-width: 2px;
  116. }
  117. .admin-border-success {
  118. border-width: 3px;
  119. }
  120. .grw-bridge-proxy-circle {
  121. .circle {
  122. left: 50%;
  123. width: 100px;
  124. height: 100px;
  125. border: 13px solid;
  126. transform: translate(-50%, -50%);
  127. @include media-breakpoint-down(md) {
  128. width: 50px;
  129. height: 50px;
  130. border: 8px solid;
  131. }
  132. }
  133. .circle-inner {
  134. position: absolute;
  135. top: 50%;
  136. left: 50%;
  137. transform: translate(-50%, -50%);
  138. }
  139. .circle-inner.grw-proxy-server-name {
  140. margin-top: 55px;
  141. }
  142. }
  143. // switch layout for Bridge component
  144. .grw-bridge-container {
  145. .label {
  146. @extend .mt-5;
  147. }
  148. // with ProxyCircle
  149. &.with-proxy {
  150. .label {
  151. @extend .mt-0;
  152. }
  153. .hr-container {
  154. margin-top: 40px;
  155. @include media-breakpoint-up(lg) {
  156. margin-top: 65px;
  157. }
  158. }
  159. }
  160. }
  161. .slack-work-space-name-card {
  162. background-color: $slack-work-space-name-card-background;
  163. border: 1px solid $slack-work-space-name-card-border;
  164. }
  165. }
  166. //// TODO: migrate to Bootstrap 4
  167. //// omit all .btn-toggle and use Switches
  168. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  169. //
  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. #layoutOptions {
  199. .customize-layout-card {
  200. border: 4px solid $border-color;
  201. }
  202. }
  203. // theme selector
  204. #themeOptions {
  205. // layout
  206. .theme-option-container {
  207. min-width: 100px;
  208. a {
  209. padding: 3px;
  210. margin-right: 10px;
  211. margin-bottom: 10px;
  212. svg {
  213. display: block;
  214. }
  215. }
  216. }
  217. &.disabled {
  218. cursor: not-allowed;
  219. opacity: 0.5;
  220. }
  221. // style
  222. .theme-option-container a {
  223. background-color: $gray-50;
  224. border: 1px solid $border-color;
  225. }
  226. .theme-option-name {
  227. opacity: 0.3;
  228. }
  229. // style (active)
  230. .theme-option-container.active {
  231. .theme-option-name {
  232. opacity: 1;
  233. }
  234. }
  235. }
  236. .settings-table {
  237. table-layout: fixed;
  238. .item-name {
  239. width: 150px;
  240. }
  241. td.unused {
  242. opacity: 0.5;
  243. }
  244. &.use-only-env-vars .from-env-vars {
  245. background-color: rgba($info, 0.1);
  246. }
  247. }
  248. }
  249. .admin-navigation {
  250. & > a + a {
  251. margin-top: 2px;
  252. }
  253. &.sticky-top {
  254. top: 30px;
  255. }
  256. }