_select-category.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .select {
  2. position: relative;
  3. }
  4. .select__note {
  5. font-family: 'Noto Sans';
  6. font-size: 15px;
  7. font-style: italic;
  8. color: $grey;
  9. margin-bottom: 2px;
  10. }
  11. .option-list {
  12. position: absolute;
  13. z-index: 1;
  14. display: block;
  15. left: 0;
  16. top: 0;
  17. width: 100%;
  18. transform: scaleY(0.5);
  19. opacity: 0;
  20. transition: all 0.3s ease;
  21. backdrop-filter: blur(10px);
  22. padding: 5px 0 0 0;
  23. pointer-events: none;
  24. visibility: hidden;
  25. &.active {
  26. visibility: visible;
  27. pointer-events: all;
  28. top: 100%;
  29. opacity: 1;
  30. transform: scaleY(1);
  31. }
  32. }
  33. .select__item {
  34. position: relative;
  35. z-index: 2;
  36. transition: border-color 0.3s ease;
  37. border: 2px solid transparent;
  38. &.active {
  39. border: 2px solid #d7cd18;
  40. .select__item_icon {
  41. transform: rotate(180deg);
  42. }
  43. }
  44. @media (hover: hover) {
  45. &:hover {
  46. cursor: pointer;
  47. }
  48. }
  49. }
  50. .select__item_icon {
  51. max-width: 20px;
  52. margin-right: 5px;
  53. transition: transform 0.4s ease;
  54. }
  55. .option {
  56. display: flex;
  57. align-items: center;
  58. justify-content: space-between;
  59. font-family: 'Noto Sans';
  60. padding: 10px 25px;
  61. border-radius: 15px;
  62. font-size: 30px;
  63. color: $white;
  64. background-color: $blue;
  65. &:not(:last-child) {
  66. margin-bottom: 5px;
  67. }
  68. @media (hover: hover) {
  69. &:hover {
  70. cursor: pointer;
  71. }
  72. }
  73. }
  74. .option__title {}
  75. .option__icon {
  76. max-height: 40px;
  77. }