styles.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?php
  2. $styles = (new \App\Settings('styles'))->getAll();
  3. ?>
  4. <style>
  5. th{
  6. color: <?= $styles['pass_btn_color'] ?? '' ?>;
  7. background-color: <?= $styles['accent_color'] ?? '' ?>;
  8. }
  9. .burger:before,
  10. .burger:after,
  11. .burger {
  12. background-color: <?= $styles['burger-color'] ?? '' ?>;
  13. }
  14. .main-font {
  15. font-family: <?= $styles['main-fz'] ?? '' ?>;
  16. }
  17. .main-color {
  18. background: <?= $styles['main_color'] ?? '' ?>;
  19. }
  20. .header-color {
  21. background: <?= $styles['header_color'] ?? '' ?>;
  22. }
  23. .login-btn-bg {
  24. background: <?= $styles['login_btn_bg'] ?? '' ?>;
  25. }
  26. .accent-color {
  27. background: <?= $styles['accent_color'] ?? '' ?>;
  28. }
  29. button.accent-color {
  30. transition: filter 0.3s ease;
  31. }
  32. button.accent-color:hover {
  33. filter: brightness(0.85);
  34. }
  35. .faq-title-font-color {
  36. color: <?= $styles['faq-title-font-color'] ?? '' ?>;
  37. }
  38. .faq-title-hover-font-color:hover {
  39. color: <?= $styles['faq-title-hover-font-color'] ?? '' ?>;
  40. }
  41. .font-color {
  42. color: <?= $styles['font_color'] ?? '' ?>;
  43. }
  44. a {
  45. color: <?= $styles['link_color'] ?? '' ?>;
  46. text-decoration: none;
  47. transition: 300ms;
  48. }
  49. a:hover {
  50. color: <?= $styles['accent_color'] ?? '' ?>;
  51. }
  52. .secondary-color {
  53. background-color: <?= $styles['secondary_color'] ?? '' ?>;
  54. }
  55. .main-fz {
  56. color: <?= $styles['main_fz'] ?? '' ?>;
  57. }
  58. .footer-color {
  59. background: <?= $styles['footer_color'] ?? '' ?>;
  60. }
  61. .accordion-header.active {
  62. background: <?= $styles['accent_color'] ?? '' ?>;
  63. }
  64. .accordion-header:hover {
  65. background: <?= $styles['accent_color'] ?? '' ?>;
  66. }
  67. .header__menu-list {
  68. background: <?= $styles['header_color'] ?? '' ?>;
  69. }
  70. .login-btn-color {
  71. color: <?= $styles['login_btn_color'] ?? '' ?>;
  72. }
  73. .pass-btn-color {
  74. color: <?= $styles['pass_btn_color'] ?? '' ?>;
  75. }
  76. table {
  77. background: <?= $styles['table'] ?? '' ?>;
  78. }
  79. caption {
  80. background: <?= $styles['caption'] ?? '' ?>;
  81. }
  82. .casinos__bonus {
  83. color: <?= $styles['accent_color'] ?? '' ?>;
  84. }
  85. h2 {
  86. color: inherit;
  87. }
  88. h2::after {
  89. background: <?= $styles['accent_color'] ?? '' ?>;
  90. }
  91. @keyframes pulse {
  92. 0% {
  93. transform: scale(0.95);
  94. box-shadow: 0 0 0 0;
  95. }
  96. 70% {
  97. transform: scale(1);
  98. box-shadow: 0 4px 24px 0 <?= $styles['accent_color'] ?? '' ?>;
  99. }
  100. 100% {
  101. transform: scale(0.95);
  102. box-shadow: 0 0 0 0 transparent;
  103. }
  104. }
  105. ul {
  106. list-style: none;
  107. }
  108. .main__text ul li {
  109. position: relative;
  110. margin: 5px 0;
  111. }
  112. .main__text ul li::before {
  113. content: '✓';
  114. width: 22px;
  115. height: 22px;
  116. border-radius: 50%;
  117. background: <?= $styles['accent_color'] ?? '' ?>;
  118. display: inline-flex;
  119. align-items: center;
  120. justify-content: center;
  121. margin-right: 10px;
  122. font-size: 15px;
  123. }
  124. .secondary__text ul li {
  125. position: relative;
  126. margin: 5px 0;
  127. }
  128. .secondary__text ul li::before {
  129. content: '✓';
  130. width: 23px;
  131. height: 23px;
  132. border-radius: 50%;
  133. background: <?= $styles['accent_color'] ?? '' ?>;
  134. display: inline-flex;
  135. align-items: center;
  136. justify-content: center;
  137. margin-right: 10px;
  138. font-size: 15px;
  139. }
  140. .bottom-btn {
  141. margin: auto;
  142. width: 200px;
  143. background: #c30054;
  144. }
  145. ol {
  146. list-style: none;
  147. counter-reset: list-counter;
  148. padding-left: 0;
  149. }
  150. ol li {
  151. counter-increment: list-counter;
  152. position: relative;
  153. padding-left: 40px;
  154. /* Отступ для цифры */
  155. margin: 15px 0;
  156. }
  157. ol li::before {
  158. content: counter(list-counter);
  159. position: absolute;
  160. left: 0;
  161. width: 25px;
  162. height: 25px;
  163. border: 1px solid <?= $styles['accent_color'] ?? '' ?>;
  164. border-radius: 50%;
  165. text-align: center;
  166. line-height: 25px;
  167. font-weight: bold;
  168. top: -1px;
  169. font-size: 14px;
  170. }
  171. .main__btn {
  172. position: relative;
  173. margin: auto;
  174. }
  175. .main__btn a {
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. height: 100%;
  180. width: 100%;
  181. color: <?= $styles['pass_btn_color'] ?? '' ?>;
  182. }
  183. .main__btn a:hover {
  184. color: <?= $styles['pass_btn_color'] ?? '' ?>;
  185. }
  186. </style>