Toolbar.less 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2017 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * >>
  19. */
  20. @import '~antd/lib/style/themes/default';
  21. :global {
  22. .richtext {
  23. &-toolbar {
  24. padding: 0 8px;
  25. border-bottom: @border-width-base @border-style-base @border-color-base;
  26. user-select: none; // to avoid editor selection lost while clicking the toolbar item
  27. .anticon {
  28. font-size: 16px;
  29. }
  30. .anticon + .anticon {
  31. margin-left: 8px;
  32. }
  33. &-select, .ant-select-sm, .ant-select, .ant-select-enabled {
  34. width: auto;
  35. margin: 4px 8px 4px 0;
  36. h1, h2, h3, h4, h5, h6 {
  37. font-size: 14px;
  38. font-weight: normal;
  39. }
  40. span {
  41. font-size: inherit !important;
  42. line-height: 22px !important;
  43. }
  44. }
  45. &-item {
  46. margin-right: 8px;
  47. user-select: none;
  48. }
  49. &-icon {
  50. color: @text-color;
  51. &-active {
  52. color: @primary-color;
  53. }
  54. }
  55. &-color {
  56. height: 16px;
  57. width: 16px;
  58. cursor: pointer;
  59. overflow: hidden;
  60. border-bottom-width: 2px;
  61. border-bottom-style: solid;
  62. > i.anticon {
  63. font-size: 17px;
  64. }
  65. }
  66. }
  67. }
  68. }