123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- @import '../../app.less';
- .answer-select {
- position: relative;
- display: inline-block;
- line-height: 20px;
- height: 20px;
- .mask {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1;
- }
- .select-warp {
- line-height: 20px;
- height: 20px;
- display: inline-block;
- position: relative;
- top: 0;
- &.true {
- .text {
- background-color: rgba(23, 165, 27, 0.06);
- }
- }
- &.false {
- .text {
- background-color: rgba(253, 247, 247, 1);
- }
- }
- .text {
- display: inline-block;
- border: 1px solid rgba(216, 216, 216, 1);
- background: rgba(248, 248, 248, 1);
- border-radius: 6px;
- cursor: pointer;
- min-width: 100px;
- padding-right: 20px;
- text-align: right;
- line-height: 20px;
- height: 20px;
- .assets {
- position: absolute;
- right: 5px;
- top: 5px;
- }
- }
- .text::after {
- display: inline-block;
- content: " ";
- }
- }
- .select-body {
- overflow: hidden;
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- background: #fff;
- border: 1px solid rgba(216, 216, 216, 1);
- border-radius: 6px;
- box-sizing: border-box;
- opacity: 0;
- z-index: 2;
- transform: translateY(100%);
- .item {
- height: 0;
- line-height: 25px;
- font-size: 12px;
- cursor: pointer;
- transition: all 0.3s;
- .icon {
- display: none;
- }
- }
- .item:hover {
- color: #fff;
- background: #006DAA;
- }
- .item:last-child {
- border-bottom: none;
- }
- }
- .select-body.select {
- opacity: 1;
- .item {
- height: auto;
- }
- }
- .item.selected {
- .icon {
- background-image: url('/assets/option_select.png');
- }
- }
- .item.show {
- .icon {
- display: inline-block;
- width: 15px;
- height: 15px;
- margin-right: 5px;
- }
- .total {
- display: block;
- }
- }
- .item.show.true {
- .icon {
- background-image: url('/assets/option_right.png');
- }
- }
- .item.show.false {
- .text {
- color: #686872;
- }
- }
- .item.show.false.selected {
- .icon {
- background-image: url('/assets/option_wrong.png');
- }
- }
- }
|