index.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. @import '../../app.less';
  2. .answer-select {
  3. position: relative;
  4. display: inline-block;
  5. line-height: 20px;
  6. height: 20px;
  7. .mask {
  8. position: fixed;
  9. top: 0;
  10. left: 0;
  11. right: 0;
  12. bottom: 0;
  13. z-index: 1;
  14. }
  15. .select-warp {
  16. line-height: 20px;
  17. height: 20px;
  18. display: inline-block;
  19. position: relative;
  20. top: 0;
  21. &.true {
  22. .text {
  23. background-color: rgba(23, 165, 27, 0.06);
  24. }
  25. }
  26. &.false {
  27. .text {
  28. background-color: rgba(253, 247, 247, 1);
  29. }
  30. }
  31. .text {
  32. display: inline-block;
  33. border: 1px solid rgba(216, 216, 216, 1);
  34. background: rgba(248, 248, 248, 1);
  35. border-radius: 6px;
  36. cursor: pointer;
  37. min-width: 100px;
  38. padding-right: 20px;
  39. text-align: right;
  40. line-height: 20px;
  41. height: 20px;
  42. .assets {
  43. position: absolute;
  44. right: 5px;
  45. top: 5px;
  46. }
  47. }
  48. .text::after {
  49. display: inline-block;
  50. content: " ";
  51. }
  52. }
  53. .select-body {
  54. overflow: hidden;
  55. position: absolute;
  56. bottom: 0;
  57. left: 0;
  58. right: 0;
  59. background: #fff;
  60. border: 1px solid rgba(216, 216, 216, 1);
  61. border-radius: 6px;
  62. box-sizing: border-box;
  63. opacity: 0;
  64. z-index: 2;
  65. transform: translateY(100%);
  66. .item {
  67. height: 0;
  68. line-height: 25px;
  69. font-size: 12px;
  70. cursor: pointer;
  71. transition: all 0.3s;
  72. .icon {
  73. display: none;
  74. }
  75. }
  76. .item:hover {
  77. color: #fff;
  78. background: #006DAA;
  79. }
  80. .item:last-child {
  81. border-bottom: none;
  82. }
  83. }
  84. .select-body.select {
  85. opacity: 1;
  86. .item {
  87. height: auto;
  88. }
  89. }
  90. .item.selected {
  91. .icon {
  92. background-image: url('/assets/option_select.png');
  93. }
  94. }
  95. .item.show {
  96. .icon {
  97. display: inline-block;
  98. width: 15px;
  99. height: 15px;
  100. margin-right: 5px;
  101. }
  102. .total {
  103. display: block;
  104. }
  105. }
  106. .item.show.true {
  107. .icon {
  108. background-image: url('/assets/option_right.png');
  109. }
  110. }
  111. .item.show.false {
  112. .text {
  113. color: #686872;
  114. }
  115. }
  116. .item.show.false.selected {
  117. .icon {
  118. background-image: url('/assets/option_wrong.png');
  119. }
  120. }
  121. }