@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'); } } }