_emoji_picker.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .twemoji-picker {
  2. min-height: 216px;
  3. margin: 0;
  4. padding: 0 8px 0;
  5. background-color: $background-grey;
  6. &.outline {
  7. border-radius: 4px;
  8. border: 2px solid #dbdbdb;
  9. width: 366px;
  10. }
  11. }
  12. .tab {
  13. float: left;
  14. .em {
  15. @include mouse-hand;
  16. margin-bottom: 8px;
  17. margin-right: 5px;
  18. margin-bottom: 12px;
  19. display: inline-block;
  20. text-indent: -99999px;
  21. }
  22. label {
  23. background: $background-grey;
  24. display: block;
  25. height: 32px;
  26. padding: 4px;
  27. border: 1px solid $background-grey;
  28. position: relative;
  29. left: 1px;
  30. margin-left: -1px;
  31. .em {
  32. position: relative;
  33. left: 2px;
  34. transform: scale(0.75);
  35. }
  36. }
  37. .content {
  38. position: absolute;
  39. top: 32px + 8px + 1px;
  40. left: 0;
  41. right: 0;
  42. bottom: 0;
  43. padding: 10px 10px 0;
  44. background: white;
  45. border: 1px solid white;
  46. overflow-y: scroll;
  47. @include scrollbar;
  48. &::selection {
  49. background: rgba(255, 255, 255, 0.0);
  50. }
  51. }
  52. [type=radio] {
  53. display: none;
  54. }
  55. [type=radio]:checked ~ label {
  56. background: white;
  57. border-bottom: 1px solid white;
  58. z-index: 2;
  59. }
  60. [type=radio]:checked ~ label ~ .content {
  61. z-index: 1;
  62. }
  63. }