_admin.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. .admin-page {
  2. .admin-user-menu {
  3. .dropdown-menu {
  4. right: 0;
  5. left: auto;
  6. width: 300px;
  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. //// TODO: migrate to Bootstrap 4
  57. //// omit all .btn-toggle and use Switches
  58. //// https://getbootstrap.com/docs/4.2/components/forms/#switches
  59. //
  60. // Toggle Twitter Bootstrap button class when active
  61. // https://jsfiddle.net/ms040m01/3/
  62. // @mixin active-color($color, $bg-color, $border-color) {
  63. // color: $color;
  64. // background-color: darken($bg-color, 10%);
  65. // border-color: $border-color;
  66. // &:hover {
  67. // background-color: darken($bg-color, 15%);
  68. // }
  69. // }
  70. // .btn-group.btn-toggle {
  71. // .btn {
  72. // min-width: 60px;
  73. // }
  74. // .btn.active[data-active-class='default'] {
  75. // @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  76. // }
  77. // .btn.active[data-active-class='primary'] {
  78. // @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  79. // }
  80. // // disabled btn-group styles
  81. // &.btn-group-disabled {
  82. // .btn:hover {
  83. // cursor: not-allowed;
  84. // background-color: unset;
  85. // }
  86. // }
  87. // }
  88. // theme selector
  89. #themeOptions {
  90. // layout
  91. .theme-option-container {
  92. min-width: 100px;
  93. a {
  94. padding: 3px;
  95. margin-right: 10px;
  96. margin-bottom: 10px;
  97. svg {
  98. display: block;
  99. }
  100. }
  101. }
  102. &.disabled {
  103. cursor: not-allowed;
  104. opacity: 0.5;
  105. }
  106. // style
  107. .theme-option-container a {
  108. background-color: #f5f5f5;
  109. border: 1px solid #ccc;
  110. }
  111. .theme-option-name {
  112. opacity: 0.3;
  113. }
  114. // style (active)
  115. .theme-option-container.active {
  116. .theme-option-name {
  117. opacity: 1;
  118. }
  119. }
  120. }
  121. .settings-table {
  122. table-layout: fixed;
  123. .item-name {
  124. width: 150px;
  125. }
  126. td.unused {
  127. opacity: 0.5;
  128. }
  129. &.use-only-env-vars .from-env-vars {
  130. background-color: rgba($info, 0.1);
  131. }
  132. }
  133. }