vc_welcome.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @import "ui/vc_ui-fonts.less";
  2. @import "ui/vc_ui-button.less";
  3. @import "ui/vc_ui-helper.less";
  4. @import "ui/vc_ui-icon-pixel.less";
  5. @vc-welcome-border: rgba(125, 125, 125, 0.40);
  6. @vc-welcome-margin: 14px;
  7. @vc-welcome-base-font-size: 14px;
  8. @vc-welcome-gap: 20px;
  9. @vc-welcome-header-font-size: 36px;
  10. @vc-welcome-header-line-height: 1em;
  11. @vc-welcome-header-font-color: #656565;
  12. .vc_welcome {
  13. margin: @vc-welcome-margin;
  14. font-size: @vc-welcome-base-font-size;
  15. text-align: center;
  16. padding: @vc-welcome-gap;
  17. // buttons behavior
  18. .vc_ui-btn-group {
  19. margin-top: @vc-welcome-gap;
  20. margin-bottom: @vc-welcome-gap;
  21. }
  22. .vc_ui-button {
  23. margin: @vc-welcome-gap / 2;
  24. margin-bottom: 0;
  25. min-width: 190px;
  26. text-transform: capitalize;
  27. display: inline-flex;
  28. justify-content: center;
  29. align-items: center;
  30. .vc-composer-icon {
  31. font-size: 21px;
  32. padding: 0 .5em 0 0;
  33. }
  34. }
  35. // icon behaviour
  36. .vc_ui-icon-pixel {
  37. padding-right: .5em;
  38. }
  39. }
  40. .vc_welcome-brand {
  41. margin-top: @vc-welcome-gap;
  42. margin-bottom: @vc-welcome-gap * 1.5;
  43. text-align: center;
  44. img {
  45. box-shadow: none;
  46. display: inline-block;
  47. }
  48. }
  49. .vc_welcome-header {
  50. font-weight: 300;
  51. font-size: @vc-welcome-header-font-size;
  52. line-height: @vc-welcome-header-line-height;
  53. color: @vc-welcome-header-font-color;
  54. text-transform: uppercase;
  55. margin-top: @vc-welcome-gap;
  56. margin-bottom: @vc-welcome-gap * 2;
  57. }
  58. .vc_add-element-not-empty-button {
  59. display: inline-block;
  60. position: relative;
  61. font-size: 18px;
  62. color: #FFFFFF;
  63. width: 39px;
  64. height: 38px;
  65. -webkit-box-shadow: none !important;
  66. -moz-box-shadow: none !important;
  67. box-shadow: none !important;
  68. background-color: #C9C9C9;
  69. cursor: pointer;
  70. border: none !important;
  71. .border-radius(5px);
  72. .transition(background-color 0.5s);
  73. &:hover {
  74. background-color: #E4E4E4;
  75. color: #FFFFFF;
  76. }
  77. .vc-composer-icon {
  78. position: absolute;
  79. left: 50%;
  80. top: 50%;
  81. .translate(-50%, -50%);
  82. }
  83. }
  84. // not empty state
  85. .vc_welcome {
  86. &.vc_not-empty {
  87. border: 1px dashed @vc-welcome-border;
  88. .vc_welcome-visible-e {
  89. display: none;
  90. }
  91. }
  92. &:not(.vc_not-empty) {
  93. .vc_welcome-visible-ne {
  94. display: none;
  95. }
  96. }
  97. }
  98. // editors behaviour
  99. .vc_editor.compose-mode {
  100. .vc_welcome {
  101. margin: 0;
  102. }
  103. }
  104. // media behaviour
  105. @media screen and (max-width: @screen-sm) {
  106. .vc_welcome {
  107. .vc_ui-button {
  108. display: block;
  109. }
  110. }
  111. }