_admin.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. .clickable-row {
  40. .unclickable {
  41. text-align: center;
  42. vertical-align: middle;
  43. width: 50px;
  44. label.switch {
  45. margin: 0;
  46. }
  47. }
  48. :not(.unclickable) {
  49. cursor: pointer;
  50. }
  51. }
  52. /* slider checkbox */
  53. .switch {
  54. position: relative;
  55. display: inline-block;
  56. width: 30px;
  57. height: 17px;
  58. }
  59. /* Hide default HTML checkbox */
  60. .switch input {
  61. display: none;
  62. }
  63. /* The slider */
  64. .slider {
  65. position: absolute;
  66. cursor: pointer;
  67. top: 0;
  68. left: 0;
  69. right: 0;
  70. bottom: 0;
  71. -webkit-transition: .4s;
  72. transition: .4s;
  73. }
  74. .slider:before {
  75. position: absolute;
  76. content: "";
  77. height: 13px;
  78. width: 13px;
  79. left: 2px;
  80. bottom: 2px;
  81. -webkit-transition: .4s;
  82. transition: .4s;
  83. }
  84. input:checked+.slider:before {
  85. -webkit-transform: translateX(13px);
  86. -ms-transform: translateX(13px);
  87. transform: translateX(13px);
  88. }
  89. /* Rounded sliders */
  90. .slider.round {
  91. border-radius: 34px;
  92. }
  93. .slider.round:before {
  94. border-radius: 50%;
  95. }
  96. }
  97. // Toggle Twitter Bootstrap button class when active
  98. // https://jsfiddle.net/ms040m01/3/
  99. @mixin active-color($color, $bg-color, $border-color) {
  100. color: $color;
  101. background-color: darken($bg-color, 10%);
  102. border-color: $border-color;
  103. &:hover {
  104. background-color: darken($bg-color, 15%);
  105. }
  106. }
  107. .btn-group.btn-toggle {
  108. .btn {
  109. min-width: 60px;
  110. }
  111. .btn.active[data-active-class="default"] {
  112. @include active-color($btn-default-color, $btn-default-bg, $btn-default-border);
  113. }
  114. .btn.active[data-active-class="primary"] {
  115. @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  116. }
  117. }
  118. // theme selector
  119. #themeOptions {
  120. // layout
  121. a {
  122. margin-right: 10px;
  123. margin-bottom: 10px;
  124. padding: 3px;
  125. svg {
  126. display: block;
  127. }
  128. }
  129. // style
  130. a {
  131. border: 1px solid #ccc;
  132. background-color: #f5f5f5;
  133. &.active {
  134. border-color: $brand-success;
  135. background-color: $brand-success;
  136. }
  137. }
  138. }
  139. }