_admin.scss 2.6 KB

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