fontOperator.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .font-operator {
  2. width: 170px;
  3. display: inline-block;
  4. vertical-align: middle;
  5. font-size: 12px;
  6. padding: 0 5px;
  7. .font-size-list {
  8. display: inline-block;
  9. border: 1px solid #eee;
  10. padding: 2px 4px;
  11. }
  12. .font-family-list {
  13. display: inline-block;
  14. border: 1px solid #eee;
  15. padding: 2px 4px;
  16. }
  17. }
  18. .current-font-item a {
  19. text-decoration: none;
  20. display: inline-block;
  21. }
  22. .current-font-family {
  23. width: 75px;
  24. height: 18px;
  25. overflow: hidden;
  26. vertical-align: bottom;
  27. }
  28. .current-font-size {
  29. width: 32px;
  30. height: 18px;
  31. overflow: hidden;
  32. vertical-align: bottom;
  33. }
  34. .current-font-item[disabled] {
  35. opacity: 0.5;
  36. }
  37. .font-item {
  38. line-height: 1em;
  39. text-align: left;
  40. }
  41. .font-item-selected {
  42. background-color: @tool-selected;
  43. }
  44. .font-bold, .font-italics {
  45. display: inline-block;
  46. background: url(images/icons.png) no-repeat;
  47. cursor: pointer;
  48. margin: 0 3px;
  49. &:hover {
  50. background-color: @tool-hover;
  51. }
  52. &:active {
  53. background-color: @tool-active;
  54. }
  55. &[disabled] {
  56. opacity: 0.5;
  57. }
  58. }
  59. .font-bold {
  60. background-position: 0 -240px;
  61. }
  62. .font-italics {
  63. background-position: 0 -260px;
  64. }
  65. .font-bold-selected, .font-italics-selected {
  66. background-color: @tool-selected;
  67. }
  68. .font-color-wrap {
  69. display: inline-block;
  70. width: 30px;
  71. height: 22px;
  72. margin: 3px 3px 0 0;
  73. border: 1px #efefef solid;
  74. vertical-align: middle;
  75. font-size: 0;
  76. -webkit-user-select: none;
  77. -moz-user-select: none;
  78. -ms-user-select: none;
  79. user-select: none;
  80. &[disabled] {
  81. opacity: 0.5;
  82. }
  83. .quick-font-color {
  84. display: inline-block;
  85. width: 20px;
  86. height: 16px;
  87. font-size: 14px;
  88. line-height: 16px;
  89. vertical-align: top;
  90. text-align: center;
  91. cursor: default;
  92. color: #000;
  93. &:hover {
  94. background-color: @tool-hover;
  95. }
  96. &:active {
  97. background-color: @tool-active;
  98. }
  99. &[disabled] {
  100. opacity: 0.5;
  101. }
  102. }
  103. .font-color-preview {
  104. display: inline-block;
  105. width: 12px;
  106. height: 2px;
  107. margin: 0 4px 0;
  108. background-color: #000;
  109. &[disabled] {
  110. opacity: 0.5;
  111. }
  112. }
  113. }
  114. .font-color {
  115. display: inline-block;
  116. width: 8px;
  117. height: 16px;
  118. &:hover {
  119. background-color: @tool-hover;
  120. }
  121. &:active {
  122. background-color: @tool-active;
  123. }
  124. &[disabled] {
  125. opacity: 0.5;
  126. }
  127. .caret {
  128. margin-left: -2px;
  129. margin-top: 7px;
  130. }
  131. }