_admin.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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-desc {
  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. .bot-integration {
  94. .admin-bot-card {
  95. border-radius: 8px !important;
  96. }
  97. .admin-border {
  98. border-style : dashed;
  99. border-width : 2px;
  100. }
  101. .circle{
  102. width: 100px;
  103. height: 100px;
  104. background: #092c58;
  105. border: 13px solid #d0d6de;
  106. border-radius: 50%;
  107. }
  108. }
  109. //// TODO: migrate to Bootstrap 4
  110. //// omit all .btn-toggle and use Switches
  111. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  112. //
  113. // Toggle Twitter Bootstrap button class when active
  114. // https://jsfiddle.net/ms040m01/3/
  115. // @mixin active-color($color, $bg-color, $border-color) {
  116. // color: $color;
  117. // background-color: darken($bg-color, 10%);
  118. // border-color: $border-color;
  119. // &:hover {
  120. // background-color: darken($bg-color, 15%);
  121. // }
  122. // }
  123. // .btn-group.btn-toggle {
  124. // .btn {
  125. // min-width: 60px;
  126. // }
  127. // .btn.active[data-active-class='default'] {
  128. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  129. // }
  130. // .btn.active[data-active-class='primary'] {
  131. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  132. // }
  133. // // disabled btn-group styles
  134. // &.btn-group-disabled {
  135. // .btn:hover {
  136. // cursor: not-allowed;
  137. // background-color: unset;
  138. // }
  139. // }
  140. // }
  141. // theme selector
  142. #themeOptions {
  143. // layout
  144. .theme-option-container {
  145. min-width: 100px;
  146. a {
  147. padding: 3px;
  148. margin-right: 10px;
  149. margin-bottom: 10px;
  150. svg {
  151. display: block;
  152. }
  153. }
  154. }
  155. &.disabled {
  156. cursor: not-allowed;
  157. opacity: 0.5;
  158. }
  159. // style
  160. .theme-option-container a {
  161. background-color: $gray-50;
  162. border: 1px solid $border-color;
  163. }
  164. .theme-option-name {
  165. opacity: 0.3;
  166. }
  167. // style (active)
  168. .theme-option-container.active {
  169. .theme-option-name {
  170. opacity: 1;
  171. }
  172. }
  173. }
  174. .settings-table {
  175. table-layout: fixed;
  176. .item-name {
  177. width: 150px;
  178. }
  179. td.unused {
  180. opacity: 0.5;
  181. }
  182. &.use-only-env-vars .from-env-vars {
  183. background-color: rgba($info, 0.1);
  184. }
  185. }
  186. }
  187. .admin-navigation {
  188. & > a + a {
  189. margin-top: 2px;
  190. }
  191. &.sticky-top {
  192. top: 30px;
  193. }
  194. }