No Description

emojionearea.scss 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. @import "compass/css3";
  2. .emojionearea {
  3. &, &.form-control {
  4. display: block;
  5. width: 100%;
  6. height: auto;
  7. padding: 0;
  8. font-size: 14px;
  9. background-color: #fff;
  10. background-image: none;
  11. border: 1px solid #ccc;
  12. @include border-radius(4px);
  13. @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075));
  14. @include transition(border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s);
  15. @include box-sizing(border-box);
  16. overflow: hidden;
  17. }
  18. &.focused {
  19. border-color: #66afe9;
  20. outline: 0;
  21. @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6));
  22. }
  23. .emojionearea-editor {
  24. display: block;
  25. @include box-sizing(border-box);
  26. height: auto;
  27. min-height: 8em;
  28. max-height: 15em;
  29. overflow: auto;
  30. padding: 6px 12px;
  31. line-height: 1.42857143;
  32. font-size: inherit;
  33. color: #555;
  34. background-color: inherit;
  35. background-image: none;
  36. border: 0;
  37. cursor: text;
  38. @include border-radius(0);
  39. @include box-shadow(none);
  40. &:empty:before {
  41. content: attr(placeholder);
  42. display: block;
  43. }
  44. &:focus {
  45. border: 0;
  46. outline: 0;
  47. @include box-shadow(none);
  48. }
  49. [class*=emojione-], .emojione {
  50. font-size: inherit;
  51. height: 2ex;
  52. width: 2.1ex;
  53. min-height: 20px;
  54. min-width: 20px;
  55. display: inline-block;
  56. margin: -.2ex .15em .2ex;
  57. line-height: normal;
  58. vertical-align: middle;
  59. max-width: 100%;
  60. top: 0;
  61. }
  62. }
  63. .emojionearea-filters {
  64. @include box-sizing(border-box);
  65. background: #e5e5e5;
  66. width: 100%;
  67. height: 46px;
  68. position: relative;
  69. overflow: hidden;
  70. .emojionearea-filter {
  71. @include box-sizing(content-box);
  72. top: 0 !important;
  73. margin: 0;
  74. width: 32px;
  75. height: 32px;
  76. width: 28px;
  77. height: 28px;
  78. display: inline-block;
  79. background-color: #e5e5e5;
  80. border: 9px solid #e5e5e5;
  81. border-left-width: 14px;
  82. border-right-width: 14px;
  83. @include opacity(0.7);
  84. i, img {
  85. display: block;
  86. width: 28px;
  87. height: 28px;
  88. top: 0;
  89. margin: 0;
  90. }
  91. &:hover {
  92. background-color: #f2f2f2;
  93. border-color: #f2f2f2;
  94. @include opacity(0.9);
  95. }
  96. &.active {
  97. background-color: #f9f9f9;
  98. border-color: #f9f9f9;
  99. @include opacity(1);
  100. }
  101. }
  102. .emojionearea-filters-scroll {
  103. height: 46px;
  104. overflow: hidden;
  105. width: 10000%;
  106. display: block;
  107. left: 0;
  108. margin: 0;
  109. position: absolute;
  110. @include transition(left ease-in-out .25s);
  111. }
  112. .emojionearea-filter-arrow-left,
  113. .emojionearea-filter-arrow-right {
  114. display: block;
  115. width: 22px;
  116. height: 46px;
  117. position: absolute;
  118. top: 0;
  119. @include box-shadow(0px 0px 2px rgba(0,0,0,0.2));
  120. background: #e5e5e5;
  121. z-index: 1;
  122. &:hover {
  123. background: #f2f2f2;
  124. }
  125. &:after {
  126. content: "";
  127. width: 0;
  128. height: 0;
  129. border-style: solid;
  130. border-width: 5px 0;
  131. border-color: transparent;
  132. position: absolute;
  133. top: 18px;
  134. }
  135. &.disabled {
  136. @include box-shadow(none);
  137. }
  138. }
  139. .emojionearea-filter-arrow-left {
  140. @include transition(left ease-in-out .15s);
  141. left: -30px;
  142. border-right: 1px solid #c9c9c9;
  143. &:after {
  144. left: 6px;
  145. border-right: 8px solid #333;
  146. }
  147. &.disabled:after {
  148. border-right-color: #aaa;
  149. }
  150. }
  151. .emojionearea-filter-arrow-right {
  152. @include transition(right ease-in-out .15s);
  153. right: -30px;
  154. border-left: 1px solid #c9c9c9;
  155. &:after {
  156. right: 6px;
  157. border-left: 8px solid #333;
  158. }
  159. &.disabled:after {
  160. border-left-color: #aaa;
  161. }
  162. }
  163. }
  164. &.focused .emojionearea-filters {
  165. .emojionearea-filter-arrow-left.active {
  166. left: 0;
  167. }
  168. .emojionearea-filter-arrow-right.active {
  169. right: 0;
  170. }
  171. }
  172. .emojionearea-tabs {
  173. padding: 0;
  174. background: #f9f9f9;
  175. @include box-sizing(border-box);
  176. [class*=emojione-] {
  177. @include box-sizing(content-box);
  178. margin: 0;
  179. width: 24px;
  180. height: 24px;
  181. top: 0;
  182. }
  183. .emojionearea-tab {
  184. @include box-sizing(border-box);
  185. padding: 4px 4px 4px 10px;
  186. max-height: 136px;
  187. overflow: auto;
  188. .emojibtn {
  189. @include box-sizing(content-box);
  190. width: 24px;
  191. height: 24px;
  192. float: left;
  193. display: block;
  194. margin: 1px;
  195. padding: 3px;
  196. &:hover {
  197. @include border-radius(4px);
  198. background-color: #e4e4e4;
  199. cursor: pointer;
  200. }
  201. i, img {
  202. float: left;
  203. display: block;
  204. width: 24px;
  205. height: 24px;
  206. }
  207. }
  208. }
  209. }
  210. .emojionearea-editor + .emojionearea-filters,
  211. .emojionearea-editor + .emojionearea-tabs,
  212. .emojionearea-filters + .emojionearea-editor,
  213. .emojionearea-tabs + .emojionearea-editor {
  214. border-top: 1px solid #cfcfcf;
  215. }
  216. }