style_switcher.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /* style switcher */
  2. #style_switcher {
  3. position: fixed;
  4. right: 0;
  5. top: 140px;
  6. background: #fff;
  7. width: 240px;
  8. z-index: 1094;
  9. box-sizing: border-box;
  10. padding: 16px;
  11. margin-right: -246px;
  12. -webkit-transition: margin 280ms cubic-bezier(0.4, 0, 0.2, 1);
  13. transition: margin 280ms cubic-bezier(0.4, 0, 0.2, 1);
  14. box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.26);
  15. }
  16. #style_switcher.switcher_active {
  17. margin-right: 0;
  18. }
  19. #style_switcher .switcher_app_themes {
  20. margin: 0;
  21. padding: 0;
  22. list-style: none;
  23. overflow: hidden;
  24. }
  25. #style_switcher .switcher_app_themes > li {
  26. padding: 0;
  27. margin: 0;
  28. list-style: none;
  29. }
  30. #style_switcher .switcher_app_themes li {
  31. float: left;
  32. cursor: pointer;
  33. width: 36px;
  34. margin: 0 16px 16px 0;
  35. opacity: 0.5;
  36. -webkit-transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
  37. transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
  38. }
  39. #style_switcher .switcher_app_themes li span {
  40. display: block;
  41. padding: 0 4px;
  42. height: 24px;
  43. line-height: 24px;
  44. box-sizing: border-box;
  45. width: 50%;
  46. float: left;
  47. }
  48. #style_switcher .switcher_app_themes li.active_theme {
  49. opacity: 1;
  50. position: relative;
  51. }
  52. #style_switcher .switcher_app_themes li.active_theme:after {
  53. position: absolute;
  54. top: 0;
  55. left: 50%;
  56. content: '\e5ca';
  57. font-family: "Material Icons";
  58. font-size: 18px;
  59. display: block;
  60. color: #fff;
  61. margin-left: -8px;
  62. }
  63. #style_switcher .switcher_app_themes li.app_style_default .app_color_main {
  64. background: #2196f3;
  65. }
  66. #style_switcher .switcher_app_themes li.app_style_default .app_color_accent {
  67. background: #7cb342;
  68. }
  69. #style_switcher .switcher_app_themes li.switcher_theme_a .app_color_main {
  70. background: #3f51b5;
  71. }
  72. #style_switcher .switcher_app_themes li.switcher_theme_a .app_color_accent {
  73. background: #ff4081;
  74. }
  75. #style_switcher .switcher_app_themes li.switcher_theme_b .app_color_main {
  76. background: #673ab7;
  77. }
  78. #style_switcher .switcher_app_themes li.switcher_theme_b .app_color_accent {
  79. background: #00bcd4;
  80. }
  81. #style_switcher .switcher_app_themes li.switcher_theme_c .app_color_main {
  82. background: #5d4037;
  83. }
  84. #style_switcher .switcher_app_themes li.switcher_theme_c .app_color_accent {
  85. background: #1e88e5;
  86. }
  87. #style_switcher .switcher_app_themes li.switcher_theme_d .app_color_main {
  88. background: #00acc1;
  89. }
  90. #style_switcher .switcher_app_themes li.switcher_theme_d .app_color_accent {
  91. background: #673ab7;
  92. }
  93. #style_switcher .switcher_app_themes li.switcher_theme_e .app_color_main {
  94. background: #607d8b;
  95. }
  96. #style_switcher .switcher_app_themes li.switcher_theme_e .app_color_accent {
  97. background: #e53935;
  98. }
  99. #style_switcher .switcher_app_themes li.switcher_theme_f .app_color_main {
  100. background: #424242;
  101. }
  102. #style_switcher .switcher_app_themes li.switcher_theme_f .app_color_accent {
  103. background: #7cb342;
  104. }
  105. #style_switcher .switcher_app_themes li.switcher_theme_g .app_color_main {
  106. background: #8e24aa;
  107. }
  108. #style_switcher .switcher_app_themes li.switcher_theme_g .app_color_accent {
  109. background: #4caf50;
  110. }
  111. #style_switcher .switcher_app_themes li.switcher_theme_h .app_color_main {
  112. background: #d32f2f;
  113. }
  114. #style_switcher .switcher_app_themes li.switcher_theme_h .app_color_accent {
  115. background: #0277bd;
  116. }
  117. #style_switcher .switcher_app_themes li.switcher_theme_i .app_color_main {
  118. background: #fbc02d;
  119. }
  120. #style_switcher .switcher_app_themes li.switcher_theme_i .app_color_accent {
  121. background: #00acc1;
  122. }
  123. #style_switcher .switcher_app_themes li.switcher_theme_dark .app_color_main {
  124. background: #546e7a;
  125. }
  126. #style_switcher .switcher_app_themes li.switcher_theme_dark .app_color_accent {
  127. background: #009688;
  128. }
  129. #style_switcher_toggle {
  130. position: absolute;
  131. top: 8px;
  132. left: -44px;
  133. width: 44px;
  134. height: 36px;
  135. background: #fff;
  136. border-radius: 4px 0 0 4px;
  137. cursor: pointer;
  138. padding: 0 8px;
  139. box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.26);
  140. box-sizing: border-box;
  141. z-index: 1096;
  142. }
  143. #style_switcher_toggle .material-icons {
  144. font-size: 24px;
  145. line-height: 36px;
  146. color: #212121;
  147. }
  148. .app_theme_dark #style_switcher,
  149. .app_theme_dark #style_switcher_toggle {
  150. background: #424242;
  151. }
  152. .app_theme_dark #style_switcher_toggle .material-icons {
  153. color: #cbcbcb;
  154. }