vc_switcher.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .composer-switch {
  2. // WPBakery Page Builder/Classic Editor switch
  3. cursor: default;
  4. .box-sizing(border-box);
  5. display: inline-block;
  6. padding: 0;
  7. font-size: 14px;
  8. line-height: 27px;
  9. border-radius: 4px;
  10. a, a:visited {
  11. transition: background-color .2s ease-in-out;
  12. text-decoration: none;
  13. cursor: pointer;
  14. color: #ffffff;
  15. display: inline-block;
  16. line-height: 28px;
  17. height: 28px;
  18. padding: 8px 13px;
  19. background-color: #0073aa;
  20. outline: none;
  21. box-shadow: none;
  22. &.wpb_switch-to-composer {
  23. &:hover {
  24. background-color: #0d3d63;
  25. }
  26. }
  27. &.wpb_switch-to-front-composer {
  28. background-color: #0073aa;
  29. &:hover {
  30. background-color: #0d3d63;
  31. }
  32. }
  33. &.wpb_switch-to-gutenberg {
  34. -webkit-border-radius: 4px;
  35. -moz-border-radius: 4px;
  36. border-radius: 4px;
  37. background-color: #bcbcbc;
  38. margin-top: 10px;
  39. &:hover {
  40. background-color: #afafaf;
  41. }
  42. }
  43. }
  44. .logo-icon {
  45. background: #0073aa url(../vc/logo/wpb-logo-white.svg) no-repeat center center;
  46. background-size: 16px;
  47. width: 16px;
  48. height: 28px;
  49. display: inline-block;
  50. vertical-align: top;
  51. padding: 8px 10px 8px 13px;
  52. }
  53. .vc_spacer {
  54. display: inline-block;
  55. width: 1px;
  56. background-color: #1f5b8c;
  57. margin: 0;
  58. height: 28px;
  59. padding: 4px 0;
  60. vertical-align: top;
  61. position: relative;
  62. }
  63. > :nth-last-child(2) {
  64. margin-right: 10px;
  65. -webkit-border-top-right-radius: 4px;
  66. -webkit-border-bottom-right-radius: 4px;
  67. -moz-border-radius-topright: 4px;
  68. -moz-border-radius-bottomright: 4px;
  69. border-top-right-radius: 4px;
  70. border-bottom-right-radius: 4px;
  71. }
  72. }
  73. .composer-inner-switch {
  74. white-space: nowrap;
  75. display: inline-block;
  76. margin: 10px 10px 0 0;
  77. vertical-align: top;
  78. > :first-child {
  79. -webkit-border-top-left-radius: 4px;
  80. -webkit-border-bottom-left-radius: 4px;
  81. -moz-border-radius-topleft: 4px;
  82. -moz-border-radius-bottomleft: 4px;
  83. border-top-left-radius: 4px;
  84. border-bottom-left-radius: 4px;
  85. }
  86. > :last-child {
  87. -webkit-border-top-right-radius: 4px;
  88. -webkit-border-bottom-right-radius: 4px;
  89. -moz-border-radius-topright: 4px;
  90. -moz-border-radius-bottomright: 4px;
  91. border-top-right-radius: 4px;
  92. border-bottom-right-radius: 4px;
  93. }
  94. }
  95. .edit-post-header-toolbar {
  96. .composer-switch {
  97. font-size: 12px;
  98. margin-top: 2px;
  99. .wpb_switch-to-gutenberg {
  100. margin-top: 0;
  101. }
  102. .composer-inner-switch {
  103. margin-top: 0;
  104. }
  105. a, a:visited {
  106. padding: 1px 7px;
  107. }
  108. }
  109. }