_emoji_picker.scss 1.4 KB

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