_admin.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. .admin-page {
  2. .title {
  3. padding-top: 1rem;
  4. padding-bottom: 1rem;
  5. line-height: 1em;
  6. @include variable-font-size(28px);
  7. line-height: 1.1em;
  8. }
  9. .admin-user-menu {
  10. .dropdown-menu {
  11. right: 0;
  12. left: auto;
  13. width: 400px;
  14. }
  15. }
  16. .admin-group-menu {
  17. .dropdown-menu {
  18. right: 0;
  19. left: auto;
  20. }
  21. }
  22. .admin-customize {
  23. @import 'hljs';
  24. .ss-container img {
  25. padding: 0.5em;
  26. background-color: $gray-300;
  27. }
  28. .table-user-list {
  29. .label-admin {
  30. margin-left: 1em;
  31. }
  32. }
  33. }
  34. .admin-setting-header {
  35. border-bottom: 1px solid transparent;
  36. }
  37. .admin-security {
  38. .passport-logo {
  39. height: 32px;
  40. padding: 3px;
  41. margin-top: -0.5em;
  42. background-color: black;
  43. }
  44. .auth-mechanism-configurations {
  45. min-height: 80vh;
  46. }
  47. }
  48. .admin-notification {
  49. table .admin-notif-list {
  50. td {
  51. vertical-align: middle;
  52. }
  53. .td-abs-center {
  54. width: 1px; // to keep the cell small
  55. text-align: center;
  56. }
  57. }
  58. }
  59. .admin-importer {
  60. table.table-mapping {
  61. th,
  62. td {
  63. text-align: center;
  64. }
  65. }
  66. }
  67. .admin-export {
  68. .progress {
  69. height: 8px;
  70. }
  71. }
  72. /*
  73. Slack Integration
  74. */
  75. .selecting-bot-type {
  76. .btn-link {
  77. font-size: 1rem;
  78. }
  79. .supplementary-bot-name {
  80. font-size: 1rem;
  81. }
  82. .badge-info {
  83. font-size: 0.6rem;
  84. }
  85. .admin-bot-card {
  86. min-width: 280px;
  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. min-height: 6rem;
  100. border: 2px solid;
  101. }
  102. }
  103. .bot-integration {
  104. .admin-bot-card {
  105. border-radius: 8px !important;
  106. }
  107. .admin-border {
  108. border-style : dashed;
  109. border-width : 2px;
  110. }
  111. }
  112. //// TODO: migrate to Bootstrap 4
  113. //// omit all .btn-toggle and use Switches
  114. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  115. //
  116. // Toggle Twitter Bootstrap button class when active
  117. // https://jsfiddle.net/ms040m01/3/
  118. // @mixin active-color($color, $bg-color, $border-color) {
  119. // color: $color;
  120. // background-color: darken($bg-color, 10%);
  121. // border-color: $border-color;
  122. // &:hover {
  123. // background-color: darken($bg-color, 15%);
  124. // }
  125. // }
  126. // .btn-group.btn-toggle {
  127. // .btn {
  128. // min-width: 60px;
  129. // }
  130. // .btn.active[data-active-class='default'] {
  131. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  132. // }
  133. // .btn.active[data-active-class='primary'] {
  134. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  135. // }
  136. // // disabled btn-group styles
  137. // &.btn-group-disabled {
  138. // .btn:hover {
  139. // cursor: not-allowed;
  140. // background-color: unset;
  141. // }
  142. // }
  143. // }
  144. // theme selector
  145. #themeOptions {
  146. // layout
  147. .theme-option-container {
  148. min-width: 100px;
  149. a {
  150. padding: 3px;
  151. margin-right: 10px;
  152. margin-bottom: 10px;
  153. svg {
  154. display: block;
  155. }
  156. }
  157. }
  158. &.disabled {
  159. cursor: not-allowed;
  160. opacity: 0.5;
  161. }
  162. // style
  163. .theme-option-container a {
  164. background-color: $gray-50;
  165. border: 1px solid $border-color;
  166. }
  167. .theme-option-name {
  168. opacity: 0.3;
  169. }
  170. // style (active)
  171. .theme-option-container.active {
  172. .theme-option-name {
  173. opacity: 1;
  174. }
  175. }
  176. }
  177. .settings-table {
  178. table-layout: fixed;
  179. .item-name {
  180. width: 150px;
  181. }
  182. td.unused {
  183. opacity: 0.5;
  184. }
  185. &.use-only-env-vars .from-env-vars {
  186. background-color: rgba($info, 0.1);
  187. }
  188. }
  189. }
  190. .admin-navigation {
  191. & > a + a {
  192. margin-top: 2px;
  193. }
  194. &.sticky-top {
  195. top: 30px;
  196. }
  197. }