_admin.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. //// TODO: migrate to Bootstrap 4
  73. //// omit all .btn-toggle and use Switches
  74. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  75. //
  76. // Toggle Twitter Bootstrap button class when active
  77. // https://jsfiddle.net/ms040m01/3/
  78. // @mixin active-color($color, $bg-color, $border-color) {
  79. // color: $color;
  80. // background-color: darken($bg-color, 10%);
  81. // border-color: $border-color;
  82. // &:hover {
  83. // background-color: darken($bg-color, 15%);
  84. // }
  85. // }
  86. // .btn-group.btn-toggle {
  87. // .btn {
  88. // min-width: 60px;
  89. // }
  90. // .btn.active[data-active-class='default'] {
  91. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  92. // }
  93. // .btn.active[data-active-class='primary'] {
  94. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  95. // }
  96. // // disabled btn-group styles
  97. // &.btn-group-disabled {
  98. // .btn:hover {
  99. // cursor: not-allowed;
  100. // background-color: unset;
  101. // }
  102. // }
  103. // }
  104. #layoutOptions {
  105. .customize-layout-card {
  106. border: 4px solid $border-color;
  107. }
  108. }
  109. // theme selector
  110. #themeOptions {
  111. // layout
  112. .theme-option-container {
  113. min-width: 100px;
  114. a {
  115. padding: 3px;
  116. margin-right: 10px;
  117. margin-bottom: 10px;
  118. svg {
  119. display: block;
  120. }
  121. }
  122. }
  123. &.disabled {
  124. cursor: not-allowed;
  125. opacity: 0.5;
  126. }
  127. // style
  128. .theme-option-container a {
  129. background-color: $gray-50;
  130. border: 1px solid $border-color;
  131. }
  132. .theme-option-name {
  133. opacity: 0.3;
  134. }
  135. // style (active)
  136. .theme-option-container.active {
  137. .theme-option-name {
  138. opacity: 1;
  139. }
  140. }
  141. }
  142. .settings-table {
  143. table-layout: fixed;
  144. .item-name {
  145. width: 150px;
  146. }
  147. td.unused {
  148. opacity: 0.5;
  149. }
  150. &.use-only-env-vars .from-env-vars {
  151. background-color: rgba($info, 0.1);
  152. }
  153. }
  154. }
  155. .admin-navigation {
  156. & > a + a {
  157. margin-top: 2px;
  158. }
  159. &.sticky-top {
  160. top: 30px;
  161. }
  162. }