index.less 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @import '../../app.less';
  2. .answer-select {
  3. position: relative;
  4. display: inline-block;
  5. .mask {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. right: 0;
  10. bottom: 0;
  11. z-index: 1;
  12. }
  13. .select-warp {
  14. line-height: 25px;
  15. display: inline-block;
  16. position: relative;
  17. .text {
  18. display: inline-block;
  19. border: 1px solid rgba(216, 216, 216, 1);
  20. background: rgba(248, 248, 248, 1);
  21. border-radius: 6px;
  22. cursor: pointer;
  23. min-width: 100px;
  24. padding-right: 20px;
  25. text-align: right;
  26. .assets {
  27. position: absolute;
  28. right: 5px;
  29. top: 8px;
  30. }
  31. }
  32. }
  33. .select-body {
  34. overflow: hidden;
  35. position: absolute;
  36. bottom: 0;
  37. left: 0;
  38. right: 0;
  39. background: #fff;
  40. border: 1px solid rgba(216, 216, 216, 1);
  41. border-radius: 6px;
  42. box-sizing: border-box;
  43. opacity: 0;
  44. z-index: 2;
  45. transform: translateY(100%);
  46. .select-option {
  47. height: 0;
  48. line-height: 25px;
  49. padding-left: 10px;
  50. font-size: 12px;
  51. cursor: pointer;
  52. transition: all 0.3s;
  53. }
  54. .select-option:hover {
  55. color: #fff;
  56. background: #006DAA;
  57. }
  58. .select-option:last-child {
  59. border-bottom: none;
  60. }
  61. }
  62. .select-body.select {
  63. opacity: 1;
  64. .select-option {
  65. height: auto;
  66. }
  67. }
  68. }