TinyMCE.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. .@{prefix}-tinymce {
  2. // Avoid FOUC
  3. visibility: inherit !important;
  4. position: relative;
  5. }
  6. .@{prefix}-fullscreen {
  7. border: 0; padding: 0; margin: 0;
  8. overflow: hidden;
  9. height: 100%;
  10. z-index: 100;
  11. }
  12. div.@{prefix}-fullscreen {
  13. position: fixed;
  14. top: 0; left: 0;
  15. width: 100%;
  16. height: auto;
  17. }
  18. .@{prefix}-tinymce {
  19. display: block;
  20. .border-radius(2px);
  21. }
  22. .@{prefix}-wordcount {
  23. position: absolute;
  24. top: 0;
  25. right: 0;
  26. padding: 8px;
  27. }
  28. div.@{prefix}-edit-area {
  29. background: #FFF;
  30. filter: none;
  31. }
  32. .@{prefix}-statusbar {
  33. position: relative;
  34. }
  35. .@{prefix}-statusbar .@{prefix}-container-body {
  36. position: relative;
  37. }
  38. .@{prefix}-fullscreen .@{prefix}-resizehandle {
  39. display: none;
  40. }
  41. // Charmap
  42. .@{prefix}-charmap {
  43. border-collapse: collapse;
  44. }
  45. .@{prefix}-charmap td {
  46. cursor: default;
  47. border: 1px solid @panel-border;
  48. width: 20px;
  49. height: 20px;
  50. line-height: 20px;
  51. text-align: center;
  52. vertical-align: middle;
  53. padding: 2px;
  54. }
  55. .@{prefix}-charmap td div {
  56. text-align: center;
  57. }
  58. .@{prefix}-charmap td:hover {
  59. background: @btn-bg-hlight;
  60. }
  61. .@{prefix}-grid td.@{prefix}-grid-cell div {
  62. border: 1px solid @grid-border;
  63. width: 15px; height: 15px;
  64. margin: 0px;
  65. cursor: pointer;
  66. &:focus {
  67. border-color: @grid-border-active;
  68. }
  69. &[disabled] {
  70. cursor: not-allowed;
  71. }
  72. }
  73. .@{prefix}-grid {
  74. border-spacing: 2px;
  75. border-collapse: separate;
  76. a {
  77. display: block;
  78. border: 1px solid transparent;
  79. &:hover, &:focus {
  80. border-color: @grid-border-active;
  81. }
  82. }
  83. }
  84. .@{prefix}-grid-border {
  85. margin: 0 4px 0 4px;
  86. a {
  87. border-color: @grid-border;
  88. width: 13px; height: 13px;
  89. }
  90. a:hover, a.@{prefix}-active {
  91. border-color: @grid-border-active;
  92. background: @grid-bg-active;
  93. }
  94. }
  95. .@{prefix}-text-center {
  96. text-align: center;
  97. }
  98. div.@{prefix}-tinymce-inline {
  99. width: 100%;
  100. .box-shadow(none);
  101. }
  102. .@{prefix}-colorbtn-trans div {
  103. text-align: center;
  104. vertical-align: middle;
  105. font-weight: bold;
  106. font-size: 20px;
  107. line-height: 16px;
  108. color: mix(@text, #fff, 70%);
  109. }
  110. .@{prefix}-monospace {
  111. font-family: "Courier New", Courier, monospace;
  112. }
  113. // Reduce double margins between toolbar rows
  114. .@{prefix}-toolbar-grp when (@has-button-borders = false) {
  115. padding: @flow-layout-spacing 0;
  116. }
  117. .@{prefix}-toolbar-grp when (@has-button-borders = true) {
  118. padding-bottom: 2px;
  119. }
  120. .@{prefix}-toolbar-grp .@{prefix}-flow-layout-item {
  121. margin-bottom: 0;
  122. }
  123. // RTL
  124. .@{prefix}-rtl .@{prefix}-wordcount {
  125. left: 0;
  126. right: auto;
  127. }