_admin.scss 3.0 KB

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