Dropdown.module.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .container {
  2. width: 100%;
  3. position: relative;
  4. display: inline-block;
  5. margin-left: 4px;
  6. margin-right: 4px;
  7. text-align: center;
  8. }
  9. .button {
  10. margin-left: auto;
  11. margin-right: auto;
  12. font-size: 20px;
  13. width: 48px;
  14. height: 48px;
  15. display: flex;
  16. justify-content: center;
  17. align-items: center;
  18. border-radius: 50%;
  19. text-align: center;
  20. padding: 4px;
  21. background-color: #555;
  22. border: 4px solid #333;
  23. color: #fff;
  24. cursor: pointer;
  25. transition: background-color 300ms;
  26. }
  27. .button:hover {
  28. background-color: #777;
  29. }
  30. .list {
  31. margin-top: 5px;
  32. display: block;
  33. position: absolute;
  34. background-color: #333;
  35. transform: translateX(-50%);
  36. left: 50%;
  37. min-width: 120px;
  38. z-index: 1;
  39. border-radius: 12px;
  40. overflow: hidden;
  41. border: 4px solid #333;
  42. }
  43. .list-enter {
  44. opacity: 0;
  45. }
  46. .list-enter-active {
  47. opacity: 1;
  48. transition: opacity 200ms;
  49. }
  50. .list-exit {
  51. opacity: 1;
  52. }
  53. .list-exit-active {
  54. opacity: 0;
  55. transition: opacity 200ms;
  56. }
  57. .item {
  58. padding: 6px 4px;
  59. text-align: center;
  60. display: block;
  61. cursor: pointer;
  62. transition: background-color 300ms;
  63. white-space: nowrap;
  64. }
  65. .item:hover {
  66. background-color: #555;
  67. }
  68. .search {
  69. outline: none;
  70. border-radius: 8px;
  71. border: #666 solid 1px;
  72. background-color: #181a1b;
  73. color: #eee;
  74. padding: 4px 0.5em 4px 0.5em;
  75. }