_admin.scss 3.2 KB

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