_admin.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .admin-page {
  2. .grw-header.sticky-top {
  3. height: unset;
  4. }
  5. .admin-user-menu {
  6. .dropdown-menu {
  7. right: 0;
  8. left: auto;
  9. width: 300px;
  10. }
  11. }
  12. .admin-group-menu {
  13. .dropdown-menu {
  14. right: 0;
  15. left: auto;
  16. }
  17. }
  18. .admin-customize {
  19. @import 'hljs';
  20. .ss-container img {
  21. padding: 0.5em;
  22. background-color: #ddd;
  23. }
  24. .table-user-list {
  25. .label-admin {
  26. margin-left: 1em;
  27. }
  28. }
  29. }
  30. .admin-setting-header {
  31. border-bottom: 1px solid #dee2e6;
  32. }
  33. .admin-security {
  34. .passport-logo {
  35. height: 32px;
  36. padding: 3px;
  37. margin-top: -0.5em;
  38. background-color: black;
  39. }
  40. .auth-mechanism-configurations {
  41. min-height: 300px;
  42. }
  43. }
  44. .admin-notification {
  45. .td-abs-center {
  46. width: 1px; // to keep the cell small
  47. text-align: center;
  48. vertical-align: middle;
  49. }
  50. }
  51. .admin-importer {
  52. table.table-mapping {
  53. th,
  54. td {
  55. text-align: center;
  56. }
  57. }
  58. }
  59. .admin-export {
  60. .progress {
  61. height: 8px;
  62. }
  63. }
  64. //// TODO: migrate to Bootstrap 4
  65. //// omit all .btn-toggle and use Switches
  66. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  67. //
  68. // Toggle Twitter Bootstrap button class when active
  69. // https://jsfiddle.net/ms040m01/3/
  70. // @mixin active-color($color, $bg-color, $border-color) {
  71. // color: $color;
  72. // background-color: darken($bg-color, 10%);
  73. // border-color: $border-color;
  74. // &:hover {
  75. // background-color: darken($bg-color, 15%);
  76. // }
  77. // }
  78. // .btn-group.btn-toggle {
  79. // .btn {
  80. // min-width: 60px;
  81. // }
  82. // .btn.active[data-active-class='default'] {
  83. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  84. // }
  85. // .btn.active[data-active-class='primary'] {
  86. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  87. // }
  88. // // disabled btn-group styles
  89. // &.btn-group-disabled {
  90. // .btn:hover {
  91. // cursor: not-allowed;
  92. // background-color: unset;
  93. // }
  94. // }
  95. // }
  96. // theme selector
  97. #themeOptions {
  98. // layout
  99. .theme-option-container {
  100. min-width: 100px;
  101. a {
  102. padding: 3px;
  103. margin-right: 10px;
  104. margin-bottom: 10px;
  105. svg {
  106. display: block;
  107. }
  108. }
  109. }
  110. &.disabled {
  111. cursor: not-allowed;
  112. opacity: 0.5;
  113. }
  114. // style
  115. .theme-option-container a {
  116. background-color: #f5f5f5;
  117. border: 1px solid #ccc;
  118. }
  119. .theme-option-name {
  120. opacity: 0.3;
  121. }
  122. // style (active)
  123. .theme-option-container.active {
  124. .theme-option-name {
  125. opacity: 1;
  126. }
  127. }
  128. }
  129. .settings-table {
  130. table-layout: fixed;
  131. .item-name {
  132. width: 150px;
  133. }
  134. td.unused {
  135. opacity: 0.5;
  136. }
  137. &.use-only-env-vars .from-env-vars {
  138. background-color: rgba($info, 0.1);
  139. }
  140. }
  141. }
  142. .admin-navigation > a + a {
  143. margin-top: 2px;
  144. }