_admin.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. table .admin-notif-list {
  43. td {
  44. vertical-align: middle;
  45. }
  46. .td-abs-center {
  47. width: 1px; // to keep the cell small
  48. text-align: center;
  49. }
  50. }
  51. }
  52. .admin-importer {
  53. table.table-mapping {
  54. th,
  55. td {
  56. text-align: center;
  57. }
  58. }
  59. }
  60. .admin-export {
  61. .progress {
  62. height: 8px;
  63. }
  64. }
  65. //// TODO: migrate to Bootstrap 4
  66. //// omit all .btn-toggle and use Switches
  67. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  68. //
  69. // Toggle Twitter Bootstrap button class when active
  70. // https://jsfiddle.net/ms040m01/3/
  71. // @mixin active-color($color, $bg-color, $border-color) {
  72. // color: $color;
  73. // background-color: darken($bg-color, 10%);
  74. // border-color: $border-color;
  75. // &:hover {
  76. // background-color: darken($bg-color, 15%);
  77. // }
  78. // }
  79. // .btn-group.btn-toggle {
  80. // .btn {
  81. // min-width: 60px;
  82. // }
  83. // .btn.active[data-active-class='default'] {
  84. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  85. // }
  86. // .btn.active[data-active-class='primary'] {
  87. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  88. // }
  89. // // disabled btn-group styles
  90. // &.btn-group-disabled {
  91. // .btn:hover {
  92. // cursor: not-allowed;
  93. // background-color: unset;
  94. // }
  95. // }
  96. // }
  97. // theme selector
  98. #themeOptions {
  99. // layout
  100. .theme-option-container {
  101. min-width: 100px;
  102. a {
  103. padding: 3px;
  104. margin-right: 10px;
  105. margin-bottom: 10px;
  106. svg {
  107. display: block;
  108. }
  109. }
  110. }
  111. &.disabled {
  112. cursor: not-allowed;
  113. opacity: 0.5;
  114. }
  115. // style
  116. .theme-option-container a {
  117. background-color: #f5f5f5;
  118. border: 1px solid #ccc;
  119. }
  120. .theme-option-name {
  121. opacity: 0.3;
  122. }
  123. // style (active)
  124. .theme-option-container.active {
  125. .theme-option-name {
  126. opacity: 1;
  127. }
  128. }
  129. }
  130. .settings-table {
  131. table-layout: fixed;
  132. .item-name {
  133. width: 150px;
  134. }
  135. td.unused {
  136. opacity: 0.5;
  137. }
  138. &.use-only-env-vars .from-env-vars {
  139. background-color: rgba($info, 0.1);
  140. }
  141. }
  142. .grw-fixed-controls-container {
  143. display: none;
  144. }
  145. }
  146. .admin-navigation {
  147. & > a + a {
  148. margin-top: 2px;
  149. }
  150. &.sticky-top {
  151. top: 30px;
  152. }
  153. }