You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings-admin.scss 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. #theming {
  2. input {
  3. width: 230px;
  4. }
  5. input:focus,
  6. input:active {
  7. padding-right: 30px;
  8. }
  9. .fileupload {
  10. display: none;
  11. }
  12. div > label {
  13. position: relative;
  14. }
  15. .theme-undo {
  16. position: absolute;
  17. top: -7px; // input padding
  18. right: 4px; // input right margin + border
  19. cursor: pointer;
  20. opacity: .3;
  21. padding: 7px;
  22. vertical-align: top;
  23. display: inline-block;
  24. visibility: hidden;
  25. height: 32px; // height of input
  26. width: 32px; // height of input
  27. }
  28. form.uploadButton {
  29. width: 411px;
  30. display: flex;
  31. align-items: center;
  32. }
  33. form .theme-undo,
  34. .theme-remove-bg {
  35. cursor: pointer;
  36. opacity: .3;
  37. padding: 7px;
  38. vertical-align: top;
  39. display: inline-block;
  40. float: right;
  41. position: relative;
  42. top: 4px;
  43. right: 0px;
  44. visibility: visible;
  45. height: 32px;
  46. width: 32px;
  47. // right align
  48. margin-left: auto;
  49. }
  50. form .theme-undo:not([style*="display:"]) ~ .theme-remove-bg {
  51. // Only align the undo button if both are shown
  52. margin-left: 0;
  53. }
  54. input[type='text']:hover + .theme-undo,
  55. input[type='text'] + .theme-undo:hover,
  56. input[type='text']:focus + .theme-undo,
  57. input[type='text']:active + .theme-undo,
  58. input[type='url']:hover + .theme-undo,
  59. input[type='url'] + .theme-undo:hover,
  60. input[type='url']:focus + .theme-undo,
  61. input[type='url']:active + .theme-undo{
  62. visibility: visible;
  63. }
  64. label span {
  65. display: inline-block;
  66. min-width: 175px;
  67. max-width: 175px;
  68. white-space: wrap;
  69. padding: 8px 0px;
  70. vertical-align: top;
  71. }
  72. .icon-upload,
  73. .uploadButton .icon-loading-small {
  74. padding: 8px 20px;
  75. width: 20px;
  76. margin: 2px 0px;
  77. min-height: 32px;
  78. display: inline-block;
  79. }
  80. #theming_settings_status {
  81. height: 26px;
  82. margin: 10px;
  83. }
  84. #theming_settings_loading {
  85. display: inline-block;
  86. vertical-align: middle;
  87. margin-right: 10px;
  88. }
  89. #theming_settings_msg {
  90. vertical-align: middle;
  91. border-radius: 3px;
  92. }
  93. #theming-preview {
  94. width: 230px;
  95. height: 140px;
  96. background-size: cover;
  97. background-position: center center;
  98. text-align: center;
  99. margin-left: 178px;
  100. margin-top: 10px;
  101. margin-bottom: 20px;
  102. cursor: pointer;
  103. background-color: var(--color-primary-default);
  104. background-image: var(--image-background-default, var(--image-background-plain, linear-gradient(40deg, #0082c9 0%, #30b6ff 100%)));
  105. #theming-preview-logo {
  106. cursor: pointer;
  107. width: 20%;
  108. height: 20%;
  109. margin-top: 20px;
  110. display: inline-block;
  111. background-position: center;
  112. background-repeat: no-repeat;
  113. background-size: contain;
  114. background-image: var(--image-logo, url('../../../core/img/logo/logo.svg'));
  115. }
  116. }
  117. .theming-hints {
  118. margin-top: 20px;
  119. }
  120. .image-preview {
  121. display: inline-block;
  122. width: 80px;
  123. height: 36px;
  124. background-position: center;
  125. background-repeat: no-repeat;
  126. background-size: contain;
  127. }
  128. #theming-preview-logoheader {
  129. // Only using --image-logoheader to show the custom value only
  130. background-image: var(--image-logoheader);
  131. }
  132. #theming-preview-favicon {
  133. background-image: var(--image-favicon);
  134. }
  135. #user-theming {
  136. margin-top: 44px;
  137. display: flex;
  138. & > div {
  139. max-width: 400px;
  140. margin-bottom: 44px;
  141. }
  142. }
  143. }
  144. /* transition effects for theming value changes */
  145. #header {
  146. transition: background-color 500ms linear;
  147. svg, img {
  148. transition: 500ms filter linear;
  149. }
  150. }