_admin.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .admin-page {
  2. //security XSS prevent
  3. .admin-user-menu {
  4. .dropdown-menu {
  5. left: auto;
  6. right: 0;
  7. width: 300px;
  8. }
  9. }
  10. .admin-group-menu {
  11. .dropdown-menu {
  12. left: auto;
  13. right: 0;
  14. }
  15. }
  16. .admin-customize {
  17. .ss-container img {
  18. padding: .5em;
  19. background-color: #ddd;
  20. }
  21. .table-user-list {
  22. .label-admin {
  23. margin-left: 1em;
  24. }
  25. }
  26. }
  27. .admin-security {
  28. .passport-logo {
  29. margin-top: -.5em;
  30. padding: 3px;
  31. height: 32px;
  32. background-color: black;
  33. }
  34. .auth-mechanism-configurations {
  35. min-height: 300px;
  36. }
  37. }
  38. .admin-notification {
  39. .td-abs-center {
  40. text-align: center;
  41. vertical-align: middle;
  42. width: 1px; // to keep the cell small
  43. }
  44. }
  45. .admin-importer {
  46. table.table-mapping {
  47. th, td {
  48. text-align: center;
  49. }
  50. }
  51. }
  52. // Toggle Twitter Bootstrap button class when active
  53. // https://jsfiddle.net/ms040m01/3/
  54. @mixin active-color($color, $bg-color, $border-color) {
  55. color: $color;
  56. background-color: darken($bg-color, 10%);
  57. border-color: $border-color;
  58. &:hover {
  59. background-color: darken($bg-color, 15%);
  60. }
  61. }
  62. .btn-group.btn-toggle {
  63. .btn {
  64. min-width: 60px;
  65. }
  66. .btn.active[data-active-class="default"] {
  67. @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  68. }
  69. .btn.active[data-active-class="primary"] {
  70. @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  71. }
  72. }
  73. // theme selector
  74. #themeOptions {
  75. // layout
  76. .theme-option-container {
  77. min-width: 100px;
  78. a {
  79. margin-right: 10px;
  80. margin-bottom: 10px;
  81. padding: 3px;
  82. svg {
  83. display: block;
  84. }
  85. }
  86. }
  87. // style
  88. .theme-option-container a {
  89. border: 1px solid #ccc;
  90. background-color: #f5f5f5;
  91. }
  92. .theme-option-name {
  93. opacity: 0.3;
  94. }
  95. // style (active)
  96. .theme-option-container.active {
  97. .theme-option-name {
  98. opacity: 1;
  99. }
  100. }
  101. }
  102. }