styles.css 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. img.emoji {
  2. height: 1em;
  3. width: 1em;
  4. margin: 0 0.05em 0 0.1em;
  5. vertical-align: -0.1em;
  6. display: inline-block;
  7. }
  8. .emoji-mart,
  9. .emoji-mart * {
  10. box-sizing: border-box;
  11. line-height: 1.15;
  12. }
  13. .emoji-mart {
  14. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  15. font-size: 16px;
  16. display: inline-block;
  17. color: #222427;
  18. border: 1px solid #d9d9d9;
  19. border-radius: 5px;
  20. background: #fff;
  21. }
  22. .emoji-mart .emoji-mart-emoji {
  23. padding: 6px !important;
  24. }
  25. .emoji-mart-bar {
  26. border: 0 solid #d9d9d9;
  27. }
  28. .emoji-mart-bar:first-child {
  29. border-bottom-width: 1px;
  30. border-top-left-radius: 5px;
  31. border-top-right-radius: 5px;
  32. }
  33. .emoji-mart-bar:last-child {
  34. border-top-width: 1px;
  35. border-bottom-left-radius: 5px;
  36. border-bottom-right-radius: 5px;
  37. }
  38. .emoji-mart-anchors {
  39. display: flex;
  40. flex-direction: row;
  41. justify-content: space-between;
  42. padding: 0 6px;
  43. line-height: 0;
  44. }
  45. .emoji-mart-anchor {
  46. position: relative;
  47. display: block;
  48. flex: 1 1 auto;
  49. color: #858585;
  50. text-align: center;
  51. padding: 12px 4px !important;
  52. overflow: hidden;
  53. transition: color .1s ease-out;
  54. margin: 0 !important;
  55. box-shadow: none !important;
  56. background: none !important;
  57. border: none !important;
  58. }
  59. .emoji-mart-anchor:focus { outline: 0 }
  60. .emoji-mart-anchor:hover,
  61. .emoji-mart-anchor:focus,
  62. .emoji-mart-anchor-selected {
  63. color: #464646;
  64. }
  65. .emoji-mart-anchor-selected .emoji-mart-anchor-bar {
  66. bottom: 0;
  67. }
  68. .emoji-mart-anchor-bar {
  69. position: absolute;
  70. bottom: -3px; left: 0;
  71. width: 100%; height: 3px;
  72. background-color: #464646;
  73. }
  74. .emoji-mart-anchors i {
  75. display: inline-block;
  76. width: 100%;
  77. max-width: 22px;
  78. }
  79. .emoji-mart-anchors svg,
  80. .emoji-mart-anchors img {
  81. fill: currentColor;
  82. height: 18px;
  83. width: 18px;
  84. }
  85. .emoji-mart-scroll {
  86. overflow-y: scroll;
  87. overflow-x: hidden;
  88. height: 270px;
  89. padding: 0 6px 6px 6px;
  90. will-change: transform; /* avoids "repaints on scroll" in mobile Chrome */
  91. }
  92. .emoji-mart-search {
  93. margin-top: 6px;
  94. padding: 0 6px;
  95. position: relative;
  96. }
  97. .emoji-mart-search input {
  98. font-size: 16px;
  99. display: block;
  100. width: 100%;
  101. padding: 5px 25px 6px 10px;
  102. border-radius: 5px;
  103. border: 1px solid #d9d9d9;
  104. outline: 0;
  105. }
  106. .emoji-mart-search input,
  107. .emoji-mart-search input::-webkit-search-decoration,
  108. .emoji-mart-search input::-webkit-search-cancel-button,
  109. .emoji-mart-search input::-webkit-search-results-button,
  110. .emoji-mart-search input::-webkit-search-results-decoration {
  111. /* remove webkit/blink styles for <input type="search">
  112. * via https://stackoverflow.com/a/9422689 */
  113. -webkit-appearance: none;
  114. }
  115. .emoji-mart-search-icon {
  116. position: absolute;
  117. top: 7px;
  118. right: 11px;
  119. z-index: 2;
  120. padding: 2px 5px 1px;
  121. border: none !important;
  122. box-shadow: none !important;
  123. background: none !important;
  124. }
  125. .emoji-mart-category .emoji-mart-emoji span {
  126. z-index: 1;
  127. position: relative;
  128. text-align: center;
  129. cursor: default;
  130. }
  131. .emoji-mart-category .emoji-mart-emoji:focus { outline: 0 }
  132. .emoji-mart-category .emoji-mart-emoji:hover:before,
  133. .emoji-mart-category .emoji-mart-emoji:focus:before {
  134. z-index: 0;
  135. content: "";
  136. position: absolute;
  137. top: 0; left: 0;
  138. width: 100%; height: 100%;
  139. background-color: #c5c5c5;
  140. border-radius: 100%;
  141. }
  142. .emoji-mart-category-label {
  143. z-index: 2;
  144. position: relative;
  145. position: -webkit-sticky;
  146. position: sticky;
  147. top: 0;
  148. }
  149. .emoji-mart-category-label span {
  150. display: block;
  151. width: 100%;
  152. font-weight: 500;
  153. padding: 5px 6px;
  154. background-color: #fff;
  155. background-color: rgba(255, 255, 255, .95);
  156. }
  157. .emoji-mart-category-list {
  158. border-spacing: 0;
  159. margin: 0;
  160. padding: 0;
  161. }
  162. .emoji-mart-category-list td {
  163. margin: 0;
  164. padding: 0;
  165. }
  166. .emoji-mart-emoji {
  167. position: relative;
  168. display: inline-block;
  169. font-size: 0;
  170. margin: 0 !important;
  171. padding: 0 !important;
  172. border: none !important;
  173. background: none !important;
  174. box-shadow: none !important;
  175. }
  176. .emoji-mart-emoji-native {
  177. font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji";
  178. }
  179. .emoji-mart-no-results {
  180. font-size: 14px;
  181. text-align: center;
  182. padding-top: 70px;
  183. color: #858585;
  184. }
  185. .emoji-mart-no-results-img {
  186. display: block;
  187. margin-left: auto;
  188. margin-right: auto;
  189. width: 50%;
  190. }
  191. .emoji-mart-no-results .emoji-mart-category-label {
  192. display: none;
  193. }
  194. .emoji-mart-no-results .emoji-mart-no-results-label {
  195. margin-top: .2em;
  196. }
  197. .emoji-mart-no-results .emoji-mart-emoji:hover:before {
  198. content: none;
  199. }
  200. .emoji-mart-preview {
  201. position: relative;
  202. height: 70px;
  203. }
  204. .emoji-mart-preview-emoji,
  205. .emoji-mart-preview-data,
  206. .emoji-mart-preview-skins {
  207. position: absolute;
  208. top: 50%;
  209. transform: translateY(-50%);
  210. }
  211. .emoji-mart-preview-emoji {
  212. left: 12px;
  213. }
  214. .emoji-mart-preview-data {
  215. left: 68px; right: 12px;
  216. word-break: break-all;
  217. }
  218. .emoji-mart-preview-skins {
  219. right: 30px;
  220. text-align: right;
  221. }
  222. .emoji-mart-preview-skins.custom {
  223. right: 10px;
  224. text-align: right;
  225. }
  226. .emoji-mart-preview-name {
  227. font-size: 14px;
  228. }
  229. .emoji-mart-preview-shortname {
  230. font-size: 12px;
  231. color: #888;
  232. }
  233. .emoji-mart-preview-shortname + .emoji-mart-preview-shortname,
  234. .emoji-mart-preview-shortname + .emoji-mart-preview-emoticon,
  235. .emoji-mart-preview-emoticon + .emoji-mart-preview-emoticon {
  236. margin-left: .5em;
  237. }
  238. .emoji-mart-preview-emoticon {
  239. font-size: 11px;
  240. color: #bbb;
  241. }
  242. .emoji-mart-title span {
  243. display: inline-block;
  244. vertical-align: middle;
  245. }
  246. .emoji-mart-title .emoji-mart-emoji {
  247. padding: 0;
  248. }
  249. .emoji-mart-title-label {
  250. color: #999A9C;
  251. font-size: 26px;
  252. font-weight: 300;
  253. }
  254. .emoji-mart-skin-swatches {
  255. font-size: 0;
  256. padding: 2px 0;
  257. border: 1px solid #d9d9d9;
  258. border-radius: 12px;
  259. background-color: #fff;
  260. }
  261. .emoji-mart-skin-swatches.custom {
  262. font-size: 0;
  263. border: none;
  264. background-color: #fff;
  265. }
  266. .emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch {
  267. width: 16px;
  268. padding: 0 2px;
  269. }
  270. .emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after {
  271. opacity: .75;
  272. }
  273. .emoji-mart-skin-swatch {
  274. display: inline-block;
  275. width: 0;
  276. vertical-align: middle;
  277. transition-property: width, padding;
  278. transition-duration: .125s;
  279. transition-timing-function: ease-out;
  280. }
  281. .emoji-mart-skin-swatch:nth-child(1) { transition-delay: 0s }
  282. .emoji-mart-skin-swatch:nth-child(2) { transition-delay: .03s }
  283. .emoji-mart-skin-swatch:nth-child(3) { transition-delay: .06s }
  284. .emoji-mart-skin-swatch:nth-child(4) { transition-delay: .09s }
  285. .emoji-mart-skin-swatch:nth-child(5) { transition-delay: .12s }
  286. .emoji-mart-skin-swatch:nth-child(6) { transition-delay: .15s }
  287. .emoji-mart-skin-swatch.selected {
  288. position: relative;
  289. width: 16px;
  290. padding: 0 2px;
  291. }
  292. .emoji-mart-skin-swatch.selected:after {
  293. content: "";
  294. position: absolute;
  295. top: 50%; left: 50%;
  296. width: 4px; height: 4px;
  297. margin: -2px 0 0 -2px;
  298. background-color: #fff;
  299. border-radius: 100%;
  300. pointer-events: none;
  301. opacity: 0;
  302. transition: opacity .2s ease-out;
  303. }
  304. .emoji-mart-skin-swatch.custom {
  305. display: inline-block;
  306. width: 0;
  307. height: 38px;
  308. overflow: hidden;
  309. vertical-align: middle;
  310. transition-property: width, height;
  311. transition-duration: .125s;
  312. transition-timing-function: ease-out;
  313. cursor: default;
  314. }
  315. .emoji-mart-skin-swatch.custom.selected {
  316. position: relative;
  317. width: 36px;
  318. height: 38px;
  319. padding: 0 2px 0 0;
  320. }
  321. .emoji-mart-skin-swatch.custom.selected:after {
  322. content: "";
  323. width: 0;
  324. height: 0;
  325. }
  326. .emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover {
  327. background-color: #f4f4f4;
  328. border-radius: 10%;
  329. }
  330. .emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom {
  331. width: 36px;
  332. height: 38px;
  333. padding: 0 2px 0 0;
  334. }
  335. .emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after {
  336. opacity: .75;
  337. }
  338. .emoji-mart-skin-text.opened {
  339. display: inline-block;
  340. vertical-align: middle;
  341. text-align: left;
  342. color: #888;
  343. font-size: 11px;
  344. padding: 5px 2px;
  345. width: 95px;
  346. height: 40px;
  347. border-radius: 10%;
  348. background-color: #fff;
  349. }
  350. .emoji-mart-skin {
  351. display: inline-block;
  352. width: 100%;
  353. padding-top: 100%;
  354. max-width: 12px;
  355. border-radius: 100%;
  356. }
  357. .emoji-mart-skin-tone-1 { background-color: #ffc93a }
  358. .emoji-mart-skin-tone-2 { background-color: #fadcbc }
  359. .emoji-mart-skin-tone-3 { background-color: #e0bb95 }
  360. .emoji-mart-skin-tone-4 { background-color: #bf8f68 }
  361. .emoji-mart-skin-tone-5 { background-color: #9b643d }
  362. .emoji-mart-skin-tone-6 { background-color: #594539 }
  363. /* For screenreaders only, via https://stackoverflow.com/a/19758620 */
  364. .emoji-mart-sr-only {
  365. position: absolute;
  366. width: 1px;
  367. height: 1px;
  368. padding: 0;
  369. margin: -1px;
  370. overflow: hidden;
  371. clip: rect(0, 0, 0, 0);
  372. border: 0;
  373. }
  374. /*
  375. * Dark mode styles
  376. */
  377. .emoji-mart-dark {
  378. color: #fff;
  379. border-color: #555453;
  380. background-color: #222;
  381. }
  382. .emoji-mart-dark .emoji-mart-bar {
  383. border-color: #555453;
  384. }
  385. .emoji-mart-dark .emoji-mart-search input {
  386. color: #fff;
  387. border-color: #555453;
  388. background-color: #2f2f2f;
  389. }
  390. .emoji-mart-dark .emoji-mart-search-icon svg {
  391. fill: #fff;
  392. }
  393. .emoji-mart-category .emoji-mart-emoji {
  394. background-color: unset !important;
  395. }
  396. .emoji-mart-anchor {
  397. background-color: unset !important;
  398. }
  399. .emoji-mart-search-icon {
  400. background-color: unset !important;
  401. }
  402. .emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before,
  403. .emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:focus:before {
  404. background-color: #888;
  405. }
  406. .emoji-mart-dark .emoji-mart-category-label span {
  407. background-color: #222;
  408. color: #fff;
  409. }
  410. .emoji-mart-dark .emoji-mart-skin-swatches {
  411. border-color: #555453;
  412. background-color: #222;
  413. }
  414. .emoji-mart-dark .emoji-mart-anchor:hover,
  415. .emoji-mart-dark .emoji-mart-anchor:focus,
  416. .emoji-mart-dark .emoji-mart-anchor-selected {
  417. color: #bfbfbf;
  418. }
  419. #emoji-modal {
  420. padding: 0px;
  421. min-width: unset;
  422. width: unset !important;
  423. }
  424. #emoji-modal > .modal-content {
  425. margin-top: 0px;
  426. }
  427. #emoji-modal > button {
  428. background-color: unset;
  429. border: 0px !important;
  430. box-shadow: 0px !important;
  431. }
  432. #emoji-modal > .modal-close-button {
  433. visibility: hidden;
  434. }