Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

_template-customizer.scss 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. /*
  2. * Template Customizer Style
  3. **/
  4. $customizer-width: 400px;
  5. $customizer-hide-width: 1200px;
  6. $customizer-spacer: 20px;
  7. $customizer-font-size: inherit;
  8. $open-btn-size: 38px;
  9. $open-btn-spacer: 0;
  10. $open-btn-font-size: 18px;
  11. $open-btn-top: 180px;
  12. $open-btn-color: #fff;
  13. $open-btn-border-radius: .375rem;
  14. #template-customizer {
  15. position: fixed;
  16. z-index: 99999999;
  17. display: flex;
  18. flex-direction: column;
  19. block-size: 100%;
  20. -webkit-box-direction: normal;
  21. -webkit-box-orient: vertical;
  22. box-shadow: 0 .3125rem 1.375rem 0 rgba(34, 48, 62, .18);
  23. font-family: "Public Sans", -apple-system, blinkmacsystemfont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  24. font-size: $customizer-font-size;
  25. inline-size: $customizer-width;
  26. inset-block-start: 0;
  27. inset-inline-end: 0;
  28. transform: translateX($customizer-width + $customizer-spacer);
  29. transition: transform .2s ease-in;
  30. [data-bs-theme="dark"] & {
  31. box-shadow: 0 .3125rem 1.375rem 0 rgba(20, 20, 29, .26);
  32. }
  33. h5 {
  34. position: relative;
  35. font-size: 11px;
  36. }
  37. .form-label {
  38. font-size: .9375rem;
  39. font-weight: 500;
  40. }
  41. /* Color option styles */
  42. .template-customizer-colors-options{
  43. display: flex;
  44. flex-direction: row;
  45. justify-content: space-around;
  46. margin: 0;
  47. gap: .3rem;
  48. .custom-option{
  49. inline-size: 50px;
  50. .custom-option-content{
  51. padding: 0;
  52. min-block-size: 46px;
  53. .pcr-button{
  54. padding: .625rem;
  55. block-size: 30px;
  56. inline-size: 30px;
  57. &::before,
  58. &::after{
  59. border-radius: .5rem;
  60. }
  61. &:focus{
  62. box-shadow: none;
  63. }
  64. }
  65. }
  66. }
  67. .custom-option-body{
  68. border-radius: .5rem;
  69. block-size: 30px;
  70. inline-size: 30px;
  71. }
  72. }
  73. /* Font Icons sizing and alignments */
  74. .custom-option-icon{
  75. padding: 0;
  76. .custom-option-content {
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. min-block-size: 50px;
  81. }
  82. }
  83. /* border-color for hr */
  84. hr{
  85. border-color: var(--bs-border-color);
  86. }
  87. /* To update svg image's color */
  88. .custom-option{
  89. border-width: 2px;
  90. margin: 0;
  91. &.custom-option-image .custom-option-content .custom-option-body svg {
  92. inline-size: 100%;
  93. }
  94. }
  95. &.template-customizer-open {
  96. transform: none;
  97. transition-delay: .1s;
  98. .template-customizer-theme .custom-option.checked{
  99. background-color: rgba(var(--bs-primary-rgb), .08);
  100. *,
  101. *::before,
  102. *::after{
  103. color: var(--bs-primary);
  104. }
  105. }
  106. .custom-option.checked {
  107. border-width: 2px;
  108. color: var(--bs-primary);
  109. .custom-option-content {
  110. border: none;
  111. }
  112. }
  113. }
  114. .template-customizer-header {
  115. a:hover {
  116. &,
  117. .icon-base {
  118. color: inherit !important;
  119. }
  120. }
  121. }
  122. /* Customizer button */
  123. .template-customizer-open-btn {
  124. position: absolute;
  125. z-index: -1;
  126. display: block;
  127. background: var(--bs-primary);
  128. block-size: $open-btn-size;
  129. border-end-start-radius: $open-btn-border-radius;
  130. border-start-start-radius: $open-btn-border-radius;
  131. box-shadow: 0 .125rem .25rem 0 rgba(var(--bs-primary-rgb), .4);
  132. color: $open-btn-color;
  133. font-size: $open-btn-font-size;
  134. inline-size: $open-btn-size;
  135. inset-block-start: $open-btn-top;
  136. inset-inline-start: 0;
  137. line-height: $open-btn-size;
  138. opacity: 1;
  139. text-align: center;
  140. transform: translateX(-($open-btn-size + $customizer-spacer + $open-btn-spacer));
  141. transition: all .1s linear .2s;
  142. &::before {
  143. position: absolute;
  144. display: block;
  145. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABClJREFUaEPtmY1RFEEQhbsjUCIQIhAiUCNQIxAiECIQIxAiECIAIpAMhAiECIQI2vquZqnZvp6fhb3SK5mqq6Ju92b69bzXf6is+dI1t1+eAfztG5z1BsxsU0S+ici2iPB3vm5E5EpEDlSVv2dZswFIxv8UkZcNy+5EZGcuEHMCOBeR951uvVDVD53vVl+bE8DvDu8Pxtyo6ta/BsByg1R15Bwzqz5/LJgn34CZwfnPInI4BUB6/1hV0cSjVxcAM4PbcBZjL0XklIPN7Is3fLCkdQPpPYw/VNXj5IhPIvJWRIhSl6p60ULWBGBm30Vk123EwRxCuIzWkkjNrCZywith10ewE1Xdq4GoAjCz/RTXW44Ynt+LyBEfT43kYfbj86J3w5Q32DNcRQDpwF+dkQXDMey8xem0L3TEqB4g3PZWad8agBMRgZPeu96D1/C2Zbh3X0p80Op1xxloztN48bMQQNoc7+eLEuAoPSPiIDY4Ooo+E6ixeNXM+D3GERz2U3CIqMstLJUgJQDe+7eq6mub0NYEkLAKwEHkiBQDCZtddZCZ8d6r7JDwFkoARklHRPZUFVDVZWbwGuNrC4EfdOzFrRABh3Wnqhv+d70AEBLGFROPmeHlnM81G69UdSd6IUuM0GgUVn1uqWmg5EmMfBeEyB7Pe3txBkY+rGT8j0J+WXq/BgDkUCaqLgEAnwcRog0veMIqFAAwCy2wnw+bI2GaGboBgF9k5N0o0rUSGUb4eO0BeO9j/GYhkSHMHMTIqwGARX6p6a+nlPBl8kZuXMD9j6pKfF9aZuaFOdJCEL5D4eYb9wCYVCanrBmGyii/tIq+SLj/HQBCaM5bLzwfPqdQ6FpVHyra4IbuVbXaY7dETC2ESPNNWiIOi69CcdgSMXsh4tNSUiklMgwmC0aNd08Y5WAES6HHehM4gu97wyhBgWpgqXsrASglprDy7CwhehMZOSbK6JMSma+Fio1KltCmlBIj7gfZOGx8ppQSXrhzFnOhJ/31BDkjFHRvOd09x0mRBA9SFgxUgHpQg0q0t5ymPMlL+EnldFTfDA0NAmf+OTQ0X0sRouf7NNkYGhrOYNrxtIaGg83MNzVDSe3LXLhP7O/yrCsCz1zlWTpjWkuZAOBpX3yVnLqI1yLCOKU6qMrmP7SSrUEw54XF4WBIK5FxCMOr3lVsfGqNSmPzBXUnJTIX1jyVBq9wO6UObOpgC5GjO98vFKnTdQMZXxEsWZlDiCZMIxAbNxQOqlpVZtobejBaZNoBnRDzMFpkxvTQOD36BlrcySZuI6p1ACB6LU3wWuf5581+oHfD1vi89bz3nFUC8Nm7ZlP3nKkFbM4bWPt/MSFwklprYItwt6cmvpWJ2IVcQBCz6bLysSCv3SaANCiTsnaNRrNRqMXVVT1/BrAqz/buu/Y38Ad3KC5PARej0QAAAABJRU5ErkJggg==");
  146. background-size: 100% 100%;
  147. block-size: 22px;
  148. content: "";
  149. inline-size: 22px;
  150. inset-block-start: 50%;
  151. inset-inline-start: 50%;
  152. transform: translate(-50%, -50%);
  153. :dir(rtl) & {
  154. margin-inline-start: 2px;
  155. transform: translate(50%, -50%);
  156. }
  157. }
  158. /* Customizer Hidden */
  159. .customizer-hide & {
  160. display: none;
  161. }
  162. :dir(rtl) & {
  163. transform: translateX($open-btn-size + $customizer-spacer + $open-btn-spacer);
  164. }
  165. }
  166. &.template-customizer-open .template-customizer-open-btn {
  167. opacity: 0;
  168. transform: none;
  169. transition-delay: 0s;
  170. }
  171. /* Customizer inner */
  172. .template-customizer-inner {
  173. position: relative;
  174. overflow: auto;
  175. flex: 0 1 auto;
  176. -webkit-box-flex: 0;
  177. opacity: 1;
  178. transition: opacity .2s;
  179. }
  180. }
  181. @media (max-width: $customizer-hide-width) {
  182. #template-customizer {
  183. display: none;
  184. visibility: hidden;
  185. }
  186. }
  187. .layout-menu-100vh #template-customizer {
  188. block-size: 100dvh;
  189. }
  190. /* RTL */
  191. :dir(rtl) {
  192. #template-customizer:not(.template-customizer-open){
  193. transform: translateX(-($customizer-width + $customizer-spacer));
  194. }
  195. }